11/15 药品字典维护

20240912_adapter
wangwei 5 months ago
parent 1ad58ec2f9
commit 7a30869e17

@ -1,87 +1,108 @@
<template> <template>
<div> <div>
<el-card> <el-card>
<el-form :model="filterQuery" v-show="showSearch" label-width="auto"> <el-form v-if="queryList && queryList.length > 0" :model="filterQuery" label-width="100px" >
<el-row :gutter="20"> <el-row style=" display:flex; flex-wrap: wrap; ">
<el-col :span="8"> <template v-for="(item, index) in queryList">
<el-form-item label="药品编码:" class="query-form-item"> <div v-if="showSearch || item.isImport">
<el-input v-model="filterQuery.nameCode" <el-form-item
placeholder="请输入药品编码" v-if="item.columnType == 'input' && item.columnName !='queryName' && executeEval(row,item.expression,true)"
clearable :label="item.columnDesc+`:`" :key="item.id">
></el-input> <el-input
</el-form-item> v-model="filterQuery[item.columnName]"
</el-col> :placeholder="item.columnDesc"
<el-col :span="8"> :disabled="executeEval(null,item.disabledFuc,false)"
<el-form-item label="药品通用名:" class="query-form-item"> @keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
<el-input clearable
clearable ></el-input>
v-model="filterQuery.cpmctymc" </el-form-item>
placeholder="请输入药品通用名" <el-form-item
></el-input> v-if="item.columnType == 'input' && item.columnName =='queryName' && executeEval(row,item.expression,true)"
</el-form-item> :label="item.columnDesc+`:`" :key="item.id">
</el-col> <el-autocomplete
<el-col :span="8"> class="inline-input"
<el-form-item label="医保编码:" class="query-form-item"> style="width: 90%"
<el-input v-model="queryName"
clearable :fetch-suggestions="queryProductName"
v-model="filterQuery.ybbm" placeholder="请输入内容"
placeholder="请输入医保编码" clearable
></el-input> @select="handleSelect"
</el-form-item> @clear="clearQueryProduct"
</el-col> ></el-autocomplete>
<el-col :span="8"> </el-form-item>
<el-form-item label="批准文号:" class="query-form-item"> <el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)"
<el-input :label="item.columnDesc+`:`">
clearable <el-select v-model="filterQuery[item.columnName]"
v-model="filterQuery.zczbhhzbapzbh" :placeholder="item.columnDesc"
placeholder="请输入批准文号" @change="executeFuc($event,'5',item.checkRules)"
></el-input> :disabled="executeEval(null,item.disabledFuc,false)"
</el-form-item> clearable>
</el-col> <el-option
<!-- <el-col :span="8">--> v-for="dict in item.lableRuleObj"
<!-- <el-form-item label="医疗器械注册人:" class="query-form-item">--> :key="dict.value"
<!-- <el-input--> :label="dict.label"
<!-- clearable--> :value="dict.value"
<!-- v-model="filterQuery.ylqxzcrbarmc"--> />
<!-- placeholder="请输入医疗器械注册人"--> <span style="float: left">{{ item.name }}</span>
<!-- ></el-input>--> <span v-if="item.isShowXx == '1'" style="float: right; color: #8492a6; font-size: 13px">{{
<!-- </el-form-item>--> item.code
<!-- </el-col>--> }}</span>
<el-col :span="8"> </el-select>
<el-form-item label="生产企业:" class="query-form-item"> </el-form-item>
<el-input <el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)"
clearable :label="item.columnDesc+`:`">
v-model="filterQuery.manufactory" <el-select
placeholder="请输入生产企业" v-model="filterQuery[item.columnName]"
></el-input> :placeholder="item.columnDesc"
</el-form-item> :disabled="executeEval(null,item.disabledFuc,false)"
</el-col> filterable
<el-col :span="8"> remote
<el-form-item label="对照条件:" class="query-form-item"> @change="executeFuc($event,'5',item.checkRules)"
<el-select v-model="filterQuery.filterType" style="width: 100%" placeholder="对照条件" clearable> :remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
<el-option label="全部" :value="0"></el-option> clearable>
<el-option label="对照完成" :value="1"></el-option> <el-option
<el-option label="未对照产品编码" :value="2"></el-option> v-for="item in options[item.clickFuc]"
<!--<el-option label="未对照" :value="3"></el-option>--> :key="item.code"
<el-option label="未对照其他产品编码" :value="4"></el-option> :label="item.label"
</el-select> :value="item.code"
</el-form-item> />
</el-col> <span style="float: left">{{ item.name }}</span>
<span v-if="item.isShowXx == '1'" style="float: right; color: #8492a6; font-size: 13px">{{
<!--<el-col :span="8">--> item.code
<!-- <el-form-item label="是否禁用:" class="query-form-item">--> }}</span>
<!-- <el-select v-model="filterQuery.isDisable" clearable>--> </el-select>
<!-- <el-option label="是" :value=true></el-option>--> </el-form-item>
<!-- <el-option label="否" :value=false></el-option>--> <el-form-item v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)"
<!-- </el-select>--> :label="item.columnDesc+`:`">
<!-- </el-form-item>--> <el-date-picker
<!--</el-col>--> :picker-options="pickerOptions"
v-model="actDateRange"
type="daterange"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`">
<el-date-picker
v-model="filterQuery[item.columnName]"
:style="`width:${item.width+'px'}`"
value-format="yyyy-MM-dd"
:disabled="executeEval(null,item.disabledFuc,false)"
type="date"
:placeholder="item.columnDesc"
></el-date-picker>
</el-form-item>
</div>
</template>
</el-row> </el-row>
<el-divider/>
</el-form> </el-form>
<div class="top-right-btn"> <div class="top-right-btn">
<el-button-group> <el-button-group>
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button> <el-button icon="el-icon-view" type="primary" @click="hideSearch"></el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit"></el-button> <el-button type="primary" icon="el-icon-search" @click="onSubmit"></el-button>
<!--<el-button type="primary" icon="el-icon-plus" @click="chooseDrug"></el-button>--> <!--<el-button type="primary" icon="el-icon-plus" @click="chooseDrug"></el-button>-->
@ -194,6 +215,7 @@
</el-card> </el-card>
</div> </div>
</template> </template>
@ -216,13 +238,30 @@ import {
import drugAdd from '@/views/basic/product/drug/drugAdd' import drugAdd from '@/views/basic/product/drug/drugAdd'
import chooseDrug from '@/views/basic/product/drug/chooseDrug' import chooseDrug from '@/views/basic/product/drug/chooseDrug'
import chooseHouseDrug from '@/views/basic/product/drug/chooseHouseDrug' import chooseHouseDrug from '@/views/basic/product/drug/chooseHouseDrug'
import {
getHead,executeFuc
} from "@/utils/customConfig";
export default { export default {
components: {drugAdd, chooseDrug, chooseHouseDrug}, components: {drugAdd, chooseDrug, chooseHouseDrug},
name: 'drugMaintain', name: 'drugMaintain',
data() { data() {
return { 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, filterBadInv: true,
query: {}, query: {},
list: [], list: [],
@ -231,7 +270,8 @@ export default {
productsType: 2, productsType: 2,
page: 1, page: 1,
limit: 20, limit: 20,
addType: 1 addType: 1,
keyWords:""
}, },
addDrugVisible: false, addDrugVisible: false,
chooseDrugVisible: false, chooseDrugVisible: false,
@ -284,7 +324,8 @@ export default {
productsType: 2, productsType: 2,
page: 1, page: 1,
limit: 20, limit: 20,
addType: 1 addType: 1,
keyWords:""
}; };
this.getList(); this.getList();
}, },
@ -389,6 +430,13 @@ export default {
, ,
}, },
created() { 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() this.getList()
} }
} }

Loading…
Cancel
Save