Browse Source

应收账款调整

qymljy 1 year ago
parent
commit
eab189bf83

+ 13 - 2
src/Form/accountsOverdueAdjustment/add.vue

@@ -93,7 +93,7 @@
         direction="rtl"
         :show-close="false"
         append-to-body
-        @close="onClose(visible = false)">
+        @close="onrowsClose(visible = false)">
       <div class="drawer__panel" style="margin-bottom: 0 !important;">
         <el-form :model="form" :rules="rules" ref="form"  label-position="right" size="mini">
         <tableTemplate ref="rows" :checkbox="true" :isInput="false" :isPagination="false" :param="orderRow.param" :layout="tablecols" height="calc(100vh - 200px)" :custom="true" :width="true" @selectionChange="rowsSelect" @listData="queryListData">
@@ -384,6 +384,7 @@ export default {
               this.orderInfo = []
               this.enterprisename = ''
               this.sonum = ''
+              this.dialogVisible = false
               this.$store.dispatch('changeDetailDrawer',true)
               this.$router.push({path:'/overdueAdjustmentDetail',query:{id:res.data.sa_overdueadjustid,rowindex:res.data.rowindex}})
             })
@@ -400,7 +401,17 @@ export default {
       })
 
     },
-    onClose(){}
+    onClose(){
+      this.$refs.form.resetFields()
+      this.orderInfo = []
+      this.enterprisename = ''
+      this.sonum = ''
+      this.$refs.orderRow.list = []
+      this.dialogVisible = false
+    },
+    onrowsClose(){
+      this.visible = false
+    }
   },
   created() {
     this.customer.tablecols = this.tool.tabelCol(this.$route.name).customerTable.tablecols

+ 4 - 1
src/HDrpManagement/logistics/modules/add.vue

@@ -170,7 +170,10 @@ export default {
         this.dialogAddress = false
         this.$emit('onSuccess')
         this.form = {}
-        this.$router.push({path:'/logisticsdetail',query:{id:res.data.sa_logisticsid,rowindex:res.data.rowindex}})
+        this.$refs.dislist.tableData = []
+       /* this.$router.push({path:'/logisticsdetail',query:{id:res.data.sa_logisticsid,rowindex:res.data.rowindex}})*/
+        this.$store.dispatch('changeDetailDrawer',true)
+        this.$router.push({path:'/logisticsdetail',query:{id:res.data[0].sa_logisticsid,rowindex:res.data[0].rowindex}})
       })
     },
     selectChange () {