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