Commit e31aa91c by 唐玉峰

.

parent 2633b547
......@@ -330,7 +330,26 @@
<span v-else>{{ scope.row.remark }}</span>
</template>
</el-table-column>
<el-table-column show-overflow-tooltip property="specimen_id" label="标本" width="130">
<template #default="scope">
<template v-if="scope.row.ischeck == 1 && scope.row.orderType">
<el-form-item :prop="`tableList.${scope.row.customIndex}.specimen_id`" :rules="[{ required: false, message: '请选择' }]">
<template #label> <span></span></template>
<el-select
size="mini"
filterable
remote
:filter-method="remoteMethodspecimen"
v-model="scope.row.specimen_id"
:disabled="!scope.row.isAdd"
>
<el-option v-for="item in specimenList" :key="item.id" :label="item.describe" :value="item.describe"> </el-option>
</el-select>
</el-form-item>
</template>
<span v-else>{{ scope.row.specimen_id }}</span>
</template>
</el-table-column>
<el-table-column prop="description" label="诊断" width="150">
<template #default="scope">
<el-form-item
......@@ -530,6 +549,8 @@ export default {
medicUsePlanoptions: [], //频率
medicUsePlanoptionsList: [],
medicalPurposeoptions: [], //用药目的
specimenList: [],
specimenListoptions: [],
radio: 1,
newtable1: [],
newtable2: [],
......@@ -545,6 +566,7 @@ export default {
gridData: [],
query: "",
query1: "",
query2: "",
currentRow: null,
deptName: "",
deptNames: [],
......@@ -558,6 +580,7 @@ export default {
this.gemedicUseModeoptions();
this.gemedicUsePlanoptions();
this.getmedicalPurposeoptions();
this.getspecimenList();
},
watch: {
query() {
......@@ -582,6 +605,17 @@ export default {
this.medicUsePlanoptions = this.medicUsePlanoptionsList;
}
},
query2() {
if (this.query2 !== "") {
this.specimenList = this.specimenListoptions.filter((item) => {
return (
item.describe.toLowerCase().indexOf(this.query2.toLowerCase()) > -1 || item.pinyin.toLowerCase().indexOf(this.query2.toLowerCase()) > -1
);
});
} else {
this.specimenList = this.specimenListoptions;
}
},
},
methods: {
setIndex(data) {
......@@ -694,6 +728,7 @@ export default {
orderType: r.orderType,
medicalPurpose: r.medicalPurpose,
price: null,
specimen_id: null,
type: r.type,
sort: cout + 1,
isedit: false,
......@@ -784,7 +819,7 @@ export default {
item.medicUseUnit = row.medicUseUnit;
// item.medicUseMode = row.medicUseMode;
// item.medicUsePlan = row.medicUsePlan;
// item.dropNumber = row.dropNumber;
item.specimen_id = row.specimen_id;
item.medicUnit = row.medicUnit;
item.remark = row.remark;
item.symptom = row.symptom;
......@@ -931,6 +966,16 @@ export default {
this.medicUseModeoptions = this.medicUseModeoptionsLise;
}
},
remoteMethodspecimen(query) {
this.query2 = query;
if (query !== "") {
this.specimenList = this.specimenList.filter((item) => {
return item.describe.toLowerCase().indexOf(query.toLowerCase()) > -1 || item.pinyin.toLowerCase().indexOf(query.toLowerCase()) > -1;
});
} else {
this.specimenList = this.specimenListoptions;
}
},
//获取频率,频率的下拉数据
gemedicUsePlanoptions() {
http.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=2`, {})
......@@ -948,6 +993,14 @@ export default {
})
.catch((error) => {});
},
getspecimenList() {
http.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=6`, {})
.then((data) => {
this.specimenList = data;
this.specimenListoptions = data;
})
.catch((error) => {});
},
//获取患者信息
gettopdata() {
......
......@@ -144,7 +144,7 @@
{{ scope.row.proportion != undefined ? decimal(scope.row.proportion) + "%" : "" }}
</template>
</el-table-column>
<el-table-column prop="coreTotalFee" label="预计DIP设定费用(参考)" header-align="center" align="right">
<!-- <el-table-column prop="coreTotalFee" label="预计DIP设定费用(参考)" header-align="center" align="right">
<template slot-scope="scope">
{{ decimal(scope.row.coreTotalFee) }}
</template>
......@@ -153,7 +153,7 @@
<template slot-scope="scope">
{{ scope.row.coreProportion != undefined ? decimal(scope.row.coreProportion) + "%" : "" }}
</template>
</el-table-column>
</el-table-column> -->
</el-table>
</div>
<!-- 中间有数据样式 表格-->
......
......@@ -20,7 +20,7 @@ module.exports = {
port: 8066, //测试端口
proxy: {
"/api": {
target: "http://192.168.18.166:8033/", //dip测试站点
target: "http://192.168.18.166:8173/", //dip测试站点
changeOrigin: true,
pathRewrite: {
"^/": "/",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment