wanggang 1 year ago
parent
commit
dff10c98c6
  1. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js
  2. 16
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/vmi/balance.js

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

@ -330,7 +330,7 @@ export default {
const config = reactive(props.config); const config = reactive(props.config);
// 分页 // 分页
const pageModel = reactive({ const pageModel = reactive({
sizeList: [1, 10, 50, 100], sizeList: [10, 50, 100, 500],
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
total: 0, total: 0,

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

@ -20,13 +20,15 @@ export default {
config.value = useConfig(route.meta?.businessType, route.meta); config.value = useConfig(route.meta?.businessType, route.meta);
let notify = null; let notify = null;
PubSub.subscribe(event, async (_, data) => { PubSub.subscribe(event, async (_, data) => {
notify?.close(); if (route.path === "/vmi/balance") {
notify = ElNotification({ notify?.close();
position: "bottom-right", notify = ElNotification({
title: "待同步库存数量", position: "bottom-right",
message: data, title: "待同步库存数量",
duration: 0, message: data,
}); duration: 0,
});
}
}); });
}); });
onUnmounted(() => PubSub.unsubscribe(event)); onUnmounted(() => PubSub.unsubscribe(event));

Loading…
Cancel
Save