lichao 3 lat temu
rodzic
commit
1bfe1b0f92

+ 15 - 0
src/views/businessManagement/purchaseOrder/detailsPageEdit.vue

@@ -753,6 +753,19 @@ export default {
           //   ]
           // },
           {
+            label: '应付金额',
+            prop: 'debitAmount',
+            type: 'number',
+            disabled: true,
+            rules: [
+              {
+                required: false,
+                message: ' ',
+                trigger: 'blur'
+              }
+            ]
+          },
+          {
             label: '已付金额',
             prop: 'settlmentAmount',
             type: 'number',
@@ -1406,8 +1419,10 @@ export default {
             }
           }
           this.form.orderAmount = 0;
+          this.$set(this.form, 'debitAmount', 0)
           this.contactsData.forEach(item => {
             this.form.orderAmount = Number(this.form.orderAmount) + Number(item.amount)
+            this.form.debitAmount = Number(this.form.debitAmount) + Number(item.amount)
           })
           //商品信息
           this.form.itemsVOList = this.contactsData

+ 1 - 1
src/views/businessManagement/salesOrder/detailsPageEdit.vue

@@ -2961,7 +2961,7 @@ export default {
                 });
               })
             } else if (type == '采购') {
-              this.$confirm(this.form.createPurchase == 0? "是否生成采购单?": "已经生成个采购单,是否继续生成?", {
+              this.$confirm(this.form.createPurchase == 1? "已经生成过采购单,是否继续生成?": "是否生成采购单?", {
                 confirmButtonText: "确定",
                 cancelButtonText: "取消",
                 type: "warning"

+ 2 - 1
src/views/businessManagement/salesOrder/index.vue

@@ -558,7 +558,7 @@ export default {
     },
     // 生成采购
     saveSell(row) {
-      this.$confirm(row.createPurchase == 0? "是否生成采购单?": "已经生成个采购单,是否继续生成?", {
+      this.$confirm(row.createPurchase == 1? "已经生成过采购单,是否继续生成?": "是否生成采购单?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning"
@@ -566,6 +566,7 @@ export default {
         saveSell(row.id).then(res => {
           if (res.data.code == 200) {
             this.$message.success("生成成功");
+            this.onLoad(this.page, this.search)
           }
         })
       })