Commit 19d67c11 authored by miaojiale's avatar miaojiale

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

2.修改审核建议功能
parent 06b17403
...@@ -53,11 +53,11 @@ export function saveSysCheckNote(data = {}) { ...@@ -53,11 +53,11 @@ export function saveSysCheckNote(data = {}) {
}) })
} }
// //修改筛查病例审核意见 //修改筛查病例审核意见
// export function putFollowCheckAdvice(data = {}) { export function putScreeningCheckAdvice(data = {}) {
// return request({ return request({
// url: "/disease-data/dataCheck/follow/check/advice", url: "/disease-data/dataCheck/screening/check/advice",
// method: "put", method: "put",
// data, data,
// }) })
// } }
...@@ -65,13 +65,22 @@ export default { ...@@ -65,13 +65,22 @@ export default {
}, },
filters: { filters: {
getItemText(val, list, type) { 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" ? "/" : ",") return formatDicList(list, val, type === "cascader" ? "/" : ",")
} }
// 返回的数字修改字符串
if (typeof val === "number") {
return String(val)
}
if (Array.isArray(val) && type.includes("range")) { if (Array.isArray(val) && type.includes("range")) {
return val.join("-") return val.join("-")
} }
// if (!val) return ""
return val return val
}, },
}, },
......
This diff is collapsed.
...@@ -199,6 +199,7 @@ export default { ...@@ -199,6 +199,7 @@ export default {
this.type = sessionStorage.getItem("audit-type") || "0" this.type = sessionStorage.getItem("audit-type") || "0"
} }
this.handleSearch() this.handleSearch()
this.handleClick()
}, },
methods: { methods: {
handleClick() { handleClick() {
...@@ -221,12 +222,31 @@ export default { ...@@ -221,12 +222,31 @@ export default {
}, },
}) })
} else { } else {
this.$router.push({ switch (this.auditStatus) {
path: "/auditdetail", case "0":
query: { this.$router.push({
id: data["unionId"], 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() { 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