| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>历史工单管理</title>
- <script src="../../Script/Common/huayi.load.js"></script>
- <script src="../../Script/Common/huayi.config.js"></script>
- <link href="../../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
- <link rel="stylesheet" href="../css/call.css" />
- </head>
- <body>
- <div class="container greetings" style="overflow: hidden;">
- <ul class="row clearfix form-horizontal">
- <li class="form-group clearfix">
- <label for="workRemark" class="col-sm-2" class="consult">处理结果:</label>
- <div class="col-sm-10">
- <textarea id="order_detal" rows="3" cols="20" class="form-control" placeholder="请输入处理结果"></textarea>
- </div>
- </li>
- </ul>
- <div class="form-group clearfix row">
- <div class="col-sm-offset-2">
- <button class="btn sc_btn col-sm-2" id="work_time_btn_save" type="button">保存</button>
- </div>
- </div>
- </div>
- </body>
- <script src="../../js/autosize/autosize.min.js"></script>
- <script src="../../js/bootstrap-select/js/bootstrap-select.js"></script>
- <script src="../../js/bootstrap-select/js/i18n/defaults-zh_CN.js"></script>
- <script type="text/javascript">
- var id = helper.request.queryString("id");
- var type = helper.request.queryString("type");
- let wodetype; //工单状态
- let deptname; //科室名称
- let coustomname; //客户姓名
- let phoneinfo; //联系方式
- let centerinfo; //内容
- let jsdeptname; //接受部门
- let jspeople; //接收人员
- let memoinfo; //备注
- let createdate; //创建时间
- let centerinfotype;//投诉类型
- let jspeopleusercode;
- //详情
- getDetial(id)
- $('#work_time_btn_save').click(function(){
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/upcallcometpwode",
- dataType: 'json',
- async: true,
- data: {
- id: id,
- wodetype: wodetype,
- deptname: deptname,
- coustomname: coustomname,
- phoneinfo: phoneinfo,
- centerinfo: centerinfo,
- memoinfo: memoinfo,
- jspeople: jspeople,
- jsdeptname: jsdeptname,
- jspeopleusercode:jspeopleusercode,
- centerinfotype:centerinfotype,
- resultmassage : $('#order_detal').val()
- },
- success: function(res) {
- if(res.state.toLowerCase() === "success") {
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- layer.msg("处理成功");
- console.log(type)
- parent.initTable(type)
- }
- }
- })
- })
- function getDetial(id) {
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/getcallcometpwodebyid",
- dataType: 'json',
- async: false,
- data: {
- id: id
- },
- success: function(res) {
- wodetype = res.data[0].wodetype
- deptname = res.data[0].deptname; //科室名称
- coustomname = res.data[0].coustomname; //客户姓名
- phoneinfo = res.data[0].phoneinfo; //联系方式
- centerinfo = res.data[0].centerinfo; //内容
- jsdeptname = res.data[0].jsdeptname; //接受部门
- jspeople = res.data[0].jspeople; //接收人员
- memoinfo = res.data[0].memoinfo; //备注
- createdate = res.data[0].createdate; //创建时间
- jspeopleusercode = res.data[0].jspeopleusercode
- centerinfotype = res.data[0].centerinfotype
- }
- })
- }
- //编辑
- // function saveWorkOrder(dataInfo,type) {
- // $.ajax({
- // type: "get",
- // url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/upcallcometpwode",
- // dataType: 'json',
- // async: true,
- // data: {
- // id: id,
- // wodetype: wodetype,
- // deptname: deptname,
- // coustomname: coustomname,
- // phoneinfo: phoneinfo,
- // centerinfo: centerinfo,
- // memoinfo: memoinfo,
- // jspeople: jspeople,
- // jsdeptname: jsdeptname,
- // jspeopleusercode:jspeopleusercode,
- // centerinfotype:centerinfotype,
- // resultmassage : $('#order_detal').val()
- // },
- // success: function(res) {
- // if(res.state.toLowerCase() === "success") {
- // var index = parent.layer.getFrameIndex(window.name);
- // parent.layer.close(index);
- // layer.msg("处理成功");
- // parent.initTable(type)
- // }
- // }
- // })
- // }
- </script>
- </html>
|