From 64097f906ccf3b03edf571de84bc7647ea926fbb Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Thu, 14 Nov 2024 13:58:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E5=88=92=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/init.json | 12 ++ images/demandPlan/progress_icon.png | Bin 0 -> 385 bytes js/demandPlan/apply_plan_list.js | 210 ++++++++++++++++++++++++ js/demandPlan/plan_check_list.js | 205 +++++++++++++++++++++++ page/demandPlan/apply_plan_list.html | 63 +++++++ page/demandPlan/child/show_process.html | 86 ++++++++++ page/demandPlan/plan_check_list.html | 59 +++++++ 7 files changed, 635 insertions(+) create mode 100644 images/demandPlan/progress_icon.png create mode 100644 js/demandPlan/apply_plan_list.js create mode 100644 js/demandPlan/plan_check_list.js create mode 100644 page/demandPlan/apply_plan_list.html create mode 100644 page/demandPlan/child/show_process.html create mode 100644 page/demandPlan/plan_check_list.html diff --git a/api/init.json b/api/init.json index 7da5959..e701223 100644 --- a/api/init.json +++ b/api/init.json @@ -21,6 +21,18 @@ "icon": "fa fa-home", "target": "_self", "child": [ + { + "title": "计划申请", + "href": "page/demandPlan/apply_plan_list.html", + "icon": "fa fa-tachometer", + "target": "_self" + }, + { + "title": "计划申请审核", + "href": "page/demandPlan/plan_check_list.html", + "icon": "fa fa-tachometer", + "target": "_self" + }, { "title": "机具公司发货", "href": "page/demandPlan/delivery_list.html", diff --git a/images/demandPlan/progress_icon.png b/images/demandPlan/progress_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..0c60cb01327d9ae5a51f713237db52d046bec6ff GIT binary patch literal 385 zcmV-{0e=38P)Px$J4r-AR9HvFm(dx*APj`lO&rB;qLb(*j&eGQj-v5{e$*0@P{6$O@%~=O1ttI| zB6`j9e5XIu#F_vu9|#6Hj|PbV2O_!=(UIL43GxL9E-(a$h`(GzKo$T2qC3b6Ac1&h z&SMuxHUJ7lb4RiO0fMK352jR291#JM@w_VWunVLJ;DD%ZjSAp|aD!L@(x9>iwy8BH zfMhaaT3R7gN6Y|)pt8bb9dQ8|GQtA00&xR0f>>Hp3&2~G7uTNpI^hNYz!Q<%6;_z~ z76kEhWm`qXX>d6JfW_HHq*vKVHpRxr9vs;mTgR6R1(E zQI{?x+N@Xo@h^~cB`b+H5f)oe2%4tCSpY%2i?9Tc22EGt4L~yMLxfiVL7bP&_{V8@ f89zq9ilYN>r?|NrGoi$y00000NkvXXu0mjfzj~Cf literal 0 HcmV?d00001 diff --git a/js/demandPlan/apply_plan_list.js b/js/demandPlan/apply_plan_list.js new file mode 100644 index 0000000..157c2b2 --- /dev/null +++ b/js/demandPlan/apply_plan_list.js @@ -0,0 +1,210 @@ +let form, table, laydate; +let tableIns; +let pageNum = 1; // 定义分页 +layui.use(["form", "table", 'laydate'], function () { + form = layui.form; + table = layui.table; + laydate = layui.laydate; + laydate.render({ + elem: '#ID-laydate-rangeLinked', + range: ['#startDay', '#endDay'], + rangeLinked: true + }); + initTable(); +}); + +// 查询/重置 +function queryTable(type) { + if (type === 1) { + reloadTable(1); + } else if (type === 2) { + $('#keyWord').val(''); + $('#startDate').val(''); + $('#endDate').val(''); + layui.form.render(); + reloadTable(1); + } +} + +// 刷新页面数据 +function reloadData() { + reloadData(pageNum); +} + +// 重载表格 +function reloadTable(pageNum) { + table.reload("currentTableId", { + page: { + curr: pageNum ? pageNum : 1, + }, + where: { + encryptedData: JSON.stringify({ + 'keyWord': $('#keyWord').val(), + 'startDate': $('#startDate').val(), + 'endDate': $('#endDate').val() + }), + }, + }, + ); +} + +// 初始化表格 +function initTable() { + tableIns = table.render({ + elem: "#currentTableId", + id: 'currentTableId', + headers: { + authorization: sessionStorage.getItem("gz-token"), + }, + height: "full-170", + url: dataUrl + "backstage/partInput/findByPage", + where: { + encryptedData: JSON.stringify({ + 'keyWord': $('#keyWord').val(), + 'startDate': $('#startDate').val(), + 'endDate': $('#endDate').val() + }), + }, + request: { + pageName: 'pageNum', + limitName: 'pageSize' + }, + parseData: function (res) { // res 即为原始返回的数据 + return { + "code": 0, // 解析接口状态 + "msg": '获取成功', // 解析提示文本 + "count": res.total, // 解析数据长度 + "data": res.list // 解析数据列表 + }; + }, + cols: [ + [ + { + width: '6.9%', + title: "序号", + align: "center", + templet: function (d) { + return d.LAY_NUM; + }, + }, + { + field: "code", + width: '15%', + title: "工程名称", + unresize: true, + align: "center", + }, + { + field: "inputUser", + width: '8%', + title: "工程状态", + unresize: true, + align: "center", + templet: function (d) { + return setProStatus('1'); + }, + }, + { + field: "inputNum", + width: '10%', + title: "维修单数量", + unresize: true, + align: "center", + templet: function (d) { + return '1'; + }, + }, + { + field: "allPrice", + width: '10%', + title: "配件领料单数量", + unresize: true, + align: "center", + templet: function (d) { + return '1'; + }, + }, + { + field: "allPrice", + width: '10%', + title: "配件退回单数量", + unresize: true, + align: "center", + templet: function (d) { + return '1'; + }, + }, + { + field: "remark", + width: '15%', + title: "领用/使用/退回配件数量", + unresize: true, + align: "center", + templet: function (d) { + return '

领:2,563

'; + // return '

领:2,563

用:2,000

退:563

'; + }, + + }, + { + field: "remark", + width: '15%', + title: "领用/使用/退回配件金额", + unresize: true, + align: "center", + templet: function (d) { + return '

领:2,563

'; + // return '

领:2,563

用:2,000

退:563

'; + }, + }, + { + title: "操作", + width: '10%', + align: "center", + unresize: true, + templet: function (d) { + let html = ""; + html += "详情"; + return html; + }, + }, + ], + ], + limits: [10, 15, 20, 25, 50, 100], + limit: 10, + page: true, + done: function (res, curr, count) { + pageNum = tableIns.config.page.curr; + table.resize("currentTableId"); + }, + }); +} + +// 导出 +function exportExcel() { + let params = { + 'proName': $('#proName').val(), + 'status': $('#status').val() + } + let url = dataUrl + "backstage/export/exportFhList"; + exportExcelUtil(url, '配件入库数据', JSON.stringify(params)); +} + +// 配件退料详情 +function proCountDetail(obj) { + openIframeByParamObj("pro_count_detail", "详情", "./child/pro_count_detail.html", "92%", "95%", obj); +} + +// 工程状态 +function setProStatus(status) { + if (status === '1') { + return "在建"; + } else if (status === '2') { + return "完工"; + } +} + +// 查询流程 +function showProcess(){ + openIframeByParamObj("show_process", "流程说明", "./child/show_process.html", "70%", "65%", null); +} \ No newline at end of file diff --git a/js/demandPlan/plan_check_list.js b/js/demandPlan/plan_check_list.js new file mode 100644 index 0000000..8cc0154 --- /dev/null +++ b/js/demandPlan/plan_check_list.js @@ -0,0 +1,205 @@ +let form, table, laydate; +let tableIns; +let pageNum = 1; // 定义分页 +layui.use(["form", "table", 'laydate'], function () { + form = layui.form; + table = layui.table; + laydate = layui.laydate; + laydate.render({ + elem: '#ID-laydate-rangeLinked', + range: ['#startDay', '#endDay'], + rangeLinked: true + }); + initTable(); +}); + +// 查询/重置 +function queryTable(type) { + if (type === 1) { + reloadTable(1); + } else if (type === 2) { + $('#keyWord').val(''); + $('#startDate').val(''); + $('#endDate').val(''); + layui.form.render(); + reloadTable(1); + } +} + +// 刷新页面数据 +function reloadData() { + reloadData(pageNum); +} + +// 重载表格 +function reloadTable(pageNum) { + table.reload("currentTableId", { + page: { + curr: pageNum ? pageNum : 1, + }, + where: { + encryptedData: JSON.stringify({ + 'keyWord': $('#keyWord').val(), + 'startDate': $('#startDate').val(), + 'endDate': $('#endDate').val() + }), + }, + }, + ); +} + +// 初始化表格 +function initTable() { + tableIns = table.render({ + elem: "#currentTableId", + id: 'currentTableId', + headers: { + authorization: sessionStorage.getItem("gz-token"), + }, + height: "full-170", + url: dataUrl + "backstage/partInput/findByPage", + where: { + encryptedData: JSON.stringify({ + 'keyWord': $('#keyWord').val(), + 'startDate': $('#startDate').val(), + 'endDate': $('#endDate').val() + }), + }, + request: { + pageName: 'pageNum', + limitName: 'pageSize' + }, + parseData: function (res) { // res 即为原始返回的数据 + return { + "code": 0, // 解析接口状态 + "msg": '获取成功', // 解析提示文本 + "count": res.total, // 解析数据长度 + "data": res.list // 解析数据列表 + }; + }, + cols: [ + [ + { + width: '6.9%', + title: "序号", + align: "center", + templet: function (d) { + return d.LAY_NUM; + }, + }, + { + field: "code", + width: '15%', + title: "工程名称", + unresize: true, + align: "center", + }, + { + field: "inputUser", + width: '8%', + title: "工程状态", + unresize: true, + align: "center", + templet: function (d) { + return setProStatus('1'); + }, + }, + { + field: "inputNum", + width: '10%', + title: "维修单数量", + unresize: true, + align: "center", + templet: function (d) { + return '1'; + }, + }, + { + field: "allPrice", + width: '10%', + title: "配件领料单数量", + unresize: true, + align: "center", + templet: function (d) { + return '1'; + }, + }, + { + field: "allPrice", + width: '10%', + title: "配件退回单数量", + unresize: true, + align: "center", + templet: function (d) { + return '1'; + }, + }, + { + field: "remark", + width: '15%', + title: "领用/使用/退回配件数量", + unresize: true, + align: "center", + templet: function (d) { + return '

领:2,563

'; + // return '

领:2,563

用:2,000

退:563

'; + }, + + }, + { + field: "remark", + width: '15%', + title: "领用/使用/退回配件金额", + unresize: true, + align: "center", + templet: function (d) { + return '

领:2,563

'; + // return '

领:2,563

用:2,000

退:563

'; + }, + }, + { + title: "操作", + width: '10%', + align: "center", + unresize: true, + templet: function (d) { + let html = ""; + html += "详情"; + return html; + }, + }, + ], + ], + limits: [10, 15, 20, 25, 50, 100], + limit: 10, + page: true, + done: function (res, curr, count) { + pageNum = tableIns.config.page.curr; + table.resize("currentTableId"); + }, + }); +} + +// 导出 +function exportExcel() { + let params = { + 'proName': $('#proName').val(), + 'status': $('#status').val() + } + let url = dataUrl + "backstage/export/exportFhList"; + exportExcelUtil(url, '配件入库数据', JSON.stringify(params)); +} + +// 配件退料详情 +function proCountDetail(obj) { + openIframeByParamObj("pro_count_detail", "详情", "./child/pro_count_detail.html", "92%", "95%", obj); +} + +// 工程状态 +function setProStatus(status) { + if (status === '1') { + return "在建"; + } else if (status === '2') { + return "完工"; + } +} \ No newline at end of file diff --git a/page/demandPlan/apply_plan_list.html b/page/demandPlan/apply_plan_list.html new file mode 100644 index 0000000..920a846 --- /dev/null +++ b/page/demandPlan/apply_plan_list.html @@ -0,0 +1,63 @@ + + + + + + 需求计划申请 + + + + + + + + + +
+
+
+ 搜索信息 +
+
+
+
+
+ +
+
+
+ +
+
+ + + + + +
+
+
+
+
+
+
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/page/demandPlan/child/show_process.html b/page/demandPlan/child/show_process.html new file mode 100644 index 0000000..a6a9424 --- /dev/null +++ b/page/demandPlan/child/show_process.html @@ -0,0 +1,86 @@ + + + + + + + 查看审核流程 + + + + +
+
+ 开始 +
+ +
+ 项目部发起申请 +
+ +
+ 分公司审核 +
+ +
+ 项管中心审核 +
+ +
+ 机具公司确认并出库 +
+ +
+ 结束 +
+
+ + + \ No newline at end of file diff --git a/page/demandPlan/plan_check_list.html b/page/demandPlan/plan_check_list.html new file mode 100644 index 0000000..2019cf8 --- /dev/null +++ b/page/demandPlan/plan_check_list.html @@ -0,0 +1,59 @@ + + + + + + 需求计划审核 + + + + + + + + + +
+
+
+ 搜索信息 +
+
+
+
+
+ +
+
+
+ +
+
+ + + +
+
+
+
+
+
+
+
+
+
+ + + + + + + + \ No newline at end of file