| | |
| | | var Khlx = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Khlx))'; |
| | | var HuifangStatus = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.HuifangStatus))'; |
| | | var PingjiaStatus = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.PingjiaStatus))'; |
| | | var Expert = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Expert))'; |
| | | |
| | | |
| | | var Dispatch = [{ code: "1", label: "是" }, { code: "0", label: "否" }]; |
| | | loseherght = 60; |
| | | dataCol = [ |
| | |
| | | { label: '收货地址', name: 'ShrAddress', labtype: 'txt', hidden: false, width: 200 }, |
| | | { label: '联系人', name: 'Shr', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '联系电话', name: 'ShrTel', labtype: 'txt', hidden: false, width: 100 }, |
| | | //{ label: '业务经理', name: 'Youhui', labtype: 'txt', hidden: false, width: 100 }, |
| | | //{ label: '业务经理', name: 'Youhui', labtype: 'txt', hidden: false, width: 100 }, |
| | | { |
| | | label: '派工专家', ExpertId: 'id', labtype: 'txt', hidden: false, width: 100, |
| | | formatter: function (cellvalue, options, rowObject) { |
| | | formatter: function (cellvalue, options, rowObject) { |
| | | if ($.trim(rowObject.ExpertId) !== '') { |
| | | return rowObject.ExpertName; |
| | | } else { |
| | | return '<a href="javascript:void(0)" onclick="ExpertDispatch(\'' + rowObject.OrderId + '\',\'' + rowObject.OrderNo+'\');"> <span style="background: #ECF3FF;"> 派工 </span> </a > '; |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | |
| | | }, |
| | | |
| | | { label: '劳务费(元)', name: 'Money', labtype: 'txt', hidden: false, width: 100 }, |
| | | |
| | | ]; |
| | |
| | | { |
| | | label: '是否派工', name: 'isDispatch', labtype: 'combox', hidden: false, data: Dispatch /*JSON.parse(HuifangStatus)*/, cwidth: '5%', cccwidth: '8%' |
| | | }, |
| | | |
| | | { |
| | | label: '专家', name: 'ExpertId', labtype: 'combox', hidden: false, data: JSON.parse(Expert), cwidth: '5%', cccwidth: '8%' |
| | | }, |
| | | |
| | | |
| | | ]; |
| | | |
| | | |
| | | function ExpertDispatch(orderid, orderNo) { |
| | | OpenWindow("专家派工", "400px", "230px", "/Expert/Dispatch/?orderid=" + orderid); |
| | | OpenWindow("专家派工", "400px", "600px", "/Expert/Dispatch/?orderid=" + orderid); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | var _afterSave = function (result) { |