wanggang 1 year ago
parent
commit
406aadb107
  1. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json
  2. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/start.cmd
  3. 15
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/vmi/balance.js

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json

@ -70,7 +70,7 @@
"AuthServer": {
"Authority": "http://dev.ccwin-in.com:10582",
"Authority": "http://dev.ccwin-in.com:16082",
"ClientId": "basic-web",
"ClientSecret": "1q2w3e*"
},

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/start.cmd

@ -8,4 +8,4 @@ if %errorlevel% == 0 (
%1 start mshta vbscript:createobject("wscript.shell").run("""%~0"" ::",0)(window.close)&&exit
start /b SettleAccount.HttpApi.Host.exe --urls http://*:10582
start /b SettleAccount.HttpApi.Host.exe --urls http://*:16082

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

@ -10,7 +10,6 @@ export default {
setup() {
const config = ref(null);
const route = useRoute();
const messageCount = ref(-1);
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
@ -19,16 +18,18 @@ export default {
const model = "vmi/balance";
const useConfig = (await import(`../../models/${model}.js`)).default;
config.value = useConfig(route.meta?.businessType, route.meta);
let notify = null;
PubSub.subscribe(event, async (_, data) => {
messageCount.value = parseInt(data);
});
ElNotification({
title: "Prompt",
message: messageCount.value,
notify?.close();
notify = ElNotification({
position: "bottom-right",
title: "待同步库存数量",
message: data,
duration: 0,
});
});
});
onUnmounted(() => PubSub.unsubscribe(event));
return { config, onCommand, messageCount };
return { config, onCommand };
},
};

Loading…
Cancel
Save