Commit e31aa91c by 唐玉峰

.

parent 2633b547
...@@ -330,7 +330,26 @@ ...@@ -330,7 +330,26 @@
<span v-else>{{ scope.row.remark }}</span> <span v-else>{{ scope.row.remark }}</span>
</template> </template>
</el-table-column> </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"> <el-table-column prop="description" label="诊断" width="150">
<template #default="scope"> <template #default="scope">
<el-form-item <el-form-item
...@@ -530,6 +549,8 @@ export default { ...@@ -530,6 +549,8 @@ export default {
medicUsePlanoptions: [], //频率 medicUsePlanoptions: [], //频率
medicUsePlanoptionsList: [], medicUsePlanoptionsList: [],
medicalPurposeoptions: [], //用药目的 medicalPurposeoptions: [], //用药目的
specimenList: [],
specimenListoptions: [],
radio: 1, radio: 1,
newtable1: [], newtable1: [],
newtable2: [], newtable2: [],
...@@ -545,6 +566,7 @@ export default { ...@@ -545,6 +566,7 @@ export default {
gridData: [], gridData: [],
query: "", query: "",
query1: "", query1: "",
query2: "",
currentRow: null, currentRow: null,
deptName: "", deptName: "",
deptNames: [], deptNames: [],
...@@ -558,6 +580,7 @@ export default { ...@@ -558,6 +580,7 @@ export default {
this.gemedicUseModeoptions(); this.gemedicUseModeoptions();
this.gemedicUsePlanoptions(); this.gemedicUsePlanoptions();
this.getmedicalPurposeoptions(); this.getmedicalPurposeoptions();
this.getspecimenList();
}, },
watch: { watch: {
query() { query() {
...@@ -582,6 +605,17 @@ export default { ...@@ -582,6 +605,17 @@ export default {
this.medicUsePlanoptions = this.medicUsePlanoptionsList; 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: { methods: {
setIndex(data) { setIndex(data) {
...@@ -694,6 +728,7 @@ export default { ...@@ -694,6 +728,7 @@ export default {
orderType: r.orderType, orderType: r.orderType,
medicalPurpose: r.medicalPurpose, medicalPurpose: r.medicalPurpose,
price: null, price: null,
specimen_id: null,
type: r.type, type: r.type,
sort: cout + 1, sort: cout + 1,
isedit: false, isedit: false,
...@@ -784,7 +819,7 @@ export default { ...@@ -784,7 +819,7 @@ export default {
item.medicUseUnit = row.medicUseUnit; item.medicUseUnit = row.medicUseUnit;
// item.medicUseMode = row.medicUseMode; // item.medicUseMode = row.medicUseMode;
// item.medicUsePlan = row.medicUsePlan; // item.medicUsePlan = row.medicUsePlan;
// item.dropNumber = row.dropNumber; item.specimen_id = row.specimen_id;
item.medicUnit = row.medicUnit; item.medicUnit = row.medicUnit;
item.remark = row.remark; item.remark = row.remark;
item.symptom = row.symptom; item.symptom = row.symptom;
...@@ -931,6 +966,16 @@ export default { ...@@ -931,6 +966,16 @@ export default {
this.medicUseModeoptions = this.medicUseModeoptionsLise; 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() { gemedicUsePlanoptions() {
http.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=2`, {}) http.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=2`, {})
...@@ -948,6 +993,14 @@ export default { ...@@ -948,6 +993,14 @@ export default {
}) })
.catch((error) => {}); .catch((error) => {});
}, },
getspecimenList() {
http.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=6`, {})
.then((data) => {
this.specimenList = data;
this.specimenListoptions = data;
})
.catch((error) => {});
},
//获取患者信息 //获取患者信息
gettopdata() { gettopdata() {
......
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
{{ scope.row.proportion != undefined ? decimal(scope.row.proportion) + "%" : "" }} {{ scope.row.proportion != undefined ? decimal(scope.row.proportion) + "%" : "" }}
</template> </template>
</el-table-column> </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"> <template slot-scope="scope">
{{ decimal(scope.row.coreTotalFee) }} {{ decimal(scope.row.coreTotalFee) }}
</template> </template>
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.coreProportion != undefined ? decimal(scope.row.coreProportion) + "%" : "" }} {{ scope.row.coreProportion != undefined ? decimal(scope.row.coreProportion) + "%" : "" }}
</template> </template>
</el-table-column> </el-table-column> -->
</el-table> </el-table>
</div> </div>
<!-- 中间有数据样式 表格--> <!-- 中间有数据样式 表格-->
......
...@@ -20,7 +20,7 @@ module.exports = { ...@@ -20,7 +20,7 @@ module.exports = {
port: 8066, //测试端口 port: 8066, //测试端口
proxy: { proxy: {
"/api": { "/api": {
target: "http://192.168.18.166:8033/", //dip测试站点 target: "http://192.168.18.166:8173/", //dip测试站点
changeOrigin: true, changeOrigin: true,
pathRewrite: { 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