Commit 19d67c11 authored by miaojiale's avatar miaojiale

1.处理数据类型导致数据回显失败

2.修改审核建议功能
parent 06b17403
......@@ -53,11 +53,11 @@ export function saveSysCheckNote(data = {}) {
})
}
// //修改筛查病例审核意见
// export function putFollowCheckAdvice(data = {}) {
// return request({
// url: "/disease-data/dataCheck/follow/check/advice",
// method: "put",
// data,
// })
// }
//修改筛查病例审核意见
export function putScreeningCheckAdvice(data = {}) {
return request({
url: "/disease-data/dataCheck/screening/check/advice",
method: "put",
data,
})
}
......@@ -65,13 +65,22 @@ export default {
},
filters: {
getItemText(val, list, type) {
if (!val) return ""
if (["radio", "select", "checkbox", "cascader"].includes(type)) {
// 单选改为字符串
if (["radio", "select", "cascader"].includes(type)) {
return formatDicList(list, String(val), type === "cascader" ? "/" : ",")
}
// 多选
if (["checkbox"].includes(type)) {
return formatDicList(list, val, type === "cascader" ? "/" : ",")
}
// 返回的数字修改字符串
if (typeof val === "number") {
return String(val)
}
if (Array.isArray(val) && type.includes("range")) {
return val.join("-")
}
// if (!val) return ""
return val
},
},
......
This diff is collapsed.
......@@ -199,6 +199,7 @@ export default {
this.type = sessionStorage.getItem("audit-type") || "0"
}
this.handleSearch()
this.handleClick()
},
methods: {
handleClick() {
......@@ -221,12 +222,31 @@ export default {
},
})
} else {
this.$router.push({
path: "/auditdetail",
query: {
id: data["unionId"],
},
})
switch (this.auditStatus) {
case "0":
this.$router.push({
path: "/auditdetail",
query: {
unionId: data["unionId"],
},
})
break
case "1":
this.$router.push({
path: "/auditdetail",
query: {
id: data["id"],
patientId: data["patientId"],
checkNote: data["checkNote"],
checkStatus: data["checkStatus"],
unionName: data["unionName"],
},
})
break
default:
break
}
}
},
async handleSearch() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment