Browse Source

入库常规入账修改

wengyuwen 4 years ago
parent
commit
d36bdf40bc
1 changed files with 10 additions and 6 deletions
  1. 10 6
      src/views/warehouseBusiness/inStock/index.vue

+ 10 - 6
src/views/warehouseBusiness/inStock/index.vue

@@ -3863,7 +3863,7 @@ export default {
     /** 修改按钮操作 */
     /** 修改按钮操作 */
     handleUpdate(row, status) {
     handleUpdate(row, status) {
       this.reset();
       this.reset();
-      this.contrOl = false
+      // this.contrOl = false
       if (this.dataList.length === 0){
       if (this.dataList.length === 0){
 
 
       }
       }
@@ -3891,6 +3891,9 @@ export default {
               this.formBrowseStatus = true;
               this.formBrowseStatus = true;
               this.$set(this.dataList[list], "fBusinessType", this.dataList[list].fBusinessType + '')
               this.$set(this.dataList[list], "fBusinessType", this.dataList[list].fBusinessType + '')
             }
             }
+            if(this.dataList[list].fBillstatus === 40){
+              this.contrOl = true
+            }
           }
           }
         }
         }
         if (response.data.corps) {
         if (response.data.corps) {
@@ -4485,11 +4488,6 @@ export default {
     },
     },
     wDeleteRow(index, rows) {
     wDeleteRow(index, rows) {
       rows.splice(index, 1)
       rows.splice(index, 1)
-      if (this.dataList.length === 0) {
-        this.formBrowseStatus = false
-        this.contrOl = false
-        return false
-      }
       let sum = 0
       let sum = 0
       for (let li in this.dataList) {
       for (let li in this.dataList) {
         if (this.dataList[li].fQty) {
         if (this.dataList[li].fQty) {
@@ -4500,6 +4498,12 @@ export default {
         }
         }
       }
       }
       this.mum = sum
       this.mum = sum
+
+      if (this.dataList.length === 0) {
+        this.formBrowseStatus = false
+        this.contrOl = false
+        return false
+      }
     },
     },
     // 查看审批流
     // 查看审批流
     getDataList() {
     getDataList() {