|
|
|
@ -46,7 +46,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-dialog :title="title == 1 ? '新增' : '修改'" :visible.sync="dialogVisible" width="800px" |
|
|
|
:close-on-click-modal="false"> |
|
|
|
:close-on-click-modal="false" :append-to-body="true"> |
|
|
|
<el-form ref="form" :model="form" label-width="80px" :rules="rules"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="6"> |
|
|
|
@ -187,7 +187,7 @@ export default { |
|
|
|
phoneFollowUp: [], // 电话随访 |
|
|
|
dialogVisible: false, |
|
|
|
curRow: {}, |
|
|
|
form: { |
|
|
|
form: { // 新增/编辑共用 |
|
|
|
followUpContent: "", |
|
|
|
replyContent: "", |
|
|
|
followUpId: "", |
|
|
|
@ -198,9 +198,10 @@ export default { |
|
|
|
generateCount: "", |
|
|
|
replyContent: "", |
|
|
|
followUpSourceId: "03", // 01-医生站,02-总检医生站,03-客服,99-其它 |
|
|
|
followUpTypeId: "" // 01-普通,02-复查,03-危急值,99-其它,01-30为系统保留,31以后给客户自定义用 |
|
|
|
followUpTypeId: "01" // 01-普通,02-复查,03-危急值,99-其它,01-30为系统保留,31以后给客户自定义用 (老板说不默认,客户坚持要默认01) |
|
|
|
}, |
|
|
|
|
|
|
|
formInit: { |
|
|
|
}, // |
|
|
|
rules: { |
|
|
|
followUpSourceId: [ |
|
|
|
{ required: true, message: "请填写随访来源", trigger: "blur" }, |
|
|
|
@ -229,7 +230,15 @@ export default { |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
created() { }, |
|
|
|
created() { |
|
|
|
// 01-医生站,02-总检医生站,03-客服,99-其它 |
|
|
|
if (this.refParams.place == 'summary') { |
|
|
|
this.form.followUpSourceId = '02' |
|
|
|
} else if (this.refParams.place == 'doctor') { |
|
|
|
this.form.followUpSourceId = '01' |
|
|
|
} |
|
|
|
this.formInit = Object.assign({}, this.form) |
|
|
|
}, |
|
|
|
|
|
|
|
updated() { |
|
|
|
this.$nextTick(() => { |
|
|
|
@ -250,6 +259,8 @@ export default { |
|
|
|
let w = this.window.pageWidth - 120 |
|
|
|
if (this.refParams.place == 'summary') { |
|
|
|
w = w - 120 |
|
|
|
} else if (this.refParams.place == 'doctor') { |
|
|
|
w = 770 |
|
|
|
} |
|
|
|
return w |
|
|
|
}, |
|
|
|
@ -412,7 +423,7 @@ export default { |
|
|
|
btnAdd() { |
|
|
|
this.dialogVisible = true; |
|
|
|
this.title = 1; |
|
|
|
this.form = this.$options.data().form; |
|
|
|
this.form = Object.assign({}, this.formInit); //this.$options.data().form |
|
|
|
let followUpContent = this.refParams.criticalValueContents |
|
|
|
do { |
|
|
|
followUpContent = followUpContent.replace('<br>', '\r\n') |
|
|
|
|