username@email.com
2021-07-27 072169e3c5446f94e2cf4e570e5c7952bb5b15b9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
@{
    ViewBag.Title = "CooperOrder";
    Layout = "~/Views/Shared/_Layout_Search.cshtml";
}
@section headerStyle{
    <script type="text/javascript">
 
        var Expert = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Expert))';
        var shifou = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.shifou))'; 
        gridConfig = { multiselect: true, selectcol: "Id" };
        //var Dispatch = [{ code: "1", label: "是" }, { code: "0", label: "否" }];
        //loseherght = 60;
        dataCol = [
            { label: 'id', name: 'Id', labtype: 'txt', hidden: true },
            { label: '派单时间', name: 'CreatetimeName', labtype: 'txt', hidden: false, width: 100 },
            {
                label: '订单号', name: 'OrderNo', labtype: 'txt', hidden: false, width: 100 ,
                //formatter: function (cellvalue, options, rowObject) {
                //    return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "')\"  >" + cellvalue + "</a>";
                //}
            },
            { label: '订单类别', name: 'OrderTypeName', labtype: 'txt', hidden: false, width: 100  },
            { label: '客户名称', name: 'KhdwName', labtype: 'txt', hidden: false, width: 100 },
            { 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: '派工专家', ExpertId: 'id', labtype: 'txt', hidden: false, width: 100,
                formatter: function (cellvalue, options, rowObject) {
                  
                        return rowObject.ExpertName;
                   
                }
            },
 
            { label: '劳务费(元)', name: 'Money', labtype: 'txt', hidden: false, width: 100 },
            { label: '是否结算', name: 'sort', labtype: 'txt', hidden: false, width: 100 },
 
        ];
        dataUrl = "/Expert/GetJiesuanList";
        searchCol = [
            { label: '派单时间', name: 'PdTime', labtype: 'datearea', hidden: false, cwidth: '5%', cccwidth: '15%'},
            { label: '订单编号', name: 'OrderNo', labtype: 'txt', hidden: false, cwidth: '5%', cccwidth: '8%' },
            {
                label: '专家', name: 'ExpertId', labtype: 'combox', hidden: false, data: JSON.parse(Expert), cwidth: '5%', cccwidth: '8%'
            },
            {
                label: '是否结算', name: 'Sort', labtype: 'combox', hidden: false, data: JSON.parse(shifou), cwidth: '5%', cccwidth: '8%'
            },
            
        ];
 
        var _pageJiesuan = function () {
            var duanxin = GetGridSelect();
            var baifangid = "";
            if (duanxin != '') {
                for (var i = 0; i < duanxin.length; i++) {
                    baifangid += duanxin[i] + ','
                }
                baifangid = baifangid.substring(0, baifangid.length - 1);
            } else {
                toastr.error("请选择订单");
                return;
            }
            OpenWindow('结算', '98%', '100%', '/Expert/EditJiesuan?id=' + baifangid )    ;
            ///Expert/JiesuanOperate ? id = " + baifangid,
        }
 
 
 
            
 
 
 
 
 
        var _afterSave = function (result) {
            if (result) {
                toastr.success("保存成功");
            } else {
                toastr.error("保存失败");
            }
        }
 
        var _afterDel = function (result) {
            if (result) {
                toastr.success("删除成功");
            } else {
                /**/
                toastr.error("删除成功");
        /**/
    }
}
    </script>
}
 
@section footerScripts{
    <script type="text/javascript">
 
 
 
 
 
    </script>
}