|
|
@ -9,6 +9,7 @@ import { getUrl } from "../../request/index.js"; |
|
|
|
import businessTypes from "../../models/_options.js"; |
|
|
|
import { required, trim } from "../../utils/validation.js"; |
|
|
|
import { delay } from "../../utils/index.js"; |
|
|
|
import { ElMessage, ElMessageBox } from "element-plus"; |
|
|
|
|
|
|
|
export default { |
|
|
|
components: { AppForm, AppTable }, |
|
|
@ -440,13 +441,27 @@ export default { |
|
|
|
service = "pub_ba_service"; |
|
|
|
} |
|
|
|
const directReopen = async () => { |
|
|
|
try { |
|
|
|
await ElMessageBox.confirm("确认报废重开吗?", { type: "warning" }); |
|
|
|
const url = `settleaccount/${service}/back-reissue-invoice`; |
|
|
|
const result = await request(url, props.data.invbillNum, { method: "POST" }); |
|
|
|
if (result.errors) { |
|
|
|
if (!result.errors) { |
|
|
|
if (result.data?.code === 200 && result.data?.message) { |
|
|
|
ElMessage.success(result.data?.message); |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (result.data?.code === 400 && result.data.fileName) { |
|
|
|
window.open(getUrl(`settleaccount/getblobfile/download/${result.data.fileName}`)); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
if (error === "cancel") { |
|
|
|
ElMessage({ |
|
|
|
type: "info", |
|
|
|
message: i18n.t("cancel"), |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
const showSetupDialog = () => { |
|
|
|
//重开发票号
|
|
|
|