From 4198bb1c3b8025e786f5858cb66997d06d42eeb8 Mon Sep 17 00:00:00 2001
From: miaojiale <1123971748@qq.com>
Date: Fri, 10 Feb 2023 17:48:10 +0800
Subject: [PATCH] =?UTF-8?q?1.=E5=AE=A1=E6=A0=B8=E8=B4=A8=E6=8E=A7=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E7=AD=9B=E6=9F=A5=E6=8E=A5=E5=8F=A3=202.=E8=BF=87?=
=?UTF-8?q?=E6=9C=9F=E8=B7=B3=E8=BD=AC=203.=E6=95=B0=E6=8D=AE=E6=A6=82?=
=?UTF-8?q?=E8=A7=88=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9D=80=204.=E7=AD=9B?=
=?UTF-8?q?=E6=9F=A5=E6=9F=A5=E8=AF=A2=E5=8C=BB=E8=81=94=E4=BD=93=E5=9B=9E?=
=?UTF-8?q?=E6=98=BE=E9=97=AE=E9=A2=98=205.=E5=AE=A1=E6=A0=B8=E8=B4=A8?=
=?UTF-8?q?=E6=8E=A7=E8=A1=A8=E5=8D=95=E5=92=8C=E6=95=B0=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/dataoverview.js | 2 +-
src/api/screeningAudit.js | 47 ++++++++++
.../CustomForm/FormItemSelf.vue | 39 ++++++--
.../CustomForm/FormItemText.vue | 2 +-
.../FormComponents/CustomForm/index.vue | 1 +
src/components/Upload/index.vue | 2 +-
src/utils/request.js | 2 +-
.../audit-detail/components/screenReview.vue | 81 ++++++++++-------
src/views/audit-detail/index.vue | 79 +++++++++++------
src/views/audit-qualitycontrol/index.vue | 88 ++++++++++---------
src/views/screening/ScreeningAdd.vue | 1 -
11 files changed, 229 insertions(+), 115 deletions(-)
create mode 100644 src/api/screeningAudit.js
diff --git a/src/api/dataoverview.js b/src/api/dataoverview.js
index c2650d8..0860573 100644
--- a/src/api/dataoverview.js
+++ b/src/api/dataoverview.js
@@ -5,7 +5,7 @@ import request from "@/utils/request"
// 累计上报
export function getPatientPage(params = {}) {
return request({
- url: "/disease-data/data/patient/page",
+ url: "/disease-data/data/report/page",
method: "get",
params,
})
diff --git a/src/api/screeningAudit.js b/src/api/screeningAudit.js
new file mode 100644
index 0000000..04a97a9
--- /dev/null
+++ b/src/api/screeningAudit.js
@@ -0,0 +1,47 @@
+import request from "@/utils/request"
+
+/**
+ * 筛查审核
+ *
+ * */
+///////////////筛查质控/////////////////////
+//筛查已审核列表
+export function getScreeningCheck(params = {}) {
+ return request({
+ url: "/disease-data/dataCheck/screening/check",
+ method: "get",
+ params,
+ })
+}
+//筛查待审核列表
+export function getScreeningUncheck(params = {}) {
+ return request({
+ url: "/disease-data/dataCheck/screening/unCheck",
+ method: "get",
+ params,
+ })
+}
+
+//筛查病例待审核(用户)
+export function getScreeningUser(id) {
+ return request({
+ url: `/disease-data/dataCheck/screening/unCheck/detail/${id}`,
+ method: "get",
+ })
+}
+// //随访病例审核
+// export function putFollowCheck(data = {}) {
+// return request({
+// url: "/disease-data/dataCheck/follow/check",
+// method: "put",
+// data,
+// })
+// }
+// //修改随访审核意见
+// export function putFollowCheckAdvice(data = {}) {
+// return request({
+// url: "/disease-data/dataCheck/follow/check/advice",
+// method: "put",
+// data,
+// })
+// }
diff --git a/src/components/FormComponents/CustomForm/FormItemSelf.vue b/src/components/FormComponents/CustomForm/FormItemSelf.vue
index c4ae25c..0f11d76 100644
--- a/src/components/FormComponents/CustomForm/FormItemSelf.vue
+++ b/src/components/FormComponents/CustomForm/FormItemSelf.vue
@@ -53,7 +53,7 @@
@@ -279,7 +279,7 @@
@change="handleChange"
>
-
+
"",
+ },
getPatientId: {
type: Function,
default: () => {},
@@ -447,7 +449,6 @@ export default {
columns: Array,
columnIndex: Number,
group: Array,
- type: String,
},
data() {
return {
@@ -486,20 +487,39 @@ export default {
this.timerangeReset()
this.numberReset()
this.checkboxReset()
+ //! 处理医联体名称,新增直接请求,其他等union_id后再请求
if (this.item.prop == "union_id") {
- this.getMedicalunionList()
+ this.unionList = []
+ // this.getMedicalunionList()
+ if (this.$route.path == "/screening/add") {
+ this.getMedicalunionList()
+ } else {
+ this.$watch(
+ () => this.form[this.item.prop],
+ (newVal, oldVal) => {
+ // console.log("----------有值----------")
+ this.getMedicalunionList()
+ // 做点什么
+ }
+ )
+ }
}
},
mounted() {
this.showFormItem()
},
+ beforeDestroy() {
+ this.$watch(
+ () => this.form[this.item.prop],
+ (newVal, oldVal) => {}
+ )
+ },
methods: {
// 获取医联体列表
getMedicalunionList() {
getMedicalunionList().then((res) => {
- console.log(res)
if (res.code == 1) {
- this.unionList = res.data
+ this.unionList = [...res.data]
} else {
this.unionList = []
}
@@ -703,6 +723,7 @@ export default {
if (!targetItem) {
// !没有在表单子组件中找到,查找大表单id
targetItem = group.find((_) => _.prop === key)
+ console.log(targetItem)
}
if (!targetItem) return
const values = dyMap[key]
@@ -734,7 +755,7 @@ export default {
: (flag = false)
}
}
- console.log(flag, targetItem)
+ // console.log(flag, targetItem)
display = flag
if (display) {
targetItem.rules = [
@@ -799,7 +820,7 @@ export default {
if (e.prop == "esd_path") {
return
}
- console.log(e.label, ":", e.rules)
+ // console.log(e.label, ":", e.rules)
if (e.rules && val == 0) {
targetItem.column[index].rules = []
} else if (e.rules && val == 1) {
diff --git a/src/components/FormComponents/CustomForm/FormItemText.vue b/src/components/FormComponents/CustomForm/FormItemText.vue
index 5a69d21..e83bb95 100644
--- a/src/components/FormComponents/CustomForm/FormItemText.vue
+++ b/src/components/FormComponents/CustomForm/FormItemText.vue
@@ -78,7 +78,7 @@ export default {
watch: {
unionList(v) {
if (v.length > 0 && this.form[this.item.prop]) {
- console.log()
+ // console.log("获取到了医联体列表", this.form[this.item.prop])
this.unionName = v.filter(
(e) => e.unionNo == this.form[this.item.prop]
)[0].unionName
diff --git a/src/components/FormComponents/CustomForm/index.vue b/src/components/FormComponents/CustomForm/index.vue
index ffb722a..d4a6d2d 100644
--- a/src/components/FormComponents/CustomForm/index.vue
+++ b/src/components/FormComponents/CustomForm/index.vue
@@ -177,6 +177,7 @@ export default {
watch: {
formEdit: {
handler() {
+ console.log("configforms:", this.formEdit)
this.initfields(this.formEdit)
},
},
diff --git a/src/components/Upload/index.vue b/src/components/Upload/index.vue
index 10bb6df..0e60118 100644
--- a/src/components/Upload/index.vue
+++ b/src/components/Upload/index.vue
@@ -124,7 +124,7 @@ export default {
watch: {
value: {
handler(newValue, oldValue) {
- console.log(this.value)
+ // console.log(this.value)
if (newValue === oldValue) return
this.fileList = newValue.map((_) => {
return {
diff --git a/src/utils/request.js b/src/utils/request.js
index 0d97eed..805f154 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -126,7 +126,7 @@ service.interceptors.response.use(
store.dispatch("user/resetAccessToken").then(() => {
// location.reload()
router.push({
- path: "/login",
+ path: "/home",
})
})
return Promise.reject(error)
diff --git a/src/views/audit-detail/components/screenReview.vue b/src/views/audit-detail/components/screenReview.vue
index a50964f..b70ea94 100644
--- a/src/views/audit-detail/components/screenReview.vue
+++ b/src/views/audit-detail/components/screenReview.vue
@@ -1,34 +1,20 @@
+
-
-
-
-
+
+
@@ -55,7 +41,10 @@ import { mapGetters } from "vuex"
import CustomForm from "@/components/FormComponents/CustomForm/index"
import { getCurrentFormByType } from "@/api/coop-group.js"
import { getFormDetail } from "@/api/field"
+import { getPatientDetail } from "@/api/patient.js"
+import { getScreeningUser } from "@/api/screeningAudit"
export default {
+ nameL: "组件",
components: { CustomForm },
data() {
return {
@@ -63,12 +52,7 @@ export default {
formTabs: [],
formTabsList: [],
jsonList: [],
- form: {
- name: "123",
- phone: "18712412341",
- age: "18",
- is_continue_follow: "1",
- },
+ formList: {},
asideShow: true,
screenList: [
{
@@ -98,9 +82,35 @@ export default {
watch: {},
created() {
this.getCurrentFormByType()
+ let id = this.$route.query.id
+ this.getUser(id)
},
mounted() {},
methods: {
+ // 获取当前用户
+ getUser(id) {
+ getScreeningUser(id).then((res) => {
+ if (res.code == 1) {
+ this.patientId = res.data[0].patientId
+ }
+ })
+ },
+ // 获取当前用户的表单
+ getPatientDetail() {
+ console.log(this.formTabs)
+ for (let i = 0; i < this.formTabs.length; i++) {
+ getPatientDetail({
+ patientId: this.patientId,
+ formId: this.formTabs[i].formId,
+ }).then((res) => {
+ if (res.code == 1) {
+ const { data } = res.data
+ this.formList = { ...this.formList, ...data }
+ // console.log(this.formList)
+ }
+ })
+ }
+ },
getCurrentFormByType(type = 1) {
this.fromLoading = true
getCurrentFormByType({
@@ -152,17 +162,24 @@ export default {
obj.closeBtn = true
obj.detail = true
this.jsonList.push(obj)
- if (i == 4) {
- console.log(this.jsonList)
+ if (i == this.formTabs.length - 1) {
+ // console.log(this.jsonList)
this.fromLoading = false
}
}
})
.finally(() => {
+ // console.log(this.formTabs)
if (i < this.formTabs.length - 1) {
i++
this.initForm(i)
}
+ // console.log(this.jsonList)
+ if (this.jsonList.length == this.formTabs.length) {
+ this.$nextTick(() => {
+ this.getPatientDetail()
+ })
+ }
})
},
},
diff --git a/src/views/audit-detail/index.vue b/src/views/audit-detail/index.vue
index 2e93ec7..4122bf0 100644
--- a/src/views/audit-detail/index.vue
+++ b/src/views/audit-detail/index.vue
@@ -10,24 +10,26 @@
返回
-
-
请选择审核结果:
-
- {{ item.text }}
- 驳回修改建议:胃镜图片不合规
-
-
+
+
请选择审核结果:
+
+ {{ item.text }}
+ 驳回修改建议:胃镜图片不合规
+
+
+
@@ -35,20 +37,26 @@
该病例已经审核【驳回修改】,需要改为{{
- btnGroup[curBtn - 1] ? btnGroup[curBtn - 1].text : ""
+ btnGroup[curBtn - 1] ? btnGroup[curBtn - 1].text : ""
}}吗
- 否
- 是
+ 否
+ 是
- {{ btnGroup[curBtn - 1] ? btnGroup[curBtn - 1].text : "" }}
+
+ {{ btnGroup[curBtn - 1] ? btnGroup[curBtn - 1].text : "" }}
+
-
+
- 确 定
+ 确 定
@@ -82,11 +95,15 @@
该病例审核合格成功!
-
{{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}
+
+ {{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}
+
{{ form.reson }}
- 该病例审核{{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}提交成功!
+
+ 该病例审核{{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}提交成功!
+
下一例
@@ -128,9 +145,8 @@ export default {
}
},
watch: {},
-
- mounted() {
- },
+
+ mounted() {},
methods: {
showDialog(val) {
this.curBtn = val
@@ -195,7 +211,6 @@ export default {
nextExample() {
this.onCancel()
},
-
},
}
@@ -236,7 +251,8 @@ export default {
font-size: 14px;
font-family: AlibabaPuHuiTiM;
color: #333333;
- box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.1);
+ // box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1);
+ border-top: 1px solid rgba(0, 0, 0, 0.1);
display: flex;
.btn_group {
margin-left: 24px;
@@ -287,9 +303,14 @@ export default {
margin-left: 20px;
}
.table-content {
- height: calc(100vh - 260px);
- overflow: auto;
+ // height: calc(100vh - 260px);
+ // overflow: auto;
padding-top: 20px;
padding-bottom: 20px;
}
+.empty {
+ width: 100%;
+ height: 15px;
+ background: #f6f8f9;
+}
diff --git a/src/views/audit-qualitycontrol/index.vue b/src/views/audit-qualitycontrol/index.vue
index 8d64d70..0bccc7d 100644
--- a/src/views/audit-qualitycontrol/index.vue
+++ b/src/views/audit-qualitycontrol/index.vue
@@ -36,48 +36,44 @@