From 8cfa02d7336c30a1c83e0e831ca1e6aeca10157d Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 23 三月 2022 09:51:32 +0800
Subject: [PATCH] #杰克缝纫机立库 【优化单据管理】

---
 src/main/webapp/static/js/order/order.js |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/main/webapp/static/js/order/order.js b/src/main/webapp/static/js/order/order.js
index 48e11b9..c2ac07a 100644
--- a/src/main/webapp/static/js/order/order.js
+++ b/src/main/webapp/static/js/order/order.js
@@ -12,17 +12,19 @@
 
     // 娓叉煋琛ㄦ牸
     var insTb = table.render({
-        elem: '#waitMatin',
-        url: baseUrl+'/waitMatin/head/page/auth',
+        elem: '#order',
+        url: baseUrl+'/order/head/page/auth',
         headers: {token: localStorage.getItem('token')},
         page: true,
         cellMinWidth: 100,
         cols: [[
             {type: 'numbers'},
-            {field: 'billNo', title: '鍗曟嵁缂栧彿', sort: true},
-            {field: 'billType$', align: 'center', title: '绫诲瀷',  minWidth: 160, width: 160},
+            {field: 'orderNo', title: '鍗曟嵁缂栧彿', sort: true},
+            {field: 'docType$', align: 'center', title: '绫诲瀷',  minWidth: 160, width: 160},
             {align: 'center', title: '鏄庣粏', toolbar: '#tbLook', minWidth: 160, width: 160},
-            {field: 'appeTime$', title: '鍒涘缓鏃堕棿', minWidth: 200, width: 200},
+            {field: 'createTime$', title: '鍒涘缓鏃堕棿', minWidth: 200, width: 200},
+            {field: 'settle$', align: 'center', title: '鐘舵��', templet: '#settleTpl',  minWidth: 160, width: 160},
+            {field: 'memo', align: 'center',title: '澶囨敞', hide: true},
             {align: 'center', title: '鎿嶄綔', toolbar: '#operate', minWidth: 130, width: 130}
         ]],
         request: {
@@ -48,17 +50,17 @@
     });
 
     // 鎼滅储
-    form.on('submit(waitMatinSearch)', function (data) {
+    form.on('submit(tbSearch)', function (data) {
         insTb.reload({where: data.field, page: {curr: 1}});
     });
 
     // 娣诲姞
-    $("#waitMatinAddBtn").click(function () {
+    $("#orderAddBtn").click(function () {
         showEditModel();
     });
 
     // 宸ュ叿鏉$偣鍑讳簨浠�
-    table.on('tool(waitMatin)', function (obj) {
+    table.on('tool(order)', function (obj) {
         var data = obj.data;
         var layEvent = obj.event;
         if (layEvent === 'edit') {

--
Gitblit v1.9.1