|
|
@@ -586,10 +586,28 @@
|
|
586
|
586
|
//操作
|
|
587
|
587
|
function Dispose(val, row) {
|
|
588
|
588
|
var Rows = row.Buttons;
|
|
589
|
|
- var html = '<a class="xg" onclick="ckxq('+ row.F_WorkOrderId+')" title="查看">查看</a>';
|
|
|
589
|
+ var html = '<a class="xg" onclick="ckxq('+ row.F_WorkOrderId+')" title="查看">查看</a>' +
|
|
|
590
|
+ '<a class="xg" onclick="sendMsg('+ row.F_WorkOrderId+','+row.F_MainDeptId+')" title="发送短信">发送短信</a>';
|
|
590
|
591
|
return html;
|
|
591
|
592
|
}
|
|
592
|
|
-
|
|
|
593
|
+ //发送短信
|
|
|
594
|
+ function sendMsg(wid,depId){
|
|
|
595
|
+ layer.confirm('确定发送短信吗',{
|
|
|
596
|
+ btn:['确定','取消']
|
|
|
597
|
+ },function(){
|
|
|
598
|
+ $.post(huayi.config.callcenter_url + 'WorkOrder/SendSms',{
|
|
|
599
|
+ workordercode:wid,
|
|
|
600
|
+ deptid:depId, //主办单位
|
|
|
601
|
+ type:3,
|
|
|
602
|
+ token: $.cookie("token")
|
|
|
603
|
+ },function(result){
|
|
|
604
|
+ result=JSON.parse(result);
|
|
|
605
|
+ if(result.state.toLowerCase()=='success'){
|
|
|
606
|
+ layer.msg('发送短信成功')
|
|
|
607
|
+ }
|
|
|
608
|
+ })
|
|
|
609
|
+ })
|
|
|
610
|
+ }
|
|
593
|
611
|
//查看详情
|
|
594
|
612
|
function ckxq(str) {
|
|
595
|
613
|
layer.open({
|