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/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;