diff --git a/src/api/wms/supplierdeliverRecordMain/index.ts b/src/api/wms/supplierdeliverRecordMain/index.ts index 659794ff4..137a552ce 100644 --- a/src/api/wms/supplierdeliverRecordMain/index.ts +++ b/src/api/wms/supplierdeliverRecordMain/index.ts @@ -81,6 +81,11 @@ export const importTemplate = () => { return request.download({ url: '/wms/supplierdeliver-record-main/get-import-template' }) } +// 打印发货单前查询物料的状态,从而确定使用哪个积木模版 +export const getItemStatus = async (id) => { + return await request.post({ url: `/wms/supplierdeliver-record-main/getItemStatus?id=` + id }) +} + // 创建采购申请 export const createPurchasereceiptRequest = async (number:string) => { return await request.post({ url: `/wms/supplierdeliver-record-main/createPurchasereceiptRequest?number=`+number }) diff --git a/src/api/wms/supplierdeliverRequestMain/index.ts b/src/api/wms/supplierdeliverRequestMain/index.ts index f4d4a7b20..ed1515b29 100644 --- a/src/api/wms/supplierdeliverRequestMain/index.ts +++ b/src/api/wms/supplierdeliverRequestMain/index.ts @@ -126,6 +126,11 @@ export const deleteOldLabels = async (id) => { return await request.post({ url: `/wms/supplierdeliver-request-main/deleteOldLabels?id=` + id }) } +// 打印发货单前查询物料的状态,从而确定使用哪个积木模版 +export const getItemStatus = async (id) => { + return await request.post({ url: `/wms/supplierdeliver-request-main/getItemStatus?id=` + id }) +} + // 查看履历表 export const querySupplierResume = (asnNumber:string) => { return request.get({ url: `/wms/supplierdeliver-request-main/querySupplierResume?asnNumber=` + asnNumber }) diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue index 74c170f97..1549da33a 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue @@ -266,13 +266,14 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => }).then((res) => { fromManagementPrecision.value = res[0].ManagementPrecision }) - // if (fromManagementPrecision.value == 'BY_QUANTITY') { - // newRow['batchFormItemType'] = 'FormDate' - // newRow['disabled_batch'] = false - // } else { - // newRow['batchFormItemType'] = '' - // newRow['disabled_batch'] = true - // } + if (fromManagementPrecision.value == 'BY_QUANTITY') { + newRow['batchFormItemType'] = 'FormDate' + newRow['disabled_batch'] = false + newRow['batch'] = formatDate(new Date(),'YYYYMMDD') + } else { + newRow['batchFormItemType'] = '' + newRow['disabled_batch'] = true + } if(tableData.value.find(item1=>item1['itemCode'] == item['itemCode'])){ messageItemCodes.push(item['itemCode']) @@ -548,6 +549,14 @@ const buttonTableClick = async (val, row) => { masterId:row.masterId } await getDetailList() + + console.log(22,detatableData) + detatableData.tableList.forEach(item => { + if (!item.batch) { + item.batch=formatDate(new Date(),'YYYYMMDD') + } + }) + // 打开创建标签页面 // dialogVisible.value = true detatableData.tableList.map((item) => { @@ -894,7 +903,7 @@ const handlePoint = async (row) => { const searchTableRef = ref() const labelPrint = async (row) => { tableObject.loading = true - const defaultParams = {'moduleName':'productreceipt_predict','recordNumber':row.number} + const defaultParams = {'moduleName':'productreceipt_predict','recordNumber':row.number,batch:row.batch} const {tableObject:tableObjectPrint ,tableMethods} = useTable({ defaultParams, getListApi: PackageApi.getLabelDetailPage // 分页接口 diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue index 1fc528a82..64c8ef6a9 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue @@ -1,23 +1,31 @@