Parcourir la source

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

howie il y a 2 ans
Parent
commit
4c914be78f
2 fichiers modifiés avec 17 ajouts et 19 suppressions
  1. 9 10
      src/views/finance/change_apply.vue
  2. 8 9
      src/views/finance/rebate_form.vue

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

@@ -227,16 +227,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 = ''
-      Object.assign(this.$data, this.$options.data())
+      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 = ''
     },
 
     // //返利类型数据

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

@@ -411,15 +411,14 @@ export default {
     },
     // 重置
     cancelFn() {
-      // this.searchForm = {
-      //   theTime: '',
-      //   createTime: '',
-      //   remark: '',
-      //   createBy: ''
-      // }
-      // this.searchForm.remark = ''
-      // this.dataList = []
-      Object.assign(this.$data, this.$options.data())
+      this.searchForm = {
+        theTime: '',
+        createTime: '',
+        remark: '',
+        createBy: ''
+      }
+      this.searchForm.remark = ''
+      this.dataList = []
     },
     rouClassNameFn({ row, rowIndex }) {
       // 把每一行的索引放进row