-
-
-
-
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file
+
+@media (max-width:1024px) {
+ .chart-wrapper {
+ padding: 8px;
+ }
+}
+
diff --git a/klp-ui/src/views/wms/coil/box.vue b/klp-ui/src/views/wms/coil/box.vue
index 2a5cc919..5238d144 100644
--- a/klp-ui/src/views/wms/coil/box.vue
+++ b/klp-ui/src/views/wms/coil/box.vue
@@ -35,7 +35,7 @@
-
-
-
+
{{ scope.row.itemType == 'product' ? '成品' : '原料' }}
-
+
@@ -119,6 +119,7 @@
+
@@ -144,6 +145,7 @@ import MaterialSelect from "@/components/KLPService/MaterialSelect";
import * as echarts from 'echarts';
import RawMaterialInfo from "@/components/KLPService/Renderer/RawMaterialInfo";
import ProductInfo from "@/components/KLPService/Renderer/ProductInfo";
+import { findItemWithBom } from "@/store/modules/category";
export default {
components: {
@@ -531,8 +533,11 @@ export default {
// 物料统计钻取
this.drillDownParams.itemType = data.itemType;
this.drillDownParams.itemId = data.itemId;
- this.drillDownParams.itemName = data.name;
- this.dialogTitle = `${data.itemType === 'product' ? '成品' : '原材料'}库存明细 - ${data.name}`;
+ // 从store中获取物料名称
+ const item = findItemWithBom(data.itemType, data.itemId);
+ console.log('item', item, data);
+ this.drillDownParams.itemName = item ? item.itemName : data.name;
+ this.dialogTitle = `${data.itemType === 'product' ? '成品' : '原材料'}库存明细 - ${this.drillDownParams.itemName}`;
} else if (data.warehouseId && data.warehouseName) {
// 仓库统计钻取
this.drillDownParams.warehouseId = data.warehouseId;
diff --git a/klp-ui/src/views/wms/coil/history.vue b/klp-ui/src/views/wms/coil/history.vue
index d1325508..9cac6348 100644
--- a/klp-ui/src/views/wms/coil/history.vue
+++ b/klp-ui/src/views/wms/coil/history.vue
@@ -13,7 +13,8 @@ export default {
return {
qrcode: true,
querys: {
- dataType: 0
+ dataType: 0,
+ itemType: 'raw_material'
},
labelType: '2'
}
diff --git a/klp-ui/src/views/wms/coil/index.vue b/klp-ui/src/views/wms/coil/index.vue
index 2a180a3a..7419a85c 100644
--- a/klp-ui/src/views/wms/coil/index.vue
+++ b/klp-ui/src/views/wms/coil/index.vue
@@ -13,7 +13,8 @@ export default {
return {
qrcode: true,
querys: {
- dataType: 1
+ dataType: 1,
+ itemType: 'raw_material'
},
labelType: '2'
}
diff --git a/klp-ui/src/views/wms/coil/panels/base.vue b/klp-ui/src/views/wms/coil/panels/base.vue
index b559ddd9..88000b39 100644
--- a/klp-ui/src/views/wms/coil/panels/base.vue
+++ b/klp-ui/src/views/wms/coil/panels/base.vue
@@ -19,8 +19,9 @@
-
-
+
+
搜索
@@ -50,14 +51,14 @@
-
-
+
+
+
{{ scope.row.itemType == 'product' ? '成品' : '原料' }}
-
-
+
@@ -76,9 +77,10 @@
{{ scope.row.dataType == 0 ? '历史数据' : '当前数据' }}
+
-
+
@@ -122,17 +124,18 @@
-
-
+
+
-
+
+ 请先选择产品类型
@@ -249,6 +252,7 @@ export default {
parentCoilNos: undefined,
itemId: undefined,
status: undefined,
+ updateTime: undefined,
},
// 表单参数
form: {},
@@ -282,7 +286,12 @@ export default {
/** 查询钢卷物料列表 */
getList() {
this.loading = true;
- listMaterialCoil(this.queryParams).then(response => {
+ const { updateTime ,...query } = {
+ ...this.queryParams,
+ startTime: this.queryParams.updateTime?.[0],
+ endTime: this.queryParams.updateTime?.[1],
+ }
+ listMaterialCoil(query).then(response => {
this.materialCoilList = response.rows;
this.total = response.total;
this.loading = false;
@@ -305,9 +314,16 @@ export default {
/** 预览标签 */
handlePreviewLabel(row) {
this.labelRender.visible = true;
+ const item = findItemWithBom(row.itemType, row.itemId)
+ // 寻找boms中bom键名为'材质'的
+ const material = item?.boms?.find(bom => bom.attrKey === '材质')
+ // 查找boms中bom键名为'规格'的
+ const specification = item?.boms?.find(bom => bom.attrKey === '规格')
this.labelRender.data = {
...row,
- itemName: findItemWithBom(row.itemType, row.itemId)?.itemName || '',
+ itemName: item?.itemName || '',
+ material: material?.attrValue || '',
+ specification: specification?.attrValue || '',
};
},
/** 下载二维码 */
diff --git a/klp-ui/src/views/wms/coil/product.vue b/klp-ui/src/views/wms/coil/product.vue
index 3102059f..bbcf1367 100644
--- a/klp-ui/src/views/wms/coil/product.vue
+++ b/klp-ui/src/views/wms/coil/product.vue
@@ -13,7 +13,8 @@ export default {
return {
qrcode: false,
querys: {
- itemType: 'product'
+ itemType: 'product',
+ // dataType: 0
},
labelType: '3'
}
diff --git a/klp-ui/src/views/wms/product/index.vue b/klp-ui/src/views/wms/product/index.vue
index 2e489c05..f6e21c59 100644
--- a/klp-ui/src/views/wms/product/index.vue
+++ b/klp-ui/src/views/wms/product/index.vue
@@ -144,12 +144,12 @@
icon="el-icon-delete"
@click="handleDelete(scope.row)"
>删除
- 台账
+ >台账 -->
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
@@ -297,7 +297,7 @@