wuxw
2019-12-01 8d3d8bd23d2835806488ac8207c9bb9c601ee25a
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
(function (vc, vm) {
 
    vc.extends({
        data: {
            machineRecordDetailInfo: {
                machineRecordId: '',
                machineCode: '',
                machineId: '',
                name: '',
                openTypeCd: '',
                tel: '',
                idCard: '',
            }
        },
        _initMethod: function () {
 
        },
        _initEvent: function () {
            vc.on('machineRecordDetail', 'openMachineRecordDetailModal', function (_params) {
                vc.component.refreshEditMachineRecordInfo();
                $('#editMachineRecordModel').modal('show');
                vc.copyObject(_params, vc.component.machineRecordDetailInfo);
                vc.component.machineRecordDetailInfo.communityId = vc.getCurrentCommunity().communityId;
            });
        },
        methods: {
            refreshEditMachineRecordInfo: function () {
                vc.component.machineRecordDetailInfo = {
                    machineRecordId: '',
                    machineCode: '',
                    machineId: '',
                    name: '',
                    openTypeCd: '',
                    tel: '',
                    idCard: '',
 
                }
            }
        }
    });
 
})(window.vc, window.vc.component);