Browse Source

asbcharge

master
pengjun 2 years ago
parent
commit
be5837704d
  1. 51
      src/components/patientRegister/AsbChargeRequest.vue

51
src/components/patientRegister/AsbChargeRequest.vue

@ -60,6 +60,9 @@
<div style="display: flex; margin-top: 10px; justify-content: space-between;"> <div style="display: flex; margin-top: 10px; justify-content: space-between;">
<div></div> <div></div>
<div style="display: flex;"> <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'"> <div style="margin-left: 10px" v-show="tabChoosed == '1'">
<el-button class="commonbutton" @click="btnSubmit">收费申请</el-button> <el-button class="commonbutton" @click="btnSubmit">收费申请</el-button>
</div> </div>
@ -86,7 +89,6 @@ export default {
selectedData: [], // selectedData: [], //
hisRequestData: [], // hisRequestData: [], //
hisRequestDataDetails: [], // hisRequestDataDetails: [], //
}; };
}, },
@ -105,9 +107,19 @@ export default {
initData(patientRegisterId) { initData(patientRegisterId) {
this.tableData = [] this.tableData = []
this.hisRequestData = [] this.hisRequestData = []
this.hisRequestDataDetails = []
if (!patientRegisterId) return if (!patientRegisterId) return
// //
this.asbList(patientRegisterId)
//
this.requestList(patientRegisterId)
},
//
asbList(patientRegisterId) {
this.tableData = []
postapi('/api/app/registerasbitem/GetCanChargeAsbitemsByPatientRegisterId', { patientRegisterId }) postapi('/api/app/registerasbitem/GetCanChargeAsbitemsByPatientRegisterId', { patientRegisterId })
.then(res => { .then(res => {
if (res.code > -1) { if (res.code > -1) {
@ -117,8 +129,12 @@ export default {
}); });
} }
}) })
},
//
//
requestList(patientRegisterId) {
this.hisRequestData = []
this.hisRequestDataDetails = []
postapi('/api/app/ChargeRequest/GetChargeRequestsByPatientRegisterId', { patientRegisterId }) postapi('/api/app/ChargeRequest/GetChargeRequestsByPatientRegisterId', { patientRegisterId })
.then(res => { .then(res => {
if (res.code > -1) { if (res.code > -1) {
@ -127,6 +143,7 @@ export default {
}) })
}, },
setChargeRequestFlag(chargeRequestFlag) { setChargeRequestFlag(chargeRequestFlag) {
let ret = '收费申请' let ret = '收费申请'
switch (chargeRequestFlag) { switch (chargeRequestFlag) {
@ -139,7 +156,7 @@ export default {
case '3': case '3':
ret = '已作废' ret = '已作废'
break; break;
case '4':
case '4':
ret = '退费申请' ret = '退费申请'
break; break;
case '5': case '5':
@ -158,9 +175,9 @@ export default {
setBtnDisabled(row, oprType) { setBtnDisabled(row, oprType) {
let ret = true let ret = true
if (oprType == 'chargeBack') { if (oprType == 'chargeBack') {
if(row.chargeRequestFlag == '1') ret = false
if (row.chargeRequestFlag == '1') ret = false
} else { } else {
if(row.chargeRequestFlag == '0') ret = false
if (row.chargeRequestFlag == '0') ret = false
} }
return ret 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() { btnSubmit() {
if (this.selectedData.length == 0) { if (this.selectedData.length == 0) {
this.$message.warning({ showClose: true, message: `请勾选要发送收费申请的检查项目!` }); this.$message.warning({ showClose: true, message: `请勾选要发送收费申请的检查项目!` });
@ -234,6 +260,21 @@ export default {
if (newVal != oldVal) this.initData(this.patientRegister.id) 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> </script>

Loading…
Cancel
Save