telephone-clients 3.0.104-76 → 3.0.104-78
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.
- package/package.json +1 -1
- package/src/components/workorder/RepairDetails.vue +1 -1
- package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +102 -119
- package/src/filiale/yuncheng/android/RepairOrderV.vue +1489 -0
- package/src/filiale/yuncheng/android/RepairUserInfo.vue +382 -0
- package/src/filiale/yuncheng/android/ZHihuanFirst.vue +541 -0
- package/src/filiale/yuncheng/pc/DistributeWork.vue +199 -0
- package/src/filiale/yuncheng/pc/GasWork.vue +773 -0
- package/src/filiale/yuncheng/telephone.js +16 -14
- package/src/filiale/yuncheng/telephoneAndroid.js +1 -0
- package/src/main.js +1 -1
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
></datepicker>
|
|
31
31
|
<input v-show="ischecked == '有'" type="text" class="form-control" v-model="row.f_content" v-if="!show && row.type == 'string' && row.f_project.indexOf('表号') == -1" :disabled="(!(ischecked == '有')) || issee" :readonly="issee">
|
|
32
32
|
<input v-show="ischecked == '有'" type="text" class="form-control" v-model="row.f_content" v-if="!show && row.type == 'string' && row.f_project.indexOf('表号') != -1 " :disabled="(!(ischecked == '有')) || issee" :readonly="issee" >
|
|
33
|
-
<button v-show="ischecked == '有'" type="button" name="button" class="btn btn-primary" @click="scan(row.f_project)" v-if="!show && row.f_project.indexOf('表号') != -1 ">扫码</button>
|
|
33
|
+
<button v-show="ischecked == '有'" type="button" name="button" class="btn btn-primary" @click="scan(row.f_project)" v-if="!show && row.f_project.indexOf('表号') != -1 && row.f_project.indexOf('拍照') == -1">扫码</button>
|
|
34
34
|
<v-select v-show="ischecked == '有'"
|
|
35
35
|
:value.sync="row.f_content"
|
|
36
36
|
:options='getOptions(row.f_project)'
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
<div class="panel-body " id="upuserinfo_sel" v-show="headername == '基本信息'">
|
|
12
12
|
<div class="row auto" style="margin: 5px 0">
|
|
13
13
|
<labe class="righttxt">用户编号:</labe>
|
|
14
|
-
<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_userinfo_code" readonly
|
|
14
|
+
<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_userinfo_code" readonly/>
|
|
15
15
|
</div>
|
|
16
16
|
<div class="row auto" style="margin: 5px 0">
|
|
17
17
|
<labe class="righttxt">用户名称:</labe>
|
|
18
|
-
<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_name" readonly
|
|
18
|
+
<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_name" readonly/>
|
|
19
19
|
</div>
|
|
20
20
|
<div class="row auto" style="margin: 5px 0">
|
|
21
21
|
<labe class="righttxt">身份证号:</labe>
|
|
22
|
-
<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_idnumber"
|
|
22
|
+
<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_idnumber"/>
|
|
23
23
|
</div>
|
|
24
24
|
<div class="row auto" style="margin: 5px 0">
|
|
25
25
|
<labe class="righttxt">用户状态:</labe>
|
|
@@ -27,37 +27,38 @@
|
|
|
27
27
|
<!-- :width="'60%'"-->
|
|
28
28
|
<!-- v-model="userinfo.baseinfo.base.f_user_state"-->
|
|
29
29
|
<!-- :options='userTypes' placeholder='用户状态' close-on-select clear-button value-single></v-select>-->
|
|
30
|
-
<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_state" readonly
|
|
30
|
+
<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_state" readonly/>
|
|
31
31
|
</div>
|
|
32
32
|
<div class="row auto" style="margin: 5px 0">
|
|
33
33
|
<labe class="righttxt">用户电话:</labe>
|
|
34
|
-
<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_phone"
|
|
34
|
+
<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_phone"/>
|
|
35
35
|
</div>
|
|
36
36
|
<div class="row auto" style="margin: 5px 0">
|
|
37
37
|
<labe class="righttxt">合同日期:</labe>
|
|
38
38
|
<datepicker class="rightipt" :value.sync="userinfo.baseinfo.base.f_contractdate"
|
|
39
|
-
v-model="userinfo.baseinfo.base.f_contractdate" :disabled-days-of-Week="[]"
|
|
39
|
+
v-model="userinfo.baseinfo.base.f_contractdate" :disabled-days-of-Week="[]"
|
|
40
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
40
41
|
:show-reset-button="reset" readonly="readonly">
|
|
41
42
|
</datepicker>
|
|
42
43
|
<!-- <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_contractdate" />-->
|
|
43
44
|
</div>
|
|
44
45
|
<div class="row auto" style="margin: 5px 0">
|
|
45
46
|
<labe class="righttxt">租户姓名:</labe>
|
|
46
|
-
<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_rent_name"
|
|
47
|
+
<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_rent_name"/>
|
|
47
48
|
</div>
|
|
48
49
|
<div class="row auto" style="margin: 5px 0">
|
|
49
50
|
<labe class="righttxt">租户电话:</labe>
|
|
50
|
-
<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_zuhu_phone"
|
|
51
|
+
<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_zuhu_phone"/>
|
|
51
52
|
</div>
|
|
52
53
|
<div class="row auto" style="margin: 5px 0">
|
|
53
54
|
<labe class="righttxt">地址类型:</labe>
|
|
54
55
|
<div class="rightipt" style="display: flex;justify-content: space-around;margin-top: 5px">
|
|
55
56
|
<div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType"
|
|
56
|
-
id="phone_addressType1" value="普通地址"
|
|
57
|
-
|
|
57
|
+
id="phone_addressType1" value="普通地址"/><label style="font-weight: normal;padding-left: 2px"
|
|
58
|
+
for="phone_addressType1">普通地址</label></div>
|
|
58
59
|
<div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType"
|
|
59
|
-
id="phone_addressType2" value="特殊地址"
|
|
60
|
-
|
|
60
|
+
id="phone_addressType2" value="特殊地址"/><label style="font-weight: normal;padding-left: 2px"
|
|
61
|
+
for="phone_addressType2">特殊地址</label></div>
|
|
61
62
|
</div>
|
|
62
63
|
<!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
|
|
63
64
|
<!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
|
|
@@ -69,7 +70,7 @@
|
|
|
69
70
|
<div class="row auto" style="margin: 5px 0">
|
|
70
71
|
<labe class="righttxt">地区类型:</labe>
|
|
71
72
|
<!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
|
|
72
|
-
<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity"
|
|
73
|
+
<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity"/>
|
|
73
74
|
<!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
|
|
74
75
|
:width="'60%'"
|
|
75
76
|
:disabled="true"
|
|
@@ -80,7 +81,8 @@
|
|
|
80
81
|
<labe class="righttxt">省 市 区:</labe>
|
|
81
82
|
<!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
|
|
82
83
|
<!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
|
|
83
|
-
<v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;" :width="'60%'"
|
|
84
|
+
<v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;" :width="'60%'"
|
|
85
|
+
v-model="selectPcd"
|
|
84
86
|
:options='pcds' placeholder='请选择省市区' close-on-select clear-button value-single
|
|
85
87
|
@change="pcd_change()"></v-select>
|
|
86
88
|
</div>
|
|
@@ -88,7 +90,8 @@
|
|
|
88
90
|
<labe class="righttxt">街道名称:</labe>
|
|
89
91
|
<!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_street" />-->
|
|
90
92
|
<v-select :value.sync="selectStreet" class="input-font" style="margin-left: 5%;" :width="'60%'"
|
|
91
|
-
v-model="selectStreet" :options='streets' placeholder='请选择街道' close-on-select clear-button
|
|
93
|
+
v-model="selectStreet" :options='streets' placeholder='请选择街道' close-on-select clear-button
|
|
94
|
+
value-single
|
|
92
95
|
@change="street_change()"></v-select>
|
|
93
96
|
</div>
|
|
94
97
|
<div class="row auto" style="margin: 5px 0">
|
|
@@ -110,26 +113,26 @@
|
|
|
110
113
|
<div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
|
|
111
114
|
<labe class="righttxt">楼    号:</labe>
|
|
112
115
|
<input type="text" @change="changeNewAddress" class="form-control rightipt"
|
|
113
|
-
v-model="userinfo.addressinfo.f_building"
|
|
116
|
+
v-model="userinfo.addressinfo.f_building"/>
|
|
114
117
|
</div>
|
|
115
118
|
<div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
|
|
116
119
|
<labe class="righttxt">单    元:</labe>
|
|
117
120
|
<input type="text" @change="changeNewAddress" class="form-control rightipt"
|
|
118
|
-
v-model="userinfo.addressinfo.f_unit"
|
|
121
|
+
v-model="userinfo.addressinfo.f_unit"/>
|
|
119
122
|
</div>
|
|
120
123
|
<div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
|
|
121
124
|
<labe class="righttxt">楼    层:</labe>
|
|
122
125
|
<input type="text" @change="changeNewAddress" class="form-control rightipt"
|
|
123
|
-
v-model="userinfo.addressinfo.f_floor"
|
|
126
|
+
v-model="userinfo.addressinfo.f_floor"/>
|
|
124
127
|
</div>
|
|
125
128
|
<div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
|
|
126
129
|
<labe class="righttxt">门 牌 号:</labe>
|
|
127
130
|
<input type="text" @change="changeNewAddress" class="form-control rightipt"
|
|
128
|
-
v-model="userinfo.addressinfo.f_room"
|
|
131
|
+
v-model="userinfo.addressinfo.f_room"/>
|
|
129
132
|
</div>
|
|
130
133
|
<div class="row auto" style="margin: 5px 0">
|
|
131
134
|
<labe class="righttxt">详细地址:</labe>
|
|
132
|
-
<input type="text" class="form-control rightipt" v-model="userinfo_old.addressinfo.f_address"
|
|
135
|
+
<input type="text" class="form-control rightipt" v-model="userinfo_old.addressinfo.f_address"/>
|
|
133
136
|
</div>
|
|
134
137
|
<div class="row auto" style="margin: 5px 0">
|
|
135
138
|
<labe class="righttxt">新 地 址:</labe>
|
|
@@ -156,7 +159,7 @@
|
|
|
156
159
|
<div class="row auto" style="margin: 5px 0">
|
|
157
160
|
<labe class="righttxt">表    号:</labe>
|
|
158
161
|
<input type="text" :readonly="userinfo.meterinfo[0].f_table_state != '待开通'" class="form-control rightipt"
|
|
159
|
-
style="width: 45%" v-model="userinfo.meterinfo[0].f_meternumber"
|
|
162
|
+
style="width: 45%" v-model="userinfo.meterinfo[0].f_meternumber"/>
|
|
160
163
|
<button type="button" :disabled="userinfo.meterinfo[0].f_table_state != '待开通'" name="button"
|
|
161
164
|
class="btn btn-primary" style="width: 15%" @click="scan">扫码
|
|
162
165
|
</button>
|
|
@@ -182,18 +185,20 @@
|
|
|
182
185
|
<div class="row auto" style="margin: 5px 0">
|
|
183
186
|
<labe class="righttxt">表 封 号:</labe>
|
|
184
187
|
<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles"
|
|
185
|
-
:readonly="userinfo.meterinfo[0].f_table_state != '待开通'"
|
|
188
|
+
:readonly="userinfo.meterinfo[0].f_table_state != '待开通'"/>
|
|
186
189
|
</div>
|
|
187
190
|
<div class="row auto" style="margin: 5px 0">
|
|
188
191
|
<labe class="righttxt">表 位 置:</labe>
|
|
189
192
|
<v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_position"
|
|
190
|
-
v-model="userinfo.meterinfo[0].f_position" placeholder='请选择' :width='wid' readonly
|
|
193
|
+
v-model="userinfo.meterinfo[0].f_position" placeholder='请选择' :width='wid' readonly
|
|
194
|
+
:options="wz_types"
|
|
191
195
|
close-on-select value-single></v-select>
|
|
192
196
|
</div>
|
|
193
197
|
<div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_table_state == '待开通'">
|
|
194
198
|
<labe class="righttxt">表 品 牌:</labe>
|
|
195
199
|
<v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_gasbrand"
|
|
196
|
-
v-model="userinfo.meterinfo[0].f_gasbrand" placeholder='请选择' :width='wid' readonly
|
|
200
|
+
v-model="userinfo.meterinfo[0].f_gasbrand" placeholder='请选择' :width='wid' readonly
|
|
201
|
+
:options="gasbrands"
|
|
197
202
|
close-on-select value-single></v-select>
|
|
198
203
|
</div>
|
|
199
204
|
<div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_table_state == '待开通'">
|
|
@@ -204,18 +209,20 @@
|
|
|
204
209
|
</div>
|
|
205
210
|
<div class="row auto" style="margin: 5px 0">
|
|
206
211
|
<labe class="righttxt">初始底数:</labe>
|
|
207
|
-
<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_base"
|
|
212
|
+
<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_base"/>
|
|
208
213
|
</div>
|
|
209
214
|
<div class="row auto" style="margin: 5px 0">
|
|
210
215
|
<labe class="righttxt">左 右 表:</labe>
|
|
211
216
|
<v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_aroundmeter"
|
|
212
|
-
v-model="userinfo.meterinfo[0].f_aroundmeter" placeholder='请选择' :width='wid' readonly
|
|
217
|
+
v-model="userinfo.meterinfo[0].f_aroundmeter" placeholder='请选择' :width='wid' readonly
|
|
218
|
+
:options="aroundmeters"
|
|
213
219
|
close-on-select value-single></v-select>
|
|
214
220
|
</div>
|
|
215
221
|
<div class="row auto" style="margin: 5px 0">
|
|
216
222
|
<labe class="righttxt">气表类型:</labe>
|
|
217
223
|
<v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_meter_classify"
|
|
218
|
-
v-model="userinfo.meterinfo[0].f_meter_classify" placeholder='请选择' :width='wid' readonly
|
|
224
|
+
v-model="userinfo.meterinfo[0].f_meter_classify" placeholder='请选择' :width='wid' readonly
|
|
225
|
+
:disabled="true"
|
|
219
226
|
:options="meter_classifys" close-on-select value-single></v-select>
|
|
220
227
|
</div>
|
|
221
228
|
<div class="row auto" style="margin: 5px 0">
|
|
@@ -242,41 +249,44 @@
|
|
|
242
249
|
</div>
|
|
243
250
|
<div class="row auto" style="margin: 5px 0">
|
|
244
251
|
<labe class="righttxt">设备品牌:</labe>
|
|
245
|
-
<input type="text" class="form-control rightipt" v-model="row.f_brand"
|
|
252
|
+
<input type="text" class="form-control rightipt" v-model="row.f_brand"/>
|
|
246
253
|
</div>
|
|
247
254
|
<div class="row auto" style="margin: 5px 0">
|
|
248
255
|
<labe class="righttxt">设备型号:</labe>
|
|
249
|
-
<input type="text" class="form-control rightipt" v-model="row.f_devices_model"
|
|
256
|
+
<input type="text" class="form-control rightipt" v-model="row.f_devices_model"/>
|
|
250
257
|
</div>
|
|
251
258
|
<div class="row auto" style="margin: 5px 0">
|
|
252
259
|
<labe class="righttxt">生产日期:</labe>
|
|
253
260
|
<datepicker class="rightipt" :value.sync="row.f_make_date" v-model="row.f_make_date"
|
|
254
|
-
:disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset"
|
|
261
|
+
:disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset"
|
|
262
|
+
readonly="readonly">
|
|
255
263
|
</datepicker>
|
|
256
264
|
</div>
|
|
257
265
|
<div class="row auto" style="margin: 5px 0">
|
|
258
266
|
<labe class="righttxt">使用年限:</labe>
|
|
259
|
-
<input type="number" class="form-control rightipt" v-model="row.f_service_life"
|
|
267
|
+
<input type="number" class="form-control rightipt" v-model="row.f_service_life"/>
|
|
260
268
|
</div>
|
|
261
269
|
<div class="row auto" style="margin: 5px 0">
|
|
262
270
|
<labe class="righttxt">到期日期:</labe>
|
|
263
271
|
<datepicker class="rightipt" :value.sync="row.f_expire_date" v-model="row.f_expire_date"
|
|
264
|
-
:disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset"
|
|
272
|
+
:disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset"
|
|
273
|
+
readonly="readonly">
|
|
265
274
|
</datepicker>
|
|
266
275
|
</div>
|
|
267
276
|
<div class="row auto" style="margin: 5px 0">
|
|
268
277
|
<labe class="righttxt">安 装 人:</labe>
|
|
269
|
-
<input type="text" class="form-control rightipt" v-model="row.f_input_person"
|
|
278
|
+
<input type="text" class="form-control rightipt" v-model="row.f_input_person"/>
|
|
270
279
|
</div>
|
|
271
280
|
<div class="row auto" style="margin: 5px 0">
|
|
272
281
|
<labe class="righttxt">安装日期:</labe>
|
|
273
282
|
<datepicker class="rightipt" :value.sync="row.f_input_date" v-model="row.f_input_date"
|
|
274
|
-
:disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset"
|
|
283
|
+
:disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset"
|
|
284
|
+
readonly="readonly">
|
|
275
285
|
</datepicker>
|
|
276
286
|
</div>
|
|
277
287
|
<div class="row auto" style="margin: 5px 0">
|
|
278
288
|
<labe class="righttxt">设备数量:</labe>
|
|
279
|
-
<input type="number" class="form-control rightipt" v-model="row.f_devices_num"
|
|
289
|
+
<input type="number" class="form-control rightipt" v-model="row.f_devices_num"/>
|
|
280
290
|
</div>
|
|
281
291
|
<div class="row auto" style="margin: 5px 0">
|
|
282
292
|
<labe class="righttxt">有无不锈钢波纹管:</labe>
|
|
@@ -285,18 +295,20 @@
|
|
|
285
295
|
</div>
|
|
286
296
|
<div class="row auto" style="margin: 5px 0">
|
|
287
297
|
<labe class="righttxt">波纹管数量:</labe>
|
|
288
|
-
<input type="text" class="form-control rightipt" v-model="row.f_pipe_num"
|
|
298
|
+
<input type="text" class="form-control rightipt" v-model="row.f_pipe_num"/>
|
|
289
299
|
</div>
|
|
290
300
|
<div class="row auto" style="margin: 5px 0">
|
|
291
301
|
<labe class="righttxt">管道安装日期:</labe>
|
|
292
302
|
<datepicker class="rightipt" :value.sync="row.f_pipeinstall_date" v-model="row.f_pipeinstall_date"
|
|
293
|
-
:disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset"
|
|
303
|
+
:disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset"
|
|
304
|
+
readonly="readonly">
|
|
294
305
|
</datepicker>
|
|
295
306
|
</div>
|
|
296
307
|
<div class="row auto" style="margin: 5px 0">
|
|
297
308
|
<labe class="righttxt">管道到期日期:</labe>
|
|
298
309
|
<datepicker class="rightipt" :value.sync="row.f_pipeexpire_date" v-model="row.f_pipeexpire_date"
|
|
299
|
-
:disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset"
|
|
310
|
+
:disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset"
|
|
311
|
+
readonly="readonly">
|
|
300
312
|
</datepicker>
|
|
301
313
|
</div>
|
|
302
314
|
<div class="row auto" style="margin: 5px 0">
|
|
@@ -306,7 +318,7 @@
|
|
|
306
318
|
</div>
|
|
307
319
|
<div class="row auto" style="margin: 5px 0">
|
|
308
320
|
<labe class="righttxt">自闭阀数量:</labe>
|
|
309
|
-
<input type="text" class="form-control rightipt" v-model="row.f_zibifa_num"
|
|
321
|
+
<input type="text" class="form-control rightipt" v-model="row.f_zibifa_num"/>
|
|
310
322
|
</div>
|
|
311
323
|
<!--<div class="row auto" style="margin: 5px 0">
|
|
312
324
|
<labe class="righttxt">管道类型:</labe><input type="text" class="form-control rightipt" readonly v-model="row.f_pipe_type" />
|
|
@@ -338,7 +350,7 @@
|
|
|
338
350
|
</template>
|
|
339
351
|
|
|
340
352
|
<script>
|
|
341
|
-
import {
|
|
353
|
+
import {HttpResetClass} from 'vue-client'
|
|
342
354
|
import * as Util from "../../../components/Util";
|
|
343
355
|
import Vue from 'vue'
|
|
344
356
|
|
|
@@ -359,9 +371,9 @@
|
|
|
359
371
|
gasmodel: [],
|
|
360
372
|
meter_classifys: this.$appdata.getParam('气表类型'),
|
|
361
373
|
pipe_types: this.$appdata.getParam('管道类型'),
|
|
362
|
-
pipetypes: [{
|
|
374
|
+
pipetypes: [{label: '有', value: '不锈钢波纹管'}, {label: '无', value: ''}],
|
|
363
375
|
wz_types: [],
|
|
364
|
-
cityTypes: [{
|
|
376
|
+
cityTypes: [{label: '市区', value: '市区'}, {label: '城镇', value: '城镇'}],
|
|
365
377
|
aroundmeters: this.$appdata.getParam('左右表'),
|
|
366
378
|
is_zibifa: this.$appdata.getParam('有无自闭阀'),
|
|
367
379
|
pcds: [],
|
|
@@ -373,9 +385,9 @@
|
|
|
373
385
|
area: [],
|
|
374
386
|
enable: false,
|
|
375
387
|
f_meterno_path: Vue.nopic,
|
|
376
|
-
selectArea: {
|
|
377
|
-
selectPcd: {
|
|
378
|
-
selectStreet: {
|
|
388
|
+
selectArea: {id: ''},
|
|
389
|
+
selectPcd: {id: ''},
|
|
390
|
+
selectStreet: {id: ''},
|
|
379
391
|
changemeterno: false,//是否修改了机表表号
|
|
380
392
|
approveChange: false,//是否需要进行信息变更审核
|
|
381
393
|
newAddress: '',
|
|
@@ -413,69 +425,35 @@
|
|
|
413
425
|
methods: {
|
|
414
426
|
scan() {
|
|
415
427
|
HostApp.__this__ = this,
|
|
416
|
-
HostApp.scanCode({
|
|
428
|
+
HostApp.scanCode({callback: "javascript:HostApp.__this__.getCode();"})
|
|
417
429
|
},
|
|
418
430
|
getCode() {
|
|
419
431
|
var datapa = HostApp.getCode().data;
|
|
420
432
|
this.userinfo.meterinfo[0].f_meternumber = datapa
|
|
421
433
|
},
|
|
422
434
|
checkVal() {
|
|
423
|
-
this.
|
|
424
|
-
|
|
425
|
-
let checked = { ischeck: true, msg: '' }
|
|
426
|
-
if (!this.userinfo.baseinfo.base.f_user_name) {
|
|
427
|
-
checked = { ischeck: false, msg: '请输入用户名称!' }
|
|
435
|
+
if (!this.userinfo.baseinfo.base.f_contractdate) {
|
|
436
|
+
return '合同日期未填写'
|
|
428
437
|
}
|
|
429
|
-
if (!this.
|
|
430
|
-
|
|
438
|
+
if (!this.userinfo.meterinfo[0].f_meternumber) {
|
|
439
|
+
return '表号未填写'
|
|
431
440
|
}
|
|
432
|
-
if (!this.
|
|
433
|
-
|
|
441
|
+
if (!this.userinfo.meterinfo[0].f_metertitles) {
|
|
442
|
+
return '表封号未填写'
|
|
434
443
|
}
|
|
435
|
-
if (!this.userinfo.
|
|
436
|
-
|
|
444
|
+
if (!this.userinfo.meterinfo[0].f_position) {
|
|
445
|
+
return '表位置未填写'
|
|
437
446
|
}
|
|
438
|
-
if (this.
|
|
439
|
-
|
|
440
|
-
checked = { ischeck: false, msg: '请选择小区!' }
|
|
441
|
-
}
|
|
442
|
-
if (!this.userinfo.addressinfo.f_room) {
|
|
443
|
-
checked = { ischeck: false, msg: '新输入门牌号!' }
|
|
444
|
-
}
|
|
447
|
+
if (!this.userinfo.meterinfo[0].f_gasbrand) {
|
|
448
|
+
return '表品牌未填写'
|
|
445
449
|
}
|
|
446
|
-
if (this.userinfo.meterinfo[0].
|
|
447
|
-
|
|
448
|
-
if (this.userinfo.meterinfo[0].f_meternumber != this.userinfo_old.meterinfo[0].f_meternumber) {
|
|
449
|
-
if (!this.f_meterno_path || this.f_meterno_path == Vue.nopic) {
|
|
450
|
-
checked = { ischeck: false, msg: '请拍摄表号照片!' }
|
|
451
|
-
} else {
|
|
452
|
-
this.changemeterno = true
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
} else {
|
|
456
|
-
checked = { ischeck: false, msg: '请输入表号!' }
|
|
457
|
-
}
|
|
450
|
+
if (!this.userinfo.meterinfo[0].f_meter_base) {
|
|
451
|
+
return '初始底数未填写'
|
|
458
452
|
}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
for (let i = 0; i < this.checkField[check].length; i++) {
|
|
462
|
-
if (check == 'checkUserinfoField') {
|
|
463
|
-
if (this.userinfo.baseinfo.base[this.checkField[check][i]] != this.userinfo_old.baseinfo.base[this.checkField[check][i]]) {
|
|
464
|
-
this.approveChange = true
|
|
465
|
-
}
|
|
466
|
-
} else if (check == 'checkUserFilesField') {
|
|
467
|
-
if (this.userinfo.meterinfo[0][this.checkField[check][i]] != this.userinfo_old.meterinfo[0][this.checkField[check][i]]) {
|
|
468
|
-
this.approveChange = true
|
|
469
|
-
}
|
|
470
|
-
} else if (check == 'checkAddressField') {
|
|
471
|
-
if (this.userinfo.addressinfo[this.checkField[check][i]] != this.userinfo_old.addressinfo[this.checkField[check][i]]) {
|
|
472
|
-
this.approveChange = true
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
}
|
|
453
|
+
if (!this.userinfo.meterinfo[0].f_aroundmeter) {
|
|
454
|
+
return '左右表未填写'
|
|
477
455
|
}
|
|
478
|
-
return
|
|
456
|
+
return false
|
|
479
457
|
},
|
|
480
458
|
select_search(text) {
|
|
481
459
|
if (this.selectStreet.id) {
|
|
@@ -487,11 +465,11 @@
|
|
|
487
465
|
orderitem: "id",
|
|
488
466
|
condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
|
|
489
467
|
}
|
|
490
|
-
}, {
|
|
468
|
+
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
491
469
|
if (res.data.length > 0) {
|
|
492
470
|
this.area = []
|
|
493
471
|
res.data.forEach((result) => {
|
|
494
|
-
this.area.push({
|
|
472
|
+
this.area.push({label: result.f_residential_area, value: result})
|
|
495
473
|
})
|
|
496
474
|
}
|
|
497
475
|
})
|
|
@@ -534,6 +512,11 @@
|
|
|
534
512
|
}
|
|
535
513
|
},
|
|
536
514
|
editUserInfo() {
|
|
515
|
+
const msg = this.checkVal()
|
|
516
|
+
if (msg && this.userinfo.meterinfo[0].f_table_state == '待开通') {
|
|
517
|
+
this.$showMessage(msg)
|
|
518
|
+
return
|
|
519
|
+
}
|
|
537
520
|
for (let i = 0; i < this.model.length; i++) {
|
|
538
521
|
this.model[i].f_user_id = this.userinfo.meterinfo[0].f_user_id
|
|
539
522
|
}
|
|
@@ -578,12 +561,12 @@
|
|
|
578
561
|
f_address: this.userinfo_old.addressinfo.f_address ? this.userinfo_old.addressinfo.f_address : this.userinfo.addressinfo.f_address
|
|
579
562
|
}
|
|
580
563
|
}
|
|
581
|
-
}, {
|
|
564
|
+
}, {resolveMsg: null, rejectMsg: null}).then((res1) => {
|
|
582
565
|
if (res1.data.status == 200) {
|
|
583
566
|
let data = this.userinfo.addressinfo
|
|
584
567
|
data.f_address = this.userinfo_old.addressinfo.f_address ? this.userinfo_old.addressinfo.f_address : this.userinfo.addressinfo.f_address
|
|
585
568
|
data.f_operator = Vue.user.name
|
|
586
|
-
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/address_updateuseraddress`, {
|
|
569
|
+
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/address_updateuseraddress`, {data: data}).then((res2) => {
|
|
587
570
|
this.$showMessage("修改用户地址信息成功!")
|
|
588
571
|
}).catch(error => {
|
|
589
572
|
this.$showMessage("修改用户地址信息!")
|
|
@@ -631,7 +614,7 @@
|
|
|
631
614
|
this.userinfo.addressinfo.f_residential_area = ''
|
|
632
615
|
this.userinfo.addressinfo.f_residential_area_id = ''
|
|
633
616
|
this.userinfo.addressinfo.f_slice_area = ''
|
|
634
|
-
this.selectArea = {
|
|
617
|
+
this.selectArea = {id: ''}
|
|
635
618
|
this.area = []
|
|
636
619
|
let pcdText = ` and f_street_id=${this.selectStreet.id}`
|
|
637
620
|
let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
|
|
@@ -641,9 +624,9 @@
|
|
|
641
624
|
orderitem: "id",
|
|
642
625
|
condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
|
|
643
626
|
}
|
|
644
|
-
}, {
|
|
627
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
645
628
|
res.data.forEach((result) => {
|
|
646
|
-
this.area.push({
|
|
629
|
+
this.area.push({label: result.f_residential_area, value: result})
|
|
647
630
|
})
|
|
648
631
|
} else {
|
|
649
632
|
this.area = []
|
|
@@ -654,11 +637,11 @@
|
|
|
654
637
|
if (this.selectPcd.id) {
|
|
655
638
|
this.userinfo.addressinfo.f_pcd = this.selectPcd.f_pcd
|
|
656
639
|
this.userinfo.addressinfo.f_pcd_id = this.selectPcd.id
|
|
657
|
-
this.selectStreet = {
|
|
640
|
+
this.selectStreet = {id: ''}
|
|
658
641
|
this.userinfo.addressinfo.f_street = ''
|
|
659
642
|
this.userinfo.addressinfo.f_street_id = ''
|
|
660
643
|
this.userinfo.addressinfo.f_iscity = ''
|
|
661
|
-
this.selectArea = {
|
|
644
|
+
this.selectArea = {id: ''}
|
|
662
645
|
this.userinfo.addressinfo.f_residential_area = ''
|
|
663
646
|
this.userinfo.addressinfo.f_residential_area_id = ''
|
|
664
647
|
this.userinfo.addressinfo.f_slice_area = ''
|
|
@@ -671,9 +654,9 @@
|
|
|
671
654
|
orderitem: "id",
|
|
672
655
|
condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
|
|
673
656
|
}
|
|
674
|
-
}, {
|
|
657
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
675
658
|
streetlist.data.forEach((result) => {
|
|
676
|
-
this.streets.push({
|
|
659
|
+
this.streets.push({label: result.f_street, value: result})
|
|
677
660
|
})
|
|
678
661
|
} else {
|
|
679
662
|
this.streets = []
|
|
@@ -707,7 +690,7 @@
|
|
|
707
690
|
f_zones: Vue.user.zones
|
|
708
691
|
}
|
|
709
692
|
new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
|
|
710
|
-
data, {
|
|
693
|
+
data, {resolveMsg: null, rejectMsg: null}).then((row) => {
|
|
711
694
|
this.$showMessage('已成功关阀停气!')
|
|
712
695
|
this.userinfo.meterinfo[0].f_table_state = '停用'
|
|
713
696
|
})
|
|
@@ -737,7 +720,7 @@
|
|
|
737
720
|
"f_brand": null,
|
|
738
721
|
"f_devices_model": null,
|
|
739
722
|
"f_devices_no": null,
|
|
740
|
-
"img": {
|
|
723
|
+
"img": {"content": null, "filename": null}
|
|
741
724
|
}
|
|
742
725
|
this.model.push(obj)
|
|
743
726
|
},
|
|
@@ -759,9 +742,9 @@
|
|
|
759
742
|
orderitem: "id",
|
|
760
743
|
condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
|
|
761
744
|
}
|
|
762
|
-
}, {
|
|
745
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
763
746
|
res.data.forEach((result) => {
|
|
764
|
-
this.area.push({
|
|
747
|
+
this.area.push({label: result.f_residential_area, value: result})
|
|
765
748
|
})
|
|
766
749
|
this.area.push({
|
|
767
750
|
label: this.userinfo.addressinfo.f_residential_area,
|
|
@@ -785,12 +768,12 @@
|
|
|
785
768
|
orderitem: "id",
|
|
786
769
|
condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
|
|
787
770
|
}
|
|
788
|
-
}, {
|
|
771
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
789
772
|
streetlist.data.forEach((result) => {
|
|
790
773
|
if (this.selectStreet.id && this.selectStreet.id == result.id) {
|
|
791
774
|
this.userinfo.addressinfo.f_iscity = result.f_iscity
|
|
792
775
|
}
|
|
793
|
-
this.streets.push({
|
|
776
|
+
this.streets.push({label: result.f_street, value: result})
|
|
794
777
|
})
|
|
795
778
|
} else {
|
|
796
779
|
this.streets = []
|
|
@@ -840,10 +823,10 @@
|
|
|
840
823
|
orderitem: "1",
|
|
841
824
|
condition: ` f_gasbrand_id = '${this.userinfo.meterinfo[0].f_gasbrand_id}'`
|
|
842
825
|
}
|
|
843
|
-
}, {
|
|
826
|
+
}, {resolveMsg: null, rejectMsg: null}).then(response => {
|
|
844
827
|
this.gasmodel = response.data
|
|
845
828
|
response.data.forEach(item => {
|
|
846
|
-
this.gasmodels.push({
|
|
829
|
+
this.gasmodels.push({label: item.f_meter_style, value: item.f_meter_style})
|
|
847
830
|
})
|
|
848
831
|
})
|
|
849
832
|
},
|
|
@@ -871,7 +854,7 @@
|
|
|
871
854
|
orderitem: "id",
|
|
872
855
|
condition: `f_orgid = '${Vue.user.orgid}'`
|
|
873
856
|
}
|
|
874
|
-
}, {
|
|
857
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
875
858
|
|
|
876
859
|
let gasbrand = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
|
|
877
860
|
data: {
|
|
@@ -880,17 +863,17 @@
|
|
|
880
863
|
orderitem: "1",
|
|
881
864
|
condition: ` 1=1`
|
|
882
865
|
}
|
|
883
|
-
}, {
|
|
866
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
884
867
|
this.gasbrand = gasbrand.data
|
|
885
868
|
gasbrand.data.forEach(item => {
|
|
886
|
-
this.gasbrands.push({
|
|
869
|
+
this.gasbrands.push({label: item.f_meter_brand, value: item.f_meter_brand})
|
|
887
870
|
})
|
|
888
871
|
pcdlist.data.forEach((result) => {
|
|
889
|
-
this.pcds.push({
|
|
872
|
+
this.pcds.push({label: result.f_pcd, value: result})
|
|
890
873
|
})
|
|
891
874
|
let res = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_getFilesDetail`, {
|
|
892
875
|
f_userinfo_id: this.f_userinfo_id
|
|
893
|
-
}, {
|
|
876
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
894
877
|
this.userinfo = res.data
|
|
895
878
|
this.userinfo_old = JSON.parse(JSON.stringify(res.data))
|
|
896
879
|
this.model = this.userinfo.meterinfo[0].devicesinfo
|