diff --git a/klp-ui/src/components/KLPService/ProductSelect/index.vue b/klp-ui/src/components/KLPService/ProductSelect/index.vue index 6f396765..d992b769 100644 --- a/klp-ui/src/components/KLPService/ProductSelect/index.vue +++ b/klp-ui/src/components/KLPService/ProductSelect/index.vue @@ -205,7 +205,7 @@ export default { this.recentLoading = true; // 从localstorage中获取缓存的ids const ids = localStorage.getItem('recentlySelectedProductIds') || ''; - const idsArray = ids.split(','); + const idsArray = ids.split(',').filter(id => id); if (idsArray.length === 0) return; const list = await Promise.all(idsArray.map(async id => { const response = await getProduct(id); diff --git a/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue b/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue index 7b317379..6ed02a98 100644 --- a/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue +++ b/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue @@ -215,7 +215,8 @@ export default { this.recentLoading = true; // 从localstorage中获取缓存的ids const ids = localStorage.getItem('recentlySelectedRawMaterialIds') || ''; - const idsArray = ids.split(','); + const idsArray = ids.split(',').filter(id => id); + console.log('idsArray', idsArray, idsArray.length === 0); if (idsArray.length === 0) return; const list = await Promise.all(idsArray.map(async id => { const response = await getRawMaterial(id); diff --git a/klp-ui/src/layout/components/AppMain.vue b/klp-ui/src/layout/components/AppMain.vue index a25c5625..d487588f 100644 --- a/klp-ui/src/layout/components/AppMain.vue +++ b/klp-ui/src/layout/components/AppMain.vue @@ -17,6 +17,7 @@ export default { components: { iframeToggle }, computed: { cachedViews() { + console.log(this.$store.state.tagsView.cachedViews) return this.$store.state.tagsView.cachedViews }, key() { diff --git a/klp-ui/src/views/wms/coil/do/correct.vue b/klp-ui/src/views/wms/coil/do/correct.vue new file mode 100644 index 00000000..56428531 --- /dev/null +++ b/klp-ui/src/views/wms/coil/do/correct.vue @@ -0,0 +1,1124 @@ + + + + + + + + 查找钢卷并修正 + 刷新 + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + 暂无待领物料 + + + + + + {{ item.currentCoilNo }} + + + + + {{ item.itemType === 'raw_material' ? (item.rawMaterial && item.rawMaterial.rawMaterialName || + '—') : (item.product && item.product.productName || '—') }} + + + + + 编号: + {{ item.rawMaterial.rawMaterialCode }} + + + 规格: + {{ item.rawMaterial.specification }} + + + 材质: + {{ item.rawMaterial.material }} + + + + 表面处理: + {{ item.rawMaterial.surfaceTreatment }} + + + 锌层: + {{ item.rawMaterial.zincLayer }} + + + 厂家: + {{ item.rawMaterial.manufacturer }} + + + + + 编号: + {{ item.product.productCode }} + + + 规格: + {{ item.product.specification }} + + + 材质: + {{ item.product.material }} + + + + 表面处理: + {{ item.product.surfaceTreatment }} + + + 锌层: + {{ item.product.zincLayer }} + + + 厂家: + {{ item.product.manufacturer }} + + + + + + 毛重: + {{ item.grossWeight }}t + + + 净重: + {{ item.netWeight }}t + + + 班组: + {{ item.team }} + + + 更新时间: + {{ parseTime(item.updateTime, '{y}-{m}-{d} {h}:{i}') }} + + + 更新人: + {{ item.updateBy }} + + + 备注: + {{ item.remark }} + + + + + + + + + + + + + + + 入场: + {{ item.enterCoilNo || '—' }} + + + 厂家: + {{ item.supplierCoilNo || '—' }} + + + 库位: + {{ item.warehouseName || '—' }} + + + 库区: + {{ item.actualWarehouseName || '—' + }} + + + 重量: + {{ item.netWeight || '—' }}t + + + + + + + + + + + + + + + + + + + {{ + dict.label }} + + + + + + + + {{ + dict.label }} + + + + + {{ + dict.label }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 请先选择材料类型 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/klp-ui/src/views/wms/coil/panels/base.vue b/klp-ui/src/views/wms/coil/panels/base.vue index 0c89a006..d5de7a05 100644 --- a/klp-ui/src/views/wms/coil/panels/base.vue +++ b/klp-ui/src/views/wms/coil/panels/base.vue @@ -96,7 +96,12 @@ - + + + + {{ scope.row.exportTime }} + + @@ -173,7 +178,7 @@ clearable /> - + @@ -193,7 +198,7 @@ 请先选择材料类型 - + @@ -207,19 +212,19 @@ - + - + - + @@ -503,6 +508,12 @@ export default { } return '物品类型'; }, + canEditExportTime() { + // 徐梦琪和若依管理员 + const canEdit = ['1988841895986642945', 1]; + const currentUserId = this.$store.getters.id; + return canEdit.includes(currentUserId); + }, }, created() { this.getList(); @@ -529,7 +540,7 @@ export default { endTime: this.queryParams.updateTime?.[1], } // 如果没有设置itemType,则设置为raw_material - query.selectType = 'raw_material'; + query.selectType = this.querys.materialType === '成品' ? 'product' : 'raw_material'; listMaterialCoil(query).then(response => { if (this.querys.warehouseId != 111) { // 排除掉111仓库的 @@ -795,6 +806,18 @@ export default { }).catch(() => { }); }, + handleExportTimeChange(row) { + if (row.exportTime) { + row.exportTime = row.exportTime.replace('T', ' '); + } + console.log(row); + updateMaterialCoilSimple(row).then(_ => { + this.$modal.msgSuccess("发货时间修改成功"); + this.getList(); + }).finally(() => { + this.buttonLoading = false; + }); + }, /** 删除按钮操作 */ handleDelete(row) { const coilIds = row.coilId || this.ids;
暂无待领物料