diff --git a/src/api/wms/purchasereceiptRequestDetail/index.ts b/src/api/wms/purchasereceiptRequestDetail/index.ts index 4d5789976..34e71907f 100644 --- a/src/api/wms/purchasereceiptRequestDetail/index.ts +++ b/src/api/wms/purchasereceiptRequestDetail/index.ts @@ -46,6 +46,12 @@ export const getPurchasereceiptRequestDetailPage = async (params) => { } } +// 查询采购收货申请子标签列表 +export const getPurchasereceiptRequestDetailLabelList = async (params) => { + return await request.get({ url: `/wms/purchasereceipt-request-detail/pageLabel`, params }) +} + + // 查询备件收货申请子列表 export const getPurchasereceiptRequestDetailPageSpare = async (params) => { if (params.isSearch) { diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue index 7f2a3b7c7..5a13c2864 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue @@ -106,7 +106,7 @@ @success="getList" :tableAllSchemas="PurchasereceiptRequestDetailLabel.allSchemas" :tableFormRules="PurchasereceiptRequestDetailRules" - :tableData="detatableData.tableList" + :tableData="detatableDataLabel.tableList" :isBusiness="true" :isShowButton="false" :isShowReduceButton="false" @@ -437,7 +437,7 @@ const buttonTableClick = async (val, row) => { openForm('update', row) } else if(val == 'ssbq'){ // 生成标签 // 生成标签 - detatableData.params = { + detatableDataLabel.params = { masterId:row.masterId } genLabelId.value = row.masterId @@ -455,7 +455,7 @@ const buttonTableClick = async (val, row) => { } }) } - await getDetailList() + await getDetailListList() formLabelRef.value.open('create', row, null,'createLabel')//创建标签页面 createLabel 标题 }else if (val == 'point') { // 标签打印 @@ -488,6 +488,13 @@ const { tableObject: detatableData, tableMethods: detatableMethods } =useTable({ }) const { getList:getDetailList } = detatableMethods + +const { tableObject: detatableDataLabel, tableMethods: detatableMethodLabels } =useTable({ + getListApi: PurchasereceiptRequestDetailApi.getPurchasereceiptRequestDetailLabelList +}) +const { getList:getDetailListList } = detatableMethodLabels + + // 生成标签按钮操作 const submitFormLabel = async (formType, submitData) => { let data = {...submitData}