|
@@ -192,7 +192,11 @@
|
|
|
<span>{{ parseTime(scope.row.endTime, "{y}-{m}-{d}") }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="陪护人" align="center" prop="userName" />
|
|
|
+ <el-table-column
|
|
|
+ label="陪护人"
|
|
|
+ align="center"
|
|
|
+ prop="accompanyingPerson"
|
|
|
+ />
|
|
|
<el-table-column label="登记时间" align="center" prop="createtime">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.createtime, "{y}-{m}-{d}") }}</span>
|
|
@@ -213,10 +217,11 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
+ v-if="scope.row.state == null"
|
|
|
size="btu"
|
|
|
type="text"
|
|
|
- @click="handleUpdate(scope.row)"
|
|
|
- v-hasPermi="['medicalhealth:diagnose:edit']"
|
|
|
+ @click="handleUpdateGuiDui(scope.row)"
|
|
|
+ v-hasPermi="['medicalhealth:diagnose:update']"
|
|
|
>归队</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -282,8 +287,11 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="陪护" prop="address">
|
|
|
- <el-input v-model="form.address" placeholder="请输入陪护人" />
|
|
|
+ <el-form-item label="陪护" prop="accompanyingPerson">
|
|
|
+ <el-input
|
|
|
+ v-model="form.accompanyingPerson"
|
|
|
+ placeholder="请输入陪护人"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="地点" prop="address">
|
|
|
<el-input v-model="form.address" placeholder="请输入地点" />
|
|
@@ -365,6 +373,7 @@ import {
|
|
|
exportDiagnose,
|
|
|
getDept,
|
|
|
getZhuChiRen,
|
|
|
+ weiZhengGuiDui,
|
|
|
} from "@/api/medicalhealth/diagnose";
|
|
|
// 导入树形结构
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
@@ -425,6 +434,27 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 归队按钮触发
|
|
|
+ handleUpdateGuiDui(row) {
|
|
|
+ this.reset();
|
|
|
+ this.$modal
|
|
|
+ .confirm("是否确认归队?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.form = row;
|
|
|
+ if (this.form.id != null) {
|
|
|
+ this.form.state = "1";
|
|
|
+ weiZhengGuiDui(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("归队成功");
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
+
|
|
|
/** 查询部门下拉树结构 */
|
|
|
getTreeselect() {
|
|
|
getDept().then((response) => {
|