|
|
|
@ -60,6 +60,9 @@ |
|
|
|
<div style="display: flex; margin-top: 10px; justify-content: space-between;"> |
|
|
|
<div></div> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div style="margin-left: 10px"> |
|
|
|
<el-button class="commonbutton" @click="btnRefresh">刷新</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-left: 10px" v-show="tabChoosed == '1'"> |
|
|
|
<el-button class="commonbutton" @click="btnSubmit">收费申请</el-button> |
|
|
|
</div> |
|
|
|
@ -86,7 +89,6 @@ export default { |
|
|
|
selectedData: [], //选中的组合项目 |
|
|
|
hisRequestData: [], //收费申请单 |
|
|
|
hisRequestDataDetails: [], //收费申请单明细 |
|
|
|
|
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -105,9 +107,19 @@ export default { |
|
|
|
initData(patientRegisterId) { |
|
|
|
this.tableData = [] |
|
|
|
this.hisRequestData = [] |
|
|
|
this.hisRequestDataDetails = [] |
|
|
|
if (!patientRegisterId) return |
|
|
|
|
|
|
|
//待收费项目 |
|
|
|
this.asbList(patientRegisterId) |
|
|
|
|
|
|
|
// 收费申请单 |
|
|
|
this.requestList(patientRegisterId) |
|
|
|
}, |
|
|
|
|
|
|
|
// 待收费项目 |
|
|
|
asbList(patientRegisterId) { |
|
|
|
this.tableData = [] |
|
|
|
postapi('/api/app/registerasbitem/GetCanChargeAsbitemsByPatientRegisterId', { patientRegisterId }) |
|
|
|
.then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
@ -117,8 +129,12 @@ export default { |
|
|
|
}); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 收费申请单 |
|
|
|
// 收费申请单列表查询 |
|
|
|
requestList(patientRegisterId) { |
|
|
|
this.hisRequestData = [] |
|
|
|
this.hisRequestDataDetails = [] |
|
|
|
postapi('/api/app/ChargeRequest/GetChargeRequestsByPatientRegisterId', { patientRegisterId }) |
|
|
|
.then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
@ -127,6 +143,7 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setChargeRequestFlag(chargeRequestFlag) { |
|
|
|
let ret = '收费申请' |
|
|
|
switch (chargeRequestFlag) { |
|
|
|
@ -139,7 +156,7 @@ export default { |
|
|
|
case '3': |
|
|
|
ret = '已作废' |
|
|
|
break; |
|
|
|
case '4': |
|
|
|
case '4': |
|
|
|
ret = '退费申请' |
|
|
|
break; |
|
|
|
case '5': |
|
|
|
@ -158,9 +175,9 @@ export default { |
|
|
|
setBtnDisabled(row, oprType) { |
|
|
|
let ret = true |
|
|
|
if (oprType == 'chargeBack') { |
|
|
|
if(row.chargeRequestFlag == '1') ret = false |
|
|
|
if (row.chargeRequestFlag == '1') ret = false |
|
|
|
} else { |
|
|
|
if(row.chargeRequestFlag == '0') ret = false |
|
|
|
if (row.chargeRequestFlag == '0') ret = false |
|
|
|
} |
|
|
|
return ret |
|
|
|
}, |
|
|
|
@ -199,6 +216,15 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 刷新 |
|
|
|
btnRefresh() { |
|
|
|
if (this.tabChoosed == '1') { |
|
|
|
this.asbList(this.patientRegister.id) |
|
|
|
} else { |
|
|
|
this.requestList(this.patientRegister.id) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
btnSubmit() { |
|
|
|
if (this.selectedData.length == 0) { |
|
|
|
this.$message.warning({ showClose: true, message: `请勾选要发送收费申请的检查项目!` }); |
|
|
|
@ -234,6 +260,21 @@ export default { |
|
|
|
if (newVal != oldVal) this.initData(this.patientRegister.id) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
"tabChoosed": { |
|
|
|
// immediate: true, // 立即执行 |
|
|
|
// // deep: true, // 深度监听复杂类型内变化 |
|
|
|
handler(newVal, oldVal) { |
|
|
|
console.log(`watch: 收费 newVal: ${newVal}, oldVal: ${oldVal}, 人员条码号: `, this.patientRegister.id) |
|
|
|
if (newVal != oldVal) { |
|
|
|
if (newVal == '1') { |
|
|
|
this.asbList(this.patientRegister.id) |
|
|
|
} else { |
|
|
|
this.requestList(this.patientRegister.id) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|