Переглянути джерело

生产总订单-勾选数据问题

jingbb 9 місяців тому
батько
коміт
13fdf39a57

+ 1 - 1
src/views/production/productionTotalOrder/modules/KSOutbound.vue

@@ -416,9 +416,9 @@
                     if (res.success) {
                         this.$emit('ok')
                         this.$message.success('执行成功');
-                        this.handleCancel()
                     } else {
                         this.$message.error(res.message);
+                        this.handleCancel()
                     }
                 }).finally(() => {
                     this.loading = false

+ 1 - 1
src/views/production/productionTotalOrder/modules/KSWarehousing.vue

@@ -372,9 +372,9 @@
                     if (res.success) {
                         this.$emit('ok')
                         this.$message.success('执行成功');
-                        this.handleCancel()
                     } else {
                         this.$message.error(res.message);
+                        this.handleCancel()
                     }
                 }).finally(() => {
                     this.loading = false

+ 1 - 1
src/views/production/productionTotalOrder/modules/materiaWaring.vue

@@ -364,9 +364,9 @@
                     if (res.success) {
                         this.$emit('ok')
                         this.$message.success(res.message);
-                        this.handleCancel()
                     } else {
                         this.$message.error(res.message);
+                        this.handleCancel()
                     }
                 }).finally(() => {
                     this.loading = false

+ 1 - 1
src/views/production/productionTotalOrder/modules/productWarehousModel.vue

@@ -357,7 +357,6 @@
                 postAction('/productionOrder/madeProductionOrders/syNcIn', {madeProductionOrdersFinishedList:this.selectedRows}).then((res) => {
                     alertModal.closeLoading();
                     if (res.success) {
-                        this.visible = false
                         this.$message.success(res.message);
                         this.$emit('ok')
                     } else {
@@ -365,6 +364,7 @@
                     }
                 }).finally(() => {
                     this.loading = false
+                    this.handleCancel()
                 })
             }
             

+ 8 - 0
src/views/production/productionTotalOrder/modules/productionTotalOrderAdd.vue

@@ -305,6 +305,8 @@
                         this.originalProductDeatil = Array.from(res.result)
                         this.$refs.productDetails.form.dataSource =res.result
                         this.$refs.productDetails.planOrg=this.form.pkOrg
+                        this.$refs.productDetails.selectedRowKeys = []
+                        this.$refs.productDetails.selectedRows=[]
                         this.$refs.productDetails.form.dataSource.map((item,index)=>{
                             item.rowNo =index+1
                        })
@@ -323,6 +325,8 @@
                         this.originalMaterial  = Array.from(res.result)
                         this.$refs.material.form.dataSource =res.result
                         this.$refs.material.planOrg=this.form.pkOrg
+                        this.$refs.material.selectedRowKeys = []
+                        this.$refs.material.selectedRows=[]
                         this.$refs.material.form.dataSource.map((item,index)=>{
                             item.rowNo =index+1
                        })
@@ -340,6 +344,8 @@
                     if(res.success){
                         this.$refs.TemporaryStorage.planOrg=this.form.pkOrg
                         this.$refs.TemporaryStorage.dataSource =res.result
+                        this.$refs.TemporaryStorage.selectedRowKeys = []
+                        this.$refs.TemporaryStorage.selectedRows=[]
                         this.$refs.TemporaryStorage.dataSource.map((item,index)=>{
                             item.rowNo =index+1
                        })
@@ -355,6 +361,8 @@
                     if(res.success){
                         this.$refs.SurplusMaterials.form.dataSource =res.result
                         this.$refs.SurplusMaterials.planOrg=this.form.pkOrg
+                        this.$refs.SurplusMaterials.selectedRowKeys = []
+                        this.$refs.SurplusMaterials.selectedRows=[]
                         this.$refs.SurplusMaterials.form.dataSource.map((item,index)=>{
                             item.rowNo =index+1
                        })

+ 1 - 1
src/views/production/productionTotalOrder/productionTotalOrderList.vue

@@ -354,7 +354,7 @@
             //查询
             searchQuery(){
               this.selectedRow=[]
-              this.selectedRowKeys
+              this.selectedRowKeys = []
               this.queryParam.pageNo=1
               this.getTableList()
             },