From a0cd885fc7bdb25e4e16b43275833665324cb09d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com> Date: Mon, 1 Jun 2026 14:12:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat(wms/attendance):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=80=83=E5=8B=A4=E5=90=8C=E6=AD=A5=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9C=88=E4=BB=BD=E9=80=89=E6=8B=A9=E5=92=8C?= =?UTF-8?q?=E8=B6=85=E6=97=B6=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 重构syncRecords接口,支持传入开始和结束时间参数并新增60s超时配置 2. 升级考勤同步页面:新增同步弹窗、月份选择器,替换原有基于最后同步时间的同步逻辑 3. 优化搜索表单和详情表单的标签与占位符,调整表单宽度提升可读性 4. 移除无用的最后同步时间查询逻辑 --- klp-ui/src/api/wms/attendance.js | 6 +- klp-ui/src/views/wms/hrm/attendance/sync.vue | 153 +++++++++++-------- 2 files changed, 96 insertions(+), 63 deletions(-) diff --git a/klp-ui/src/api/wms/attendance.js b/klp-ui/src/api/wms/attendance.js index ee4765b6..8de38d68 100644 --- a/klp-ui/src/api/wms/attendance.js +++ b/klp-ui/src/api/wms/attendance.js @@ -45,12 +45,14 @@ export function delRecords(id) { } // 同步考勤记录 -export function syncRecords(starttime) { +export function syncRecords({ starttime, endtime }) { return attendanceRequest({ url: '/sync_attendance', method: 'post', + timeout: 60000, data: { - starttime + starttime, + endtime } }) } diff --git a/klp-ui/src/views/wms/hrm/attendance/sync.vue b/klp-ui/src/views/wms/hrm/attendance/sync.vue index f1019ce8..ec31b126 100644 --- a/klp-ui/src/views/wms/hrm/attendance/sync.vue +++ b/klp-ui/src/views/wms/hrm/attendance/sync.vue @@ -1,66 +1,66 @@ @@ -1237,4 +1373,4 @@ export default { .plan-sheet-section { margin-top: 16px; } - \ No newline at end of file + diff --git a/klp-ui/src/views/wms/coil/typing.vue b/klp-ui/src/views/wms/coil/typing.vue index 862e4e12..a65086c0 100644 --- a/klp-ui/src/views/wms/coil/typing.vue +++ b/klp-ui/src/views/wms/coil/typing.vue @@ -60,14 +60,20 @@
- -
- {{ '更新信息' }} -
- 暂存内容 - 保存更新 + +
+ {{ '更新信息' }} +
+ 暂存内容 + 保存更新 +
-
+ + + +
@@ -530,6 +536,10 @@ export default { isDrAction() { return this.actionType === 504 || this.actionType === 524 }, + /** 镀锌/酸轧产线免验净重和厚度范围 */ + isExemptFromValidation() { + return [11, 120, 200, 201, 520, 202, 501, 521].includes(Number(this.actionType)) + }, // 动态显示标签 getItemLabel() { if (this.updateForm.materialType === '成品') { @@ -814,6 +824,22 @@ export default { } } + // 校验净重和实测厚度不超过源卷(镀锌/酸轧除外) + if (!this.isExemptFromValidation) { + const parentNetWeight = parseFloat(this.currentInfo.netWeight) || 0 + const parentThickness = parseFloat(this.currentInfo.actualThickness) || 0 + const updateNetWeight = parseFloat(this.updateForm.netWeight) || 0 + const updateThickness = parseFloat(this.updateForm.actualThickness) || 0 + if (updateNetWeight > 0 && parentNetWeight > 0 && updateNetWeight > parentNetWeight) { + this.$message.error(`更新后净重(${updateNetWeight}T)不能超过源卷净重(${parentNetWeight}T)`) + return false + } + if (updateThickness > 0 && parentThickness > 0 && updateThickness > parentThickness) { + this.$message.error(`更新后实测厚度(${updateThickness}mm)不能超过源卷实测厚度(${parentThickness}mm)`) + return false + } + } + const loadingInstance = this.$loading({ lock: true, text: '正在更新钢卷信息,请稍后...',