|
|
@ -2,33 +2,25 @@ |
|
|
<div style="margin-top: -10px;"> |
|
|
<div style="margin-top: -10px;"> |
|
|
<div> |
|
|
<div> |
|
|
<el-tabs v-model="tabChoosed" style="margin-top: 0px;"> |
|
|
<el-tabs v-model="tabChoosed" style="margin-top: 0px;"> |
|
|
<el-tab-pane label="待收费项目" name="1"> |
|
|
|
|
|
<el-table :data="tableData" border style="width: 100%" row-key="id" height="450" highlight-current-row |
|
|
|
|
|
|
|
|
<el-tab-pane label="待发检验申请项目" name="1"> |
|
|
|
|
|
<el-table :data="tableDataReq0" border style="width: 100%" row-key="id" height="450" highlight-current-row |
|
|
size="small" @selection-change="handleSelectionChange" :row-style="{ height: '25px' }"> |
|
|
size="small" @selection-change="handleSelectionChange" :row-style="{ height: '25px' }"> |
|
|
<el-table-column type="selection" align="center" width="40" /> |
|
|
<el-table-column type="selection" align="center" width="40" /> |
|
|
<el-table-column type="index" label="序号" align="center" width="40" /> |
|
|
<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-column label="姓名" prop="patientName" min-width="70" align="center" /> |
|
|
|
|
|
<el-table-column label="申请ID" min-width="320" prop="lisRequestId"></el-table-column> |
|
|
|
|
|
<el-table-column label="申请号" prop="lisRequestNo" min-width="150" align="center"></el-table-column> |
|
|
|
|
|
<el-table-column prop="requestDate" label="申请时间" min-width="150" align="center" /> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-tab-pane> |
|
|
</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 |
|
|
|
|
|
|
|
|
<el-tab-pane label="已发检验申请项目" name="2"> |
|
|
|
|
|
<el-table :data="tableDataReq1" border style="width: 100%" row-key="id" height="160" highlight-current-row |
|
|
size="small" @row-click="rowClick" :row-style="{ height: '25px' }"> |
|
|
size="small" @row-click="rowClick" :row-style="{ height: '25px' }"> |
|
|
<el-table-column type="index" label="序号" align="center" width="40" /> |
|
|
<el-table-column type="index" label="序号" align="center" width="40" /> |
|
|
<el-table-column label="申请单号" min-width="100" prop="chargeRequestNo" align="center" /> |
|
|
|
|
|
<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="80" align="center"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<div>{{ setChargeRequestFlag(scope.row.chargeRequestFlag) }}</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column prop="ch" label="收费人员" min-width="80" align="center" /> |
|
|
|
|
|
<el-table-column prop="creationTime" label="申请时间" min-width="150" align="center" /> |
|
|
|
|
|
|
|
|
<el-table-column label="姓名" prop="patientName" min-width="70" align="center" /> |
|
|
|
|
|
<el-table-column label="申请ID" min-width="320" prop="lisRequestId"></el-table-column> |
|
|
|
|
|
<el-table-column label="申请号" prop="lisRequestNo" min-width="150" align="center"></el-table-column> |
|
|
|
|
|
<el-table-column prop="requestDate" label="申请时间" min-width="150" align="center" /> |
|
|
<el-table-column label="操作" width="50" align="center"> |
|
|
<el-table-column label="操作" width="50" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-dropdown> |
|
|
<el-dropdown> |
|
|
@ -36,24 +28,26 @@ |
|
|
<i class="el-icon-s-operation" style="font-size: 24px;color: blue;cursor:pointer;"></i> |
|
|
<i class="el-icon-s-operation" style="font-size: 24px;color: blue;cursor:pointer;"></i> |
|
|
</span> |
|
|
</span> |
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
<el-dropdown-item @click.native="refreshRequest(scope.row)">刷新状态</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item @click.native="cancelRequest(scope.row)" |
|
|
<el-dropdown-item @click.native="cancelRequest(scope.row)" |
|
|
:disabled="setBtnDisabled(scope.row, 'cancel')">撤消申请</el-dropdown-item> |
|
|
:disabled="setBtnDisabled(scope.row, 'cancel')">撤消申请</el-dropdown-item> |
|
|
|
|
|
<!-- |
|
|
|
|
|
<el-dropdown-item @click.native="refreshRequest(scope.row)">刷新状态</el-dropdown-item> |
|
|
<el-dropdown-item @click.native="chargeBack(scope.row)" |
|
|
<el-dropdown-item @click.native="chargeBack(scope.row)" |
|
|
:disabled="setBtnDisabled(scope.row, 'chargeBack')">退费申请</el-dropdown-item> |
|
|
:disabled="setBtnDisabled(scope.row, 'chargeBack')">退费申请</el-dropdown-item> |
|
|
|
|
|
--> |
|
|
</el-dropdown-menu> |
|
|
</el-dropdown-menu> |
|
|
</el-dropdown> |
|
|
</el-dropdown> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
<div style="padding: 10px 0 5px 0;">申请单包含项目</div> |
|
|
<div style="padding: 10px 0 5px 0;">申请单包含项目</div> |
|
|
<el-table :data="hisRequestDataDetails" border style="width: 100%" row-key="id" height="256" |
|
|
|
|
|
|
|
|
<el-table :data="tableDataReq1Details" border style="width: 100%" row-key="id" height="256" |
|
|
highlight-current-row size="small" :row-style="{ height: '25px' }"> |
|
|
highlight-current-row size="small" :row-style="{ height: '25px' }"> |
|
|
<el-table-column type="index" label="序号" align="center" width="40" /> |
|
|
<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="组合项目" min-width="150" prop="asbitemName"></el-table-column> |
|
|
<el-table-column label="数量" prop="amount" min-width="50" align="center"></el-table-column> |
|
|
<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 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 label="标准价格" prop="standardPrice" min-width="70" align="center" /> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
</el-tabs> |
|
|
</el-tabs> |
|
|
@ -66,7 +60,7 @@ |
|
|
<el-button class="commonbutton" @click="btnRefresh">刷新</el-button> |
|
|
<el-button class="commonbutton" @click="btnRefresh">刷新</el-button> |
|
|
</div> |
|
|
</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> |
|
|
<div style="margin-left: 10px"> |
|
|
<div style="margin-left: 10px"> |
|
|
<el-button class="commonbutton" @click="dialogWin.ThirdLisRequest = false">关闭</el-button> |
|
|
<el-button class="commonbutton" @click="dialogWin.ThirdLisRequest = false">关闭</el-button> |
|
|
@ -83,14 +77,14 @@ import { dddw, arrayExistObj, deepCopy } from "../../utlis/proFunc"; |
|
|
|
|
|
|
|
|
// import |
|
|
// import |
|
|
export default { |
|
|
export default { |
|
|
props: ["patientRegister"], |
|
|
|
|
|
|
|
|
props: ["refParams"], |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
tabChoosed: '1', |
|
|
tabChoosed: '1', |
|
|
tableData: [], //组合项目数据 过滤后显示的数据 |
|
|
|
|
|
|
|
|
tableDataReq0: [], //组合项目数据 过滤后显示的数据 |
|
|
selectedData: [], //选中的组合项目 |
|
|
selectedData: [], //选中的组合项目 |
|
|
hisRequestData: [], //收费申请单 |
|
|
|
|
|
hisRequestDataDetails: [], //收费申请单明细 |
|
|
|
|
|
|
|
|
tableDataReq1: [], //检验申请申请单 |
|
|
|
|
|
tableDataReq1Details: [], //检验申请申请单明细 |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -99,7 +93,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
mounted() { |
|
|
mounted() { |
|
|
this.initData(this.patientRegister.id); |
|
|
|
|
|
|
|
|
this.initData(this.refParams.patientRegisterId); |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
...mapState(["dict", "dataTransOpts", "dialogWin"]), |
|
|
...mapState(["dict", "dataTransOpts", "dialogWin"]), |
|
|
@ -107,50 +101,47 @@ export default { |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
initData(patientRegisterId) { |
|
|
initData(patientRegisterId) { |
|
|
this.tableData = [] |
|
|
|
|
|
this.hisRequestData = [] |
|
|
|
|
|
this.hisRequestDataDetails = [] |
|
|
|
|
|
|
|
|
this.tableDataReq0 = [] |
|
|
|
|
|
this.tableDataReq1 = [] |
|
|
|
|
|
this.tableDataReq1Details = [] |
|
|
if (!patientRegisterId) return |
|
|
if (!patientRegisterId) return |
|
|
|
|
|
|
|
|
//待收费项目 |
|
|
|
|
|
|
|
|
//待检验申请项目 |
|
|
this.asbList(patientRegisterId) |
|
|
this.asbList(patientRegisterId) |
|
|
|
|
|
|
|
|
// 收费申请单 |
|
|
|
|
|
|
|
|
// 检验申请申请单 |
|
|
this.requestList(patientRegisterId) |
|
|
this.requestList(patientRegisterId) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 待收费项目 |
|
|
|
|
|
|
|
|
// 待发 检验申请项目 |
|
|
asbList(patientRegisterId) { |
|
|
asbList(patientRegisterId) { |
|
|
this.tableData = [] |
|
|
|
|
|
postapi('/api/app/registerasbitem/GetCanChargeAsbitemsByPatientRegisterId', { patientRegisterId }) |
|
|
|
|
|
|
|
|
this.tableDataReq0 = [] |
|
|
|
|
|
postapi('/api/app/LisRequest/GetSendLisRequestList', { patientRegisterId, execFlag: '0' }) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
if (res.code > -1) { |
|
|
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) { |
|
|
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 => { |
|
|
.then(res => { |
|
|
if (res.code > -1) { |
|
|
if (res.code > -1) { |
|
|
this.hisRequestData = res.data |
|
|
|
|
|
|
|
|
this.tableDataReq1 = res.data |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setChargeRequestFlag(chargeRequestFlag) { |
|
|
setChargeRequestFlag(chargeRequestFlag) { |
|
|
let ret = '收费申请' |
|
|
|
|
|
|
|
|
let ret = '检验申请申请' |
|
|
switch (chargeRequestFlag) { |
|
|
switch (chargeRequestFlag) { |
|
|
case '1': |
|
|
case '1': |
|
|
ret = '已收费' |
|
|
|
|
|
|
|
|
ret = '已检验申请' |
|
|
break; |
|
|
break; |
|
|
case '2': |
|
|
case '2': |
|
|
ret = '作废申请' |
|
|
ret = '作废申请' |
|
|
@ -186,21 +177,18 @@ export default { |
|
|
|
|
|
|
|
|
// 获取申请单明细 |
|
|
// 获取申请单明细 |
|
|
rowClick(row) { |
|
|
rowClick(row) { |
|
|
this.hisRequestDataDetails = [] |
|
|
|
|
|
postapi('/api/app/ChargeRequest/GetChargeRequestAsbitemsByChargeRequestId', { chargeRequestId: row.id }) |
|
|
|
|
|
|
|
|
this.tableDataReq1Details = [] |
|
|
|
|
|
postapi('/api/app/LisRequest/GetRequestAsbitemByLisRequestIdList', { lisRequestId: row.lisRequestId }) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
if (res.code > -1) { |
|
|
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) { |
|
|
refreshRequest(row) { |
|
|
console.log('refreshRequest',row) |
|
|
|
|
|
|
|
|
console.log('refreshRequest', row) |
|
|
postapi('/api/app/ChargeRequest/SyncChargeRequestFlagFromInterface', { chargeRequestId: row.id }) |
|
|
postapi('/api/app/ChargeRequest/SyncChargeRequestFlagFromInterface', { chargeRequestId: row.id }) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
if (res.code > -1) { |
|
|
if (res.code > -1) { |
|
|
@ -211,10 +199,11 @@ export default { |
|
|
|
|
|
|
|
|
// 撤消申请(作废申请) |
|
|
// 撤消申请(作废申请) |
|
|
cancelRequest(row) { |
|
|
cancelRequest(row) { |
|
|
postapi('/api/app/ChargeRequest/CancelChargeRequest', { chargeRequestId: row.id }) |
|
|
|
|
|
|
|
|
postapi('/api/app/LisRequest/CancelThirdLisRequest', { lisRequestId: row.lisRequestId }) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
if (res.code > -1) { |
|
|
if (res.code > -1) { |
|
|
row.chargeRequestFlag = "2" |
|
|
|
|
|
|
|
|
// 刷新 |
|
|
|
|
|
this.requestList(this.refParams.patientRegisterId) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
@ -232,32 +221,27 @@ export default { |
|
|
// 刷新 |
|
|
// 刷新 |
|
|
btnRefresh() { |
|
|
btnRefresh() { |
|
|
if (this.tabChoosed == '1') { |
|
|
if (this.tabChoosed == '1') { |
|
|
this.asbList(this.patientRegister.id) |
|
|
|
|
|
|
|
|
this.asbList(this.refParams.patientRegisterId) |
|
|
} else { |
|
|
} else { |
|
|
this.requestList(this.patientRegister.id) |
|
|
|
|
|
|
|
|
this.requestList(this.refParams.patientRegisterId) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
btnSubmit() { |
|
|
|
|
|
|
|
|
// 发送申请 |
|
|
|
|
|
async btnSubmit() { |
|
|
if (this.selectedData.length == 0) { |
|
|
if (this.selectedData.length == 0) { |
|
|
this.$message.warning({ showClose: true, message: `请勾选要发送收费申请的检查项目!` }); |
|
|
|
|
|
|
|
|
this.$message.warning({ showClose: true, message: `请勾选要发送检验申请申请的检查项目!` }); |
|
|
return; |
|
|
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: { |
|
|
watch: { |
|
|
// |
|
|
// |
|
|
"dataTransOpts.refresh.charge.S": { |
|
|
|
|
|
|
|
|
"refParams.brushTimes": { |
|
|
// immediate: true, // 立即执行 |
|
|
// immediate: true, // 立即执行 |
|
|
// // deep: true, // 深度监听复杂类型内变化 |
|
|
// // deep: true, // 深度监听复杂类型内变化 |
|
|
handler(newVal, oldVal) { |
|
|
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, // 立即执行 |
|
|
// immediate: true, // 立即执行 |
|
|
// // deep: true, // 深度监听复杂类型内变化 |
|
|
// // deep: true, // 深度监听复杂类型内变化 |
|
|
handler(newVal, oldVal) { |
|
|
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 != oldVal) { |
|
|
if (newVal == '1') { |
|
|
if (newVal == '1') { |
|
|
this.asbList(this.patientRegister.id) |
|
|
|
|
|
|
|
|
this.asbList(this.refParams.patientRegisterId) |
|
|
} else { |
|
|
} else { |
|
|
this.requestList(this.patientRegister.id) |
|
|
|
|
|
|
|
|
this.requestList(this.refParams.patientRegisterId) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|