From 641de82a0458ab5ba66b5e735895caad26708fa8 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 12 四月 2021 11:24:56 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/ioWorks/matQuery.js |   74 ++++++++++++++++++++++++++++++++++++-
 1 files changed, 72 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/static/js/ioWorks/matQuery.js b/src/main/webapp/static/js/ioWorks/matQuery.js
index 4fcf307..1fb11d4 100644
--- a/src/main/webapp/static/js/ioWorks/matQuery.js
+++ b/src/main/webapp/static/js/ioWorks/matQuery.js
@@ -19,6 +19,7 @@
     var layer = layui.layer;
     var form = layui.form;
     var notice = layui.notice;
+    var layDate = layui.laydate;
 
     tableIns = table.render({
         elem: '#chooseData',
@@ -61,16 +62,79 @@
                             return false;
                         }
                     }
+                    var index = layer.load(1, {shade: [0.1,'#000']});
+                    // 鍗曟嵁绫诲瀷
+                    var docTypeData;
+                    $.ajax({
+                        url: baseUrl+"/work/docType/all/get",
+                        headers: {'token': localStorage.getItem('token')},
+                        method: 'POST',
+                        async: false,
+                        success: function (res) {
+                            if (res.code === 200){
+                                docTypeData = res;
+                            } else {
+                                layer.msg(res.msg, {icon: 2})
+                            }
+                        }
+                    });
+                    var tpl1 = $('#docTypeSelectTpl').html();
+                    var template1 = Handlebars.compile(tpl1);
+                    var html1 = template1(docTypeData);
+                    $("#docType").html(html1);
+
+                    // 瀹㈡埛
+                    var cstmrData;
+                    $.ajax({
+                        url: baseUrl+"/work/cstmr/all/get",
+                        headers: {'token': localStorage.getItem('token')},
+                        method: 'POST',
+                        async: false,
+                        success: function (res) {
+                            if (res.code === 200){
+                                cstmrData = res;
+                            } else {
+                                layer.msg(res.msg, {icon: 2})
+                            }
+                        }
+                    });
+                    var tpl2 = $('#cstmrSelectTpl').html();
+                    var template2 = Handlebars.compile(tpl2);
+                    var html2 = template2(cstmrData);
+                    $("#cstmr").html(html2);
+
+                    // 椤圭洰
+                    var itemData;
+                    $.ajax({
+                        url: baseUrl+"/work/item/all/get",
+                        headers: {'token': localStorage.getItem('token')},
+                        method: 'POST',
+                        async: false,
+                        success: function (res) {
+                            if (res.code === 200){
+                                itemData = res;
+                            } else {
+                                layer.msg(res.msg, {icon: 2})
+                            }
+                        }
+                    });
+                    var tpl3 = $('#itemSelectTpl').html();
+                    var template3 = Handlebars.compile(tpl3);
+                    var html3 = template3(itemData);
+                    $("#item").html(html3);
+
+                    layer.close(index);
                     if (success) {
                         layer.open({
                             type: 1,
-                            title: '瀹氫箟閲囪喘閫�璐у崟缂栧彿',
+                            title: '鍗曟嵁濉厖',
                             offset: '100px',
                             area: ['360px'],
                             shade: 0.1,
                             content: $('#getOrderNo'),
                             success: function(layero, index){
-                                layer.iframeAuto(index)
+                                layer.iframeAuto(index);
+                                layui.form.render('select');
                             },
                             cancel: function () {
                                 $('#orderNo').val('');
@@ -172,6 +236,12 @@
         }});
     }
 
+    layDate.render({
+        elem: '#orderTime',
+        trigger: 'click',
+        type: 'date'
+    });
+
 })
 
 // 鎻愬彇鐗╂枡

--
Gitblit v1.9.1