Browse Source

随访工单-随访,失访

newMaster
liuzhipeng 4 months ago
parent
commit
42689d8723
  1. 64
      acupuncture-ui/src/views/followFile/work.vue

64
acupuncture-ui/src/views/followFile/work.vue

@ -81,14 +81,14 @@
<el-table-column <el-table-column
label="开始时间" label="开始时间"
align="center" align="center"
prop="phone" prop="startTime"
show-overflow-tooltip show-overflow-tooltip
width="150" width="150"
/> />
<el-table-column <el-table-column
label="结束时间" label="结束时间"
align="center" align="center"
prop="phone" prop="endTime"
show-overflow-tooltip show-overflow-tooltip
width="150" width="150"
/> />
@ -106,17 +106,17 @@
{{ status[scope.row.status] }} {{ status[scope.row.status] }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <!-- <el-table-column
label="失访状态" label="失访状态"
align="center" align="center"
prop="phone" prop="phone"
show-overflow-tooltip show-overflow-tooltip
width="150" width="150"
/> /> -->
<el-table-column <el-table-column
label="失访原因" label="失访原因"
align="center" align="center"
prop="phone" prop="reason"
show-overflow-tooltip show-overflow-tooltip
width="150" width="150"
/> />
@ -125,6 +125,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<!-- :disabled="scope.row.status !== '0'" --> <!-- :disabled="scope.row.status !== '0'" -->
<el-button <el-button
:disabled="scope.row.status !== '0'"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-s-check" icon="el-icon-s-check"
@ -133,6 +134,7 @@
随访 随访
</el-button> </el-button>
<el-button <el-button
:disabled="scope.row.status !== '0'"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-s-release" icon="el-icon-s-release"
@ -190,20 +192,20 @@
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="open = false"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 随访 --> <!-- 随访 -->
<el-dialog <el-dialog
class="popup" class="popup"
title="访" title="访"
:visible.sync="open1" :visible.sync="open1"
width="780px" width="780px"
append-to-body append-to-body
> >
<el-form <el-form
class="formStep" class="formStep"
ref="form" ref="form1"
:model="form" :model="form"
:rules="rules" :rules="rules"
label-width="90px" label-width="90px"
@ -212,7 +214,14 @@
<el-input v-model="form.followuper" placeholder="请输入" /> <el-input v-model="form.followuper" placeholder="请输入" />
</el-form-item> </el-form-item>
<el-form-item label="随访时间" prop="followupTime"> <el-form-item label="随访时间" prop="followupTime">
<el-input v-model="form.followupTime" placeholder="请输入" /> <el-date-picker
format="yyyy-MM-dd HH:mm:ss"
value-format="yyyy-MM-dd HH:mm:ss"
v-model="form.followupTime"
type="datetime"
placeholder="选择日期"
>
</el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="随访次数" prop="times"> <el-form-item label="随访次数" prop="times">
<el-input v-model="form.times" placeholder="请输入" /> <el-input v-model="form.times" placeholder="请输入" />
@ -222,8 +231,8 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm1"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="open1 = false"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -412,7 +421,13 @@ export default {
/** 随访 */ /** 随访 */
handleFollow(row) { handleFollow(row) {
this.open1 = true; this.open1 = true;
this.form = JSON.parse(JSON.stringify(row)); this.form = {
id: row.id,
followuper: "",
followupTime: "",
times: "",
followupText: "",
};
}, },
/** 失访 */ /** 失访 */
handleLossFollow(row) { handleLossFollow(row) {
@ -440,7 +455,30 @@ export default {
} }
}); });
}, },
/** 失访 */
submitForm: function () {
this.$refs["form"].validate((valid) => {
if (valid) {
updStatus(this.form).then((response) => {
this.$modal.msgSuccess("操作成功");
this.open = false;
this.getList();
});
}
});
},
/** 随访 */
submitForm1: function () {
this.$refs["form1"].validate((valid) => {
if (valid) {
followPatient(this.form).then((response) => {
this.$modal.msgSuccess("操作成功");
this.open1 = false;
this.getList();
});
}
});
},
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const idList = row.id ? [row.id] : this.ids; const idList = row.id ? [row.id] : this.ids;

Loading…
Cancel
Save