diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue index 0109881cd..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']) @@ -902,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 // 分页接口