From c445a01cd9f3d4666adf40f7858190ce0a5ef9d8 Mon Sep 17 00:00:00 2001 From: jhd <1684074631@qq.com> Date: Wed, 1 Jul 2026 15:16:27 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=20=20=20=E8=AF=B7=E8=B4=AD=E5=8D=95?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/erp/purchaseRequisition/index.vue | 47 +++++++------------ 1 file changed, 18 insertions(+), 29 deletions(-) diff --git a/klp-ui/src/views/erp/purchaseRequisition/index.vue b/klp-ui/src/views/erp/purchaseRequisition/index.vue index 370504921..0a80ec130 100644 --- a/klp-ui/src/views/erp/purchaseRequisition/index.vue +++ b/klp-ui/src/views/erp/purchaseRequisition/index.vue @@ -80,7 +80,7 @@
-
+
请购部门
品 名
规 格
@@ -88,7 +88,7 @@
请购量
-
+
@@ -149,7 +149,7 @@
-
+
品检条件
@@ -166,15 +166,15 @@
-
+
采购拟办
付款条件
-
-
采购金额(人民币)
+
+
采购金额(人民币)
@@ -219,7 +219,7 @@
-
+
状态
@@ -247,7 +247,7 @@
-
+
请购部门
品 名
规 格
@@ -255,7 +255,7 @@
请购量
-
+
{{ viewForm.reqDept || '—' }}
{{ viewForm.itemName || '—' }}
{{ viewForm.specification || '—' }}
@@ -293,20 +293,20 @@
-
+
品检条件
{{ formatInsp(viewForm.inspectionCondition, viewForm.trialDays) }}
前期采购记录
{{ viewForm.prevPurchaseRecord || '—' }}
-
+
采购拟办
{{ viewForm.purchaseProposal || '—' }}
付款条件
{{ viewForm.paymentTerms || '—' }}
-
-
采购金额(人民币)
+
+
采购金额(人民币)
{{ viewForm.totalAmount || '—' }}
@@ -348,7 +348,7 @@
置于
{{ viewForm.unloadOther || '—' }}
-
+
状态
{{ statusText(viewForm.formStatus) }} @@ -423,10 +423,10 @@ 用途类别 - 原料物料 - 设备增添 - 工程劳务 - 其它用途 + {{ printData.category === '原料物料' ? '☑' : '□' }}原料物料 + {{ printData.category === '设备增添' ? '☑' : '□' }}设备增添 + {{ printData.category === '工程劳务' ? '☑' : '□' }}工程劳务 + {{ printData.category === '其它用途' ? '☑' : '□' }}其它用途 需求日期 {{ printData.requiredDate || '' }} @@ -838,10 +838,6 @@ export default { const keywords = { 1: '一般', 2: '品保', 3: '工程', 4: '试用' } return val.includes(keywords[code]) }, - // PDF 复选框样式 - ppCheck(cond) { - return cond ? 'pp-chk pp-on' : 'pp-chk' - } } } @@ -1124,11 +1120,4 @@ $sub: #909399; padding: 5px 4px; } -/* 复选框 */ -.pp-chk { - font-family: '宋体', SimSun, serif; -} -.pp-chk.pp-on { - font-weight: 700; -} From 178df9de43bf76eca79ed0bbad22e1b189f2893f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com> Date: Wed, 1 Jul 2026 15:23:30 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat(wms/coil):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E8=B6=85=E6=9C=9F=E5=BA=93=E5=AD=98=E5=91=8A=E8=AD=A6=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=B9=B6=E9=87=8D=E6=9E=84=E5=91=8A=E8=AD=A6=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 新增钢卷超期库存告警页面,支持按超期天数、库位、物料筛选查询 2. 在钢卷信息组件中添加创建时间展示并优化显示格式 3. 将原告警页面重构为标签页形式,拆分维度告警和超期库存告警为独立组件 --- .../views/wms/coil/components/CoilInfo.vue | 19 +- .../views/wms/coil/materialWarning/index.vue | 727 +----------------- .../views/wms/coil/materialWarning/size.vue | 716 +++++++++++++++++ .../views/wms/coil/materialWarning/time.vue | 244 ++++++ 4 files changed, 995 insertions(+), 711 deletions(-) create mode 100644 klp-ui/src/views/wms/coil/materialWarning/size.vue create mode 100644 klp-ui/src/views/wms/coil/materialWarning/time.vue diff --git a/klp-ui/src/views/wms/coil/components/CoilInfo.vue b/klp-ui/src/views/wms/coil/components/CoilInfo.vue index 086681805..b7dabe776 100644 --- a/klp-ui/src/views/wms/coil/components/CoilInfo.vue +++ b/klp-ui/src/views/wms/coil/components/CoilInfo.vue @@ -87,6 +87,7 @@ export default { { label: '调制度', key: 'temperGrade' }, { label: '镀层种类', key: 'coatingType' }, { label: '钢卷表面处理', key: 'coilSurfaceTreatment' }, + { label: '创建时间', key: 'createTime' }, { label: '备注', key: 'remark', span: this.column > 2 ? this.column - 2 : 1 } ] }, @@ -101,9 +102,13 @@ export default { })) } } + let value = this.coilInfo[item.key] + if (item.key === 'createTime' && value) { + value = `${value}(${this.getDaysAgo(value)})` + } return { ...item, - value: this.coilInfo[item.key] + value } }) @@ -119,6 +124,18 @@ export default { return fields } }, + methods: { + getDaysAgo(dateStr) { + if (!dateStr) return '' + const date = new Date(dateStr) + const now = new Date() + const diffTime = now.getTime() - date.getTime() + const diffDays = Math.floor(diffTime / (1000 * 60 * 60 * 24)) + if (diffDays === 0) return '今天' + if (diffDays === 1) return '昨天' + return `${diffDays}天前` + } + } } diff --git a/klp-ui/src/views/wms/coil/materialWarning/index.vue b/klp-ui/src/views/wms/coil/materialWarning/index.vue index 0ae6248d2..73f2a830a 100644 --- a/klp-ui/src/views/wms/coil/materialWarning/index.vue +++ b/klp-ui/src/views/wms/coil/materialWarning/index.vue @@ -1,723 +1,30 @@ - diff --git a/klp-ui/src/views/wms/coil/materialWarning/size.vue b/klp-ui/src/views/wms/coil/materialWarning/size.vue new file mode 100644 index 000000000..e3147c1d5 --- /dev/null +++ b/klp-ui/src/views/wms/coil/materialWarning/size.vue @@ -0,0 +1,716 @@ + + + + diff --git a/klp-ui/src/views/wms/coil/materialWarning/time.vue b/klp-ui/src/views/wms/coil/materialWarning/time.vue new file mode 100644 index 000000000..752c89e7c --- /dev/null +++ b/klp-ui/src/views/wms/coil/materialWarning/time.vue @@ -0,0 +1,244 @@ + + + From 20d598b0995107e8c144496c6189971085680f6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com> Date: Wed, 1 Jul 2026 15:33:38 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat(wms/coil/materialWarning):=20=E5=AE=8C?= =?UTF-8?q?=E5=96=84=E7=89=A9=E6=96=99=E8=B6=85=E6=9C=9F=E9=A2=84=E8=AD=A6?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增物料类型筛选、产品规格/材质/厂家等多维度查询字段,调整表单布局与默认参数,适配成品/原料两类物料的查询需求 --- .../views/wms/coil/materialWarning/time.vue | 130 ++++++++++++++++-- 1 file changed, 121 insertions(+), 9 deletions(-) diff --git a/klp-ui/src/views/wms/coil/materialWarning/time.vue b/klp-ui/src/views/wms/coil/materialWarning/time.vue index 752c89e7c..5708221f1 100644 --- a/klp-ui/src/views/wms/coil/materialWarning/time.vue +++ b/klp-ui/src/views/wms/coil/materialWarning/time.vue @@ -1,18 +1,78 @@