LR-20210131IOQH\Administrator
2021-08-10 d4a6d65f5e449c3e5464aa18ae97bf8953987217
zhengcaioa/zhengcaioa/Views/Expert/ExpertOrderDispatch.cshtml
@@ -10,6 +10,9 @@
        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 = [
@@ -26,18 +29,18 @@
            { 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 },
        ];
@@ -52,14 +55,18 @@
            {
                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) {