chenrui 3 лет назад
Родитель
Сommit
50e4a2405b
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      src/views/allocationManagement/chainTransferOut/edit.vue

+ 5 - 1
src/views/allocationManagement/chainTransferOut/edit.vue

@@ -297,6 +297,10 @@ export default {
   methods: {
     //  重置
     resetSearchForm () {
+      this.resetData()
+      this.$refs.table.refresh(true)
+    },
+    resetData () {
       this.queryParam.productCode = ''
       this.queryParam.productName = ''
       this.queryParam.productOrigCode = ''
@@ -306,7 +310,6 @@ export default {
       this.queryParam.productTypeSn2 = undefined
       this.queryParam.productTypeSn3 = undefined
       this.productType = []
-      this.$refs.table.refresh(true)
     },
     // 已选产品  重置
     chooseResetSearchForm () {
@@ -487,6 +490,7 @@ export default {
       })
     },
     pageInit () {
+      this.resetData()
       this.chooseResetSearchForm()
       this.getDetail()
       this.getWarehouseList()