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
label="开始时间"
align="center"
prop="phone"
prop="startTime"
show-overflow-tooltip
width="150"
/>
<el-table-column
label="结束时间"
align="center"
prop="phone"
prop="endTime"
show-overflow-tooltip
width="150"
/>
@ -106,17 +106,17 @@
{{ status[scope.row.status] }}
</template>
</el-table-column>
<el-table-column
<!-- <el-table-column
label="失访状态"
align="center"
prop="phone"
show-overflow-tooltip
width="150"
/>
/> -->
<el-table-column
label="失访原因"
align="center"
prop="phone"
prop="reason"
show-overflow-tooltip
width="150"
/>
@ -125,6 +125,7 @@
<template slot-scope="scope">
<!-- :disabled="scope.row.status !== '0'" -->
<el-button
:disabled="scope.row.status !== '0'"
size="mini"
type="text"
icon="el-icon-s-check"
@ -133,6 +134,7 @@
随访
</el-button>
<el-button
:disabled="scope.row.status !== '0'"
size="mini"
type="text"
icon="el-icon-s-release"
@ -190,20 +192,20 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
<el-button @click="open = false"> </el-button>
</div>
</el-dialog>
<!-- 随访 -->
<el-dialog
class="popup"
title="访"
title="访"
:visible.sync="open1"
width="780px"
append-to-body
>
<el-form
class="formStep"
ref="form"
ref="form1"
:model="form"
:rules="rules"
label-width="90px"
@ -212,7 +214,14 @@
<el-input v-model="form.followuper" placeholder="请输入" />
</el-form-item>
<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 label="随访次数" prop="times">
<el-input v-model="form.times" placeholder="请输入" />
@ -222,8 +231,8 @@
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
<el-button type="primary" @click="submitForm1"> </el-button>
<el-button @click="open1 = false"> </el-button>
</div>
</el-dialog>
</div>
@ -412,7 +421,13 @@ export default {
/** 随访 */
handleFollow(row) {
this.open1 = true;
this.form = JSON.parse(JSON.stringify(row));
this.form = {
id: row.id,
followuper: "",
followupTime: "",
times: "",
followupText: "",
};
},
/** 失访 */
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) {
const idList = row.id ? [row.id] : this.ids;

Loading…
Cancel
Save