safecheck-client 3.0.32-5 → 3.0.32-7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,223 +1,223 @@
1
- <template>
2
- <div class="auto clearfix">
3
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
4
- <div class="col-xs-4 col-sm-4 col-md-4">
5
- <img src="../../assets/户编号.png" style="width: 20px;margin-bottom: 5px" alt="">
6
- <span class="text-left font">客户编号</span>
7
- </div>
8
- <div class="col-xs-8 col-sm-8 col-md-8">
9
- <p class="text-left show-font">{{ model.f_userinfo_code }}</p>
10
- </div>
11
- </div>
12
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
13
- <div class="col-xs-4 col-sm-4 col-md-4">
14
- <img src="../../assets/姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
15
- <span class="text-left font">客户姓名</span>
16
- </div>
17
- <div class="col-xs-8 col-sm-8 col-md-8">
18
- <p class="text-left show-font">{{ model.f_user_name }}</p>
19
- </div>
20
- </div>
21
- <div class="row app-row col-xs-12 col-sm-12 col-md-12">
22
- <div class="col-xs-4 col-sm-2 col-md-2">
23
- <img src="../../assets/地址.png" style="width: 20px;margin-bottom: 5px" alt="">
24
- <span class="text-left font">客户地址</span>
25
- </div>
26
- <div class="col-xs-8 col-sm-10 col-md-10">
27
- <p class="text-left show-font">{{ model.f_address }}</p>
28
- </div>
29
- </div>
30
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
31
- <div class="col-xs-4 col-sm-4 col-md-4">
32
- <img src="../../assets/表类型.png" style="width: 20px;margin-bottom: 5px" alt="">
33
- <span class="text-left font">气表类型</span>
34
- </div>
35
- <div class="col-xs-8 col-sm-8 col-md-8">
36
- <p class="text-left show-font">{{ model.f_meter_classify }}</p>
37
- </div>
38
- </div>
39
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
40
- <div class="col-xs-4 col-sm-4 col-md-4">
41
- <img src="../../assets/表类型.png" style="width: 20px;margin-bottom: 5px" alt="">
42
- <span class="text-left font">气表品牌</span>
43
- </div>
44
- <div class="col-xs-8 col-sm-8 col-md-8">
45
- <p class="text-left show-font">{{ model.f_meter_brand }}</p>
46
- </div>
47
- </div>
48
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
49
- <div class="col-xs-4 col-sm-4 col-md-4">
50
- <img src="../../assets/表号.png" style="width: 20px;margin-bottom: 5px" alt="">
51
- <span class="text-left font">表号</span>
52
- </div>
53
- <div class="col-xs-8 col-sm-8 col-md-8">
54
- <input type="text" class="form-control show-font" v-model="model.f_meternumber" placeholder="请输入表号">
55
- </div>
56
- </div>
57
-
58
- <div class="row app-row col-xs-12 col-sm-6 col-md-6">
59
- <div class="col-xs-4 col-sm-4 col-md-4">
60
- <img src="../../assets/姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
61
- <span class="text-left font">通气人</span>
62
- </div>
63
- <div class="col-xs-8 col-sm-8 col-md-8">
64
- <input type="text" class="form-control show-font" v-model="model.f_gas_person" placeholder="请输入通气人">
65
- </div>
66
- </div>
67
- <div class="row app-row col-xs-12">
68
- <div class="col-xs-4 col-sm-4 col-md-4">
69
- <img src="../../assets/底数.png" style="width: 20px;" alt="">
70
- <span class="text-left font">备注</span>
71
- </div>
72
- <div class="col-xs-8 col-sm-8 col-md-8">
73
- <input class="form-control show-font" v-model="model.f_comments" placeholder="备注">
74
- </div>
75
- </div>
76
- <div class="col-xs-12 text-center app-row">
77
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 22%;" @click="commit()">开通</button>
78
- </div>
79
- </div>
80
- </template>
81
- <script>
82
- import * as Util from '../Util'
83
- import Vue from 'vue'
84
- import {toStandardTimeString} from 'readmeter-client/src/components/Util'
85
-
86
- export default {
87
- title: '物联网表单户开通',
88
- data () {
89
- return {
90
- showpictrue: false,
91
- showd: false,
92
- model: {
93
- f_userinfo_id: '',
94
- f_user_id: '',
95
- f_meternumber: '',
96
- version: '',
97
- f_gas_person: '',
98
- f_user_name: '',
99
- f_balance_amount: '',
100
- f_table_state: '',
101
- f_meter_classify: '',
102
- f_address: '',
103
- f_meter_brand: '',
104
- },
105
- tabname: '在线抄表'
106
- }
107
- },
108
- props: {},
109
- async ready () {
110
- await this.readyInit()
111
- },
112
- methods: {
113
- readyInit () {
114
- this.tabname = this.data.tabname
115
- console.log('-----------------------------------this.tabname', this.tabname)
116
- this.model = Object.assign({}, this.model, this.data)
117
- this.model.f_gas_person=Vue.user.name
118
- },
119
- cameraCallBack (prop, fileName) {
120
- HostApp.__this__.model.f_notified_path = fileName + '?' + Math.random()
121
- HostApp.__callback__ = null
122
- HostApp.__this__ = null
123
- },
124
- // 返回回调函数
125
- goback (val) {
126
- this.$dispatch('backarrdel')
127
- this.$back()
128
- },
129
- async commit () {
130
- if (!this.model.f_gas_person) {
131
- this.$showMessage(`请填写通气人`, ['confirm', 'cancel'])
132
- return
133
- }
134
- let param = {
135
- f_user_id: this.model.f_user_id,
136
- f_userinfo_id: this.model.f_userinfo_id,
137
- f_meternumber: this.model.f_meternumber,
138
- version: this.model.version,
139
- f_table_state: '正常',
140
- f_open_date: Util.toStandardTimeString(),
141
- f_open_person: Vue.user.name,
142
- f_comments: this.model.f_comments,
143
- f_gas_person: this.model.f_gas_person,
144
- f_operat_type: '开通',
145
- f_describe: `${Vue.user.name}对用户${this.model.f_user_name}进行开通操作`,
146
- f_state: '有效',
147
- f_operator: Vue.user.name,
148
- f_filiale: Vue.user.f_fengongsi,
149
- f_outlets: Vue.user.f_parentname,
150
- f_orgstr: Vue.user.orgpathstr,
151
- f_filialeids: Vue.user.f_orgids,
152
- f_user_id: {
153
- f_user_id: this.model.f_user_id,
154
- f_meternumber: this.model.f_meternumber,
155
- version: this.model.version,
156
- f_table_state: '正常',
157
- f_gas_date: Util.toStandardTimeString(),
158
- f_gas_person: this.model.f_gas_person,
159
- f_open_date: Util.toStandardTimeString()
160
- }
161
- }
162
- this.$showMessage(`开通前请确认表号和表类型!!!`, ['confirm', 'cancel']).then((res) => {
163
- if (res === 'confirm') {
164
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_open_meter`, param, {rejectMsg: '开通失败', resolveMsg: '开通成功'}).then(res=>(
165
- this.$back()
166
- ))
167
- }
168
- })
169
-
170
- },
171
-
172
- },
173
- watch: {
174
- 'data' () {
175
- }
176
- }
177
- }
178
- </script>
179
- <style scoped>
180
- .mt-5 {
181
- margin-top: 5px;
182
- }
183
-
184
- .mt-10 {
185
- margin-top: 10px;
186
- }
187
-
188
- .mt-20 {
189
- margin-top: 20px;
190
- }
191
-
192
- .app-row {
193
- background-color: white;
194
- padding: 10px 10px 0 10px;
195
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
196
- }
197
-
198
- .app-row-none-border {
199
- background-color: white;
200
- padding: 10px 10px 0 10px;
201
- }
202
-
203
- .font {
204
- font: 15px PingFang-SC-Medium;
205
- color: #666666;
206
- }
207
-
208
- .show-font {
209
- font: 15px PingFang-SC-Medium;
210
- color: #333333
211
- }
212
-
213
- .btn-font {
214
- font: 600 16px PingFang-SC-Bold;
215
- color: #499EDF;
216
- }
217
-
218
- .btn-color {
219
- background-color: #FFFFFF;
220
- border-radius: 10px;
221
- border: 1px solid #499EDF;
222
- }
223
- </style>
1
+ <template>
2
+ <div class="auto clearfix">
3
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
4
+ <div class="col-xs-4 col-sm-4 col-md-4">
5
+ <img src="../../assets/户编号.png" style="width: 20px;margin-bottom: 5px" alt="">
6
+ <span class="text-left font">客户编号</span>
7
+ </div>
8
+ <div class="col-xs-8 col-sm-8 col-md-8">
9
+ <p class="text-left show-font">{{ model.f_userinfo_code }}</p>
10
+ </div>
11
+ </div>
12
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
13
+ <div class="col-xs-4 col-sm-4 col-md-4">
14
+ <img src="../../assets/姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
15
+ <span class="text-left font">客户姓名</span>
16
+ </div>
17
+ <div class="col-xs-8 col-sm-8 col-md-8">
18
+ <p class="text-left show-font">{{ model.f_user_name }}</p>
19
+ </div>
20
+ </div>
21
+ <div class="row app-row col-xs-12 col-sm-12 col-md-12">
22
+ <div class="col-xs-4 col-sm-2 col-md-2">
23
+ <img src="../../assets/地址.png" style="width: 20px;margin-bottom: 5px" alt="">
24
+ <span class="text-left font">客户地址</span>
25
+ </div>
26
+ <div class="col-xs-8 col-sm-10 col-md-10">
27
+ <p class="text-left show-font">{{ model.f_address }}</p>
28
+ </div>
29
+ </div>
30
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
31
+ <div class="col-xs-4 col-sm-4 col-md-4">
32
+ <img src="../../assets/表类型.png" style="width: 20px;margin-bottom: 5px" alt="">
33
+ <span class="text-left font">气表类型</span>
34
+ </div>
35
+ <div class="col-xs-8 col-sm-8 col-md-8">
36
+ <p class="text-left show-font">{{ model.f_meter_classify }}</p>
37
+ </div>
38
+ </div>
39
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
40
+ <div class="col-xs-4 col-sm-4 col-md-4">
41
+ <img src="../../assets/表类型.png" style="width: 20px;margin-bottom: 5px" alt="">
42
+ <span class="text-left font">气表品牌</span>
43
+ </div>
44
+ <div class="col-xs-8 col-sm-8 col-md-8">
45
+ <p class="text-left show-font">{{ model.f_meter_brand }}</p>
46
+ </div>
47
+ </div>
48
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
49
+ <div class="col-xs-4 col-sm-4 col-md-4">
50
+ <img src="../../assets/表号.png" style="width: 20px;margin-bottom: 5px" alt="">
51
+ <span class="text-left font">表号</span>
52
+ </div>
53
+ <div class="col-xs-8 col-sm-8 col-md-8">
54
+ <input type="text" class="form-control show-font" v-model="model.f_meternumber" placeholder="请输入表号">
55
+ </div>
56
+ </div>
57
+
58
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
59
+ <div class="col-xs-4 col-sm-4 col-md-4">
60
+ <img src="../../assets/姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
61
+ <span class="text-left font">通气人</span>
62
+ </div>
63
+ <div class="col-xs-8 col-sm-8 col-md-8">
64
+ <input type="text" class="form-control show-font" v-model="model.f_gas_person" placeholder="请输入通气人">
65
+ </div>
66
+ </div>
67
+ <div class="row app-row col-xs-12">
68
+ <div class="col-xs-4 col-sm-4 col-md-4">
69
+ <img src="../../assets/底数.png" style="width: 20px;" alt="">
70
+ <span class="text-left font">备注</span>
71
+ </div>
72
+ <div class="col-xs-8 col-sm-8 col-md-8">
73
+ <input class="form-control show-font" v-model="model.f_comments" placeholder="备注">
74
+ </div>
75
+ </div>
76
+ <div class="col-xs-12 text-center app-row">
77
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 22%;" @click="commit()">开通</button>
78
+ </div>
79
+ </div>
80
+ </template>
81
+ <script>
82
+ import * as Util from '../Util'
83
+ import Vue from 'vue'
84
+ import {toStandardTimeString} from 'readmeter-client/src/components/Util'
85
+
86
+ export default {
87
+ title: '物联网表单户开通',
88
+ data () {
89
+ return {
90
+ showpictrue: false,
91
+ showd: false,
92
+ model: {
93
+ f_userinfo_id: '',
94
+ f_user_id: '',
95
+ f_meternumber: '',
96
+ version: '',
97
+ f_gas_person: '',
98
+ f_user_name: '',
99
+ f_balance_amount: '',
100
+ f_table_state: '',
101
+ f_meter_classify: '',
102
+ f_address: '',
103
+ f_meter_brand: '',
104
+ },
105
+ tabname: '在线抄表'
106
+ }
107
+ },
108
+ props: {},
109
+ async ready () {
110
+ await this.readyInit()
111
+ },
112
+ methods: {
113
+ readyInit () {
114
+ this.tabname = this.data.tabname
115
+ console.log('-----------------------------------this.tabname', this.tabname)
116
+ this.model = Object.assign({}, this.model, this.data)
117
+ this.model.f_gas_person=Vue.user.name
118
+ },
119
+ cameraCallBack (prop, fileName) {
120
+ HostApp.__this__.model.f_notified_path = fileName + '?' + Math.random()
121
+ HostApp.__callback__ = null
122
+ HostApp.__this__ = null
123
+ },
124
+ // 返回回调函数
125
+ goback (val) {
126
+ this.$dispatch('backarrdel')
127
+ this.$back()
128
+ },
129
+ async commit () {
130
+ if (!this.model.f_gas_person) {
131
+ this.$showMessage(`请填写通气人`, ['confirm', 'cancel'])
132
+ return
133
+ }
134
+ let param = {
135
+ f_user_id: this.model.f_user_id,
136
+ f_userinfo_id: this.model.f_userinfo_id,
137
+ f_meternumber: this.model.f_meternumber,
138
+ version: this.model.version,
139
+ f_table_state: '正常',
140
+ f_open_date: Util.toStandardTimeString(),
141
+ f_open_person: Vue.user.name,
142
+ f_comments: this.model.f_comments,
143
+ f_gas_person: this.model.f_gas_person,
144
+ f_operat_type: '开通',
145
+ f_describe: `${Vue.user.name}对用户${this.model.f_user_name}进行开通操作`,
146
+ f_state: '有效',
147
+ f_operator: Vue.user.name,
148
+ f_filiale: Vue.user.f_fengongsi,
149
+ f_outlets: Vue.user.f_parentname,
150
+ f_orgstr: Vue.user.orgpathstr,
151
+ f_filialeids: Vue.user.f_orgids,
152
+ f_user_id: {
153
+ f_user_id: this.model.f_user_id,
154
+ f_meternumber: this.model.f_meternumber,
155
+ version: this.model.version,
156
+ f_table_state: '正常',
157
+ f_gas_date: Util.toStandardTimeString(),
158
+ f_gas_person: this.model.f_gas_person,
159
+ f_open_date: Util.toStandardTimeString()
160
+ }
161
+ }
162
+ this.$showMessage(`开通前请确认表号和表类型!!!`, ['confirm', 'cancel']).then((res) => {
163
+ if (res === 'confirm') {
164
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_open_meter`, param, {rejectMsg: '开通失败', resolveMsg: '开通成功'}).then(res=>(
165
+ this.$back()
166
+ ))
167
+ }
168
+ })
169
+
170
+ },
171
+
172
+ },
173
+ watch: {
174
+ 'data' () {
175
+ }
176
+ }
177
+ }
178
+ </script>
179
+ <style scoped>
180
+ .mt-5 {
181
+ margin-top: 5px;
182
+ }
183
+
184
+ .mt-10 {
185
+ margin-top: 10px;
186
+ }
187
+
188
+ .mt-20 {
189
+ margin-top: 20px;
190
+ }
191
+
192
+ .app-row {
193
+ background-color: white;
194
+ padding: 10px 10px 0 10px;
195
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
196
+ }
197
+
198
+ .app-row-none-border {
199
+ background-color: white;
200
+ padding: 10px 10px 0 10px;
201
+ }
202
+
203
+ .font {
204
+ font: 15px PingFang-SC-Medium;
205
+ color: #666666;
206
+ }
207
+
208
+ .show-font {
209
+ font: 15px PingFang-SC-Medium;
210
+ color: #333333
211
+ }
212
+
213
+ .btn-font {
214
+ font: 600 16px PingFang-SC-Bold;
215
+ color: #499EDF;
216
+ }
217
+
218
+ .btn-color {
219
+ background-color: #FFFFFF;
220
+ border-radius: 10px;
221
+ border: 1px solid #499EDF;
222
+ }
223
+ </style>