diff --git a/src/views/basic/product/drug/drugMaintain.vue b/src/views/basic/product/drug/drugMaintain.vue index e42e35df..ae3bce46 100644 --- a/src/views/basic/product/drug/drugMaintain.vue +++ b/src/views/basic/product/drug/drugMaintain.vue @@ -1,87 +1,108 @@ @@ -216,13 +238,30 @@ import { import drugAdd from '@/views/basic/product/drug/drugAdd' import chooseDrug from '@/views/basic/product/drug/chooseDrug' import chooseHouseDrug from '@/views/basic/product/drug/chooseHouseDrug' +import { + getHead,executeFuc +} from "@/utils/customConfig"; export default { components: {drugAdd, chooseDrug, chooseHouseDrug}, name: 'drugMaintain', data() { return { - showSearch: true, + //界面配置 + tableHeader: [], + queryList: [], + fromList: [], + executeFuc(row, type, clickFuc, value) { + return executeFuc(this, row, type, clickFuc, value); + }, + executeEval(row, expression, defaultRet) { + if (expression) { + return eval(expression); + } + return defaultRet; + }, + + showSearch: false, filterBadInv: true, query: {}, list: [], @@ -231,7 +270,8 @@ export default { productsType: 2, page: 1, limit: 20, - addType: 1 + addType: 1, + keyWords:"" }, addDrugVisible: false, chooseDrugVisible: false, @@ -284,7 +324,8 @@ export default { productsType: 2, page: 1, limit: 20, - addType: 1 + addType: 1, + keyWords:"" }; this.getList(); }, @@ -389,6 +430,13 @@ export default { , }, created() { + getHead("drugMaintain-ypzdwh", "1").then((re) => { + // 处理返回的数据 + this.tableObj = re.data; + this.tableHeader = re.data.tableList; + this.queryList = re.data.queryList; + this.fromList = re.data.fromList; + }); this.getList() } }