优化商品和单据的重置按钮的查询逻辑

This commit is contained in:
季圣华
2022-05-09 23:44:52 +08:00
parent 1b610f9743
commit 860a5ca8cd
3 changed files with 11 additions and 2 deletions

View File

@@ -66,7 +66,8 @@ export const BillListMixin = {
searchReset() {
this.queryParam = {
type: this.queryParam.type,
subType: this.queryParam.subType
subType: this.queryParam.subType,
roleType: Vue.ls.get('roleType')
}
this.loadData(1);
},

View File

@@ -1,4 +1,5 @@
import {findBySelectSup, findBySelectCus, findBySelectOrgan, findBySelectRetail, getUserList, getPersonByType, getAccount} from '@/api/api'
import Vue from 'vue'
export const FinancialListMixin = {
data () {
@@ -59,7 +60,8 @@ export const FinancialListMixin = {
},
searchReset() {
this.queryParam = {
type: this.queryParam.type
type: this.queryParam.type,
roleType: Vue.ls.get('roleType')
}
this.loadData(1);
},

View File

@@ -362,6 +362,12 @@
if(this.btnEnableList.indexOf(1)===-1) {
this.$refs.modalForm.isReadOnly = true
}
},
searchReset() {
this.queryParam = {
mpList: getMpListShort(Vue.ls.get('materialPropertyList')) //扩展属性
}
this.loadData(1);
}
}
}