diff --git a/klp-pocket/src/main/java/com/klp/pocket/acid/service/IAcidTypingService.java b/klp-pocket/src/main/java/com/klp/pocket/acid/service/IAcidTypingService.java index f35b9570..a8ea66e8 100644 --- a/klp-pocket/src/main/java/com/klp/pocket/acid/service/IAcidTypingService.java +++ b/klp-pocket/src/main/java/com/klp/pocket/acid/service/IAcidTypingService.java @@ -1,7 +1,6 @@ package com.klp.pocket.acid.service; import com.klp.pocket.acid.domain.vo.AcidTypingPrefillVo; -import org.w3c.dom.stylesheets.LinkStyle; import java.util.List; diff --git a/klp-ui/src/components/KLPService/ProductSelect/index.vue b/klp-ui/src/components/KLPService/ProductSelect/index.vue index 6edcb19d..0f689dd2 100644 --- a/klp-ui/src/components/KLPService/ProductSelect/index.vue +++ b/klp-ui/src/components/KLPService/ProductSelect/index.vue @@ -14,10 +14,10 @@ @close="handleClose"> - + @@ -45,6 +45,7 @@ 搜索 重置 + 新增 @@ -67,10 +68,9 @@
{{ item.productName }} - [{{ item.productCode }}] + [{{ item.specification || '-' }}]
-
规格:{{ item.specification || '-' }}
材质:{{ item.material || '-' }}
厂家:{{ item.manufacturer || '-' }}
表面处理:{{ item.surfaceTreatmentDesc || '-' }}
@@ -81,7 +81,8 @@
- 暂无匹配的产品数据 + 暂无匹配的产品数据, + 点击快速新增产品
@@ -92,12 +93,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/klp-ui/src/views/wms/coil/abnormalDetail.vue b/klp-ui/src/views/wms/coil/abnormalDetail.vue index 9e933ff0..e9e8a433 100644 --- a/klp-ui/src/views/wms/coil/abnormalDetail.vue +++ b/klp-ui/src/views/wms/coil/abnormalDetail.vue @@ -46,6 +46,13 @@ + + + - + + + @@ -88,7 +97,7 @@ - + @@ -143,12 +152,14 @@ + + \ No newline at end of file diff --git a/klp-ui/src/views/wms/coil/views/other.vue b/klp-ui/src/views/wms/coil/views/other.vue new file mode 100644 index 00000000..88969685 --- /dev/null +++ b/klp-ui/src/views/wms/coil/views/other.vue @@ -0,0 +1,44 @@ + + + \ No newline at end of file diff --git a/klp-ui/src/views/wms/coil/views/pack.vue b/klp-ui/src/views/wms/coil/views/pack.vue new file mode 100644 index 00000000..07001ddf --- /dev/null +++ b/klp-ui/src/views/wms/coil/views/pack.vue @@ -0,0 +1,44 @@ + + + \ No newline at end of file diff --git a/klp-ui/src/views/wms/delivery/waybill/index.vue b/klp-ui/src/views/wms/delivery/waybill/index.vue index efb9182a..3acab743 100644 --- a/klp-ui/src/views/wms/delivery/waybill/index.vue +++ b/klp-ui/src/views/wms/delivery/waybill/index.vue @@ -5,8 +5,11 @@ - - + + + + + @@ -25,6 +28,12 @@ 刷新 + + + {{ deliveryCountTotal }} + {{ deliveryCountFinished }} + + row.status === 1 || row.status === 2).length; + }, + /** 计算总数量 */ + deliveryCountTotal() { + return this.deliveryWaybillList.length; + } + }, methods: { /** 查询发货单列表 */ getList() { diff --git a/klp-ui/src/views/wms/product/semi.vue b/klp-ui/src/views/wms/product/semi.vue deleted file mode 100644 index 6a8d1e57..00000000 --- a/klp-ui/src/views/wms/product/semi.vue +++ /dev/null @@ -1,411 +0,0 @@ - - - diff --git a/klp-ui/src/views/wms/report/js/calc.js b/klp-ui/src/views/wms/report/js/calc.js new file mode 100644 index 00000000..79e6d870 --- /dev/null +++ b/klp-ui/src/views/wms/report/js/calc.js @@ -0,0 +1,117 @@ +const calcSummary = (list, lossList) => { + // 总钢卷数量、总重、均重 + const outCount = list.length + const outTotalWeight = list.reduce((acc, cur) => acc + (parseFloat(cur.netWeight) || 0), 0) // 增加容错 + const outAvgWeight = outCount > 0 ? (outTotalWeight / outCount)?.toFixed(2) : 0 + + // 损失钢卷数量、总重、均重 + const lossCount = lossList.length + const lossTotalWeight = lossList.reduce((acc, cur) => acc + (parseFloat(cur.netWeight) || 0), 0) // 增加容错 + const lossAvgWeight = lossCount > 0 ? (lossTotalWeight / lossCount)?.toFixed(2) : 0 + // 合计数量、总重、均重 + const totalCount = outCount + lossCount + const totalWeight = parseFloat((outTotalWeight + lossTotalWeight).toFixed(2)) + const totalAvgWeight = totalCount > 0 ? (totalWeight / totalCount)?.toFixed(2) : 0 + + // 成品比率 + const passRate = outCount > 0 ? (outTotalWeight / lossTotalWeight) : 0 + // 损失比率 + const lossRate = totalCount > 0 ? (1 - passRate) : 0 + // 异常率,成品在warehouseId在'2019583656787259393', + // '2019583325311414274', + // '2019583429955104769', + // '2019583137616310273',这四个库中的占比 + const abRate = totalCount != 0 ? list.filter(item => { + return item.warehouseId == '2019583656787259393' || item.warehouseId == '2019583325311414274' || item.warehouseId == '2019583429955104769' || item.warehouseId == '2019583137616310273' + }).length / totalCount : 0 + + return { + outCount, + outTotalWeight: outTotalWeight.toFixed(2), + outAvgWeight, + lossCount, + lossTotalWeight: lossTotalWeight.toFixed(2), + lossAvgWeight, + totalCount, + totalWeight: totalWeight.toFixed(2), + totalAvgWeight, + passRate: (passRate * 100)?.toFixed(2) + '%', + lossRate: (lossRate * 100)?.toFixed(2) + '%', + abRate: (abRate * 100)?.toFixed(2) || 0, + } +} + +const calcAbSummary = (list) => { + // 异常统计,统计四个异常库中的各自的数量和总重 + let o = { + jishuCount: 0, + jishuWeight: 0, + miniCount: 0, + miniWeight: 0, + rubbishCount: 0, + rubbishWeight: 0, + returnCount: 0, + returnWeight: 0, + } + for (let i = 0; i < list.length; i++) { + // { label: '技术部', value: '2019583656787259393' }, + // { label: '小钢卷库', value: '2019583325311414274' }, + // { label: '废品库', value: '2019583429955104769' }, + // { label: '退货库', value: '2019583137616310273' }, + // 技术部 + const coil = list[i]; + // 技术部 + if (coil.warehouseId == '2019583656787259393') { + o['jishuCount'] = o['jishuCount'] + 1 + o['jishuWeight'] = o['jishuWeight'] + parseFloat(coil.netWeight) || 0 + } + // 小刚卷库 + if (coil.warehouseId == '2019583325311414274') { + o['miniCount'] = o['miniCount'] + 1 + o['miniWeight'] = o['miniWeight'] + parseFloat(coil.netWeight) || 0 + } + // 废品库 + if (coil.warehouseId == '2019583429955104769') { + o['rubbishCount'] = o['rubbishCount'] + 1 + o['rubbishWeight'] = o['rubbishWeight'] + parseFloat(coil.netWeight) || 0 + } + // 退货库 + if (coil.warehouseId == '2019583137616310273') { + o['returnCount'] = o['returnCount'] + 1 + o['returnWeight'] = o['returnWeight'] + parseFloat(coil.netWeight) || 0 + } + } + return [ + { label: '技术部钢卷数', value: o['jishuCount'] }, + { label: '技术部钢卷重量', value: o['jishuWeight'] }, + { label: '小钢卷库钢卷数', value: o['miniCount'] }, + { label: '小钢卷库钢卷重量', value: o['miniWeight'] }, + { label: '废品库钢卷数', value: o['rubbishCount'] }, + { label: '废品库钢卷重量', value: o['rubbishWeight'] }, + { label: '退货库钢卷数', value: o['returnCount'] }, + { label: '退货库钢卷重量', value: o['returnWeight'] }, + ] +} + +const calcTeamSummary = (list) => { + // 按照班组汇总信息 + const teamSummary = {} + for (let i = 0; i < list.length; i++) { + const coil = list[i]; + if (!teamSummary[coil.team]) { + teamSummary[coil.team] = { + count: 0, + weight: 0, + } + } + teamSummary[coil.team].count = teamSummary[coil.team].count + 1 + teamSummary[coil.team].weight = teamSummary[coil.team].weight + parseFloat(coil.netWeight) || 0 + } + return teamSummary +} + +export { + calcSummary, + calcAbSummary, + calcTeamSummary, +} \ No newline at end of file diff --git a/klp-ui/src/views/wms/report/zha.vue b/klp-ui/src/views/wms/report/zha.vue index 11782543..2826bf48 100644 --- a/klp-ui/src/views/wms/report/zha.vue +++ b/klp-ui/src/views/wms/report/zha.vue @@ -197,10 +197,10 @@ export default { createBy: 'suanzhakuguan', warehouseId: '2019583656787259393' }, - '20195833325311414274': { + '2019583325311414274': { selectType: 'product', createBy: 'suanzhakuguan', - warehouseId: '20195833325311414274' + warehouseId: '2019583325311414274' }, '2019583429955104769': { selectType: 'product', diff --git a/klp-ui/src/views/wms/report/zha/day.vue b/klp-ui/src/views/wms/report/zha/day.vue index 6c37e5e8..48ba02fc 100644 --- a/klp-ui/src/views/wms/report/zha/day.vue +++ b/klp-ui/src/views/wms/report/zha/day.vue @@ -63,10 +63,15 @@ {{ summary.abRate }} + + + {{ item.value }} + + - +