|
|
|
@ -16,15 +16,15 @@ |
|
|
|
</el-table> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="已收费项目" name="2"> |
|
|
|
<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 :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="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> |
|
|
|
<div>{{ setChargeRequestFlag(scope.row.chargeRequestFlag) }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="ch" label="收费人员" min-width="80" align="center" /> |
|
|
|
@ -33,18 +33,20 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div style="display: flex;justify-content: space-between;"> |
|
|
|
<div> |
|
|
|
<el-button class="commonbutton" @click="cancelRequest(scope.row)" style="width:80px;" :disabled="setBtnDisabled(scope.row,'cancel')">撤消申请</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="chargeBack(scope.row)" style="width:50px;" :disabled="setBtnDisabled(scope.row,'chargeBack')">退费申请</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="hisRequestDataDetails" border style="width: 100%" row-key="id" |
|
|
|
height="256" highlight-current-row size="small" :row-style="{ height: '25px' }"> |
|
|
|
<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="amount" min-width="50" align="center"></el-table-column> |
|
|
|
@ -125,28 +127,46 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
setChargeRequestFlag(chargeRequestFlag) { |
|
|
|
let ret = '未收费' |
|
|
|
switch (chargeRequestFlag) { |
|
|
|
case '1': |
|
|
|
ret = '已收费' |
|
|
|
break; |
|
|
|
case '2': |
|
|
|
ret = '已作废' |
|
|
|
break; |
|
|
|
case '3': |
|
|
|
ret = '已撤消' |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
return ret |
|
|
|
}, |
|
|
|
|
|
|
|
handleSelectionChange(v) { |
|
|
|
this.selectedData = v; |
|
|
|
}, |
|
|
|
|
|
|
|
setBtnDisabled(row,oprType){ |
|
|
|
setBtnDisabled(row, oprType) { |
|
|
|
let ret = true |
|
|
|
if(oprType == 'chargeBack'){ |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
if (oprType == 'chargeBack') { |
|
|
|
if(row.chargeRequestFlag == '1') ret = false |
|
|
|
} else { |
|
|
|
if(row.chargeRequestFlag == '0') ret = false |
|
|
|
} |
|
|
|
|
|
|
|
return ret |
|
|
|
}, |
|
|
|
|
|
|
|
// 获取申请单明细 |
|
|
|
rowClick(row){ |
|
|
|
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) |
|
|
|
e.total = Number(e.chargePrice * e.amount) |
|
|
|
this.hisRequestDataDetails.push(e) |
|
|
|
}); |
|
|
|
} |
|
|
|
|