+
+
+
+
@@ -181,7 +181,7 @@ import { getapi, postapi, putapi, deletapi } from "../../api/api";
export default {
components: {},
- props: ['refParams'],
+ props: ['refParams', 'tabChoosed'],
data() {
return {
phoneFollowUp: [], // 电话随访
@@ -198,7 +198,7 @@ export default {
generateCount: "",
replyContent: "",
followUpSourceId: "03", // 01-医生站,02-总检医生站,03-客服,99-其它
- followUpTypeId: "01" // 01-普通,02-复查,03-危急值,99-其它,01-30为系统保留,31以后给客户自定义用
+ followUpTypeId: "" // 01-普通,02-复查,03-危急值,99-其它,01-30为系统保留,31以后给客户自定义用
},
rules: {
@@ -243,7 +243,27 @@ export default {
},
computed: {
- ...mapState(["window", "dict" ]),
+ ...mapState(["window", "dict"]),
+
+ // 列表宽度
+ tableWidth() {
+ let w = this.window.pageWidth - 120
+ if (this.refParams.place == 'summary') {
+ w = w - 120
+ }
+ return w
+ },
+
+ tableHeight() {
+ let h = this.window.pageHeight < 600
+ ? 150
+ : Math.floor((this.window.pageHeight + 20) / 3)
+ if (this.refParams.place == 'summary') {
+ h = this.window.pageHeight - 200
+ }
+ return h
+ },
+
},
methods: {
dddw,
@@ -268,17 +288,24 @@ export default {
},
+
getLists() {
+ let body = {}
if (this.refParams.followUpId) {
- postapi("/api/app/PhoneFollowUp/GetList", {
- followUpId: this.refParams.followUpId,
- }).then((res) => {
- if (res.code > -1) this.phoneFollowUp = res.data;
- });
+ body = { followUpId: this.refParams.followUpId }
+ } else if (this.refParams.patientRegisterId) {
+ body = { patientRegisterId: this.refParams.patientRegisterId }
} else {
this.phoneFollowUp = []
+ return
}
+
+ postapi("/api/app/PhoneFollowUp/GetList", body)
+ .then((res) => {
+ if (res.code > -1) this.phoneFollowUp = res.data;
+ });
},
+
addoredit() {
this.$refs['form'].validate((valid, fields) => {
// console.log('fields', fields)
@@ -286,6 +313,26 @@ export default {
this.$message.warning({ showClose: true, message: fields[Object.keys(fields)[0]][0].message });
return false
}
+
+ let body = {
+ intervalDays: this.form.intervalDays,
+ startDate: this.form.startDate,
+ followUpContent: this.form.followUpContent,
+ generateCount: this.form.generateCount,
+ followUpTypeId: this.form.followUpTypeId,
+ followUpSourceId: this.form.followUpSourceId,
+
+ planFollowDate: this.form.planFollowDate,
+ replyContent: this.form.replyContent,
+
+ }
+
+ if (this.refParams.followUpId) {
+ body.followUpId = this.refParams.followUpId
+ } else {
+ body.patientRegisterId = this.refParams.patientRegisterId
+ }
+
if (this.title == 1) {
if (this.mode == 1) {
if (this.form.intervalDays == "") {
@@ -295,64 +342,50 @@ export default {
} else if (this.form.generateCount == "") {
this.$message.warning("请输入生成次数");
} else {
- postapi("/api/app/PhoneFollowUp/AutoCreate", {
- followUpId: this.refParams.followUpId,
- intervalDays: this.form.intervalDays,
- startDate: this.form.startDate,
- followUpContent: this.form.followUpContent,
- generateCount: this.form.generateCount,
- }).then((res) => {
- if (res.code > -1) {
- this.getLists();
- this.dialogVisible = false;
- this.mode = "0";
- }
- });
+ postapi("/api/app/PhoneFollowUp/AutoCreate", body)
+ .then((res) => {
+ if (res.code > -1) {
+ this.getLists();
+ this.dialogVisible = false;
+ this.mode = "0";
+ }
+ });
}
} else if (this.mode == 0) {
if (this.form.planFollowDate == "") {
this.$message.warning("请选择随访日期");
} else {
- postapi("/api/app/PhoneFollowUp/Create", {
- followUpId: this.refParams.followUpId,
- planFollowDate: this.form.planFollowDate,
- followUpContent: this.form.followUpContent,
- replyContent: this.form.replyContent,
- }).then((res) => {
+ postapi("/api/app/PhoneFollowUp/Create", body)
+ .then((res) => {
+ if (res.code > -1) {
+ this.getLists();
+ this.dialogVisible = false;
+ this.mode = "0";
+ }
+ });
+ }
+ } else {
+ postapi("/api/app/PhoneFollowUp/CreateThreeMonthPlan", body)
+ .then((res) => {
if (res.code > -1) {
this.getLists();
this.dialogVisible = false;
this.mode = "0";
}
});
- }
- } else {
- postapi("/api/app/PhoneFollowUp/CreateThreeMonthPlan", {
- followUpId: this.refParams.followUpId,
- followUpContent: this.form.followUpContent,
- replyContent: this.form.replyContent,
- }).then((res) => {
+ }
+ } else {
+ postapi("/api/app/PhoneFollowUp/Update", Object.assign({}, body, {
+ phoneFollowUpId: this.form.id,
+ isComplete: this.form.isComplete,
+ }))
+ .then((res) => {
if (res.code > -1) {
this.getLists();
this.dialogVisible = false;
this.mode = "0";
}
});
- }
- } else {
- postapi("/api/app/PhoneFollowUp/Update", {
- phoneFollowUpId: this.form.id,
- planFollowDate: this.form.planFollowDate,
- followUpContent: this.form.followUpContent,
- replyContent: this.form.replyContent,
- isComplete: this.form.isComplete,
- }).then((res) => {
- if (res.code > -1) {
- this.getLists();
- this.dialogVisible = false;
- this.mode = "0";
- }
- });
}
})
},
@@ -455,11 +488,14 @@ export default {
"refParams.brushTimes": {
// immediate:true,
handler(newVal, oldVal) {
- console.log(`watch 电话随访 newVal:${newVal} oldVal:${oldVal} refParams: `,this.refParams);
- if (newVal != oldVal){
- this.getLists();
+ console.log(`watch 电话随访 newVal:${newVal} oldVal:${oldVal} refParams: `, this.refParams);
+ if (newVal != oldVal) {
+ if (this.refParams.place == 'summary') {
+ if (this.tabChoosed == '7') this.getLists();
+ } else {
+ this.getLists();
+ }
}
-
},
},
},
diff --git a/src/components/follow/SmsSend.vue b/src/components/follow/SmsSend.vue
index 9c2b899..9e3d29e 100644
--- a/src/components/follow/SmsSend.vue
+++ b/src/components/follow/SmsSend.vue
@@ -10,6 +10,8 @@
+
+
@@ -44,7 +46,7 @@
-
+
@@ -151,7 +153,7 @@ export default {
generateCount: "",
content: "",
followUpSourceId: "03", // 01-医生站,02-总检医生站,03-客服,99-其它
- followUpTypeId: "01" // 01-普通,02-复查,03-危急值,99-其它,01-30为系统保留,31以后给客户自定义用
+ followUpTypeId: "" // 01-普通,02-复查,03-危急值,99-其它,01-30为系统保留,31以后给客户自定义用
},
title: "",
rules: {
@@ -202,47 +204,60 @@ export default {
if (res.code > -1) this.dict.followUpTypes = res.data;
});
},
+
getLists() {
+ let body = {}
if (this.refParams.followUpId) {
- postapi("/api/app/SmsSend/GetList", {
- followUpId: this.refParams.followUpId,
- }).then((res) => {
- if (res.code > -1) this.phoneFollowUp = res.data;
- });
+ body = { followUpId: this.refParams.followUpId }
+ } else if (this.refParams.patientRegisterId) {
+ body = { patientRegisterId: this.refParams.patientRegisterId }
} else {
this.phoneFollowUp = []
+ return
}
+ postapi("/api/app/SmsSend/GetList", body)
+ .then((res) => {
+ if (res.code > -1) this.phoneFollowUp = res.data;
+ });
},
+
rowick(row) {
this.curRow = { ...row };
},
addoredit() {
- if (this.title == 1) {
- if (this.form.intervalDays == "") {
- this.$message.warning("请输入间隔天数");
- } else if (this.form.startDate == "") {
- this.$message.warning("请选择开始时间");
- } else if (this.form.generateCount == "") {
- this.$message.warning("请输入生成天数");
- } else if (this.form.content == "") {
- this.$message.warning("请输入短信内容");
- } else {
- postapi("/api/app/SmsSend/AutoCreate", {
- followUpId: this.refParams.followUpId,
- intervalDays: this.form.intervalDays,
- startDate: this.form.startDate,
- generateCount: this.form.generateCount,
- content: this.form.content,
- followUpSourceId: this.form.followUpSourceId,
- followUpTypeId: this.form.followUpTypeId
- }).then((res) => {
- if (res.code > -1) {
- this.getLists();
- this.dialogVisible = false;
- }
- });
+ this.$refs['form'].validate((valid, fields) => {
+ // console.log('fields', fields)
+ if (!valid) {
+ this.$message.warning({ showClose: true, message: fields[Object.keys(fields)[0]][0].message });
+ return false
}
- }
+ if (this.title == 1) {
+ if (this.form.intervalDays == "") {
+ this.$message.warning("请输入间隔天数");
+ } else if (this.form.startDate == "") {
+ this.$message.warning("请选择开始时间");
+ } else if (this.form.generateCount == "") {
+ this.$message.warning("请输入生成天数");
+ } else if (this.form.content == "") {
+ this.$message.warning("请输入短信内容");
+ } else {
+ postapi("/api/app/SmsSend/AutoCreate", {
+ followUpId: this.refParams.followUpId,
+ intervalDays: this.form.intervalDays,
+ startDate: this.form.startDate,
+ generateCount: this.form.generateCount,
+ content: this.form.content,
+ followUpSourceId: this.form.followUpSourceId,
+ followUpTypeId: this.form.followUpTypeId
+ }).then((res) => {
+ if (res.code > -1) {
+ this.getLists();
+ this.dialogVisible = false;
+ }
+ });
+ }
+ }
+ })
},
// 设置颜色
setColor(checkCompleteFlag) {
diff --git a/src/components/follow/SmsSendList.vue b/src/components/follow/SmsSendList.vue
new file mode 100644
index 0000000..ef5c1e1
--- /dev/null
+++ b/src/components/follow/SmsSendList.vue
@@ -0,0 +1,315 @@
+
+
+
+
+
+
+
+
+
+
+
+ 至
+
+
+
+ 完成状态
+
+
+
+
+
+
+ 条码号
+
+
+
+ 档案号
+
+
+
+
+
+ 身份证号
+
+
+
+ 姓名
+
+
+
+ 其他关键字
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ moment(scope.row.planFollowDate).format("yyyy-MM-DD") }}
+
+
+
+
+
+
+ {{ moment(scope.row.creationTime).format("yyyy-MM-DD") }}
+
+
+
+
+
+ {{ moment(scope.row.creationTime).format("yyyy-MM-DD") }}
+
+
+
+
+
+
+
+
diff --git a/src/router/index.js b/src/router/index.js
index 1632080..214c947 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -600,6 +600,18 @@ const routes = [{
component: () =>
import ("../components/report/TurnoverReportReal.vue"),
},
+ {
+ path: "/PhoneFollowList",
+ name: "电话随访记录",
+ component: () =>
+ import ("../components/follow/PhoneFollowList.vue"),
+ },
+ {
+ path: "/SmsSendList",
+ name: "短信随访记录",
+ component: () =>
+ import ("../components/follow/SmsSendList.vue"),
+ },
{
path: "/AppointQuery",
name: "网上预约汇总",
diff --git a/src/views/doctorCheck/sumDoctorCheck.vue b/src/views/doctorCheck/sumDoctorCheck.vue
index 2f9fc37..1acc784 100644
--- a/src/views/doctorCheck/sumDoctorCheck.vue
+++ b/src/views/doctorCheck/sumDoctorCheck.vue
@@ -379,8 +379,8 @@
:refParams="{ place: 'summary', brushTimes: refParamsQuery.brushTimes, patientRegisterId: patient_register.id }" />
-
+