wanggang 1 year ago
parent
commit
88d62af63c
  1. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/commerce.js
  2. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/business.js
  3. 36
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/vmi/balance.js

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/commerce.js

@ -71,6 +71,7 @@ export default function (businessType, type) {
const rejectUrl = `settleaccount/${service}/reject`;
const reissueUrl = `settleaccount/${service}/reissue-invoice`;
const approvalUrl = `settleaccount/${service}/approval-passed`;
const importUrl = `settleaccount/${service}/excel-import`;
const queryMethod = "POST";
const exportMethod = "POST";
const invoiceMethod = "POST";
@ -78,6 +79,7 @@ export default function (businessType, type) {
const rejectMethod = "POST";
const reissueMethod = "POST";
const approvalMethod = "POST";
const importMethod = "POST";
return {
query: {
url: queryUrl,
@ -153,12 +155,14 @@ export default function (businessType, type) {
rejectUrl,
reissueUrl,
approvalUrl,
importUrl,
exportMethod,
invoiceMethod,
receivedMethod,
rejectMethod,
reissueMethod,
approvalMethod,
importMethod,
schema: schema,
},
};

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/business.js

@ -194,8 +194,8 @@ export default [
children: [
createUsableSettleList("hbpo_can_sa_service", "JisHBPO", "hbpo", "JIS-HBPO 可结算单"),
createUnableSettleList("hbpo_not_sa_service", "JisHBPO", "hbpo", "JIS-HBPO 不可结算明细"),
createCommerceCheckList("hbpo_ba_service", "JisBBAC", "bbac", "JIS-HBPO 商务审批"),
createVmiOutCheckList("hbpo_pd_service", "JisBBAC", "bbac", "JIS-HBPO 寄售库库存扣减审批"),
createCommerceCheckList("hbpo_ba_service", "JisHBPO", "hbpo", "JIS-HBPO 商务审批"),
createVmiOutCheckList("hbpo_pd_service", "JisHBPO", "hbpo", "JIS-HBPO 寄售库库存扣减审批"),
],
},
],

36
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/vmi/balance.js

@ -1,2 +1,34 @@
import useList from "../_list.js";
export default useList("vmi/balance");
import AppList from "../../components/list/index.js";
import html from "html";
import { ref, onMounted, onUnmounted } from "vue";
import { useRoute } from "vue-router";
import { ElNotification } from "element-plus";
export default {
components: { AppList },
template: html`<app-list v-if="config" :config="config" @command="onCommand" />`,
setup() {
const config = ref(null);
const route = useRoute();
const messageCount = ref(-1);
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
const event = "VmiBalance";
onMounted(async () => {
const model = "vmi/balance";
const useConfig = (await import(`../../models/${model}.js`)).default;
config.value = useConfig(route.meta?.businessType, route.meta);
PubSub.subscribe(event, async (_, data) => {
messageCount.value = parseInt(data);
});
ElNotification({
title: "Prompt",
message: messageCount.value,
duration: 0,
});
});
onUnmounted(() => PubSub.unsubscribe(event));
return { config, onCommand, messageCount };
},
};

Loading…
Cancel
Save