|
@@ -590,7 +590,7 @@
|
|
|
<tr class="hang">
|
|
|
<th align="left" :colspan="6" >合计</th>
|
|
|
<td :colspan="12" align="left">
|
|
|
- {{ moneySum }}
|
|
|
+ {{ mcsSum }}
|
|
|
</td>
|
|
|
<!-- <td align="center"> -->
|
|
|
<!-- {{ numSum }} -->
|
|
@@ -599,7 +599,7 @@
|
|
|
<tr class="hang">
|
|
|
<th :colspan="6" align="left">发货金额(人民币)大写:</th>
|
|
|
<td :colspan="12">
|
|
|
- {{ moneySum | toChineseAmount }}
|
|
|
+ {{ mcsSum | toChineseAmount }}
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr height="50px">
|
|
@@ -748,6 +748,7 @@ export default {
|
|
|
},
|
|
|
udidialog:false,
|
|
|
udiData:[],
|
|
|
+ mcsSum:0
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -1307,6 +1308,7 @@ export default {
|
|
|
});
|
|
|
throw new Error("同一产品的批号不能重复");
|
|
|
}
|
|
|
+
|
|
|
this.$refs.tabledata.validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.$confirm("确认出库", "提示", {
|
|
@@ -1314,6 +1316,12 @@ export default {
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning",
|
|
|
}).then(() => {
|
|
|
+ this.mcsSum = 0;
|
|
|
+ this.tableData.forEach((item) => {
|
|
|
+ let rowSum = 0;
|
|
|
+ rowSum = item.purcPric*item.convrat*item.delvCnt;
|
|
|
+ this.mcsSum+=rowSum
|
|
|
+ })
|
|
|
this.printVisible = true;
|
|
|
});
|
|
|
} else {
|
|
@@ -1357,12 +1365,15 @@ export default {
|
|
|
submitMcsDelvOrd(data2)
|
|
|
.then((res) => {
|
|
|
this.printVisible = false;
|
|
|
+ this.$message.success("出库成功")
|
|
|
this.$router.push({
|
|
|
name: "purOrderDelivery",
|
|
|
query:{spdId:this.$route.query.spdId,activeName:this.$route.query.activeName}
|
|
|
});
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
+ this.$message.error("出库失败")
|
|
|
+
|
|
|
// this.confirmLoadLoad = false;
|
|
|
});
|
|
|
});
|