Commit a45161b8 by yufeng.tang

需求更改

parent a0d0be07
...@@ -69,8 +69,7 @@ ...@@ -69,8 +69,7 @@
</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 v-for="item in reasonoptions" :key="item.id" :label="item.describe" :value="item.describe" :title="item.describe"> </el-option>
</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="备注:"> <el-form-item label="备注:">
...@@ -122,7 +121,7 @@ ...@@ -122,7 +121,7 @@
<div v-if="scope.row.orderType == '药疗'"> <div v-if="scope.row.orderType == '药疗'">
<i <i
@click.prevent="addRow(scope.row)" @click.prevent="addRow(scope.row)"
v-if="scope.row.ischeck == 1 && !scope.row.isnew && scope.row.orderType" v-if="scope.row.ischeck == 1 && !scope.row.isnew && scope.row.orderType && scope.row.isAdd"
class="el-icon-circle-plus-outline" class="el-icon-circle-plus-outline"
style="font-size: 14px; color: #0283bb; margin-right: 3px; cursor: pointer" style="font-size: 14px; color: #0283bb; margin-right: 3px; cursor: pointer"
></i> ></i>
...@@ -160,13 +159,7 @@ ...@@ -160,13 +159,7 @@
<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 <el-input slot="reference" placeholder="请输入" v-model="scope.row.project_name" @focus="onfocus(scope.row, $event)" @input="onInput(scope.row, $event)"></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>
...@@ -200,14 +193,7 @@ ...@@ -200,14 +193,7 @@
<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 <el-select v-if="scope.row.ischeck == 1 && scope.row.orderType" size="mini" v-model="scope.row.medicUseMode" filterable remote :filter-method="remoteMethod">
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>
...@@ -236,14 +222,7 @@ ...@@ -236,14 +222,7 @@
<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 <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>
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>
...@@ -260,13 +239,7 @@ ...@@ -260,13 +239,7 @@
> >
<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 <el-input v-model="scope.row.description" autocomplete="off" placeholder="请输入内容" type="textarea" :autosize="{ minRows: 2 }"></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>
...@@ -283,13 +256,7 @@ ...@@ -283,13 +256,7 @@
> >
<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 <el-input v-model="scope.row.symptom" autocomplete="off" placeholder="请输入内容" type="textarea" :autosize="{ minRows: 2 }"></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>
...@@ -304,11 +271,7 @@ ...@@ -304,11 +271,7 @@
</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 <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)"
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>
...@@ -439,9 +402,7 @@ export default { ...@@ -439,9 +402,7 @@ 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 ( return item.describe.toLowerCase().indexOf(this.query.toLowerCase()) > -1 || item.pinyin.toLowerCase().indexOf(this.query.toLowerCase()) > -1;
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;
...@@ -503,7 +464,8 @@ export default { ...@@ -503,7 +464,8 @@ export default {
value && this.etProjectByName(value); value && this.etProjectByName(value);
}, },
etProjectByName(query) { etProjectByName(query) {
http.post(`/ClinicalRoute/ClinicalRoute/GetProjectByName?searchQuery=${query}`, {}) http
.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) => {
...@@ -608,7 +570,8 @@ export default { ...@@ -608,7 +570,8 @@ export default {
}, },
//获取途径,频率的下拉数据 //获取途径,频率的下拉数据
gemedicUseModeoptions() { gemedicUseModeoptions() {
http.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=1`, {}) http
.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=1`, {})
.then((data) => { .then((data) => {
this.medicUseModeoptions = data; this.medicUseModeoptions = data;
this.medicUseModeoptionsLise = data; this.medicUseModeoptionsLise = data;
...@@ -628,7 +591,8 @@ export default { ...@@ -628,7 +591,8 @@ export default {
}, },
//获取频率,频率的下拉数据 //获取频率,频率的下拉数据
gemedicUsePlanoptions() { gemedicUsePlanoptions() {
http.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=2`, {}) http
.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=2`, {})
.then((data) => { .then((data) => {
this.medicUsePlanoptions = data; this.medicUsePlanoptions = data;
}) })
...@@ -636,7 +600,8 @@ export default { ...@@ -636,7 +600,8 @@ export default {
}, },
//获取用要目的下拉数据 //获取用要目的下拉数据
getmedicalPurposeoptions() { getmedicalPurposeoptions() {
http.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=3`, {}) http
.post(`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=3`, {})
.then((data) => { .then((data) => {
this.medicalPurposeoptions = data; this.medicalPurposeoptions = data;
}) })
...@@ -645,7 +610,8 @@ export default { ...@@ -645,7 +610,8 @@ export default {
//获取患者信息 //获取患者信息
gettopdata() { gettopdata() {
http.post(`/ClinicalRoute/ClinicalRoute/GetPatientInfo?pid=${this.$route.query.pid}`, {}) http
.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;
...@@ -667,11 +633,6 @@ export default { ...@@ -667,11 +633,6 @@ export default {
// 选中父节点时,子节点一起选中取消 // 选中父节点时,子节点一起选中取消
select(selection, row) { select(selection, row) {
row.tickTime = transformTimestampnow(); row.tickTime = transformTimestampnow();
console.log(
selection.some((el) => {
return row.id === el.id;
})
);
// 选中 // 选中
if ( if (
selection.some((el) => { selection.some((el) => {
...@@ -688,22 +649,25 @@ export default { ...@@ -688,22 +649,25 @@ export default {
console.log(j.type); console.log(j.type);
this.toggleSelection(j, true); this.toggleSelection(j, true);
}); });
console.log(1);
} else { } else {
selection.map((v) => { selection.map((v) => {
this.toggleSelection(v, true); this.toggleSelection(v, true);
}); });
console.log(2);
} }
//取消 //取消
} else { } else {
console.log(row); this.toggleSelection(row, false);
if (row.children && row.children.length) { if (row.children && row.children.length) {
console.log(3, row);
row.children.map((p) => { row.children.map((p) => {
p.ischeck = 2; p.ischeck = 2;
p.isClass = false;
this.toggleSelection(p, false); this.toggleSelection(p, false);
}); });
} else { } else {
console.log(4);
row.ischeck = 2; row.ischeck = 2;
this.toggleSelection(row, false); this.toggleSelection(row, false);
//取消的行数据 //取消的行数据
...@@ -713,7 +677,6 @@ export default { ...@@ -713,7 +677,6 @@ export default {
// 控制选框是否被选中 // 控制选框是否被选中
toggleSelection(row, select) { toggleSelection(row, select) {
if (row) { if (row) {
console.log(row);
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.multipleTable && this.$refs.multipleTable.toggleRowSelection(row, select); this.$refs.multipleTable && this.$refs.multipleTable.toggleRowSelection(row, select);
}); });
...@@ -721,7 +684,6 @@ export default { ...@@ -721,7 +684,6 @@ export default {
row.ischeck = 1; row.ischeck = 1;
} else { } else {
row.ischeck = 2; row.ischeck = 2;
row.isClass = false;
} }
} }
}, },
...@@ -762,15 +724,11 @@ export default { ...@@ -762,15 +724,11 @@ export default {
//当选择项发生变化时会触发该事件 //当选择项发生变化时会触发该事件
SelectionChange(val) { SelectionChange(val) {
// this.multipleSelection = val;
console.log(val.sort((a, b) => a.sort - b.sort) + "选中的数据");
if (this.radio == 1) { if (this.radio == 1) {
this.multipleSelection = val.sort((a, b) => a.sort - b.sort); this.multipleSelection = val.sort((a, b) => a.sort - b.sort);
console.log(this.multipleSelection.filter((item) => item.type != 1));
// this.multipleSelection = val.filter((item) => !item.children).sort((a, b) => a.sort - b.sort); // this.multipleSelection = val.filter((item) => !item.children).sort((a, b) => a.sort - b.sort);
} else { } else {
this.multipleSelection1 = val.sort((a, b) => a.sort - b.sort); this.multipleSelection1 = val.sort((a, b) => a.sort - b.sort);
console.log(this.multipleSelection1.filter((item) => item.type != 1));
// 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);
} }
if (this.multipleSelection.length) { if (this.multipleSelection.length) {
...@@ -794,7 +752,8 @@ export default { ...@@ -794,7 +752,8 @@ export default {
//获取左侧时间线数据 //获取左侧时间线数据
getlefttime() { getlefttime() {
http.post(`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesLeft?pid=${this.$route.query.pid}`, {}) http
.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;
...@@ -816,7 +775,8 @@ export default { ...@@ -816,7 +775,8 @@ export default {
}, },
//获取标识 //获取标识
getIsRoute() { getIsRoute() {
http.post(`/ClinicalRoute/ClinicalRoute/IsRoute?pid=${this.$route.query.pid}`, {}) http
.post(`/ClinicalRoute/ClinicalRoute/IsRoute?pid=${this.$route.query.pid}`, {})
.then((data) => { .then((data) => {
console.log(data); console.log(data);
if (data) { if (data) {
...@@ -831,10 +791,8 @@ export default { ...@@ -831,10 +791,8 @@ export default {
.catch((error) => {}); .catch((error) => {});
}, },
getTableData() { getTableData() {
http.post( http
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=${this.$route.query.pid}&case_routeid=${this.case_routeid}&searchQuery=${this.inhosdays}`, .post(`/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) {
...@@ -950,7 +908,8 @@ export default { ...@@ -950,7 +908,8 @@ export default {
saveSetPatientRoutes() { saveSetPatientRoutes() {
this.objtable.route1 = this.multipleSelection; this.objtable.route1 = this.multipleSelection;
this.objtable.route2 = this.multipleSelection1; this.objtable.route2 = this.multipleSelection1;
http.post(`/ClinicalRoute/ClinicalRoute/SetPatientRoutes?pid=${this.$route.query.pid}`, this.objtable) http
.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") {
...@@ -966,7 +925,8 @@ export default { ...@@ -966,7 +925,8 @@ export default {
}, },
//获取病情变异--变异原因下拉框 //获取病情变异--变异原因下拉框
getreasonoptions() { getreasonoptions() {
http.post(`/ClinicalRoute/ClinicalRoute/GetStandardByType?crid=${this.crid}`, {}) http
.post(`/ClinicalRoute/ClinicalRoute/GetStandardByType?crid=${this.crid}`, {})
.then((data) => { .then((data) => {
this.reasonoptions = data; this.reasonoptions = data;
}) })
...@@ -985,7 +945,8 @@ export default { ...@@ -985,7 +945,8 @@ export default {
remarks: this.form.remarks, remarks: this.form.remarks,
}; };
http.post(`/ClinicalRoute/ClinicalRoute/SetVariation`, prome) http
.post(`/ClinicalRoute/ClinicalRoute/SetVariation`, prome)
.then((data) => { .then((data) => {
Message({ Message({
message: data.message, message: data.message,
...@@ -1030,7 +991,8 @@ export default { ...@@ -1030,7 +991,8 @@ export default {
//选中当前行样式 //选中当前行样式
::v-deep .rowStyleclass { ::v-deep .rowStyleclass {
font-weight: 700; font-weight: 700;
background-color: #f5f7fa; // background-color: #f5f7fa;
color: #0283bb;
} }
//时间线样式 //时间线样式
::v-deep .el-timeline-item__tail { ::v-deep .el-timeline-item__tail {
......
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