From f704ab594b160e41cba79e5403c1665ee6e5b7a5 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Tue, 7 Apr 2026 18:49:01 +0800 Subject: [PATCH] seo --- .../patientRegister/PatientRegisterEdit.vue | 168 +++++++++--------- .../patientRegister/ThirdLisRequest.vue | 146 +++++++-------- .../patientRegister/ThirdPacsRequest.vue | 148 ++++++--------- 3 files changed, 210 insertions(+), 252 deletions(-) diff --git a/src/components/patientRegister/PatientRegisterEdit.vue b/src/components/patientRegister/PatientRegisterEdit.vue index 8a56fa8..13a8d9a 100644 --- a/src/components/patientRegister/PatientRegisterEdit.vue +++ b/src/components/patientRegister/PatientRegisterEdit.vue @@ -24,8 +24,7 @@ :disabled="(form.customerOrgId == dict.personOrgId) || !form.id">同步团检预约
- 分诊排队 + 分诊排队
@@ -546,7 +545,7 @@
收费 -
+
复制分组 @@ -563,10 +562,10 @@ 收费申请 - 检验申请 - 检查申请 + 检验申请 + 检查申请
@@ -719,13 +718,13 @@ - + - + @@ -1078,9 +1077,9 @@ export default { thirdInterfaceId: '', // 网上预约用到 queueParams: { - patientRegisterId:'', - patientName:'', - queueTimes:0, //刷新用 + patientRegisterId: '', + patientName: '', + queueTimes: 0, //刷新用 }, // 分诊排队参数 //**复制分组与套餐相关数据 @@ -1105,7 +1104,18 @@ export default { hc_warn_mode: '1', //0-仅提醒;1-提醒并决择;2-有互斥项目时不允许保存 - dictSalesman: [] // + dictSalesman: [], // + + // 第三方请求参数 -- lis + thirdLisRequestParams: { + patientRegisterId: '', + brushTimes: 0, + }, + // 第三方请求参数 -- pacs + thirdPacsRequestParams: { + patientRegisterId: '', + brushTimes: 0, + }, }; }, @@ -1189,10 +1199,10 @@ export default { }, // 是否显示 第三方申请 - dispThirdRequest(){ - return this.checkPagePriv(this.pagePriv.privs, '收费申请')||this.checkPagePriv(this.pagePriv.privs, '检验申请')||this.checkPagePriv(this.pagePriv.privs, '检查申请') + dispThirdRequest() { + return this.checkPagePriv(this.pagePriv.privs, '收费申请') || this.checkPagePriv(this.pagePriv.privs, '检验申请') || this.checkPagePriv(this.pagePriv.privs, '检查申请') }, - + }, methods: { ...mapActions(['getPatientRegisterAbs']), @@ -1479,10 +1489,10 @@ export default { initFormData(patientRegisterId) { return new Promise((resolve, reject) => { this.peoplePhoto = '' // 清掉照片 - this.form.photo = '' + this.form.photo = '' this.dataTransOpts.copyGroup.asbItem = [] // 清空未选项目 - console.log('this.dataTransOpts.copyGroup.asbItem',JSON.stringify(this.dataTransOpts.copyGroup.asbItem)) - console.log('this.dataTransOpts.copyGroup.asbItem',this.dataTransOpts.copyGroup.asbItem) + console.log('this.dataTransOpts.copyGroup.asbItem', JSON.stringify(this.dataTransOpts.copyGroup.asbItem)) + console.log('this.dataTransOpts.copyGroup.asbItem', this.dataTransOpts.copyGroup.asbItem) this.peisid = window.sessionStorage.getItem('peisid'); let customerOrgId, customerOrgName, customerOrgParentId @@ -1817,8 +1827,8 @@ export default { // 分诊排队 fnQueue() { - if(!this.form.id){ - this.$message.warning({showClose:true,message:'请先保存人员信息,再执行此操作!'}) + if (!this.form.id) { + this.$message.warning({ showClose: true, message: '请先保存人员信息,再执行此操作!' }) return } this.dialogWin.queue1 = true @@ -2477,7 +2487,7 @@ export default { this.dataTransOpts.tableS.patient_register.id = '' this.peoplePhoto = '/pic/Photo.jpg' this.patientRegister.patientRegisterId = ''; - + this.form.id = ''; this.form.patientId = '00000000-0000-0000-0000-000000000000'; this.form.patientRegisterNo = ''; @@ -2494,7 +2504,7 @@ export default { this.form.mobileTelephone = ''; // this.form.telephone = ''; // this.form.address = ''; // - + }, // 人员新增 @@ -3113,7 +3123,7 @@ export default { }, // 第三方申请 - btnMoreThird(oprType){ + btnMoreThird(oprType) { switch (oprType) { case "收费申请": this.thirdChargeRequest(this.form) @@ -3123,7 +3133,7 @@ export default { break; case "检查申请": this.thirdPacsRequest(this.form) - break; + break; default: break; } @@ -3213,11 +3223,11 @@ export default { }, // 检查人员是否保存及是否预登记状态 - checkPatientCompleteFlag(form){ + checkPatientCompleteFlag(form) { let message = '' - if(!form?.id){ + if (!form?.id) { message = "请先保存人员信息!" - }else if(form?.completeFlag == '0'){ + } else if (form?.completeFlag == '0') { message = "预登记的人员不可执行此操作!" } return message @@ -3225,66 +3235,62 @@ export default { // 第三方申请--检验申请 thirdLisRequest(form) { - let message = this.checkPatientCompleteFlag(form) - if(message){ - this.$message.warning({ showClose: true, message}) - return - } - this.dialogWin.ThirdLisRequest = true - // this.getAsb(form.id) - // .then(() => { - // let chargeMoney = Number(0) - // //支付方式,比如是0自费、2免费、1单位支付 - // this.dataTransOpts.tableM.register_check_asbitem.forEach(e => { - // if (e.payTypeFlag == '0') chargeMoney += Number(e.total) - // }); - - // if (chargeMoney == 0) { - // this.$message.warning({ showClose: true, message: '没有可收费或退费的记录!' }) - // } else { - // // 显示 - // this.dataTransOpts.refresh.charge.S++ - // this.dialogWin.ThirdChargeRequest = true - // } - // }) - // .catch(err => { - // this.$message.error(err.message) - // }) + // let message = this.checkPatientCompleteFlag(form) + // if (message) { + // this.$message.warning({ showClose: true, message }) + // return + // } + if (!form?.id) { + this.$message.warning({ showClose: true, message: '尚未保存人员信息,不可执行此操作!' }) + return + } + // lis先 生成申请单记录 + postapi('/api/app/LisRequest/CreateLisRequestByPatientRegisterId', { patientRegisterId: form.id }) + .then(res => { + if (res.code > -1) return postapi('/api/app/LisRequest/GetSendLisRequestList', { patientRegisterId: form.id, execFlag: '0' }) + }) + .then(res => { + if (res?.code > -1 && res?.data.length > 0) { + this.thirdLisRequestParams.patientRegisterId = form.id + this.thirdLisRequestParams.brushTimes++ + this.dialogWin.ThirdLisRequest = true + } else { + this.$message.warning({ showClose: true, message: '没有检验项目需发送申请' }) + } + }) + + }, // 第三方申请--检查申请 thirdPacsRequest(form) { - let message = this.checkPatientCompleteFlag(form) - if(message){ - this.$message.warning({ showClose: true, message}) - return - } - this.dialogWin.ThirdPacsRequest = true - // this.getAsb(form.id) - // .then(() => { - // let chargeMoney = Number(0) - // //支付方式,比如是0自费、2免费、1单位支付 - // this.dataTransOpts.tableM.register_check_asbitem.forEach(e => { - // if (e.payTypeFlag == '0') chargeMoney += Number(e.total) - // }); - - // if (chargeMoney == 0) { - // this.$message.warning({ showClose: true, message: '没有可收费或退费的记录!' }) - // } else { - // // 显示 - // this.dataTransOpts.refresh.charge.S++ - // this.dialogWin.ThirdChargeRequest = true - // } - // }) - // .catch(err => { - // this.$message.error(err.message) - // }) + // let message = this.checkPatientCompleteFlag(form) + // if(message){ + // this.$message.warning({ showClose: true, message}) + // return + // } + if (!form?.id) { + this.$message.warning({ showClose: true, message: '尚未保存人员信息,不可执行此操作!' }) + return + } + + // 判断是否有项目待发送给第三方 + postapi('/api/app/RegisterCheck/GetPacsRequestListByPatientRegisterId', { patientRegisterId: form.id, execFlag: '0' }) + .then(res => { + if (res.code > -1 && res.data.length > 0) { + this.thirdPacsRequestParams.patientRegisterId = form.id + this.thirdPacsRequestParams.brushTimes++ + this.dialogWin.ThirdPacsRequest = true + } else { + this.$message.warning({ showClose: true, message: '没有检查项目需发送申请' }) + } + }) }, // 第三方申请--收费申请 thirdChargeRequest(form) { let message = this.checkPatientCompleteFlag(form) - if(message){ - this.$message.warning({ showClose: true, message}) - return + if (message) { + this.$message.warning({ showClose: true, message }) + return } this.getAsb(form.id) diff --git a/src/components/patientRegister/ThirdLisRequest.vue b/src/components/patientRegister/ThirdLisRequest.vue index 5fd7ecc..aad30de 100644 --- a/src/components/patientRegister/ThirdLisRequest.vue +++ b/src/components/patientRegister/ThirdLisRequest.vue @@ -2,33 +2,25 @@
- - + - - - - - - + + + + - - + - - - - - - - - + + + +
申请单包含项目
- - +
@@ -66,7 +60,7 @@ 刷新
- 收费申请 + 检验申请申请
关闭 @@ -83,14 +77,14 @@ import { dddw, arrayExistObj, deepCopy } from "../../utlis/proFunc"; // import export default { - props: ["patientRegister"], + props: ["refParams"], data() { return { tabChoosed: '1', - tableData: [], //组合项目数据 过滤后显示的数据 + tableDataReq0: [], //组合项目数据 过滤后显示的数据 selectedData: [], //选中的组合项目 - hisRequestData: [], //收费申请单 - hisRequestDataDetails: [], //收费申请单明细 + tableDataReq1: [], //检验申请申请单 + tableDataReq1Details: [], //检验申请申请单明细 }; }, @@ -99,7 +93,7 @@ export default { }, mounted() { - this.initData(this.patientRegister.id); + this.initData(this.refParams.patientRegisterId); }, computed: { ...mapState(["dict", "dataTransOpts", "dialogWin"]), @@ -107,50 +101,47 @@ export default { methods: { initData(patientRegisterId) { - this.tableData = [] - this.hisRequestData = [] - this.hisRequestDataDetails = [] + this.tableDataReq0 = [] + this.tableDataReq1 = [] + this.tableDataReq1Details = [] if (!patientRegisterId) return - //待收费项目 + //待检验申请项目 this.asbList(patientRegisterId) - // 收费申请单 + // 检验申请申请单 this.requestList(patientRegisterId) }, - // 待收费项目 + // 待发 检验申请项目 asbList(patientRegisterId) { - this.tableData = [] - postapi('/api/app/registerasbitem/GetCanChargeAsbitemsByPatientRegisterId', { patientRegisterId }) + this.tableDataReq0 = [] + postapi('/api/app/LisRequest/GetSendLisRequestList', { patientRegisterId, execFlag: '0' }) .then(res => { if (res.code > -1) { - res.data.forEach(e => { - e.total = Number(e.chargePrice * e.amount) - this.tableData.push(e) - }); + this.tableDataReq0 = res.data } }) }, - // 收费申请单列表查询 + // 已发 检验申请申请单列表查询 requestList(patientRegisterId) { - this.hisRequestData = [] - this.hisRequestDataDetails = [] - postapi('/api/app/ChargeRequest/GetChargeRequestsByPatientRegisterId', { patientRegisterId }) + this.tableDataReq1 = [] + this.tableDataReq1Details = [] + postapi('/api/app/LisRequest/GetSendLisRequestList', { patientRegisterId, execFlag: '1' }) .then(res => { if (res.code > -1) { - this.hisRequestData = res.data + this.tableDataReq1 = res.data } }) }, setChargeRequestFlag(chargeRequestFlag) { - let ret = '收费申请' + let ret = '检验申请申请' switch (chargeRequestFlag) { case '1': - ret = '已收费' + ret = '已检验申请' break; case '2': ret = '作废申请' @@ -186,21 +177,18 @@ export default { // 获取申请单明细 rowClick(row) { - this.hisRequestDataDetails = [] - postapi('/api/app/ChargeRequest/GetChargeRequestAsbitemsByChargeRequestId', { chargeRequestId: row.id }) + this.tableDataReq1Details = [] + postapi('/api/app/LisRequest/GetRequestAsbitemByLisRequestIdList', { lisRequestId: row.lisRequestId }) .then(res => { if (res.code > -1) { - res.data.forEach(e => { - e.total = Number(e.chargePrice * e.amount) - this.hisRequestDataDetails.push(e) - }); + this.tableDataReq1Details = res.data } }) }, - // 撤消申请(作废申请) + // 刷新状态 refreshRequest(row) { - console.log('refreshRequest',row) + console.log('refreshRequest', row) postapi('/api/app/ChargeRequest/SyncChargeRequestFlagFromInterface', { chargeRequestId: row.id }) .then(res => { if (res.code > -1) { @@ -211,10 +199,11 @@ export default { // 撤消申请(作废申请) cancelRequest(row) { - postapi('/api/app/ChargeRequest/CancelChargeRequest', { chargeRequestId: row.id }) + postapi('/api/app/LisRequest/CancelThirdLisRequest', { lisRequestId: row.lisRequestId }) .then(res => { if (res.code > -1) { - row.chargeRequestFlag = "2" + // 刷新 + this.requestList(this.refParams.patientRegisterId) } }) }, @@ -232,32 +221,27 @@ export default { // 刷新 btnRefresh() { if (this.tabChoosed == '1') { - this.asbList(this.patientRegister.id) + this.asbList(this.refParams.patientRegisterId) } else { - this.requestList(this.patientRegister.id) + this.requestList(this.refParams.patientRegisterId) } }, - btnSubmit() { + // 发送申请 + async btnSubmit() { if (this.selectedData.length == 0) { - this.$message.warning({ showClose: true, message: `请勾选要发送收费申请的检查项目!` }); + this.$message.warning({ showClose: true, message: `请勾选要发送检验申请申请的检查项目!` }); return; } - let body = { - patientRegisterId: this.patientRegister.id, - registerCheckAsbitems: [] - } - this.selectedData.forEach(e => { - body.registerCheckAsbitems.push({ registerCheckAsbitemId: e.registerCheckAsbitemId }) - }); + for (let index = 0; index < this.selectedData.length; index++) { + let e = this.selectedData[index]; + await postapi('/api/app/LisRequest/SendThirdLisRequest', { lisRequestId: e.lisRequestId }) + + } + // 刷新 + this.asbList(this.refParams.patientRegisterId) - postapi("/api/app/ChargeRequest/Create", body) - .then(res => { - if (res.code > -1) { - this.initData(this.patientRegister.id) - } - }); }, }, @@ -265,12 +249,12 @@ export default { //监听事件 watch: { // - "dataTransOpts.refresh.charge.S": { + "refParams.brushTimes": { // immediate: true, // 立即执行 // // deep: true, // 深度监听复杂类型内变化 handler(newVal, oldVal) { - console.log(`watch: 收费 newVal: ${newVal}, oldVal: ${oldVal}, 人员条码号: `, this.patientRegister.id) - if (newVal != oldVal) this.initData(this.patientRegister.id) + console.log(`watch: 检验申请 newVal: ${newVal}, oldVal: ${oldVal}, 人员ID: `, this.refParams.patientRegisterId) + if (newVal != oldVal) this.initData(this.refParams.patientRegisterId) } }, @@ -278,12 +262,12 @@ export default { // immediate: true, // 立即执行 // // deep: true, // 深度监听复杂类型内变化 handler(newVal, oldVal) { - console.log(`watch: 收费 newVal: ${newVal}, oldVal: ${oldVal}, 人员条码号: `, this.patientRegister.id) + console.log(`watch: 检验申请 newVal: ${newVal}, oldVal: ${oldVal}, 人员ID: `, this.refParams.patientRegisterId) if (newVal != oldVal) { if (newVal == '1') { - this.asbList(this.patientRegister.id) + this.asbList(this.refParams.patientRegisterId) } else { - this.requestList(this.patientRegister.id) + this.requestList(this.refParams.patientRegisterId) } } } diff --git a/src/components/patientRegister/ThirdPacsRequest.vue b/src/components/patientRegister/ThirdPacsRequest.vue index e14e152..a45049c 100644 --- a/src/components/patientRegister/ThirdPacsRequest.vue +++ b/src/components/patientRegister/ThirdPacsRequest.vue @@ -2,33 +2,25 @@
- - + + - - - - - + + - - + - - - - - - - - + + + + -
申请单包含项目
- - - - - - -
@@ -66,7 +51,7 @@ 刷新
- 收费申请 + 检查申请
关闭 @@ -83,14 +68,14 @@ import { dddw, arrayExistObj, deepCopy } from "../../utlis/proFunc"; // import export default { - props: ["patientRegister"], + props: ["refParams"], data() { return { tabChoosed: '1', - tableData: [], //组合项目数据 过滤后显示的数据 + tableDataReq0: [], //组合项目数据 过滤后显示的数据 selectedData: [], //选中的组合项目 - hisRequestData: [], //收费申请单 - hisRequestDataDetails: [], //收费申请单明细 + tableDataReq1: [], //检查申请单 + tableDataReq1Details: [], //检查申请单明细 }; }, @@ -99,7 +84,7 @@ export default { }, mounted() { - this.initData(this.patientRegister.id); + this.initData(this.refParams.patientRegisterId); }, computed: { ...mapState(["dict", "dataTransOpts", "dialogWin"]), @@ -107,50 +92,46 @@ export default { methods: { initData(patientRegisterId) { - this.tableData = [] - this.hisRequestData = [] - this.hisRequestDataDetails = [] + this.tableDataReq0 = [] + this.tableDataReq1 = [] + this.tableDataReq1Details = [] if (!patientRegisterId) return - //待收费项目 + //待发申请 检查项目 this.asbList(patientRegisterId) - // 收费申请单 + // 检查申请单 this.requestList(patientRegisterId) }, - // 待收费项目 + // 待检查项目 asbList(patientRegisterId) { - this.tableData = [] - postapi('/api/app/registerasbitem/GetCanChargeAsbitemsByPatientRegisterId', { patientRegisterId }) + this.tableDataReq0 = [] + postapi('/api/app/RegisterCheck/GetPacsRequestListByPatientRegisterId', { patientRegisterId, execFlag: '0' }) .then(res => { if (res.code > -1) { - res.data.forEach(e => { - e.total = Number(e.chargePrice * e.amount) - this.tableData.push(e) - }); + this.tableDataReq0 = res.data } }) }, - // 收费申请单列表查询 + // 检查申请单列表查询 requestList(patientRegisterId) { - this.hisRequestData = [] - this.hisRequestDataDetails = [] - postapi('/api/app/ChargeRequest/GetChargeRequestsByPatientRegisterId', { patientRegisterId }) + this.tableDataReq1 = [] + postapi('/api/app/RegisterCheck/GetPacsRequestListByPatientRegisterId', { patientRegisterId, execFlag: '1' }) .then(res => { if (res.code > -1) { - this.hisRequestData = res.data + this.tableDataReq1 = res.data } }) }, setChargeRequestFlag(chargeRequestFlag) { - let ret = '收费申请' + let ret = '检查申请' switch (chargeRequestFlag) { case '1': - ret = '已收费' + ret = '已检查' break; case '2': ret = '作废申请' @@ -186,21 +167,12 @@ export default { // 获取申请单明细 rowClick(row) { - this.hisRequestDataDetails = [] - postapi('/api/app/ChargeRequest/GetChargeRequestAsbitemsByChargeRequestId', { chargeRequestId: row.id }) - .then(res => { - if (res.code > -1) { - res.data.forEach(e => { - e.total = Number(e.chargePrice * e.amount) - this.hisRequestDataDetails.push(e) - }); - } - }) + }, - // 撤消申请(作废申请) + // 刷新状态 refreshRequest(row) { - console.log('refreshRequest',row) + console.log('refreshRequest', row) postapi('/api/app/ChargeRequest/SyncChargeRequestFlagFromInterface', { chargeRequestId: row.id }) .then(res => { if (res.code > -1) { @@ -209,12 +181,13 @@ export default { }) }, + // 撤消申请(作废申请) cancelRequest(row) { - postapi('/api/app/ChargeRequest/CancelChargeRequest', { chargeRequestId: row.id }) + postapi('/api/app/RegisterCheck/CancelThirdPacsRequest', { registerCheckId: row.registerCheckId }) .then(res => { if (res.code > -1) { - row.chargeRequestFlag = "2" + this.requestList(this.refParams.patientRegisterId) } }) }, @@ -232,32 +205,27 @@ export default { // 刷新 btnRefresh() { if (this.tabChoosed == '1') { - this.asbList(this.patientRegister.id) + this.asbList(this.refParams.patientRegisterId) } else { - this.requestList(this.patientRegister.id) + this.requestList(this.refParams.patientRegisterId) } }, - btnSubmit() { + // 发送申请 + async btnSubmit() { if (this.selectedData.length == 0) { - this.$message.warning({ showClose: true, message: `请勾选要发送收费申请的检查项目!` }); + this.$message.warning({ showClose: true, message: `请勾选要发送检查申请的检查项目!` }); return; } - let body = { - patientRegisterId: this.patientRegister.id, - registerCheckAsbitems: [] + + for (let index = 0; index < this.selectedData.length; index++) { + let e = this.selectedData[index]; + await postapi("/api/app/RegisterCheck/SendThirdPacsRequest", { registerCheckId: e.registerCheckId }) } - this.selectedData.forEach(e => { - body.registerCheckAsbitems.push({ registerCheckAsbitemId: e.registerCheckAsbitemId }) - }); + // 刷新 + this.asbList(this.refParams.patientRegisterId) - postapi("/api/app/ChargeRequest/Create", body) - .then(res => { - if (res.code > -1) { - this.initData(this.patientRegister.id) - } - }); }, }, @@ -265,12 +233,12 @@ export default { //监听事件 watch: { // - "dataTransOpts.refresh.charge.S": { + "refParams.brushTimes": { // immediate: true, // 立即执行 // // deep: true, // 深度监听复杂类型内变化 handler(newVal, oldVal) { - console.log(`watch: 收费 newVal: ${newVal}, oldVal: ${oldVal}, 人员条码号: `, this.patientRegister.id) - if (newVal != oldVal) this.initData(this.patientRegister.id) + console.log(`watch: 检查申请 newVal: ${newVal}, oldVal: ${oldVal}, 人员条码号: `, this.refParams.patientRegisterId) + if (newVal != oldVal) this.initData(this.refParams.patientRegisterId) } }, @@ -278,12 +246,12 @@ export default { // immediate: true, // 立即执行 // // deep: true, // 深度监听复杂类型内变化 handler(newVal, oldVal) { - console.log(`watch: 收费 newVal: ${newVal}, oldVal: ${oldVal}, 人员条码号: `, this.patientRegister.id) + console.log(`watch: 检查申请 newVal: ${newVal}, oldVal: ${oldVal}, 人员条码号: `, this.refParams.patientRegisterId) if (newVal != oldVal) { if (newVal == '1') { - this.asbList(this.patientRegister.id) + this.asbList(this.refParams.patientRegisterId) } else { - this.requestList(this.patientRegister.id) + this.requestList(this.refParams.patientRegisterId) } } }