diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts index a30a1db82..bbedb984b 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts @@ -895,24 +895,24 @@ export const DeliverRequestDetail = useCrudSchemas(reactive([ } } }, - { - label: '承运商', - field: 'carrierCode', - sort: 'custom', - table: { - width: 150 - }, - }, - { - label: '运输方式', - field: 'transferMode', - sort: 'custom', - dictType: DICT_TYPE.TRANSFER_MODE, - dictClass: 'string', - table: { - width: 150 - }, - }, + // { + // label: '承运商', + // field: 'carrierCode', + // sort: 'custom', + // table: { + // width: 150 + // }, + // }, + // { + // label: '运输方式', + // field: 'transferMode', + // sort: 'custom', + // dictType: DICT_TYPE.TRANSFER_MODE, + // dictClass: 'string', + // table: { + // width: 150 + // }, + // }, { label: '库存状态', field: 'inventoryStatus', @@ -997,41 +997,41 @@ export const DeliverRequestDetail = useCrudSchemas(reactive([ isTableForm: false, isForm: false, }, - { - label: '备注', - field: 'remark', - sort: 'custom', - table: { - width: 150 - }, - isTable: false, - }, - { - label: '计划数量', - field: 'planQty', - sort: 'custom', - table: { - width: 150 - }, - isTable: false, - tableForm: { - disabled: true - }, - isForm: false, - }, - { - label: '已收货数量', - field: 'shippedQty', - sort: 'custom', - table: { - width: 150 - }, - isTable: false, - tableForm: { - disabled: true - }, - isForm: false, - }, + // { + // label: '备注', + // field: 'remark', + // sort: 'custom', + // table: { + // width: 150 + // }, + // isTable: false, + // }, + // { + // label: '计划数量', + // field: 'planQty', + // sort: 'custom', + // table: { + // width: 150 + // }, + // isTable: false, + // tableForm: { + // disabled: true + // }, + // isForm: false, + // }, + // { + // label: '已收货数量', + // field: 'shippedQty', + // sort: 'custom', + // table: { + // width: 150 + // }, + // isTable: false, + // tableForm: { + // disabled: true + // }, + // isForm: false, + // }, { label: '创建时间', field: 'createTime', diff --git a/src/views/wms/inventoryManage/package/index.vue b/src/views/wms/inventoryManage/package/index.vue index 4de07add2..aee66956f 100644 --- a/src/views/wms/inventoryManage/package/index.vue +++ b/src/views/wms/inventoryManage/package/index.vue @@ -71,7 +71,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import { getJmreportBaseUrl } from '@/utils/systemParam' import * as EquipmentInspectionRecordMainApi from "@/api/eam/equipmentInspectionRecordMain"; import { formatDate } from '@/utils/formatTime' - +// 包装信息 defineOptions({ name: 'package' }) const message = useMessage() // 消息弹窗 @@ -193,26 +193,26 @@ const handleSelectionPoint = async ()=>{ text: 'loading...', background: 'rgba(0, 0, 0, 0.7)' }) - // InventoryinitRecordDetailApi.printLabelBatchByIdSelection(rows.join(",")).then(res => { - // console.log('批量打印res',res); - // getLoading?.close() - // if(res.zzLabel){ - // //制造标签 - // const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) - // window.open(src.value+'&asn_number='+res.zzLabel) - // } - // if (res.cgLabel) { - // //采购标签 - // const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) - // window.open(src.value+'&asn_number='+res.cgLabel) - // } - // if(!res.cgLabel&&!res.zzLabel){ - // message.warning('包装不存在,无法打印或者是线边物料数据不生成包装!') - // } - // }).catch(err => { - // console.log(err) - // getLoading?.close() - // }) + PackageApi.batchPrintingLable(rows).then(res => { + console.log('批量打印res',res); + getLoading?.close() + if(res.zzLabel){ + //制造标签 + const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) + window.open(src.value+'&asn_number='+res.zzLabel) + } + if (res.cgLabel) { + //采购标签 + const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) + window.open(src.value+'&asn_number='+res.cgLabel) + } + if(!res.cgLabel&&!res.zzLabel){ + message.warning('包装不存在,无法打印或者是线边物料数据不生成包装!') + } + }).catch(err => { + console.log(err) + getLoading?.close() + }) } @@ -359,28 +359,46 @@ const formsSuccess = async (formType,data) => { const labelType = ref('') // 标签类别 采购还是制造等 const handlePoint = async (row) => { console.log(row.packingNumber,445555555555555); - PackageApi.getBalanceToPackage(row.number).then(res => { - console.log(777,res); - if (res.productionLineCode != null) { - labelType.value = 'zz' - } else { - labelType.value = 'cg' + PackageApi.batchPrintingLable([row.number]).then(res => { + console.log('批量打印res',res); + if(res.zzLabel){ + //制造标签 + const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) + window.open(src.value+'&asn_number='+res.zzLabel) + } + if (res.cgLabel) { + //采购标签 + const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) + window.open(src.value+'&asn_number='+res.cgLabel) + } + if(!res.cgLabel&&!res.zzLabel){ + message.warning('包装不存在,无法打印或者是线边物料数据不生成包装!') } - PackageApi.batchPrintingLable((res.number)).then((resLable) =>{ - console.log(159,resLable ) - // 判断是采购还是制造 - if (labelType.value == 'cg') { - const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) - console.log(159,resLable ) - window.open(src.value+'&asn_number='+resLable) - } else { - const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) - window.open(src.value+'&asn_number='+resLable) - } - }) }).catch(err => { console.log(err) }) + // PackageApi.getBalanceToPackage(row.number).then(res => { + // console.log(777,res); + // if (res.productionLineCode != null) { + // labelType.value = 'zz' + // } else { + // labelType.value = 'cg' + // } + // PackageApi.batchPrintingLable((res.number)).then((resLable) =>{ + // console.log(159,resLable ) + // // 判断是采购还是制造 + // if (labelType.value == 'cg') { + // const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) + // console.log(159,resLable ) + // window.open(src.value+'&asn_number='+resLable) + // } else { + // const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) + // window.open(src.value+'&asn_number='+resLable) + // } + // }) + // }).catch(err => { + // console.log(err) + // }) } /** 导入 */ diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/unplannedreceiptRecordMain.data.ts b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/unplannedreceiptRecordMain.data.ts index 32c7b00bf..b67ca0711 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/unplannedreceiptRecordMain.data.ts +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/unplannedreceiptRecordMain.data.ts @@ -115,6 +115,7 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive( table: { width: 180 }, + isSearch: true, form: { component: 'DatePicker', componentProps: { diff --git a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts index 84ef721ef..428350a3a 100644 --- a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts @@ -564,11 +564,13 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive + > + + 0){ + row['expireTime'] = res[0]['expireTime'] + } + }else if(formField == 'workStationCode'){ //添加明细 val.forEach(item=>{ @@ -595,7 +618,13 @@ const submitForm = async (formType, submitData) => { if(data.masterId){ data.id = data.masterId } + data.subList = tableData.value // 拼接子表数据参数 + tableData.value.forEach((row, index) => { + row['expireDate'] = row['expireTime'] + ? addDay(row['produceDate'], row['expireTime']).valueOf() + : dayjs('2099-12-31').valueOf() + }) if(data.subList.find(item => (item.qty <= 0))) { message.warning('数量必须大于0') return diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts index 929e92008..7e2174154 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts @@ -1238,7 +1238,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive width: 180 }, tableForm: { - type: 'FormDate', + type: 'slot', + disabled: true, valueFormat: 'x', }, form: { diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue index b9e0a96d8..cea9e2c05 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue @@ -510,15 +510,15 @@ const blurOne = (oneRow, twoRow) => { if (!twoRow.xNumber) { twoRow.qtyOne = '' } - // if (parseFloat(twoRow.xNumber) > parseFloat(oneRow.otherNumber)) { - // message.warning('每托箱个数最多' + oneRow.otherNumber + '箱') - // twoRow.xNumber = oneRow.otherNumber - // twoRow.children = [] - // twoRow.qtyOne = parseFloat(twoRow.xNumber) * parseFloat(oneRow.packQty) - // } + if (parseFloat(twoRow.xNumber) > parseFloat(oneRow.otherNumber)) { + message.warning('每托箱个数最多' + oneRow.otherNumber + '箱') + twoRow.xNumber = oneRow.otherNumber + twoRow.children = [] + twoRow.qtyOne = parseFloat(twoRow.xNumber) * parseFloat(oneRow.packQty) + } twoRow.qtyOne = parseFloat(twoRow.xNumber) ? accuracyFun.multiply(parseFloat(twoRow.xNumber), parseFloat(oneRow.packQty)) - : '' + : '' // let num = 0 // oneRow.packageList.forEach((item) => { // num += parseFloat(item.xNumber) || 0