From 42a908a0a60b27d016231d062bac08be1b64d3e3 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期五, 12 三月 2021 09:49:35 +0800 Subject: [PATCH] # --- src/main/webapp/views/custOrder/custOrder.html | 16 +++++++++++++++- src/main/webapp/views/allo/allo.html | 20 +++++++++++++++++++- src/main/webapp/views/area/area.html | 13 +++++++++++++ src/main/webapp/static/js/custOrder/custOrder.js | 6 +++--- 4 files changed, 50 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/static/js/custOrder/custOrder.js b/src/main/webapp/static/js/custOrder/custOrder.js index 11fa60f..5ef4824 100644 --- a/src/main/webapp/static/js/custOrder/custOrder.js +++ b/src/main/webapp/static/js/custOrder/custOrder.js @@ -44,11 +44,11 @@ ,{field: 'number', align: 'center',title: '閿�鍞崟鍙�'} ,{field: 'billDate', align: 'center',title: '鍗曟嵁鏃ユ湡'} ,{field: 'btypeId', align: 'center',title: '瀹㈡埛缂栧彿'} - ,{field: 'etypeId', 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: '鍟嗗搧鍗曚环'} - ,{field: 'comment', align: 'center',title: '鍟嗗搧澶囨敞'} + ,{field: 'price', align: 'center',title: '鍟嗗搧鍗曚环', hide: true} + ,{field: 'comment', align: 'center',title: '鍟嗗搧澶囨敞', hide: true} ,{field: 'status$', align: 'center',title: '鐘舵��'} // ,{field: 'createTime$', align: 'center',title: '娣诲姞鏃堕棿'} ,{field: 'updateTime$', align: 'center',title: '淇敼鏃堕棿'} diff --git a/src/main/webapp/views/allo/allo.html b/src/main/webapp/views/allo/allo.html index 1519a40..b8e718a 100644 --- a/src/main/webapp/views/allo/allo.html +++ b/src/main/webapp/views/allo/allo.html @@ -63,6 +63,24 @@ <iframe id="detail-iframe" scrolling="auto" style="display:none;"></iframe> </body> - +<script type="text/template" id="parentNodeGroup"> + <option value="">閫夋嫨搴撳尯</option> + {{#each data}} + <option value="{{this.key}}">{{this.val}}</option> + {{/each}} +</script> +<script type="text/javascript"> + getParentNode(); + function getParentNode(el) { + http.post(baseUrl + "/parent/node/group", {type: 2}, function (res) { + if (res.data != null) { + var tpl = $("#parentNodeGroup").html(); + var template = Handlebars.compile(tpl); + var html = template(res); + $('#parentId').append(html); + } + }); + } +</script> </html> diff --git a/src/main/webapp/views/area/area.html b/src/main/webapp/views/area/area.html index f239ad2..ea781a9 100644 --- a/src/main/webapp/views/area/area.html +++ b/src/main/webapp/views/area/area.html @@ -74,5 +74,18 @@ <option value="{{this.key}}">{{this.val}}</option> {{/each}} </script> +<script type="text/javascript"> + getParentNode(); + function getParentNode(el) { + http.post(baseUrl + "/parent/node/group", {type: 1}, function (res) { + if (res.data != null) { + var tpl = $("#parentNodeGroup").html(); + var template = Handlebars.compile(tpl); + var html = template(res); + $('#parentId').append(html); + } + }); + } +</script> </html> diff --git a/src/main/webapp/views/custOrder/custOrder.html b/src/main/webapp/views/custOrder/custOrder.html index c1e06bc..e92177a 100644 --- a/src/main/webapp/views/custOrder/custOrder.html +++ b/src/main/webapp/views/custOrder/custOrder.html @@ -19,7 +19,21 @@ <input class="layui-input" type="text" name="number" placeholder="閿�鍞崟鍙�" autocomplete="off"> </div> </div> - + <div class="layui-inline"> + <div class="layui-input-inline"> + <input class="layui-input" type="text" name="user_code" placeholder="鍟嗗搧缂栧彿" autocomplete="off"> + </div> + </div> + <div class="layui-inline"> + <div class="layui-input-inline"> + <select name="status"> + <option value="" style="display: none">閫夋嫨鐘舵��</option> + <option value="1">寰呭鐞�</option> + <option value="2">宸插畬鎴�</option> + <option value="3">鍙栨秷</option> + </select> + </div> + </div> <!-- 寰呮坊鍔� --> <div id="data-search-btn" class="layui-btn-container layui-form-item"> <button id="search" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="search">鎼滅储</button> -- Gitblit v1.9.1