From e44bb1a95ca5e383dff5f3daa8812b49096e079b Mon Sep 17 00:00:00 2001
From: 王佳豪 <g675230687@126.com>
Date: 星期六, 19 六月 2021 15:57:43 +0800
Subject: [PATCH] 销售订单列优化

---
 src/main/webapp/views/salesOrder/salesOrder.html    |    3 +++
 src/main/webapp/static/js/salesOrder/salsesOrder.js |   29 ++++++++++++++---------------
 2 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/src/main/webapp/static/js/salesOrder/salsesOrder.js b/src/main/webapp/static/js/salesOrder/salsesOrder.js
index 73c37b9..bdc5f19 100644
--- a/src/main/webapp/static/js/salesOrder/salsesOrder.js
+++ b/src/main/webapp/static/js/salesOrder/salsesOrder.js
@@ -4,18 +4,20 @@
 function getCol() {
     var cols = [];
     cols.push(
-        {field: 'orderCode', align: 'center', title: '璁㈠崟缂栧彿', width: 120}
-        , {field: 'orderDate', align: 'center', title: '璁㈠崟鏃ユ湡', width: 140}
-        , {field: 'invCode', align: 'center', title: '鐗╂枡缂栫爜', width: 140}
+        {field: 'orderCode', align: 'center', title: '璁㈠崟缂栧彿', width: 110}
+        , {field: 'orderDate', align: 'center', title: '璁㈠崟鏃ユ湡', width: 120}
+        , {field: 'invCode', align: 'center', title: '鐗╂枡缂栫爜', width: 130}
         , {field: 'invName', align: 'center', title: '鐗╂枡鍚嶇О', width: 350}
-        , {field: 'invStd', align: 'center', title: '瑙勬牸鍨嬪彿', width: 180}
-        , {field: 'invUnit', align: 'center', title: '鍗曚綅', width: 80}
+        , {field: 'invStd', align: 'center', title: '瑙勬牸鍨嬪彿', width: 160}
+        , {field: 'invUnit', align: 'center', title: '鍗曚綅', width: 80, hide: true}
         , {field: 'orderQty', align: 'center', title: '璁㈠崟鏁伴噺', width: 120}
-        , {field: 'outQty', align: 'center', title: '鍙戣揣鏁伴噺', width: 120}
-        , {field: 'izMrp', align: 'center', title: '鏄惁mrp璁$畻', hide: true}
-        , {field: 'inQty', align: 'center', title: '浜ф垚鍝佸叆搴撴暟閲�', width: 140}
-        , {field: 'productQty', align: 'center', title: '鐢熶骇浠诲姟鍗曟暟閲�', width: 140}
-        , {field: 'izReceive', align: 'center', title: '鏄惁鏀舵枡', hide: true}
+        , {field: 'izMrp', align: 'center', title: '澶ц鍗�(mrp)',width: 115}
+        , {field: 'productQty', align: 'center', title: '浠诲姟鍗�', width: 110}
+        , {field: 'izReceive', align: 'center', title: '灏忚鍗�', width: 80}
+        , {field: 'inQty', align: 'center', title: '鍏ュ簱鏁伴噺', width: 110}
+        , {field: 'disQty', align: 'center', title: '閫氱煡鍗�', width: 110}
+        , {field: 'outQty', align: 'center', title: '鍑哄簱鏁伴噺', width: 110}
+
     );
     return cols;
 }
@@ -33,11 +35,8 @@
         elem: '#salesOrder',
         headers: {token: localStorage.getItem('token')},
         url: 'http://192.168.0.253:8073/api/report/getorderreport',
-        // where: {
-        //     orderCode: 'NX5288',
-        //     startTime: '2021-01-01',
-        //     endTime: '2021-01-01',
-        // },
+        height: 650,
+        width: '100%',
         page: true,
         limit: limit,
         limits: [16, 50, 100, 200, 500],
diff --git a/src/main/webapp/views/salesOrder/salesOrder.html b/src/main/webapp/views/salesOrder/salesOrder.html
index d22ef30..85996cc 100644
--- a/src/main/webapp/views/salesOrder/salesOrder.html
+++ b/src/main/webapp/views/salesOrder/salesOrder.html
@@ -36,6 +36,9 @@
     #layui-laydate1 {
         width: 300px;
     }
+    .layui-table-body.layui-table-main{
+        overflow: auto;
+    }
 </style>
 <body>
 

--
Gitblit v1.9.1