|
|
@ -33,24 +33,21 @@ export default { |
|
|
|
); |
|
|
|
} |
|
|
|
if (item.path === "back") { |
|
|
|
const data = appListRef.value.buildQuery(); |
|
|
|
const invbillNum = rows[0].billNum; |
|
|
|
await appListRef.value.onClick( |
|
|
|
async () => { |
|
|
|
const result = await request(backUrl, data, { method: "POST" }, true); |
|
|
|
const result = await request(backUrl, invbillNum, { method: "POST" }, true); |
|
|
|
if (result.errors) { |
|
|
|
if (result.data.code === 400 && result.data.fileName) { |
|
|
|
ElMessage({ |
|
|
|
type: "warnning", |
|
|
|
message: "操作失败", |
|
|
|
}); |
|
|
|
window.open(getUrl(`settleaccount/getblobfile/download/${result.data.fileName}`)); |
|
|
|
} |
|
|
|
console.log(result); |
|
|
|
} |
|
|
|
}, |
|
|
|
`确认是否退回到不可结算单?`, |
|
|
|
`确认将${invbillNum}退回到不可结算单?`, |
|
|
|
true |
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
return { appListRef, config, onCommand }; |
|
|
|