Browse Source

1./jis-bbac/settlement/bbac_can_sa_service跳过businessType;2.添加确认报废重开和报废重开后提示并刷新

master
wanggang 1 year ago
parent
commit
3051c204e4
  1. 5
      .drone.yml
  2. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js
  3. 25
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/settle/_check.js

5
.drone.yml

@ -8,6 +8,11 @@ platform:
os: linux os: linux
steps: steps:
- name: code-analysis
image: aosapps/drone-sonar-plugin
settings:
sonar_host: http://dev.ccwin-in.com:3005
sonar_token: sqa_a1da3cf5984f39d9a256493acbae857c6624e954
- name: build - name: build
image: mcr.microsoft.com/dotnet/sdk:6.0 image: mcr.microsoft.com/dotnet/sdk:6.0
privileged: true privileged: true

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js

@ -777,7 +777,7 @@ export default {
}); });
} }
//添加子表filter查询 //添加子表filter查询
if (route.meta.businessType) { if (route.meta.businessType && route.meta.path !== "/jis-bbac/settlement/bbac_can_sa_service") {
postData.filters.push({ postData.filters.push({
logic: "and", logic: "and",
column: "businessType", column: "businessType",

25
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/settle/_check.js

@ -9,6 +9,7 @@ import { getUrl } from "../../request/index.js";
import businessTypes from "../../models/_options.js"; import businessTypes from "../../models/_options.js";
import { required, trim } from "../../utils/validation.js"; import { required, trim } from "../../utils/validation.js";
import { delay } from "../../utils/index.js"; import { delay } from "../../utils/index.js";
import { ElMessage, ElMessageBox } from "element-plus";
export default { export default {
components: { AppForm, AppTable }, components: { AppForm, AppTable },
@ -440,11 +441,25 @@ export default {
service = "pub_ba_service"; service = "pub_ba_service";
} }
const directReopen = async () => { const directReopen = async () => {
const url = `settleaccount/${service}/back-reissue-invoice`; try {
const result = await request(url, props.data.invbillNum, { method: "POST" }); await ElMessageBox.confirm("确认报废重开吗?", { type: "warning" });
if (result.errors) { const url = `settleaccount/${service}/back-reissue-invoice`;
if (result.data?.code === 400 && result.data.fileName) { const result = await request(url, props.data.invbillNum, { method: "POST" });
window.open(getUrl(`settleaccount/getblobfile/download/${result.data.fileName}`)); 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"),
});
} }
} }
}; };

Loading…
Cancel
Save