diff --git a/klp-ui/src/views/wms/coil/panels/base.vue b/klp-ui/src/views/wms/coil/panels/base.vue index ae6fe9a3..0f54d001 100644 --- a/klp-ui/src/views/wms/coil/panels/base.vue +++ b/klp-ui/src/views/wms/coil/panels/base.vue @@ -85,7 +85,7 @@ - + @@ -95,16 +95,22 @@ - - + + - {{ scope.row.exportTime }} - - + + + + + + + + @@ -311,6 +317,7 @@ import MemoInput from "@/components/MemoInput"; import MutiSelect from "@/components/MutiSelect"; import html2canvas from 'html2canvas'; import { PDFDocument } from 'pdf-lib'; +import { listUser } from "@/api/system/user"; export default { name: "MaterialCoil", @@ -553,7 +560,8 @@ export default { { label: '厂家', prop: 'itemManufacturer' }, ], title: '详细信息' - } + }, + userList: [], }; }, computed: { @@ -575,8 +583,14 @@ export default { }, created() { this.getList(); + this.getUserList(); }, methods: { + getUserList() { + listUser({ pageNum: 1, pageSize: 1000 }).then(res => { + this.userList = res.rows || []; + }); + }, // 打印标签 handlePrintLabel(row) { const item = row.itemType === 'product' ? row.product : row.rawMaterial; @@ -882,7 +896,7 @@ export default { if (row.exportTime) { row.exportTime = row.exportTime.replace('T', ' '); } - console.log(row); + this.buttonLoading = true; updateMaterialCoilSimple(row).then(_ => { this.$modal.msgSuccess("发货时间修改成功"); this.getList(); @@ -890,6 +904,15 @@ export default { this.buttonLoading = false; }); }, + handleExportByNameChange(row) { + this.buttonLoading = true; + updateMaterialCoilSimple(row).then(_ => { + this.$modal.msgSuccess("发货人修改成功"); + this.getList(); + }).finally(() => { + this.buttonLoading = false; + }); + }, /** 删除按钮操作 */ handleDelete(row) { const coilIds = row.coilId || this.ids;