From 01ddb1af76628e12e5e26a7dec0e40fcd196dc3c Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Mon, 11 Nov 2024 11:23:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/demandPlan/apply_plan_detail.css | 37 +++++- .../child/excess_inventory_source.js | 74 ++++++------ page/demandPlan/child/apply_plan_detail.html | 105 +++++++++--------- .../child/excess_inventory_source.html | 8 +- 4 files changed, 130 insertions(+), 94 deletions(-) diff --git a/css/demandPlan/apply_plan_detail.css b/css/demandPlan/apply_plan_detail.css index 0b9933f..f7ecc03 100644 --- a/css/demandPlan/apply_plan_detail.css +++ b/css/demandPlan/apply_plan_detail.css @@ -4,11 +4,30 @@ align-items: center; } +body { + margin: 0 15px 15px 15px; +} + #main-box { width: 100%; height: 100%; padding: 0 2% 0 2%; box-sizing: border-box; + background-color: #fff; + border-radius: 5px; +} + +.title { + width: 100%; + height: 30px; + justify-content: start; + box-sizing: border-box; +} + +.title p { + font-size: 14px !important; + font-weight: bold; + } #plan-detail-box { @@ -19,8 +38,10 @@ justify-content: space-evenly; } -#plan-detail-box>p, #plan-basic-box>p, #oper-record-box p, - #implement-box p { +#plan-detail-box>p, +#plan-basic-box>p, +#oper-record-box p, +#implement-box p { font-size: 20px; font-weight: bold; } @@ -42,7 +63,8 @@ box-sizing: border-box; } -.classTable tr td, .classTable tr th { +.classTable tr td, +.classTable tr th { height: 50px; box-sizing: border-box; border: 1px solid #ddd; @@ -50,11 +72,13 @@ text-align: left; } -.classTable tr td, .classTable tr th { +.classTable tr td, +.classTable tr th { width: 20% } -.classTable tr td:nth-child(1), .classTable tr th:nth-child(1) { +.classTable tr td:nth-child(1), +.classTable tr th:nth-child(1) { width: 40% } @@ -103,6 +127,7 @@ .user-oper { flex-direction: column; } -.page-content{ + +.page-content { width: 100%; } \ No newline at end of file diff --git a/js/demandPlan/child/excess_inventory_source.js b/js/demandPlan/child/excess_inventory_source.js index ad03922..25d4f3d 100644 --- a/js/demandPlan/child/excess_inventory_source.js +++ b/js/demandPlan/child/excess_inventory_source.js @@ -35,6 +35,10 @@ function getDataInfoDetails() { $('#name').html(obj.name); $('#unit').html(obj.unit); $('#module').html(obj.module); + $('#wfhNum').html(obj.wfhNum); + $('#kuNum').html(obj.kuNum); + $('#clNum').html(obj.clNum); + $('#proNum').html(obj.proNum); } } @@ -67,23 +71,16 @@ function initTable() { cols: [ [ { - width: '9.8%', + width: '5.8%', title: "序号", align: "center", templet: function (d) { return d.LAY_NUM; }, }, - { - field: "proName", - width: '30%', - title: "工程名称 ", - unresize: true, - align: "center", - }, { field: "code", - width: '30%', + width: '10%', title: "需求计划编号", unresize: true, align: "center", @@ -93,34 +90,49 @@ function initTable() { return html; }, }, + { + field: "proName", + width: '15%', + title: "工程名称", + unresize: true, + align: "center", + }, + { + field: "projectPart", + width: '15%', + title: "项目部分", + unresize: true, + align: "center", + }, + { + field: "projectContent", + width: '15%', + title: "工程内容 ", + unresize: true, + align: "center", + }, + { + field: "proName", + width: '15%', + title: "需用日期", + unresize: true, + align: "center", + }, + { + field: "remark", + width: '15%', + title: "计划说明 ", + unresize: true, + align: "center", + }, { field: "needNum", - width: '10%', + width: '9%', title: "需用量 ", unresize: true, templet: function (d) { return setNumColor(d.needNum, 1); }, - }, - { - field: "needNum", - title: "已发货量", - width: '10%', - unresize: true, - align: "center", - templet: function (d) { - return setNumColor(d.needNum, 2); - }, - }, - { - field: "needNum", - title: "待发货量", - width: '10%', - unresize: true, - align: "center", - templet: function (d) { - return setNumColor(d.needNum, 3); - }, } ] ], @@ -150,5 +162,5 @@ function setNumColor(value, type) { // 需求计划编号 function demand_plan(obj){ - openIframeByParamObj2("demand_plan", "机具需求计划", "./excess_inventory_source.html", "92%", "95%", obj); + openIframeByParamObj2("demand_plan", "机具需求计划", "./apply_plan_detail.html", "92%", "95%", obj); } \ No newline at end of file diff --git a/page/demandPlan/child/apply_plan_detail.html b/page/demandPlan/child/apply_plan_detail.html index 706f886..f1a4a39 100644 --- a/page/demandPlan/child/apply_plan_detail.html +++ b/page/demandPlan/child/apply_plan_detail.html @@ -14,7 +14,7 @@

机具需求计划

- +

@@ -25,7 +25,10 @@
-

基本信息

+
+ +

基本信息

+
@@ -51,63 +54,59 @@
-

机具明细

+
+ +

机具明细

+
-
-
-
-
-
-    - - - - -
+ +
+
+
+
- - - -
- - - - - - - - - - - - - -
序号物机类型物机名称规格单位需用量需用天数备注
- +
+
+ + + +
-
+ + + + + + + + + + + + + + + +
序号物机类型物机名称规格单位需用量需用天数备注
-

操作记录

+
+ +

操作记录

+
@@ -116,7 +115,7 @@
- +
@@ -127,7 +126,7 @@
- 2020-12-23 22:31
diff --git a/page/demandPlan/child/excess_inventory_source.html b/page/demandPlan/child/excess_inventory_source.html index a7a2cb3..774b9e5 100644 --- a/page/demandPlan/child/excess_inventory_source.html +++ b/page/demandPlan/child/excess_inventory_source.html @@ -37,13 +37,13 @@ 未发货量 - + 库存量 - + 差量 - + 工程数量 - +