+
["doc", "xls", "ppt", "txt", "pdf"],
+ default: () => ["doc", "xls", "ppt", "txt", "pdf", 'png', 'jpg', 'jpeg', 'bmp', 'webp'],
},
// 是否显示提示
isShowTip: {
@@ -79,6 +79,7 @@ export default {
Authorization: "Bearer " + getToken(),
},
fileList: [],
+ loading: false,
};
},
watch: {
@@ -91,11 +92,15 @@ export default {
if (Array.isArray(val)) {
list = val;
} else {
+ this.loading = true;
await listByIds(val).then(res => {
list = res.data.map(oss => {
oss = { name: oss.originalName, url: oss.url, ossId: oss.ossId };
return oss;
});
+
+ }).finally(() => {
+ this.loading = false;
})
}
// 然后将数组转为对象数组
diff --git a/klp-ui/src/components/KLPService/Renderer/BomInfo.vue b/klp-ui/src/components/KLPService/Renderer/BomInfo.vue
index cf67c39b..3387f47d 100644
--- a/klp-ui/src/components/KLPService/Renderer/BomInfo.vue
+++ b/klp-ui/src/components/KLPService/Renderer/BomInfo.vue
@@ -78,7 +78,6 @@ export default {
this.bomInfo = res.rows;
})
}
- console.log(this.bomInfo, bomId, bomMap)
}
}
}
diff --git a/klp-ui/src/components/KLPService/WarehouseTree/index.vue b/klp-ui/src/components/KLPService/WarehouseTree/index.vue
new file mode 100644
index 00000000..0d4a2eca
--- /dev/null
+++ b/klp-ui/src/components/KLPService/WarehouseTree/index.vue
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
diff --git a/klp-ui/src/components/KLPService/index.js b/klp-ui/src/components/KLPService/index.js
index 7ffcd09b..36aeed07 100644
--- a/klp-ui/src/components/KLPService/index.js
+++ b/klp-ui/src/components/KLPService/index.js
@@ -7,3 +7,5 @@ export { default as UserSelect } from './UserSelect/index.vue';
export { default as WarehouseSelect } from './WarehouseSelect/index.vue';
export { default as ProductInfo } from './Renderer/ProductInfo.vue';
export { default as RawMaterialInfo } from './Renderer/RawMaterialInfo.vue';
+export { default as BomInfoMini } from './Renderer/BomInfoMini.vue';
+export { default as WarehouseTree } from './WarehouseTree/index.vue';
diff --git a/klp-ui/src/store/modules/category.js b/klp-ui/src/store/modules/category.js
index 923e118d..0b03a749 100644
--- a/klp-ui/src/store/modules/category.js
+++ b/klp-ui/src/store/modules/category.js
@@ -3,6 +3,9 @@ import { listProduct } from '@/api/wms/product';
import { listRawMaterial } from '@/api/wms/rawMaterial';
import { listBomItem } from '@/api/wms/bomItem';
+// 目前存在一个问题,当新增或删除,修改分类、产品、物料时,需要刷新整个页面,才能看到最新的数据
+// 需要优化,当新增或删除,修改分类、产品、物料时,只刷新相关的数据,而不是整个页面,修改和删除可以解决,新增由于没有返回id,所以需要重新获取整个列表
+
const state = {
categoryList: [],
productMap: {},
@@ -16,6 +19,7 @@ const mutations = {
SET_CATEGORY_LIST(state, list) {
state.categoryList = list;
},
+
SET_PRODUCT_MAP(state, map) {
state.productMap = map;
},
@@ -89,6 +93,7 @@ const actions = {
})
}
};
+
export default {
namespaced: true,
state,
diff --git a/klp-ui/src/views/wms/purchasePlan/panels/detail.vue b/klp-ui/src/views/wms/purchasePlan/panels/detail.vue
index 52cc52a2..9276629b 100644
--- a/klp-ui/src/views/wms/purchasePlan/panels/detail.vue
+++ b/klp-ui/src/views/wms/purchasePlan/panels/detail.vue
@@ -119,12 +119,13 @@
icon="el-icon-refresh"
@click="handleStatusChange(scope.row, EPurchaseDetailStatus.REVIEW, '待审核')"
>设为待审核
-
+ @click="handleUploadQualityCertificate(scope.row)"
+ >质保单
+
+
+
+
@@ -186,6 +191,7 @@ import RawMaterialSelect from '@/components/KLPService/RawMaterialSelect';
import UserSelect from '@/components/KLPService/UserSelect'
import { RawMaterialInfo } from '@/components/KLPService';
import BomInfoMini from '@/components/KLPService/Renderer/BomInfoMini.vue';
+import QualityCerticate from './qualityCerticate.vue'
export default {
name: "PurchasePlanDetail",
@@ -194,7 +200,8 @@ export default {
RawMaterialSelect,
UserSelect,
RawMaterialInfo,
- BomInfoMini
+ BomInfoMini,
+ QualityCerticate
},
props: {
planId: {
@@ -258,7 +265,9 @@ export default {
},
// 入库单相关
stockInVisible: false,
- selectedArrivalItems: []
+ selectedArrivalItems: [],
+ uploadQualityCertificateOpen: false,
+ uploadQualityCertificateInfo: undefined
};
},
computed: {
@@ -412,6 +421,9 @@ export default {
});
// });
},
+ handleUploadQualityCertificateConfirm() {
+ this.handleStatusChange(this.uploadQualityCertificateInfo, EPurchaseDetailStatus.FINISH, '采购完成');
+ },
/** 创建入库单按钮操作 */
handleCreateStockIn() {
// 获取用户选中的明细
@@ -443,6 +455,11 @@ export default {
if (rawMaterial && rawMaterial.unit) {
this.form.unit = rawMaterial.unit;
}
+ },
+ handleUploadQualityCertificate(row) {
+ this.uploadQualityCertificateOpen = true;
+ console.log(row, 'row');
+ this.uploadQualityCertificateInfo = row;
}
}
};
diff --git a/klp-ui/src/views/wms/purchasePlan/panels/qualityCerticate.vue b/klp-ui/src/views/wms/purchasePlan/panels/qualityCerticate.vue
new file mode 100644
index 00000000..f41c9172
--- /dev/null
+++ b/klp-ui/src/views/wms/purchasePlan/panels/qualityCerticate.vue
@@ -0,0 +1,221 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ OCR识别
+
+
+
+
+
+ 大模型识别
+
+
+
+
+
+
+
+
+
+
+ 历史质保单
+
+
+ 新质保单
+
+
+
+
+
+ 使用旧的质保单
+ 使用新的质保单
+ 创建新物料
+
+
+
+ 确认
+
+
+
+
+ 质保单内容
+
+
+
+
![]()
+
+
+
+
确认
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/klp-ui/src/views/wms/stock/box.vue b/klp-ui/src/views/wms/stock/box.vue
index 8c988edd..fbd5b16b 100644
--- a/klp-ui/src/views/wms/stock/box.vue
+++ b/klp-ui/src/views/wms/stock/box.vue
@@ -308,8 +308,8 @@ export default {
handleTreeNodeClick(node) {
this.currentTreeNode = node;
// 图表高亮并聚焦对应节点
- if (node && node.id) {
- this.highlightChartNode(node.id);
+ if (node && node.warehouseId) {
+ this.highlightChartNode(node.warehouseId);
}
},
// 高亮并聚焦图表节点
@@ -323,7 +323,7 @@ export default {
});
// 聚焦节点(自动缩放到该节点)
this.chart.dispatchAction({
- type: 'zoomToNode',
+ type: 'treemapRootToNode',
seriesIndex: 0,
targetNodeId: id
});
diff --git a/klp-ui/src/views/wms/stock/index.vue b/klp-ui/src/views/wms/stock/index.vue
index afc21f17..1acbcdc9 100644
--- a/klp-ui/src/views/wms/stock/index.vue
+++ b/klp-ui/src/views/wms/stock/index.vue
@@ -4,8 +4,7 @@
@@ -35,31 +34,21 @@
-
-
- 导出
+ 查看暂存单据
-
-
+
@@ -138,13 +127,17 @@
取 消
+
+