Browse Source

charge

master
pengjun 2 years ago
parent
commit
b3e767b202
  1. 83
      src/components/patientRegister/AsbChargeRequest.vue

83
src/components/patientRegister/AsbChargeRequest.vue

@ -16,40 +16,41 @@
</el-table>
</el-tab-pane>
<el-tab-pane label="已收费项目" name="2">
<el-table :data="dataTransOpts.tableM.register_check_asbitem" border style="width: 100%" row-key="id"
height="160" highlight-current-row size="small" :row-style="{ height: '25px' }">
<el-table :data="hisRequestData" border style="width: 100%" row-key="id"
height="160" highlight-current-row size="small" @row-click="rowClick" :row-style="{ height: '25px' }">
<el-table-column type="index" label="序号" align="center" width="40" />
<el-table-column label="申请单号" min-width="150" prop="asbitemName"></el-table-column>
<el-table-column prop="total" label="金额" min-width="60" align="center" />
<el-table-column label="申请单号" min-width="100" prop="chargeRequestNo"></el-table-column>
<el-table-column prop="hisChargeNo" label="his收费单" min-width="80" align="center" />
<el-table-column prop="charges" label="金额" min-width="80" align="center" />
<el-table-column prop="chargeRequestFlag" label="收费状态" width="70" align="center">
<template slot-scope="scope">
<div>{{ scope.row.chargeRequestFlag }}</div>
</template>
</el-table-column>
<el-table-column prop="ch" label="收费人员" min-width="80" align="center" />
<el-table-column prop="ch" label="收费时间" min-width="150" align="center" />
<el-table-column prop="creationTime" label="申请时间" min-width="150" align="center" />
<el-table-column label="操作" width="150" align="center">
<template slot-scope="scope">
<div style="display: flex;justify-content: space-between;">
<div>
<el-button class="commonbutton" @click="dialogWin.AsbChargeRequest = false"
style="width:80px;">撤消申请</el-button>
<el-button class="commonbutton" @click="cancelRequest(scope.row)" style="width:80px;" :disabled="setBtnDisabled(scope.row,'cancel')">撤消申请</el-button>
</div>
<div>
<el-button class="commonbutton" @click="dialogWin.AsbChargeRequest = false"
style="width:50px;">退费</el-button>
<el-button class="commonbutton" @click="chargeBack(scope.row)" style="width:50px;" :disabled="setBtnDisabled(scope.row,'chargeBack')">退费申请</el-button>
</div>
</div>
</template>
</el-table-column>
</el-table>
<div style="padding: 10px 0 5px 0;">申请单包含项目</div>
<el-table :data="dataTransOpts.tableM.register_check_asbitem" border style="width: 100%" row-key="id"
<el-table :data="hisRequestDataDetails" border style="width: 100%" row-key="id"
height="256" highlight-current-row size="small" :row-style="{ height: '25px' }">
<el-table-column type="index" label="序号" align="center" width="40" />
<el-table-column label="组合项目" min-width="150" prop="asbitemName"></el-table-column>
<el-table-column label="标准价格" prop="standardPrice" min-width="70" align="center" />
<el-table-column label="数量" prop="amount" min-width="50" align="center"></el-table-column>
<el-table-column label="实收价格" prop="chargePrice" min-width="70" align="center"></el-table-column>
<el-table-column prop="total" label="金额" min-width="70" align="center" />
<el-table-column prop="standardPrice" label="标准金额" min-width="70" align="center" />
</el-table>
</el-tab-pane>
</el-tabs>
</div>
@ -101,7 +102,10 @@ export default {
initData(patientRegisterId) {
this.tableData = []
this.hisRequestData = []
if (!patientRegisterId) return
//
postapi('/api/app/registerasbitem/GetCanChargeAsbitemsByPatientRegisterId', { patientRegisterId })
.then(res => {
if (res.code > -1) {
@ -112,12 +116,63 @@ export default {
}
})
//
postapi('/api/app/ChargeRequest/GetChargeRequestsByPatientRegisterId', { patientRegisterId })
.then(res => {
if (res.code > -1) {
this.hisRequestData = res.data
}
})
},
handleSelectionChange(v) {
this.selectedData = v;
},
setBtnDisabled(row,oprType){
let ret = true
if(oprType == 'chargeBack'){
}else{
}
},
//
rowClick(row){
this.hisRequestDataDetails = []
postapi('/api/app/ChargeRequest/GetChargeRequestAsbitemsByChargeQuestId', { chargeRequestId: row.id })
.then(res => {
if (res.code > -1) {
res.data.forEach(e => {
e.total = Number(e.chargePrice*e.amount)
this.hisRequestDataDetails.push(e)
});
}
})
},
//
cancelRequest(row) {
postapi('/api/app/ChargeRequest/CancelChargeRequest', { chargeRequestId: row.id })
.then(res => {
if (res.code > -1) {
//
}
})
},
// 退
chargeBack(row) {
postapi('/api/app/ChargeRequest/RefundChargeRequest', { chargeRequestId: row.id })
.then(res => {
if (res.code > -1) {
//
}
})
},
btnSubmit() {
if (this.selectedData.length == 0) {
this.$message.warning({ showClose: true, message: `请勾选要发送收费申请的检查项目!` });
@ -135,7 +190,7 @@ export default {
postapi("/api/app/ChargeRequest/Create", body)
.then(res => {
if (res.code > -1) {
this.dataTransOpts.refresh.charge.S++
this.initData(this.patientRegister.id)
}
});

Loading…
Cancel
Save