Browse Source

库存余额添加库存事务

hella_online_20240911
zhang_li 2 months ago
parent
commit
8af782ef95
  1. 5
      src/api/wms/balance/index.ts
  2. 18
      src/views/wms/inventoryManage/balance/index.vue

5
src/api/wms/balance/index.ts

@ -218,4 +218,9 @@ export const getBalanceItemListByCodes = async (data) => {
// 查询bom批次默认数据
export const getBanchBomPage = async (params) => {
return await request.get({ url: `/wms/balance/pageBOM`, params })
}
// 查询
export const getAllBalancePage = async (params) => {
return await request.get({ url: `/wms/balance/getBalancePageAll `, params })
}

18
src/views/wms/inventoryManage/balance/index.vue

@ -52,7 +52,23 @@
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Balance.allSchemas" />
<Detail
ref="detailRef"
:isBasic="false"
:allSchemas="Balance.allSchemas"
:detailAllSchemas="Balance.allSchemas"
:detailAllSchemasRules="BalanceRules"
:apiCreate="BalanceApi.createBalance"
:apiUpdate="BalanceApi.updateBalance"
:apiPage="BalanceApi.getBalancePage"
:apiDelete="BalanceApi.deleteBalance"
:isShowAddBtn="false"
:detailButtonIsShow="true"
:tabs="[{
label: '库存事务',
prop: 'Transaction'
}]"
/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/balance/import" :importTemplateData="importTemplateData" @success="importSuccess" />

Loading…
Cancel
Save