From 7a30869e175e9ce2ec608806450bab981c39ee94 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Fri, 15 Nov 2024 16:25:10 +0800 Subject: [PATCH] =?UTF-8?q?11/15=20=E8=8D=AF=E5=93=81=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E7=BB=B4=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basic/product/drug/drugMaintain.vue | 208 +++++++++++------- 1 file changed, 128 insertions(+), 80 deletions(-) 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() } }