Commit 52d163fc by 唐玉峰

新增药疗需求

parent 6a1eb39a
...@@ -69,7 +69,8 @@ ...@@ -69,7 +69,8 @@
</el-form-item> </el-form-item>
<el-form-item label="变异原因:"> <el-form-item label="变异原因:">
<el-select v-model="form.reason" class="m-2" placeholder="请选择" size="mini" :title="getTitle(form.reason)"> <el-select v-model="form.reason" class="m-2" placeholder="请选择" size="mini" :title="getTitle(form.reason)">
<el-option v-for="item in reasonoptions" :key="item.id" :label="item.describe" :value="item.describe" :title="item.describe"> </el-option> <el-option v-for="item in reasonoptions" :key="item.id" :label="item.describe" :value="item.describe" :title="item.describe">
</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="备注:"> <el-form-item label="备注:">
...@@ -159,7 +160,13 @@ ...@@ -159,7 +160,13 @@
<el-table-column show-overflow-tooltip width="150" property="symptom" label="症状及体征"></el-table-column> <el-table-column show-overflow-tooltip width="150" property="symptom" label="症状及体征"></el-table-column>
<el-table-column show-overflow-tooltip width="85" property="emergency" label="急诊"></el-table-column> --> <el-table-column show-overflow-tooltip width="85" property="emergency" label="急诊"></el-table-column> -->
</el-table> </el-table>
<el-input slot="reference" placeholder="请输入" v-model="scope.row.project_name" @focus="onfocus(scope.row, $event)" @input="onInput(scope.row, $event)"></el-input> <el-input
slot="reference"
placeholder="请输入"
v-model="scope.row.project_name"
@focus="onfocus(scope.row, $event)"
@input="onInput(scope.row, $event)"
></el-input>
</el-popover> </el-popover>
</template> </template>
...@@ -193,7 +200,14 @@ ...@@ -193,7 +200,14 @@
<el-table-column show-overflow-tooltip property="medicUseUnit" label="单位" width="50" /> <el-table-column show-overflow-tooltip property="medicUseUnit" label="单位" width="50" />
<el-table-column show-overflow-tooltip property="medicUseMode" label="途径" width="120"> <el-table-column show-overflow-tooltip property="medicUseMode" label="途径" width="120">
<template #default="scope"> <template #default="scope">
<el-select v-if="scope.row.ischeck == 1 && scope.row.orderType" size="mini" v-model="scope.row.medicUseMode" filterable remote :filter-method="remoteMethod"> <el-select
v-if="scope.row.ischeck == 1 && scope.row.orderType"
size="mini"
v-model="scope.row.medicUseMode"
filterable
remote
:filter-method="remoteMethod"
>
<el-option v-for="item in medicUseModeoptions" :key="item.id" :label="item.describe" :value="item.describe"> </el-option> <el-option v-for="item in medicUseModeoptions" :key="item.id" :label="item.describe" :value="item.describe"> </el-option>
</el-select> </el-select>
<span v-else>{{ scope.row.medicUseMode }}</span> <span v-else>{{ scope.row.medicUseMode }}</span>
...@@ -222,7 +236,14 @@ ...@@ -222,7 +236,14 @@
<el-table-column show-overflow-tooltip property="medicUnit" label="单位" width="60" /> <el-table-column show-overflow-tooltip property="medicUnit" label="单位" width="60" />
<el-table-column show-overflow-tooltip property="remark" label="嘱托" width="150'"> <el-table-column show-overflow-tooltip property="remark" label="嘱托" width="150'">
<template #default="scope"> <template #default="scope">
<el-input v-if="scope.row.ischeck == 1 && scope.row.orderType" v-model="scope.row.remark" size="mini" type="textarea" :autosize="{ minRows: 2 }" placeholder="请输入内容"></el-input> <el-input
v-if="scope.row.ischeck == 1 && scope.row.orderType"
v-model="scope.row.remark"
size="mini"
type="textarea"
:autosize="{ minRows: 2 }"
placeholder="请输入内容"
></el-input>
<span v-else>{{ scope.row.remark }}</span> <span v-else>{{ scope.row.remark }}</span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -239,7 +260,13 @@ ...@@ -239,7 +260,13 @@
> >
<el-form-item prop="description" :rules="[{ required: true, message: '请输入内容' }]"> <el-form-item prop="description" :rules="[{ required: true, message: '请输入内容' }]">
<template #label> <span></span></template> <template #label> <span></span></template>
<el-input v-model="scope.row.description" autocomplete="off" placeholder="请输入内容" type="textarea" :autosize="{ minRows: 2 }"></el-input> <el-input
v-model="scope.row.description"
autocomplete="off"
placeholder="请输入内容"
type="textarea"
:autosize="{ minRows: 2 }"
></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</template> </template>
...@@ -256,7 +283,13 @@ ...@@ -256,7 +283,13 @@
> >
<el-form-item prop="symptom" :rules="[{ required: true, message: '请输入内容' }]"> <el-form-item prop="symptom" :rules="[{ required: true, message: '请输入内容' }]">
<template #label> <span></span></template> <template #label> <span></span></template>
<el-input v-model="scope.row.symptom" autocomplete="off" placeholder="请输入内容" type="textarea" :autosize="{ minRows: 2 }"></el-input> <el-input
v-model="scope.row.symptom"
autocomplete="off"
placeholder="请输入内容"
type="textarea"
:autosize="{ minRows: 2 }"
></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</template> </template>
...@@ -271,7 +304,11 @@ ...@@ -271,7 +304,11 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" width="80"> <el-table-column label="操作" width="80">
<template #default="scope"> <template #default="scope">
<el-button v-if="scope.row.ischeck == 1 && scope.row.type != 1 && scope.row.isedit && scope.row.orderType" size="mini" type="primary" @click="goSeeScore(scope.row, scope.$index, scope)" <el-button
v-if="scope.row.ischeck == 1 && scope.row.type != 1 && scope.row.isedit && scope.row.orderType"
size="mini"
type="primary"
@click="goSeeScore(scope.row, scope.$index, scope)"
>更多</el-button >更多</el-button
> >
</template> </template>
...@@ -402,7 +439,9 @@ export default { ...@@ -402,7 +439,9 @@ export default {
console.log(this.query); console.log(this.query);
if (this.query !== "") { if (this.query !== "") {
this.medicUseModeoptions = this.medicUseModeoptionsLise.filter((item) => { this.medicUseModeoptions = this.medicUseModeoptionsLise.filter((item) => {
return item.describe.toLowerCase().indexOf(this.query.toLowerCase()) > -1 || item.pinyin.toLowerCase().indexOf(this.query.toLowerCase()) > -1; return (
item.describe.toLowerCase().indexOf(this.query.toLowerCase()) > -1 || item.pinyin.toLowerCase().indexOf(this.query.toLowerCase()) > -1
);
}); });
} else { } else {
this.medicUseModeoptions = this.medicUseModeoptionsLise; this.medicUseModeoptions = this.medicUseModeoptionsLise;
...@@ -415,7 +454,7 @@ export default { ...@@ -415,7 +454,7 @@ export default {
const newData = { const newData = {
emergency: 0, emergency: 0,
adviceType: r.adviceType, adviceType: r.adviceType,
advice_name: r.advice_name, advice_name2: r.advice_name2,
id: this.$uuid(), id: this.$uuid(),
isClass: false, isClass: false,
parentid: r.id, parentid: r.id,
...@@ -464,8 +503,7 @@ export default { ...@@ -464,8 +503,7 @@ export default {
value && this.etProjectByName(value); value && this.etProjectByName(value);
}, },
etProjectByName(query) { etProjectByName(query) {
http http.post(`/ClinicalRoute/ClinicalRoute/GetProjectByName?searchQuery=${query}`, {})
.post(`/ClinicalRoute/ClinicalRoute/GetProjectByName?searchQuery=${query}`, {})
.then((data) => { .then((data) => {
if (data && data.length) { if (data && data.length) {
data.map((el, i) => { data.map((el, i) => {
...@@ -570,8 +608,7 @@ export default { ...@@ -570,8 +608,7 @@ export default {
}, },
//获取途径,频率的下拉数据 //获取途径,频率的下拉数据
gemedicUseModeoptions() { gemedicUseModeoptions() {
http http.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=1`, {})
.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=1`, {})
.then((data) => { .then((data) => {
this.medicUseModeoptions = data; this.medicUseModeoptions = data;
this.medicUseModeoptionsLise = data; this.medicUseModeoptionsLise = data;
...@@ -591,8 +628,7 @@ export default { ...@@ -591,8 +628,7 @@ export default {
}, },
//获取频率,频率的下拉数据 //获取频率,频率的下拉数据
gemedicUsePlanoptions() { gemedicUsePlanoptions() {
http http.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=2`, {})
.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=2`, {})
.then((data) => { .then((data) => {
this.medicUsePlanoptions = data; this.medicUsePlanoptions = data;
}) })
...@@ -600,8 +636,7 @@ export default { ...@@ -600,8 +636,7 @@ export default {
}, },
//获取用要目的下拉数据 //获取用要目的下拉数据
getmedicalPurposeoptions() { getmedicalPurposeoptions() {
http http.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=3`, {})
.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=3`, {})
.then((data) => { .then((data) => {
this.medicalPurposeoptions = data; this.medicalPurposeoptions = data;
}) })
...@@ -610,8 +645,7 @@ export default { ...@@ -610,8 +645,7 @@ export default {
//获取患者信息 //获取患者信息
gettopdata() { gettopdata() {
http http.post(`/ClinicalRoute/ClinicalRoute/GetPatientInfo?pid=${this.$route.query.pid}`, {})
.post(`/ClinicalRoute/ClinicalRoute/GetPatientInfo?pid=${this.$route.query.pid}`, {})
.then((data) => { .then((data) => {
this.topdata = data; this.topdata = data;
this.crid = data.crid; this.crid = data.crid;
...@@ -734,16 +768,26 @@ export default { ...@@ -734,16 +768,26 @@ export default {
}); });
} }
if (isCancel) { if (isCancel) {
this.tableData.map((el) => { this.setfalse(this.tableData);
if (el.children) { // this.tableData.map((el) => {
el.children.map((j) => { // if (el.children) {
this.toggleSelection(j, false); // el.children.map((j) => {
}); // this.toggleSelection(j, false);
} // });
}); // }
// });
} }
}, },
// 编辑多个子层级
setfalse(arr) {
arr.map((item) => {
this.toggleSelection(item, false);
if (item.children && item.children.length) {
this.setfalse(item.children);
}
});
},
//当选择项发生变化时会触发该事件 //当选择项发生变化时会触发该事件
SelectionChange(val) { SelectionChange(val) {
if (this.radio == 1) { if (this.radio == 1) {
...@@ -753,9 +797,6 @@ export default { ...@@ -753,9 +797,6 @@ export default {
this.multipleSelection1 = val.sort((a, b) => a.sort - b.sort); this.multipleSelection1 = val.sort((a, b) => a.sort - b.sort);
// this.multipleSelection1 = val.filter((item) => !item.children).sort((a, b) => a.sort - b.sort); // this.multipleSelection1 = val.filter((item) => !item.children).sort((a, b) => a.sort - b.sort);
} }
console.log(this.multipleSelection.filter((item) => item.adviceType));
console.log(this.multipleSelection1.filter((item) => item.adviceType));
if (this.multipleSelection.length) { if (this.multipleSelection.length) {
this.multipleSelection this.multipleSelection
.filter((item) => item.adviceType) .filter((item) => item.adviceType)
...@@ -776,8 +817,7 @@ export default { ...@@ -776,8 +817,7 @@ export default {
//获取左侧时间线数据 //获取左侧时间线数据
getlefttime() { getlefttime() {
http http.post(`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesLeft?pid=${this.$route.query.pid}`, {})
.post(`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesLeft?pid=${this.$route.query.pid}`, {})
.then((data) => { .then((data) => {
this.activities = data; this.activities = data;
this.options = data; this.options = data;
...@@ -799,8 +839,7 @@ export default { ...@@ -799,8 +839,7 @@ export default {
}, },
//获取标识 //获取标识
getIsRoute() { getIsRoute() {
http http.post(`/ClinicalRoute/ClinicalRoute/IsRoute?pid=${this.$route.query.pid}`, {})
.post(`/ClinicalRoute/ClinicalRoute/IsRoute?pid=${this.$route.query.pid}`, {})
.then((data) => { .then((data) => {
console.log(data); console.log(data);
if (data) { if (data) {
...@@ -815,8 +854,10 @@ export default { ...@@ -815,8 +854,10 @@ export default {
.catch((error) => {}); .catch((error) => {});
}, },
getTableData() { getTableData() {
http http.post(
.post(`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=${this.$route.query.pid}&case_routeid=${this.case_routeid}&searchQuery=${this.inhosdays}`, {}) `/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=${this.$route.query.pid}&case_routeid=${this.case_routeid}&searchQuery=${this.inhosdays}`,
{}
)
.then((data) => { .then((data) => {
data.route1.forEach((element) => { data.route1.forEach((element) => {
if (element.children) { if (element.children) {
...@@ -926,8 +967,7 @@ export default { ...@@ -926,8 +967,7 @@ export default {
saveSetPatientRoutes() { saveSetPatientRoutes() {
this.objtable.route1 = this.multipleSelection.filter((item) => item.adviceType); this.objtable.route1 = this.multipleSelection.filter((item) => item.adviceType);
this.objtable.route2 = this.multipleSelection1.filter((item) => item.adviceType); this.objtable.route2 = this.multipleSelection1.filter((item) => item.adviceType);
http http.post(`/ClinicalRoute/ClinicalRoute/SetPatientRoutes?pid=${this.$route.query.pid}`, this.objtable)
.post(`/ClinicalRoute/ClinicalRoute/SetPatientRoutes?pid=${this.$route.query.pid}`, this.objtable)
.then(async (data) => { .then(async (data) => {
data.map((item) => { data.map((item) => {
if (item.code == "0") { if (item.code == "0") {
...@@ -943,8 +983,7 @@ export default { ...@@ -943,8 +983,7 @@ export default {
}, },
//获取病情变异--变异原因下拉框 //获取病情变异--变异原因下拉框
getreasonoptions() { getreasonoptions() {
http http.post(`/ClinicalRoute/ClinicalRoute/GetStandardByType?crid=${this.crid}`, {})
.post(`/ClinicalRoute/ClinicalRoute/GetStandardByType?crid=${this.crid}`, {})
.then((data) => { .then((data) => {
this.reasonoptions = data; this.reasonoptions = data;
}) })
...@@ -963,8 +1002,7 @@ export default { ...@@ -963,8 +1002,7 @@ export default {
remarks: this.form.remarks, remarks: this.form.remarks,
}; };
http http.post(`/ClinicalRoute/ClinicalRoute/SetVariation`, prome)
.post(`/ClinicalRoute/ClinicalRoute/SetVariation`, prome)
.then((data) => { .then((data) => {
Message({ Message({
message: data.message, message: data.message,
......
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