zhangjq
2026-01-22 e6b749aef5621ab5b79fc2da880c3964302bb009
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
var editPhoneBillFlowVue = new Vue({
    el: "#editPhoneBillFlowModal",
    data: {
        editPhoneBillFlowInfo: {
            id: "",
            deviceNum: "",
            roomNum: "",
            curDegrees: "",
            curReadingTime: ""
        }
    },
    methods: {
        _editPhoneBillFlowMethod: function () {
            var _this = this;
            if (!_this.editPhoneBillFlowInfo.deviceNum) {
                layer.msg("请输入设备编号");
                return;
            }
            if (!_this.editPhoneBillFlowInfo.roomNum) {
                layer.msg("请输入房间编号");
                return;
            }
            if (!_this.editPhoneBillFlowInfo.curDegrees) {
                layer.msg("请输入本期度数");
                return;
            }
            if (!_this.editPhoneBillFlowInfo.curReadingTime) {
                layer.msg("请输入本期读表时间");
                return;
            }
            vc.http.get(
                'phoneMeterManage',
                'update',
                {
                    params: {
                        id: _this.editPhoneBillFlowInfo.id,
                        deviceNum: _this.editPhoneBillFlowInfo.deviceNum,
                        roomNum: _this.editPhoneBillFlowInfo.roomNum,
                        curDegrees: _this.editPhoneBillFlowInfo.curDegrees,
                        curReadingTime: _this.editPhoneBillFlowInfo.curReadingTime
                    }
                },
                function (json, res) {
                    _this.$emit('done', json);
                    $('#editPhoneBillFlowModal').modal('hide');
                },
                function (errInfo, error) {
                    console.log('请求失败处理');
                }
            );
        }
    }
});