From 9fe35e2394ea32269957328342bba12442986df5 Mon Sep 17 00:00:00 2001 From: YYC <1833023622@qq.com> Date: 星期二, 16 五月 2023 16:30:07 +0800 Subject: [PATCH] 工单管理 --- igds-app/work-apply.html | 195 +----------------------------------------------- 1 files changed, 7 insertions(+), 188 deletions(-) diff --git a/igds-app/work-apply.html b/igds-app/work-apply.html index 8923cb4..89c4aab 100644 --- a/igds-app/work-apply.html +++ b/igds-app/work-apply.html @@ -74,7 +74,8 @@ </div> </div> - <input type="submit" value="鎻愪氦" class="submit" /> + <!-- <input type="submit" value="鎻愪氦" class="submit"/> --> + <div type="submit" class="submit">鎻愪氦</div> </div> </form> @@ -86,197 +87,15 @@ <script src="./js/mui.min.js"></script> <script src="./js/mui.poppicker.js"></script> <script src="./js/mui.picker.min.js"></script> + <script src="./js/admin/work-apply.js"></script> <script src="./js/jquery.js"></script> <script type="text/javascript" charset="utf-8"> mui.init(); - mui('.mui-scroll-wrapper').scroll({ - indicators: false, //鏄惁鏄剧ず婊氬姩鏉� - deceleration: 0.0006, //闃诲凹绯绘暟,绯绘暟瓒婂皬婊戝姩瓒婄伒鏁� - bounce: false, //鏄惁鍚敤鍥炲脊 - deceleration: 0.0005 //flick 鍑忛�熺郴鏁帮紝绯绘暟瓒婂ぇ锛屾粴鍔ㄩ�熷害瓒婃參锛屾粴鍔ㄨ窛绂昏秺灏忥紝榛樿鍊�0.0006 - }); - - function chooseDate() { - var dtpicker = new mui.DtPicker({ - type: "date", //璁剧疆鏃ュ巻鍒濆瑙嗗浘妯″紡 - // beginDate: new Date(2015, 04, 25), //璁剧疆寮�濮嬫棩鏈� - // endDate: new Date(2016, 04, 25), //璁剧疆缁撴潫鏃ユ湡 - - }) - dtpicker.show(function(e) { - var date_el = document.getElementById("date1-val") - date_el.innerText = e.value - jQuery(date_el).prev().hide() - }) - } - - function chooseDate1() { - var dtpicker = new mui.DtPicker({ - type: "date", //璁剧疆鏃ュ巻鍒濆瑙嗗浘妯″紡 - // beginDate: new Date(2015, 04, 25), //璁剧疆寮�濮嬫棩鏈� - // endDate: new Date(2016, 04, 25), //璁剧疆缁撴潫鏃ユ湡 - - }) - dtpicker.show(function(e) { - var date_el = document.getElementById("date2-val") - date_el.innerText = e.value - jQuery(date_el).prev().hide() - }) - } - - (function($, doc) { - $.init(); - $.ready(function() { - /** - * 鑾峰彇瀵硅薄灞炴�х殑鍊� - * 涓昏鐢ㄤ簬杩囨护涓夌骇鑱斿姩涓紝鍙兘鍑虹幇鐨勬渶浣庣骇鐨勬暟鎹笉瀛樺湪鐨勬儏鍐碉紝瀹為檯寮�鍙戜腑闇�瑕佹敞鎰忚繖涓�鐐癸紱 - * @param {Object} obj 瀵硅薄 - * @param {String} param 灞炴�у悕 - */ - var _getParam = function(obj, param) { - return obj[param] || ''; - }; - //鏅�氱ず渚� - var userPicker = new $.PopPicker(); - userPicker.setData([{ - value: 'ywj', - text: '钁d簨闀� 鍙舵枃娲�' - }, { - value: 'aaa', - text: '鎬荤粡鐞� 鑹続A' - }, { - value: 'lj', - text: '缃楄緫' - }, { - value: 'ymt', - text: '浜戝ぉ鏄�' - }, { - value: 'shq', - text: '鍙插己' - }, { - value: 'zhbh', - text: '绔犲寳娴�' - }, { - value: 'zhy', - text: '搴勯' - }, { - value: 'gyf', - text: '鍏充竴甯�' - }, { - value: 'zhz', - text: '鏅哄瓙' - }, { - value: 'gezh', - text: '姝岃��' - }]); - var showUserPickerButton = doc.getElementById('ywlx'); - var userResult = doc.getElementById('ywlx-val'); - showUserPickerButton.addEventListener('tap', function(event) { - userPicker.show(function(items) { - // userResult.innerText = JSON.stringify(items[0]); - userResult.innerText = items[0].text; - // userResult.previousSibling.style.display="none" - jQuery(userResult).prev().hide() - //杩斿洖 false 鍙互闃绘閫夋嫨妗嗙殑鍏抽棴 - //return false; - }); - }, false); - //----------------------------------------- - //鎵�灞炲垎搴�: - var picker1 = new $.PopPicker(); - picker1.setData([{ - value: 'ywj', - text: '钁d簨闀� 鍙舵枃娲�' - }, { - value: 'aaa', - text: '鎬荤粡鐞� 鑹続A' - }, { - value: 'lj', - text: '缃楄緫' - }, { - value: 'ymt', - text: '浜戝ぉ鏄�' - }, { - value: 'shq', - text: '鍙插己' - }, { - value: 'zhbh', - text: '绔犲寳娴�' - }, { - value: 'zhy', - text: '搴勯' - }, { - value: 'gyf', - text: '鍏充竴甯�' - }, { - value: 'zhz', - text: '鏅哄瓙' - }, { - value: 'gezh', - text: '姝岃��' - }]); - var showPicker1Button = doc.getElementById('ssfk'); - var picker1Result = doc.getElementById('ssfk-val'); - showPicker1Button.addEventListener('tap', function(event) { - picker1.show(function(items) { - // userResult.innerText = JSON.stringify(items[0]); - picker1Result.innerText = items[0].text; - // userResult.previousSibling.style.display="none" - jQuery(picker1Result).prev().hide() - //杩斿洖 false 鍙互闃绘閫夋嫨妗嗙殑鍏抽棴 - //return false; - }); - }, false); - //----------------------------------------- - //鍏宠仈浠撳簱: - var picker2 = new $.PopPicker(); - picker2.setData([{ - value: 'ywj', - text: '钁d簨闀� 鍙舵枃娲�' - }, { - value: 'aaa', - text: '鎬荤粡鐞� 鑹続A' - }, { - value: 'lj', - text: '缃楄緫' - }, { - value: 'ymt', - text: '浜戝ぉ鏄�' - }, { - value: 'shq', - text: '鍙插己' - }, { - value: 'zhbh', - text: '绔犲寳娴�' - }, { - value: 'zhy', - text: '搴勯' - }, { - value: 'gyf', - text: '鍏充竴甯�' - }, { - value: 'zhz', - text: '鏅哄瓙' - }, { - value: 'gezh', - text: '姝岃��' - }]); - var showPicker2Button = doc.getElementById('glck'); - var picker2Result = doc.getElementById('glck-val'); - showPicker2Button.addEventListener('tap', function(event) { - picker2.show(function(items) { - // userResult.innerText = JSON.stringify(items[0]); - picker2Result.innerText = items[0].text; - // userResult.previousSibling.style.display="none" - jQuery(picker2Result).prev().hide() - //杩斿洖 false 鍙互闃绘閫夋嫨妗嗙殑鍏抽棴 - //return false; - }); - }, false); - - }); - })(mui, document); + mui.plusReady(function(){ + init(); + }) + </script> </html> -- Gitblit v1.9.3