From b5762ad1f375cf16557f06c132e24481d226a76e Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 11 Jul 2024 18:36:43 +0800 Subject: [PATCH 01/11] =?UTF-8?q?SCP=20=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E5=8F=91=E8=B4=A7=E7=94=B3=E8=AF=B7=20=E7=94=9F=E6=88=90?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=97=B6=EF=BC=8C=E6=83=B3=E5=B0=91=E5=8F=91?= =?UTF-8?q?=E5=87=A0=E7=AE=B1=EF=BC=8C=E6=8A=8A=E7=AE=B1=E7=A7=BB=E5=87=BA?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=89=A9=E4=BD=99=E7=AE=B1?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=95=B0=E9=87=8F=E3=80=82=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E4=BF=AE=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliverRequestMain/labelForm.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue index 83247227f..ee81020ce 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue @@ -475,11 +475,11 @@ const blurOne = (oneRow, twoRow) => { } //在托下方的箱数量失去焦点 const blurTwo = (oneRow, twoRow, threeRow) => { - if (parseFloat(threeRow.qtyTwo) > parseFloat(oneRow.packQty)) { - message.warning('数量最多为' + oneRow.packQty) - threeRow.qtyTwo = oneRow.packQty - return - } + // if (parseFloat(threeRow.qtyTwo) > parseFloat(oneRow.packQty)) { + // message.warning('数量最多为' + oneRow.packQty) + // threeRow.qtyTwo = oneRow.packQty + // return + // } let num = 0 twoRow.children.forEach((item) => { num += parseFloat(item.qtyTwo) || 0 @@ -488,10 +488,10 @@ const blurTwo = (oneRow, twoRow, threeRow) => { } // 箱数量失去焦点 const blurThree = (oneRow, twoRow, thereeRow) => { - if (parseFloat(thereeRow.qtyTwo) > parseFloat(oneRow.packQty)) { - message.warning('每箱个数最多' + oneRow.packQty) - thereeRow.qtyTwo = oneRow.packQty - } + // if (parseFloat(thereeRow.qtyTwo) > parseFloat(oneRow.packQty)) { + // message.warning('每箱个数最多' + oneRow.packQty) + // thereeRow.qtyTwo = oneRow.packQty + // } let num = 0 twoRow.children.forEach((item) => { num += parseFloat(item.qtyTwo) || 0 From b55f7457e8f1050c6e50ef8b4052b0904285eca5 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Thu, 11 Jul 2024 18:40:13 +0800 Subject: [PATCH 02/11] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E9=80=80=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionreturnJobMain.data.ts | 16 +++--- .../productionreturnRecordMain.data.ts | 56 +++++++++---------- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/src/views/wms/issueManage/productionreturn/productionreturnJobMain/productionreturnJobMain.data.ts b/src/views/wms/issueManage/productionreturn/productionreturnJobMain/productionreturnJobMain.data.ts index 805da1f6f..4af5ac021 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnJobMain/productionreturnJobMain.data.ts +++ b/src/views/wms/issueManage/productionreturn/productionreturnJobMain/productionreturnJobMain.data.ts @@ -672,14 +672,14 @@ export const ProductionreturnJobDetail = useCrudSchemas(reactive([ width: 150 }, }, - { - label: '包装规格', - field: 'packUnit', - sort: 'custom', - table: { - width: 120 - }, - }, + // { + // label: '包装规格', + // field: 'packUnit', + // sort: 'custom', + // table: { + // width: 120 + // }, + // }, { label: '数量', field: 'qty', diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRecordMain/productionreturnRecordMain.data.ts b/src/views/wms/issueManage/productionreturn/productionreturnRecordMain/productionreturnRecordMain.data.ts index 0a86385ae..b2826ee28 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRecordMain/productionreturnRecordMain.data.ts +++ b/src/views/wms/issueManage/productionreturn/productionreturnRecordMain/productionreturnRecordMain.data.ts @@ -15,18 +15,18 @@ export const ProductionreturnRecordMain = useCrudSchemas(reactive( }, isSearch: true }, - { - label: '状态', - field: 'status', - dictType: DICT_TYPE.REQUEST_STATUS, - dictClass: 'string', - isForm: false, - isTable: true, - sort: 'custom', - table: { - width: 150 - }, - }, + // { + // label: '状态', + // field: 'status', + // dictType: DICT_TYPE.REQUEST_STATUS, + // dictClass: 'string', + // isForm: false, + // isTable: true, + // sort: 'custom', + // table: { + // width: 150 + // }, + // }, { label: '车间代码', field: 'workshopCode', @@ -504,23 +504,23 @@ export const ProductionreturnRecordDetail = useCrudSchemas(reactive Date: Thu, 11 Jul 2024 18:52:11 +0800 Subject: [PATCH 03/11] =?UTF-8?q?=E6=8A=A5=E5=BA=9F=E6=94=B6=E8=B4=A7?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E3=80=81=E5=88=B6=E5=93=81=E6=8B=86=E8=A7=A3?= =?UTF-8?q?=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productdismantle/productdismantleRequestMain/index.vue | 5 ++++- .../productreceiptscrapRequestMain/index.vue | 5 ++++- .../productreceiptscrapRequestMain.data.ts | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue index 8f9c31ca3..9cd07b365 100644 --- a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue +++ b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue @@ -286,12 +286,15 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => row['bomVersion'] = res.list[0].version } }) - } else { + } else if(formField == 'productionLineCode'){ val.forEach(item=>{ const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) newRow[formField] = item[searchField] tableData.value.push(newRow) }) + }else{ + row[formField] = val[0][searchField] + } } else { const setV = {} diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue index e9a80a163..c053bb4b0 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue @@ -220,7 +220,7 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro row['bomVersion'] = res.list[0].version } }) - }else{ + }else if(formField == 'productionLineCode'){ //添加明细 val.forEach(item=>{ const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) @@ -228,6 +228,9 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro newRow[formField] = item[searchField] tableData.value.push(newRow) }) + }else{ + row[formField] = val[0][searchField] + } } else { const setV = {} diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts index 668c03dbc..95d6f73fa 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts @@ -523,8 +523,9 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive width: 150 }, tableForm:{ + disabled:true, multiple: true, - isInpuFocusShow: true, + // isInpuFocusShow: true, searchListPlaceholder: '请选择生产线代码', searchField: 'code', searchTitle: '生产线信息', From 8712223c6fee19e1bc8167e671f015982123969c Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Thu, 11 Jul 2024 19:25:40 +0800 Subject: [PATCH 04/11] get --- src/api/wms/demandforecastingDetail/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/wms/demandforecastingDetail/index.ts b/src/api/wms/demandforecastingDetail/index.ts index 059cc4ce2..e3303bbd1 100644 --- a/src/api/wms/demandforecastingDetail/index.ts +++ b/src/api/wms/demandforecastingDetail/index.ts @@ -115,6 +115,6 @@ export const getPageTableHead = async (params) => { // 查询版本号 -export const queryVersion = async (data) => { - return await request.post({ url: `/wms/demandforecasting-detail/queryVersion`, data }) +export const queryVersion = async (params) => { + return await request.get({ url: `/wms/demandforecasting-detail/queryVersion`, params }) } \ No newline at end of file From d46613c38435a7aff35060a2778900368613cf4c Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 11 Jul 2024 19:39:44 +0800 Subject: [PATCH 05/11] =?UTF-8?q?SCP=20=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E5=8F=91=E7=A5=A8=E7=94=B3=E8=AF=B7=20=E7=94=9F=E6=88=90?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=97=B6=20=E6=97=A2=E6=9C=89=E7=AE=B1?= =?UTF-8?q?=E8=A7=84=E6=A0=BC=EF=BC=8C=E4=B9=9F=E6=9C=89=E6=89=98=E8=A7=84?= =?UTF-8?q?=E6=A0=BC=E3=80=82=E8=AE=A1=E7=AE=97=E7=BB=93=E6=9E=9C=E4=B8=8D?= =?UTF-8?q?=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliverRequestMain/labelForm.vue | 58 +++++++++++-------- 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue index ee81020ce..64ecf869f 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue @@ -69,7 +69,7 @@ @@ -205,12 +205,22 @@ const intData =async () => { const expandChange = (row: any, expandedRows: any[]) => { // 判断托信息是否存在 if (row.secondPackUnit && row.secondPackQty) { - // 数量除以托数量获取余数 - row.lastNumber = parseFloat(row.qty) % parseFloat(row.secondPackQty) + // // 托数量/箱数量 一托可以放几箱 + // row.otherNumber =Math.floor(parseFloat(row.secondPackQty) / parseFloat(row.packQty)) + // // 数量除以托数量获取余数 + // row.lastNumber = parseFloat(row.qty) % parseFloat(row.secondPackQty) + // // 数量%托数量 获取总共几托 + // row.allTuoQty = Math.ceil(parseFloat(row.qty) / parseFloat(row.secondPackQty)) + + // 总共需要多少箱 + row.allXiangQty = Math.ceil(parseFloat(row.qty) / parseFloat(row.packQty)) // 托数量/箱数量 一托可以放几箱 - row.otherNumber = parseFloat(row.secondPackQty) / parseFloat(row.packQty) - // 数量%托数量 获取总共几托 - row.allTuoQty = Math.ceil(parseFloat(row.qty) / parseFloat(row.secondPackQty)) + row.otherNumber =Math.floor(parseFloat(row.secondPackQty) / parseFloat(row.packQty)) + // 数量%托数量 获取总共几托 + row.allTuoQty = Math.ceil(parseFloat(row.allXiangQty) / parseFloat(row.otherNumber)) + // 数量除以托数量获取余数 + row.lastNumber = parseFloat(row.allXiangQty) % parseFloat(row.otherNumber) + row.packageList = [] // 循环托 for (let i = 0; i < row.allTuoQty; i++) { @@ -232,12 +242,12 @@ const expandChange = (row: any, expandedRows: any[]) => { } else { // 其他数据展示一托的全部箱数和全部数量 row.packageList[i].xNumber = row.otherNumber - row.packageList[i].qtyOne = row.secondPackQty + row.packageList[i].qtyOne = parseFloat(row.otherNumber) * parseFloat(row.packQty) } } else { // 如果沒有余数,直接展示一托的全部箱数和全部数量 row.packageList[i].xNumber = row.otherNumber - row.packageList[i].qtyOne = row.secondPackQty + row.packageList[i].qtyOne = parseFloat(row.otherNumber) * parseFloat(row.packQty) } } // 判断箱信息是否存在 @@ -418,23 +428,23 @@ 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) * parseFloat(oneRow.packQty) - let num = 0 - oneRow.packageList.forEach((item) => { - num += parseFloat(item.xNumber) || 0 - }) - if (num > oneRow.allPackQty) { - message.warning('总箱数不可以大于' + oneRow.allPackQty) - twoRow.xNumber = '' - twoRow.qtyOne = '' - return - } + // let num = 0 + // oneRow.packageList.forEach((item) => { + // num += parseFloat(item.xNumber) || 0 + // }) + // if (num > oneRow.allPackQty) { + // message.warning('总箱数不可以大于' + oneRow.allPackQty) + // twoRow.xNumber = '' + // twoRow.qtyOne = '' + // return + // } // 托信息修改的時候箱数据自动排列 // 判断箱信息是否存在 if (oneRow.packUnit && oneRow.packQty) { From 1c6bcf66aa28f008cf323e822c00f072096fa386 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 12 Jul 2024 08:50:00 +0800 Subject: [PATCH 06/11] workShopCode --- .../productreceiptJobMain/productreceiptJobMain.data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts b/src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts index e388beb2f..268d5311d 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts +++ b/src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts @@ -38,7 +38,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive([ }, { label: '车间代码', - field: 'workshopCode', + field: 'workShopCode', sort: 'custom', table: { width: 150 From d4b6afefee8bb677737f10046116c22600832434 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 12 Jul 2024 08:52:29 +0800 Subject: [PATCH 07/11] productionLineCode --- .../productreceiptAssembleJobMain.data.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts index b5ffc30ab..007f65edc 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts @@ -47,7 +47,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive([ }, { label: '生产线代码', - field: 'productionPlanNumber', + field: 'productionLineCode', sort: 'custom', table: { width: 150 @@ -626,6 +626,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true }, { label: '工位代码', From d6a086d93e3b12db3df71f1e870675c166c26395 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 12 Jul 2024 08:53:22 +0800 Subject: [PATCH 08/11] =?UTF-8?q?=E6=8A=A5=E5=BA=9F=E6=94=B6=E8=B4=A7?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productreceiptscrapJobMain.data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/productreceiptscrapJobMain.data.ts b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/productreceiptscrapJobMain.data.ts index 1c13b442b..08a551d97 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/productreceiptscrapJobMain.data.ts +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/productreceiptscrapJobMain.data.ts @@ -38,7 +38,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive([ }, { label: '车间代码', - field: 'workshopCode', + field: 'workShopCode', sort: 'custom', table: { width: 150 From 81244ff04cc78658cb3782b18a5aaba2020d9404 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 12 Jul 2024 08:56:12 +0800 Subject: [PATCH 09/11] =?UTF-8?q?=E8=A3=85=E9=85=8D=E6=94=B6=E8=B4=A7?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productreceiptAssembleRecordMain.data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts index f447fd858..3d838cd3d 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts @@ -728,7 +728,7 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive( isDetail: false, isForm: false , table: { - width: 150, + width: 220, fixed: 'right' }, hiddenInMain: false, From cd891b1fe8f30202263793978e63e49842460ac9 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 12 Jul 2024 10:20:06 +0800 Subject: [PATCH 10/11] =?UTF-8?q?=E7=94=9F=E6=88=90=E6=A0=87=E7=AD=BEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliverRequestMain/labelForm.vue | 222 +++++++++++------- 1 file changed, 136 insertions(+), 86 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue index 64ecf869f..2e2eff60e 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue @@ -12,7 +12,7 @@