| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- <!doctype html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>我要投诉</title>
- <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <link href="../css/mui.min.css" rel="stylesheet" />
- <link href="../css/mui.poppicker.css" rel="stylesheet" />
- <link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
- <style>
- .mui-bar-popover {
- width: 30%;
- }
-
- .mui-popover.mui-bar-popover .mui-table-view {
- width: 100%;
- }
-
- .mui-table-view .mui-table-view-cell>a:not(.mui-btn) {
- text-align: center;
- }
-
- .mui-table-view-cell {
- padding: 1px 15px!important;
- }
-
- .san {
- font-size: 14px;
- margin-right: 5px
- }
-
- .nav_a {
- border-right: 1px solid #ccc;
- }
-
- .radio_box {
- display: inline-block;
- }
-
- .mui-radio input[type=radio]:before {
- font-size: 20px;
- vertical-align: middle;
- }
-
- .mui-radio.mui-left input[type=radio] {
- line-height: 24px!important;
- }
-
- .mui-radio.mui-left label {
- padding-right: 1px!important;
- padding-left: 51px!important;
- }
-
- .ztext {
- width: 100%;
- margin: 0;
- border: 0;
- }
-
- .action {
- padding: 5px 15px;
- }
-
- .type_down {
- float: right!important;
- display: inline-block!important;
- vertical-align: middle!important;
- line-height: 42px;
- }
-
- .type_con {
- width: 55%!important;
- float: left!important;
- vertical-align: middle!important;
- display: inline-block!important;
- padding: 10px 0!important;
- }
-
- .label {
- width: 30%!important;
- padding: 11px 0px!important;
- }
-
- .get_yzm {
- padding: 5px!important;
- width: auto!important;
- }
-
- .yzm_con {
- float: left!important;
- width: 40%!important;
- }
-
- .mui-bar-nav {
- background-color: #00a1cb;
- }
-
- .mui-input-row label {
- text-align: -webkit-right;
- }
-
- .mui-btn-block {
- padding: 10px;
- width: 100%;
- }
-
- label {
- font-size: 16px;
- color: #fe6604;
- }
- </style>
- </head>
- <body>
- <header class="mui-bar mui-bar-nav " style="padding-right: 15px;height: 50px;color: #fff;">
- <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
- <h1 class="mui-center mui-title" style="color: #fff;">派单</h1>
- </header>
- <div class="mui-content">
- <ul class="mui-table-view">
- <li class="mui-table-view-cell">
- <div class="mui-input-row">
- <label class="label">调度意见:</label>
- <textarea name="" rows="" cols="" id="DDYJ"></textarea>
- </div>
- </li>
- <li class="mui-table-view-cell" id="showUserPicker">
- <div class="mui-input-row">
- <label class="label">办理时限:</label>
- <input id='demo1' data-options='{"type":"datetime","beginYear":year,"beginMonth":month,"beginDay":day}' type="text" class="mui-input-clear btn contact" />
- </div>
- </li>
- <li class="mui-table-view-cell" id="DW">
- <div class="mui-input-row">
- <label class="label">交办单位:</label>
- <input type="text" id='DWResult' class="ui-alert type_con" data-index="" readonly="readonly" />
- <a href=""><span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
- </div>
- </li>
- </ul>
- <!--<button type="button" class="mui-btn mui-btn-primary mui-btn-block block_button">提交</button>-->
- <div style="padding: 10px;">
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block block_button submit">提交</button>
- </div>
- </div>
- <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/zepto.js"></script>
- <script src="../js/huayi.config.js"></script>
- <script type="text/javascript">
- mui.init({
- swipeBack: false,
- })
- mui.plusReady(function() {
- var year=new Date().getFullYear();
- var month=new Date().getMonth();
- var day=new Date().getDate();
-
- var wv = plus.webview.currentWebview();
- var token = wv.token;
- var isdeals = wv.name;
- var btns = mui('.btn');
- btns.each(function(i, btn) {
- btn.addEventListener('tap', function() {
- var dtPicker = new mui.DtPicker({
- type: "date", //设置日历初始视图模式
- beginDate: new Date(year, month, day),//设置开始日期
-
- });
- dtPicker.show(function(e) {
- $("#demo1").val(e)
- });
- }, false);
- })
- //提交按钮
- $('.submit').on('tap', function() {
- var DDYJ = $("#DDYJ").val();
- var demo1 = $("#demo1").val();
- var DWResult = $("#DWResult").val();
- if(!DDYJ) {
- plus.nativeUI.toast('调度意见不能为空');
- } else if(!demo1) {
- plus.nativeUI.toast('输入办理时限');
- } else if(!DWResult) {
- plus.nativeUI.toast('输入交办单位');
- } else {
- var btnArray = ['取消', '确定'];
- mui.confirm('是否交办工单', '提示', btnArray, function(e) {
- if(e.index == 1) {
- mui.ajax(huayi.config.callcenter_url + 'WorkOrder/SplitWorkOrder', {
- data: {
- workorderid: isdeals,
- maindeptid: $("#DWResult").attr('data-index'), //单位
- limittime: $("#demo1").val(), //办理时限
- assignedopinion: $("#DDYJ").val(), //交办意见
- state: 1,
- token: token
- },
- dataType: 'json', //服务器返回json格式数据
- type: 'post', //HTTP请求类型
- timeout: 10000, //超时时间设置为10秒;
- success: function(data) {
- plus.nativeUI.toast('成功');
- $("#DDYJ").val('');
- $("#demo1").val('');
- $("#DWResult").val('');
- var wobj = plus.webview.getWebviewById("Work-listDCL");
- wobj.reload(true);
- },
- error: function(xhr, type, errorThrown) {
- plus.nativeUI.toast('失败');
- }
- });
- } else {
- plus.nativeUI.toast('取消申请');
- }
- })
- }
- })
- //交办单位
- var dwList;
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + 'Department/GetDeptListtree',
- async: false,
- data: {
- token: token
- },
- dataType: 'json',
- success: function(data) {
- console.log(data)
- dwList = data.data;
- alert(data);
- }
- });
- function Submit() {
- mui.alert('64');
- }
- (function($, doc) {
- $.init();
- $.ready(function() {
- //交办单位
- var ZTiPickers = new $.PopPicker({
- layer: 3
- });
- ZTiPickers.setData(dwList);
- var ZXs = doc.getElementById('DW');
- var ZXResults = doc.getElementById('DWResult');
- ZXs.addEventListener('tap', function(event) {
- ZTiPickers.show(function(items) {
- console.log(items)
- ZXResults.value = items[2].text;
- ZXResults.setAttribute("data-index", items[2].id);
- //返回 false 可以阻止选择框的关闭
- //return false;
- });
- }, false);
- })
- })(mui, document);
- });
- </script>
- </body>
- </html>
|