From e0865f9c091fcbc94742d2250a98c0c375e6067f Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 12 三月 2021 09:55:51 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/custOrder/custOrder.html   |   12 ++++++++++++
 src/main/webapp/static/js/custOrder/custOrder.js |    7 ++++---
 2 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/src/main/webapp/static/js/custOrder/custOrder.js b/src/main/webapp/static/js/custOrder/custOrder.js
index 5ef4824..72f8a7d 100644
--- a/src/main/webapp/static/js/custOrder/custOrder.js
+++ b/src/main/webapp/static/js/custOrder/custOrder.js
@@ -42,16 +42,17 @@
             {type: 'checkbox'}
 //            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
             ,{field: 'number', align: 'center',title: '閿�鍞崟鍙�'}
-            ,{field: 'billDate', align: 'center',title: '鍗曟嵁鏃ユ湡'}
+
             ,{field: 'btypeId', align: 'center',title: '瀹㈡埛缂栧彿'}
             ,{field: 'etypeId', align: 'center',title: '缁忔墜浜虹紪鍙�', hide: true}
             ,{field: 'userCode', align: 'center',title: '鍟嗗搧缂栧彿'}
             ,{field: 'qty', align: 'center',title: '鍟嗗搧鏁伴噺'}
             ,{field: 'price', align: 'center',title: '鍟嗗搧鍗曚环', hide: true}
             ,{field: 'comment', align: 'center',title: '鍟嗗搧澶囨敞', hide: true}
-            ,{field: 'status$', align: 'center',title: '鐘舵��'}
+            ,{field: 'status$', align: 'center',title: '鐘舵��', templet: '#statusTpl', width: 100}
+            ,{field: 'billDate', align: 'center',title: '鍗曟嵁鏃ユ湡'}
             // ,{field: 'createTime$', align: 'center',title: '娣诲姞鏃堕棿'}
-            ,{field: 'updateTime$', align: 'center',title: '淇敼鏃堕棿'}
+            ,{field: 'updateTime$', align: 'center',title: '淇敼鏃堕棿', hide: true}
             // ,{field: 'memo', align: 'center',title: '澶囨敞'}
 
             ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width: 120}
diff --git a/src/main/webapp/views/custOrder/custOrder.html b/src/main/webapp/views/custOrder/custOrder.html
index e92177a..08e3988 100644
--- a/src/main/webapp/views/custOrder/custOrder.html
+++ b/src/main/webapp/views/custOrder/custOrder.html
@@ -63,6 +63,18 @@
     {{# } }}
 </script>
 
+<script type="text/html" id="statusTpl">
+    <span name="status"
+          {{# if( d.status === 1){ }}
+          class="layui-badge layui-badge-blue"
+          {{# } else if(d.status === 2){ }}
+          class="layui-badge layui-badge-green"
+          {{# } else if(d.status === 3){ }}
+          class="layui-badge layui-badge-red"
+          {{# } }}
+    >{{d.status$}}</span>
+</script>
+
 <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
 <script type="text/javascript" src="../../static/js/jquery/jQuery.print.js"></script>
 <script type="text/javascript" src="../../static/js/handlebars/handlebars-v4.5.3.js"></script>

--
Gitblit v1.9.1