Pārlūkot izejas kodu

【修改】销售返利单、返利互转申请 返利录入提交后该页面不做缓存

howie 2 gadi atpakaļ
vecāks
revīzija
5a68f84c97

+ 9 - 8
src/views/finance/change_apply.vue

@@ -228,14 +228,15 @@ export default {
 
     resetFn() {
       // this.searchForm.theTime = null;
-      this.dataList.forEach(v => {
-        v.money = ''
-        v.bz = ''
-        v.name = ''
-      })
-      this.dataList[1].customerId = ''
-      this.dataList[1].customerNumber = ''
-      this.dataList[1].allowanceAmount = ''
+      // this.dataList.forEach(v => {
+      //   v.money = ''
+      //   v.bz = ''
+      //   v.name = ''
+      // })
+      // this.dataList[1].customerId = ''
+      // this.dataList[1].customerNumber = ''
+      // this.dataList[1].allowanceAmount = ''
+      Object.assign(this.$data, this.$options.data())
     },
 
     // //返利类型数据

+ 3 - 2
src/views/finance/rebate_form.vue

@@ -417,8 +417,9 @@ export default {
       //   remark: '',
       //   createBy: ''
       // }
-      this.searchForm.remark = ''
-      this.dataList = []
+      // this.searchForm.remark = ''
+      // this.dataList = []
+      Object.assign(this.$data, this.$options.data())
     },
     rouClassNameFn({ row, rowIndex }) {
       // 把每一行的索引放进row