jialh
2025-06-25 f2f4bd6cc225cc31a6f5ed8bafe153d901d5fbb1
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
/**
    合同信息 组件
**/
(function (vc) {
 
    vc.extends({
 
        data: {
            contractChangeDetailsInfo: {
                contractDetails: []
 
            }
        },
        _initMethod: function () {
            $that._listContractDetails()
        },
        _initEvent: function () {
 
 
        },
        methods: {
            _listContractDetails: function () {
                var param = {
                    params: {
                        page:1,
                        row:10,
                        contractId:vc.getParam('contractId')
                    }
                };
                //发送get请求
                vc.http.apiGet('/contract/queryContractChangePlanDetail',
                    param,
                    function (json, res) {
                        var _contractChangeManageInfo = JSON.parse(json);
 
                        console.log('666',_contractChangeManageInfo);
                        _contractChangeManageInfo.data.sort(function (_child, _newChild) {
                            return  _newChild.operate.charCodeAt(0) - _child.operate.charCodeAt(0)
                        });
                        vc.component.contractChangeDetailsInfo.contractDetails = _contractChangeManageInfo.data;
 
                        
                    }, function (errInfo, error) {
                        console.log('请求失败处理');
                    }
                );
            },
            _goBack: function () {
                vc.goBack();
            }
        }
    });
 
})(window.vc);