Commit e93ca7fd authored by 刘怀志's avatar 刘怀志

66363 (平台权限)支出管理-未入账-设备服务费详情 入账失败 提示 仅适用于设备服务费的退费

parent fd5fabb2
......@@ -122,15 +122,22 @@ export function refundHisList(params) {
}
// 支出管理列表页入账
export function expenditure({ id, tradeType }) {
export function expenditure({ row, tradeType, level }) {
if (tradeType) {
// 设备服务费调这个接口 平台的用tid 医院的用id
let id = ''
if (level === '1') {
id = row.tid
} else {
id = row.id
}
return request({
url: '/finance/trade/his/hospitalOutgoing/' + id,
method: 'put'
})
} else {
return request({
url: '/finance/refund/his/entry/' + id,
url: '/finance/refund/his/entry/' + row.id,
method: 'put'
})
}
......
......@@ -1120,7 +1120,7 @@ export default {
confirmButtonClass: 'queryBtn',
type: 'warning'
}).then(() => {
expenditure({ id: row.id, tradeType: row.tradeType === '9' }).then(() => {
expenditure({ row, tradeType: row.tradeType === '9', level: this.deptLevel }).then(() => {
this.$message.success('操作成功')
this.initData()
})
......
......@@ -340,7 +340,7 @@ export default {
type: 'warning'
}).then(() => {
// 设备服务费调用接口和其他的不一样 这个在api里体现 只有医院的是这样
expenditure({ id: row.id, tradeType: (row.tradeType === '9' && this.deptLevel === '2') }).then(res => {
expenditure({ row, tradeType: row.tradeType === '9', level: this.deptLevel }).then(res => {
console.log('expenditure', res)
this.$message.success('操作成功')
this.getList()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment