sale-client 3.5.278 → 3.5.280

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.278",
3
+ "version": "3.5.280",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -173,9 +173,7 @@
173
173
  <input @keyup.enter="search" style="width:60%" type="checkbox" v-model='checked1' :checked="$parent.$parent.$parent.checked1"
174
174
  @click="$parent.$parent.$parent.checkedALL()">
175
175
  </th>
176
- <th style="text-align:center">
177
- <nobr>组织机构</nobr>
178
- </th>
176
+
179
177
  <th style="text-align:center">
180
178
  <nobr>客户号</nobr>
181
179
  </th>
@@ -221,7 +219,9 @@
221
219
  <!--<th style="text-align:center">
222
220
  <nobr>指令状态</nobr>
223
221
  </th>-->
224
-
222
+ <th style="text-align:center">
223
+ <nobr>组织机构</nobr>
224
+ </th>
225
225
  </tr>
226
226
  </template>
227
227
  <template partial='body' partial='list' v-ref:grid >
@@ -229,9 +229,6 @@
229
229
  <td style="text-align:center">
230
230
  <input @keyup.enter="search" style="width:60%" type="checkbox" checked="checked" name="opertioninput"
231
231
  @click="$parent.$parent.$parent.checked(row)"></td>
232
- <td style="text-align:center">
233
- <nobr>{{row.f_orgname}}</nobr>
234
- </td>
235
232
  <td style="text-align:center">
236
233
  <nobr>{{row.f_userinfo_code}}</nobr>
237
234
  </td>
@@ -275,6 +272,9 @@
275
272
  <!--<td style="text-align:center">
276
273
  <nobr>{{row.f_instruct_state}}</nobr>
277
274
  </td>-->
275
+ <td style="text-align:center">
276
+ <nobr>{{row.f_orgname}}</nobr>
277
+ </td>
278
278
  </tr>
279
279
  </template>
280
280
  <template partial='foot'></template>
@@ -310,7 +310,7 @@
310
310
  </v-select>
311
311
  </div>
312
312
  <div class="form-group " style="padding-left: 8px">
313
- <label class="font_normal_body">申请原因:</label>
313
+ <label class="font_normal_body">{{val1}}原因:</label>
314
314
  <textarea class="search_area" v-model="f_beizhu" rows="10" cols="75" placeholder="备注信息"></textarea>
315
315
  </div>
316
316
  </article>
@@ -522,9 +522,11 @@ import axios from 'axios'
522
522
  let arr = []
523
523
  this.$GetSaleParam.getGasbrand().forEach((item) => {
524
524
  let temp = {}
525
- temp.label = item.label
526
- temp.value = item.value
527
- arr.push(temp)
525
+ if(item.value.f_meter_type==='物联网表'){
526
+ temp.label = item.label
527
+ temp.value = item.value.f_meter_brand
528
+ arr.push(temp )
529
+ }
528
530
  })
529
531
 
530
532
  this.meterbrand = [{label: '全部', value: ''}, ...arr]
@@ -12,9 +12,9 @@
12
12
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
13
13
  class="form-group"
14
14
  v-if="$parent.$parent.clientWidth>1600">
15
- <label class="font_normal_body">客户编号</label>
15
+ <label class="font_normal_body">用户编号</label>
16
16
  <input class="input_search" condition="f_userinfo_code = '{}'"
17
- placeholder='客户编号'
17
+ placeholder='用户编号'
18
18
  style="width:60%" type="text" v-model="model.f_userinfo_code">
19
19
  </div>
20
20
  <res-select-group v-if="$parent.$parent.clientWidth<1600&&!$parent.$parent.createFile" :style="$parent.$parent.createFile?'col-sm-4':'col-sm-2'" :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
@@ -23,18 +23,18 @@
23
23
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
24
24
  class="form-group"
25
25
  v-if="$parent.$parent.clientWidth<1600&&!$parent.$parent.createFile">
26
- <label class="font_normal_body">客户编号</label>
26
+ <label class="font_normal_body">用户编号</label>
27
27
  <input class="input_search" condition="f_userinfo_code = '{}'"
28
- placeholder='客户编号'
28
+ placeholder='用户编号'
29
29
  style="width:60%" type="text" v-model="model.f_userinfo_code">
30
30
  </div>
31
31
 
32
32
  <div
33
33
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
34
34
  class="form-group" v-if="!$parent.$parent.createFile">
35
- <label class="font_normal_body">客户名称</label>
35
+ <label class="font_normal_body">用户名称</label>
36
36
  <input class="input_search" condition="f_user_name like '%{}%'"
37
- placeholder='客户姓名'
37
+ placeholder='用户姓名'
38
38
  style="width:60%" type="text" v-model="model.f_user_name">
39
39
  </div>
40
40
  <div
@@ -91,9 +91,9 @@
91
91
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
92
92
  class="form-group"
93
93
  v-if="$parent.$parent.clientWidth<1600&&$parent.$parent.createFile">
94
- <label class="font_normal_body">客户编号</label>
94
+ <label class="font_normal_body">用户编号</label>
95
95
  <input class="input_search" condition="f_userinfo_code = '{}'"
96
- placeholder='客户编号'
96
+ placeholder='用户编号'
97
97
  style="width:60%" type="text" v-model="model.f_userinfo_code">
98
98
  </div>
99
99
  <res-select-group v-if="$parent.$parent.clientWidth<1600&&$parent.$parent.createFile" :style="$parent.$parent.createFile?'col-sm-4':'col-sm-2'" :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
@@ -102,16 +102,16 @@
102
102
  <div
103
103
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
104
104
  class="form-group" v-if="$parent.$parent.createFile">
105
- <label class="font_normal_body">客户名称</label>
105
+ <label class="font_normal_body">用户名称</label>
106
106
  <input class="input_search" condition="f_user_name like '%{}%'"
107
- placeholder='客户姓名'
107
+ placeholder='用户姓名'
108
108
  style="width:60%" type="text" v-model="model.f_user_name">
109
109
  </div>
110
110
  <div
111
111
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
112
112
  class="form-group">
113
- <label class="font_normal_body">旧客户号</label>
114
- <input class="input_search" condition="f_olduserinfo_code = '{}'" placeholder='客户编号'
113
+ <label class="font_normal_body">旧用户号</label>
114
+ <input class="input_search" condition="f_olduserinfo_code = '{}'" placeholder='用户编号'
115
115
  style="width:60%"
116
116
  type="text"
117
117
  v-model="model.f_olduserinfo_code">
@@ -159,8 +159,8 @@
159
159
  <div
160
160
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
161
161
  class="form-group">
162
- <label class="font_normal_body">客户电话</label>
163
- <input class="input_search" condition="f_user_phone = '{}'" placeholder='客户电话' style="width:60%"
162
+ <label class="font_normal_body">用户电话</label>
163
+ <input class="input_search" condition="f_user_phone = '{}'" placeholder='用户电话' style="width:60%"
164
164
  type="text"
165
165
  v-model="model.f_user_phone">
166
166
  </div>
@@ -174,17 +174,17 @@
174
174
  <div
175
175
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
176
176
  class="form-group">
177
- <label class="font_normal_body">客户地址</label>
178
- <input class="input_search" condition="f_address like '%{}%'" placeholder='客户地址' style="width:60%"
177
+ <label class="font_normal_body">用户地址</label>
178
+ <input class="input_search" condition="f_address like '%{}%'" placeholder='用户地址' style="width:60%"
179
179
  type="text" v-model="model.f_address">
180
180
  </div>
181
181
  <div
182
182
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
183
183
  class="form-group">
184
- <label class="font_normal_body">客户状态</label>
184
+ <label class="font_normal_body">用户状态</label>
185
185
  <v-select :options='$parent.$parent.userstates' :value.sync="model.f_user_state"
186
186
  close-on-select condition="f_user_state='{}'"
187
- placeholder='客户状态' v-model="model.f_user_state"></v-select>
187
+ placeholder='用户状态' v-model="model.f_user_state"></v-select>
188
188
  </div>
189
189
  <div
190
190
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
@@ -293,10 +293,13 @@
293
293
  <nobr>序号</nobr>
294
294
  </th>
295
295
  <th>
296
- <nobr>客户编号</nobr>
296
+ <nobr>用户编号</nobr>
297
297
  </th>
298
298
  <th>
299
- <nobr>客户名称</nobr>
299
+ <nobr>用户名称</nobr>
300
+ </th>
301
+ <th v-if="!$parent.$parent.$parent.isOper">
302
+ <nobr>用户地址</nobr>
300
303
  </th>
301
304
  <th>
302
305
  <nobr>表号</nobr>
@@ -305,11 +308,9 @@
305
308
  <nobr>卡号</nobr>
306
309
  </th>
307
310
  <th>
308
- <nobr>客户电话</nobr>
309
- </th>
310
- <th v-if="!$parent.$parent.$parent.isOper">
311
- <nobr>客户地址</nobr>
311
+ <nobr>用户电话</nobr>
312
312
  </th>
313
+
313
314
  <th>
314
315
  <nobr>用户类型</nobr>
315
316
  </th>
@@ -349,12 +350,12 @@
349
350
  <td style="text-align: center;">
350
351
  <span @click="$parent.$parent.$parent.dealmsg(row)"><a><b>{{row.f_user_name}}</b></a></span>
351
352
  </td>
352
- <td style="text-align: center;">{{row.f_meternumber}}</td>
353
- <td style="text-align: center;">{{row.f_card_id}}</td>
354
- <td style="text-align: center;">{{row.f_user_phone}}</td>
355
353
  <td style="text-align: center;" v-if="!$parent.$parent.$parent.isOper">{{row.f_address_detail ? row.f_address + row.f_address_detail :
356
354
  row.f_address}}
357
355
  </td>
356
+ <td style="text-align: center;">{{row.f_meternumber}}</td>
357
+ <td style="text-align: center;">{{row.f_card_id}}</td>
358
+ <td style="text-align: center;">{{row.f_user_phone}}</td>
358
359
  <td style="text-align: center;">{{row.f_user_type}}</td>
359
360
  <td style="text-align: center;">{{row.f_gasproperties}}</td>
360
361
  <td style="text-align: center;">{{row.f_meter_classify}}</td>
@@ -432,9 +433,9 @@
432
433
  <modal :show.sync="resshow" width="500px" title="建档成功" v-ref:modal large backdrop="false">
433
434
  <article slot="modal-body" class="modal-body" style="height: 70px">
434
435
  <div>
435
- <label class="font_normal_body" style="line-height: 20px">客户编号</label>
436
+ <label class="font_normal_body" style="line-height: 20px">用户编号</label>
436
437
  <input class="input_search" condition="f_userinfo_code = '{}'"
437
- placeholder='客户编号' disabled
438
+ placeholder='用户编号' disabled
438
439
  type="text" v-model="resdata">
439
440
  </div>
440
441
  </article>
@@ -4,24 +4,24 @@
4
4
  <form class="form-horizontal select-overspread ">
5
5
  <div class="row">
6
6
  <div class="col-sm-4 form-group ">
7
- <label for="f_user_name" class="font_normal_body">*客户姓名</label>
7
+ <label for="f_user_name" class="font_normal_body">*用户姓名</label>
8
8
  <input type="text" v-model="baseinfo.base.f_user_name" v-validate:f_user_name='{required: true }'
9
- class="input_search" style="width:60%" placeholder="客户名称" v-next-el="phone">
9
+ class="input_search" style="width:60%" placeholder="用户名称" v-next-el="phone">
10
10
  </div>
11
11
  <div style="" class="col-sm-4 form-group" :class="[$v.f_user_phone.minlength || $v.f_user_phone.maxlength ? 'has-error' : '']">
12
- <label for="f_user_phone" class="font_normal_body">*客户电话</label>
12
+ <label for="f_user_phone" class="font_normal_body">*用户电话</label>
13
13
  <input type="text" maxlength="11" v-model="baseinfo.base.f_user_phone"
14
14
  class="input_search" style="width:60%"
15
15
  v-validate:f_user_phone="{minlength: 11, maxlength: 11 }"
16
- placeholder="客户电话" v-el:phone v-next-el="area">
16
+ placeholder="用户电话" v-el:phone v-next-el="area">
17
17
  <button type="button" class="glyphicon glyphicon-plus" @click.stop="phoneManage()"></button>
18
18
  </div>
19
19
  <div class="col-sm-4 form-group">
20
- <label for="f_user_state" class="font_normal_body">&ensp;客户状态</label>
20
+ <label for="f_user_state" class="font_normal_body">&ensp;用户状态</label>
21
21
  <v-select :value.sync="baseinfo.base.f_user_state"
22
22
  :disabled="true"
23
23
  :value-single="true"
24
- :options='userstates' placeholder='客户状态'
24
+ :options='userstates' placeholder='用户状态'
25
25
  close-on-select></v-select>
26
26
  </div>
27
27
  </div>
@@ -177,7 +177,7 @@
177
177
  :class="[$v.f_bank_accopen.required ? 'has-error' : '']">
178
178
  <label for="f_username" class="font_normal_body">银行户名</label>
179
179
  <input type="text" v-model="baseinfo.bank.f_bank_accopen"
180
- class="input_search" style="width:60%" id="f_username" placeholder="客户名称"
180
+ class="input_search" style="width:60%" id="f_username" placeholder="用户名称"
181
181
  v-validate:f_bank_accopen='{required: true}'
182
182
  v-next-el="bankaccount">
183
183
  </div>
@@ -23,17 +23,17 @@
23
23
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
24
24
  class="form-group"
25
25
  v-if="$parent.$parent.clientWidth>1600">
26
- <label class="font_normal_body">客户编号</label>
26
+ <label class="font_normal_body">用户编号</label>
27
27
  <input class="input_search" condition="f_userinfo_code = '{}'"
28
- placeholder='客户编号'
28
+ placeholder='用户编号'
29
29
  style="width:60%" type="text" v-model="model.f_userinfo_code">
30
30
  </div>
31
31
  <div
32
32
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
33
33
  class="form-group" v-if="!$parent.$parent.createFile">
34
- <label class="font_normal_body">客户名称</label>
34
+ <label class="font_normal_body">用户名称</label>
35
35
  <input class="input_search" condition="f_user_name like '%{}%'"
36
- placeholder='客户姓名'
36
+ placeholder='用户姓名'
37
37
  style="width:60%" type="text" v-model="model.f_user_name">
38
38
  </div>
39
39
  <div
@@ -94,24 +94,24 @@
94
94
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
95
95
  class="form-group"
96
96
  v-if="$parent.$parent.clientWidth<1600&&$parent.$parent.createFile">
97
- <label class="font_normal_body">客户编号</label>
97
+ <label class="font_normal_body">用户编号</label>
98
98
  <input class="input_search" condition="f_userinfo_code = '{}'"
99
- placeholder='客户编号'
99
+ placeholder='用户编号'
100
100
  style="width:60%" type="text" v-model="model.f_userinfo_code">
101
101
  </div>
102
102
  <div
103
103
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
104
104
  class="form-group" v-if="$parent.$parent.createFile">
105
- <label class="font_normal_body">客户名称</label>
105
+ <label class="font_normal_body">用户名称</label>
106
106
  <input class="input_search" condition="f_user_name like '%{}%'"
107
- placeholder='客户姓名'
107
+ placeholder='用户姓名'
108
108
  style="width:60%" type="text" v-model="model.f_user_name">
109
109
  </div>
110
110
  <div
111
111
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
112
112
  class="form-group">
113
- <label class="font_normal_body">旧客户号</label>
114
- <input class="input_search" condition="f_olduserinfo_code = '{}'" placeholder='客户编号'
113
+ <label class="font_normal_body">旧用户号</label>
114
+ <input class="input_search" condition="f_olduserinfo_code = '{}'" placeholder='用户编号'
115
115
  style="width:60%"
116
116
  type="text"
117
117
  v-model="model.f_olduserinfo_code">
@@ -127,26 +127,26 @@
127
127
  <div
128
128
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
129
129
  class="form-group">
130
- <label class="font_normal_body">客户电话</label>
131
- <input class="input_search" condition="f_user_phone = '{}'" placeholder='客户电话' style="width:60%"
130
+ <label class="font_normal_body">用户电话</label>
131
+ <input class="input_search" condition="f_user_phone = '{}'" placeholder='用户电话' style="width:60%"
132
132
  type="text"
133
133
  v-model="model.f_user_phone">
134
134
  </div>
135
135
  <div
136
136
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
137
137
  class="form-group">
138
- <label class="font_normal_body">客户地址</label>
139
- <input class="input_search" condition="f_address like '%{}%'" placeholder='客户地址' style="width:60%"
138
+ <label class="font_normal_body">用户地址</label>
139
+ <input class="input_search" condition="f_address like '%{}%'" placeholder='用户地址' style="width:60%"
140
140
  type="text" v-model="model.f_address">
141
141
  </div>
142
142
  <div
143
143
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
144
144
  class="form-group">
145
- <label class="font_normal_body">客户状态</label>
145
+ <label class="font_normal_body">用户状态</label>
146
146
  <v-select :options='$parent.$parent.userstates' :value.sync="model.f_user_state"
147
147
  close-on-select condition="f_user_state='{}'"
148
148
  :value-single="true"
149
- placeholder='客户状态' v-model="model.f_user_state"></v-select>
149
+ placeholder='用户状态' v-model="model.f_user_state"></v-select>
150
150
  </div>
151
151
  <div
152
152
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
@@ -216,16 +216,16 @@
216
216
  <nobr>序号</nobr>
217
217
  </th>
218
218
  <th>
219
- <nobr>客户编号</nobr>
219
+ <nobr>用户编号</nobr>
220
220
  </th>
221
221
  <th>
222
- <nobr>客户名称</nobr>
223
- </th>
224
- <th>
225
- <nobr>客户电话</nobr>
222
+ <nobr>用户名称</nobr>
226
223
  </th>
227
224
  <th v-if="!$parent.$parent.$parent.isOper">
228
- <nobr>客户地址</nobr>
225
+ <nobr>用户地址</nobr>
226
+ </th>
227
+ <th>
228
+ <nobr>用户电话</nobr>
229
229
  </th>
230
230
  <th>
231
231
  <nobr>状态</nobr>
@@ -248,10 +248,10 @@
248
248
  <td style="text-align: center;">{{$index + 1}}</td>
249
249
  <td style="text-align: center;">{{row.f_userinfo_code}}</td>
250
250
  <td style="text-align: center;">{{row.f_user_name}}</td>
251
- <td style="text-align: center;">{{row.f_user_phone}}</td>
252
251
  <td style="text-align: center;" v-if="!$parent.$parent.$parent.isOper">{{row.f_address_detail ? row.f_address + row.f_address_detail :
253
252
  row.f_address}}
254
253
  </td>
254
+ <td style="text-align: center;">{{row.f_user_phone}}</td>
255
255
  <td style="text-align: center;">{{row.f_user_state}}</td>
256
256
  <td style="text-align: center;">{{row.f_createfile_date}}</td>
257
257
  <td style="text-align: center;">{{row.f_printdate}}</td>
@@ -0,0 +1,327 @@
1
+ <template>
2
+ <div>
3
+ <validator name='v' @valid="$emit('valid')" @invalid="$emit('invalid')">
4
+ <form class="form-horizontal select-overspread ">
5
+ <div class="row">
6
+ <div class="col-sm-4 form-group " :class="[$v.f_user_name.required ? 'has-error' : '']">
7
+ <label for="f_user_name" class="font_normal_body">*用户姓名</label>
8
+ <input type="text" v-model="baseinfo.base.f_user_name" v-validate:f_user_name='{required: true }'
9
+ class="input_search" style="width:60%" placeholder="用户名称" v-next-el="phone">
10
+ </div>
11
+ <div style="" class="col-sm-4 form-group"
12
+ :class="[$v.f_user_phone.minlength || $v.f_user_phone.maxlength ? 'has-error' : '']">
13
+ <label for="f_user_phone" class="font_normal_body">*用户电话</label>
14
+ <input type="text" maxlength="11" v-model="baseinfo.base.f_user_phone"
15
+ v-validate:f_user_phone="{minlength: 11, maxlength: 11 }" class="input_search" style="width:60%"
16
+ placeholder="用户电话" v-el:phone v-next-el="area">
17
+ </div>
18
+ <div class="col-sm-4 form-group">
19
+ <label for="f_user_state" class="font_normal_body">&ensp;用户状态</label>
20
+ <v-select :value.sync="baseinfo.base.f_user_state"
21
+ :disabled="false"
22
+ :value-single="true"
23
+ :options='userstates' placeholder='用户状态'
24
+ close-on-select></v-select>
25
+ </div>
26
+ </div>
27
+ <div class="row">
28
+ <div style="" class="col-sm-4 form-group">
29
+ <label for="f_credentials" class="font_normal_body">&ensp;证件类型</label>
30
+ <v-select id="idCardType" :value.sync="baseinfo.base.f_credentials"
31
+ v-model="baseinfo.base.f_credentials"
32
+ :value-single="true"
33
+ :options='credentials' placeholder='证件类型'
34
+ style="width: 65%"
35
+ close-on-select></v-select>
36
+ </div>
37
+ <div style="" class="col-sm-8 form-group"
38
+ :class="[$v.f_idnumber2.identityCardValid ? 'has-error' : '']"
39
+ v-if="baseinfo.base.f_credentials === '身份证'||baseinfo.base.f_credentials[0] === '身份证'">
40
+ <label for="f_idnumber" class="font_normal_body color-red">*证件号码</label>
41
+ <input type="text" maxlength="18" v-model="baseinfo.base.f_idnumber"
42
+ v-validate:f_idnumber2='{identityCardValid: true}' class="input_search" style="width:80%"
43
+ placeholder="证件号码">
44
+ </div>
45
+ <div style="" class="col-sm-8 form-group"
46
+ v-if="baseinfo.base.f_credentials !== '身份证'&&baseinfo.base.f_credentials[0] !== '身份证'">
47
+ <label class="font_normal_body">&ensp;证件号码</label>
48
+ <input type="text" v-model="baseinfo.base.f_idnumber" class="input_search" style="width:80%"
49
+ placeholder="证件号码">
50
+ </div>
51
+ </div>
52
+ <div class="row">
53
+ <div class="col-sm-12 form-group" :class="[$v.f_address.required ? 'has-error' : '']">
54
+ <label for="f_address" class="font_normal_body">*地址信息</label>
55
+ <input type="text" v-model="addressinfo.f_address" :value.sync="addressinfo.f_address" v-validate:f_address='{required: true }'
56
+ class="input_search" disabled="disabled" style="width:75%;" placeholder="用户地址" >
57
+ <span>
58
+ <button class="button_search button_spacing" type="button" style="width: max-content" v-if="!isedit" @click="selectaddress()">选择地址</button>
59
+ <!-- <button class="button_search button_spacing" type="button" style="width: max-content" v-if="isedit" @click="modifyaddress()">修改地址</button>-->
60
+ <button class="button_search button_spacing" type="button" style="width: max-content" v-if="isedit" @click="selectaddress()">修改地址</button>
61
+ </span>
62
+ </div>
63
+ </div>
64
+ <div class="row">
65
+ <div style="" class="col-sm-4 form-group">
66
+ <label for="f_used_name" class="font_normal_body">&ensp;曾&ensp;用&ensp;名</label>
67
+ <input type="text" v-model="baseinfo.base.f_used_name" class="input_search" style="width:60%"
68
+ placeholder="曾用名">
69
+ </div>
70
+ <div style="" class="col-sm-4 form-group">
71
+ <label for="f_rent_phone" class="font_normal_body">&ensp;备用电话</label>
72
+ <input type="text" v-model="baseinfo.base.f_rent_phone" class="input_search" style="width:60%"
73
+ placeholder="备用电话">
74
+ </div>
75
+ <div class="col-sm-4 form-group" :class="[$v.f_people_num.dctest ? 'has-error' : '']">
76
+ <label for="f_people_num" class="font_normal_body">&ensp;人&ensp;口&ensp;数</label>
77
+ <input type="number" v-model="baseinfo.base.f_people_num" v-validate:f_people_num='{dctest: [0, ">=" ]}'
78
+ :disabled="!jurisdiction.includes('修改人口数')" class="input_search" style="width:60%"
79
+ placeholder="家庭人口数">
80
+ </div>
81
+ </div>
82
+ <div class="row">
83
+ <div style="" class="col-sm-4 form-group">
84
+ <label for="f_balance" class="font_normal_body">&ensp;用户余额</label>
85
+ <input type="text" v-model="baseinfo.base.f_balance" class="input_search" style="width:60%"
86
+ placeholder="用户余额" :disabled="!jurisdiction.includes('档案信息查询修改')">
87
+ </div>
88
+ <div style="" class="col-sm-4 form-group">
89
+ <label for="f_is_mgq" class="font_normal_body ">煤&ensp;改&ensp;气&ensp;</label>
90
+ <v-select id="f_is_mgq" :value.sync="baseinfo.base.f_is_mgq" v-model="baseinfo.base.f_is_mgq"
91
+ :options='mgq' placeholder='是否煤改气' style="width: 65%" close-on-select></v-select>
92
+ </div>
93
+ <div class="col-sm-4 form-group">
94
+ <label for="f_contract" class="font_normal_body">&ensp;燃气本号</label>
95
+ <input type="text" v-model="baseinfo.base.f_book_no" class="input_search" style="width:60%" placeholder="用户证号">
96
+ </div>
97
+ </div>
98
+ <div class="row">
99
+ <div style="" class="col-sm-4 form-group">
100
+ <label for="f_rent_name" class="font_normal_body">&ensp;租户姓名</label>
101
+ <input type="text" v-model="baseinfo.base.f_rent_name" class="input_search" style="width:60%"
102
+ placeholder="租户姓名">
103
+ </div>
104
+ <div style="" class="col-sm-4 form-group">
105
+ <label for="f_zuhu_phone" class="font_normal_body">&ensp;租户电话</label>
106
+ <input type="text" v-model="baseinfo.base.f_zuhu_phone" class="input_search" style="width:60%"
107
+ placeholder="租户电话">
108
+ </div>
109
+ <div style="" class="col-sm-4 form-group">
110
+ <label for="f_cost_type" class="font_normal_body ">&ensp;付款类型</label>
111
+ <v-select id="f_cost_type" :value.sync="baseinfo.base.f_cost_type" v-model="baseinfo.base.f_cost_type"
112
+ :options='costtype' placeholder='付款类型' style="width: 65%" close-on-select></v-select>
113
+ </div>
114
+ </div>
115
+ <div class="row">
116
+ <div class="col-sm-8 form-group">
117
+ <label for="f_contract" class="font_normal_body">&ensp;合同编号</label>
118
+ <input type="text" v-model="baseinfo.base.f_contract_id" class="input_search" style="width:80%"
119
+ placeholder="合同编号">
120
+ </div>
121
+ <!--<div style="" class="col-sm-4 form-group">-->
122
+ <!--<label for="f_print_lc" class="font_normal_body ">&ensp;打印状态</label>-->
123
+ <!--<v-select id="f_print_lc" :value.sync="baseinfo.base.f_print_lc" v-model="baseinfo.base.f_print_lc"-->
124
+ <!--:value-single="true" :disabled="!jurisdiction.includes('档案信息查询修改')"-->
125
+ <!--:options='mgq' placeholder='是否打印' style="width: 65%" close-on-select></v-select>-->
126
+ <!--</div>-->
127
+ <div class="col-sm-4 form-group" :class="[$v.f_print_dh.required ? 'has-error' : '']">
128
+ <label for="f_print_dh" class="font_normal_body ">*打印类别</label>
129
+ <input type="text" v-show="false" v-model="baseinfo.base.f_print_dh" v-validate:f_print_dh='{required: true }'>
130
+ <v-select id="f_print_dh" :value.sync="baseinfo.base.f_print_dh" v-model="baseinfo.base.f_print_dh"
131
+ :value-single="true" :disabled="baseinfo.base.f_print_dh_stats" :search="false"
132
+ :options='printstate' placeholder='流程单 | 点火单' style="width: 65%" close-on-select></v-select>
133
+ </div>
134
+
135
+
136
+ </div>
137
+ <div class="row">
138
+ <div style="" class="col-sm-8 form-group">
139
+ <label for="f_paper_account" class="font_normal_body ">&ensp;备&emsp;&emsp;注</label>
140
+ <input class="input_search" style="width:80%" v-model="baseinfo.base.f_comments"/>
141
+ </div>
142
+ <div class="col-sm-4 form-group" :class="[$v.f_house_type.required ? 'has-error' : '']">
143
+ <label for="f_user_state" class="font_normal_body">&ensp;房屋类型</label>
144
+ <input type="text" v-show="false" v-model="baseinfo.base.f_house_type" v-validate:f_house_type='{required: true }'>
145
+ <v-select :value.sync="baseinfo.base.f_house_type" :search="false" :value-single="true"
146
+ :options='housetype' placeholder='房屋类型' close-on-select>
147
+ </v-select>
148
+ </div>
149
+ </div>
150
+ <div class="row">
151
+ <a style="text-decoration: none;font-weight: 300;float: left;color: #333;margin-top: 15px;font-weight: 500"
152
+ v-if="baseinfo.base.f_cost_type[0] === '银行代扣'">银行信息</a>
153
+ </div>
154
+ <div v-if="baseinfo.base.f_cost_type[0] === '银行代扣'">
155
+ <div class="row">
156
+ <div class="col-sm-4 form-group"
157
+ :class="[$v.f_bank_accopen.required ? 'has-error' : '']">
158
+ <label for="f_username" class="font_normal_body">银行户名</label>
159
+ <input type="text" v-model="baseinfo.bank.f_bank_accopen"
160
+ class="input_search" style="width:60%" id="f_username" placeholder="用户名称"
161
+ v-validate:f_bank_accopen='{required: true}'
162
+ v-next-el="bankaccount">
163
+ </div>
164
+ <div class="col-sm-4 form-group" id=userfiles-useEssInf-银行名称>
165
+ <label for="f_username" class="font_normal_body ">银行名称</label>
166
+ <v-select :value.sync="baseinfo.bank.f_bank_name"
167
+ :options='banknames' placeholder='银行名称'
168
+ close-on-select></v-select>
169
+ </div>
170
+ <div class="col-sm-4 form-group">
171
+ <label for="f_bank_idnumber" class="font_normal_body">缴费编号</label>
172
+ <input type="text" v-model="baseinfo.bank.f_bank_pay_number"
173
+ class="input_search" style="width:60%"
174
+ aria-describedby="helpBlock" placeholder="缴费编号" v-el:bankpaynumber>
175
+ </div>
176
+ <div class="col-sm-12 form-group">
177
+ <label for="f_bank_idnumber" class="font_normal_body">身份证号</label>
178
+ <input type="text" v-model="baseinfo.bank.f_bank_idnumber"
179
+ class="input_search" style="width:54%"
180
+ aria-describedby="helpBlock" placeholder="身份证号" v-el:bankidnumber>
181
+ </div>
182
+ <div class="col-sm-12 form-group"
183
+ :class="[$v.f_bank_account.required ? 'has-error' : '']">
184
+ <label for="f_userid" class="font_normal_body">银行账号</label>
185
+ <input type="text" v-model="baseinfo.bank.f_bank_account" class="input_search" style="width:54%"
186
+ v-validate:f_bank_account='{required: true}' placeholder="银行账号" v-el:bankaccount
187
+ v-next-el="bankidnumber">
188
+ </div>
189
+ </div>
190
+ </div>
191
+ </form>
192
+ </validator>
193
+ <modal v-if="showselectaddress" :show.sync="showselectaddress" width="80%" title="地址信息" v-ref:modal large backdrop="false">
194
+ <article slot="modal-body" class="modal-body" style="height: 700px;padding: 0!important;">
195
+ <file-address-manage-new :is-select="isSelect" :fileinfo="addressinfo"
196
+ @address-valid="doNothing" :showselectaddress.sync="showselectaddress"
197
+ :f_filialeid="f_filialeid"
198
+ v-ref:fileaddress ></file-address-manage-new>
199
+ </article>
200
+ <footer slot="modal-footer" class="modal-footer">
201
+ </footer>
202
+ </modal>
203
+ </div>
204
+ </template>
205
+
206
+ <script>
207
+ import {HttpResetClass} from 'vue-client'
208
+ // import HighMeter from '../../plugins/HighMeterPlugin'
209
+
210
+ let getEditUserState = async function (self) {
211
+ try {
212
+ let http = new HttpResetClass()
213
+ let result = await http.load('GET', `rs/vue/EditUserState.json`, {}, {resolveMsg: null, rejectMsg: null})
214
+ console.log('看看结果', result.data.EditUserState)
215
+ self.config.f_print_dh = result.data.f_print_dh
216
+ self.baseinfo.base.f_print_dh = (self.baseinfo.base.f_print_dh && self.baseinfo.base.f_print_dh != '' && self.baseinfo.base.f_print_dh != '否') ? self.baseinfo.base.f_print_dh : result.data.f_print_dh
217
+ self.edituserstate = result.data.EditUserState
218
+ } catch (e) {
219
+ console.log(e)
220
+ }
221
+ }
222
+
223
+ export default {
224
+ title: '基本信息',
225
+ props: ['baseinfo', 'addressinfo', 'isedit', 'f_filialeid'],
226
+ data () {
227
+ return {
228
+ showselectaddress: false,
229
+ site: '',
230
+ areas: [],
231
+ streets: [],
232
+ residentials: [],
233
+ config: {},
234
+ inputtores: this.$appdata.getParam('抄表员'),
235
+ credentials: this.$appdata.getParam('证件类型'),
236
+ costtypes: this.$appdata.getParam('缴费类型'),
237
+ banknames: this.$appdata.getParam('银行名称'),
238
+ userstates: [{label: '预备', value: '预备'}],
239
+ housetype: this.$appdata.getParam('房屋类型'),
240
+ mgq: this.$appdata.getParam('是否煤改气'),
241
+ costtype: this.$appdata.getParam('付款类型'),
242
+ printstate: this.$appdata.getParam('建档打印类型') ? [{label: '暂不选择', value: '暂不选择'}, ...this.$appdata.getParam('建档打印类型')]:[{label: '暂不选择', value: '暂不选择'}],
243
+ jurisdiction: this.$login.r,
244
+ edituserstate: false,
245
+ // highMeterPlugin: {},
246
+ readCardFlag: true,
247
+
248
+ isSelect: false
249
+ }
250
+ },
251
+ ready () {
252
+ console.log('f_filialeid222,,,', this.f_filialeid)
253
+ getEditUserState(this)
254
+ this.$resetValidation()
255
+ // this.highMeterPlugin = new HighMeter(this,this.readIDCardCallback)
256
+ },
257
+ beforeDestroy () {
258
+ console.log('销毁')
259
+ // this.highMeterPlugin.Stop()
260
+ },
261
+ methods: {
262
+ selectaddress () {
263
+ this.showselectaddress = true
264
+ this.isSelect = true
265
+ },
266
+ modifyaddress () {
267
+ this.showselectaddress = true
268
+ this.isSelect = false
269
+ },
270
+ onValid (res) {
271
+ this.$dispatch('valid')
272
+ },
273
+ onInvalid (res) {
274
+ this.$dispatch('invalid')
275
+ },
276
+ doNothing () {
277
+ // console.log('啥也不做')
278
+ },
279
+ readIDCardCallback (compoent, msg) {
280
+ // console.log('进入高拍仪',msg)
281
+ if (msg.err !== 0) {
282
+ return
283
+ }
284
+ // document.getElementById("idCardType").getElementsByClassName("btn-content")[0].innerHTML="身份证"
285
+ compoent.baseinfo.base.f_idnumber = msg.strID
286
+ compoent.baseinfo.base.f_user_name = msg.strName.trim()
287
+ compoent.baseinfo.base.f_credentials = ['身份证']
288
+ }
289
+ },
290
+ watch: {
291
+ // 重置验证结果,当证件类型切换时,验证结果不能立即刷新,需要重置
292
+ 'baseinfo.base.f_credentials[0]' () {
293
+ // console.log('验证器重置')
294
+ this.$resetValidation()
295
+ this.baseinfo.base.f_print_dh = (this.baseinfo.base.f_print_dh && this.baseinfo.base.f_print_dh != '' && this.baseinfo.base.f_print_dh != '否') ? this.baseinfo.base.f_print_dh : this.config.f_print_dh
296
+ },
297
+ 'baseinfo.base.f_cost_type[0]' () {
298
+ // console.log('验证器重置')
299
+ this.$resetValidation()
300
+ this.baseinfo.base.f_print_dh = (this.baseinfo.base.f_print_dh && this.baseinfo.base.f_print_dh != '' && this.baseinfo.base.f_print_dh != '否') ? this.baseinfo.base.f_print_dh : this.config.f_print_dh
301
+ },
302
+ // 当选择销户,需要给其提醒是否进行销户
303
+ 'baseinfo.base.f_user_state' (val) {
304
+ if (val[0] === '销户') {
305
+ this.$showMessage('是否要对该客户进行销户操作?', ['confirm', 'cancel']).then((res) => {
306
+ if (res !== 'confirm') {
307
+ this.baseinfo.base.f_user_state = ['正常']
308
+ }
309
+ })
310
+ }
311
+ }
312
+ },
313
+ computed: {},
314
+ events: {
315
+ 'confirmaddress' (res) {
316
+ // console.log('选定地址', res)
317
+ this.showselectaddress = false
318
+ this.addressinfo.f_address = res.f_address
319
+ this.addressinfo.id = res.id
320
+ if (res.f_house_type != null) {
321
+ this.baseinfo.base.f_house_type = res.f_house_type
322
+ }
323
+ this.$dispatch('defaultOtheret', res)
324
+ }
325
+ }
326
+ }
327
+ </script>
@@ -45,4 +45,6 @@ export default function () {
45
45
  Vue.component('reset-meter', (resolve) => { require(['./ResetMeter'], resolve) })
46
46
  // 表计管理
47
47
  Vue.component('web-meter-info', (resolve) => { require(['./WebMeterInfo'], resolve) })
48
+ // 用户基本信息test
49
+ Vue.component('file-user-essential-info-new', (resolve) => { require(['./components/FilesManageNew/UserEssentialInfoTest'], resolve) })
48
50
  }
@@ -56,17 +56,45 @@
56
56
  },
57
57
  ready () {
58
58
  this.blodid = this.row.f_userinfo_id
59
+ if (this.row.f_table_state === '停用') {
60
+ let data = {
61
+ f_userfile_id: this.row.f_userfiles_id,
62
+ f_user_id: this.row.f_user_id,
63
+ f_userinfo_id: this.row.f_userinfo_id,
64
+ f_user_name: this.row.f_user_name,
65
+ f_comments: this.model.f_reason[0],
66
+ f_othereason: this.model.f_othereason
67
+ }
68
+ this.$resetpost('rs/logic/getLastDisableReason', {data: data}, {
69
+ resolveMsg: null,
70
+ rejectMsg: null
71
+ }).then((res) => {
72
+ this.$set('model.f_othereason', res.data.f_othereason)
73
+ this.$set('model.f_reason[0]', res.data.f_comments)
74
+ })
75
+ }
59
76
  },
60
77
  methods: {
61
78
  async confirm () {
62
79
  if (this.row.f_table_state === '停用') {
63
80
  let data = {
64
- f_userfile_id: this.row.f_userfiles_id,
81
+ f_userfiles_id: this.row.f_userfiles_id,
65
82
  f_user_id: this.row.f_user_id,
66
83
  f_userinfo_id: this.row.f_userinfo_id,
67
84
  f_user_name: this.row.f_user_name,
68
85
  f_comments: this.model.f_reason[0],
69
- f_othereason: this.model.f_othereason
86
+ f_othereason: this.model.f_othereason,
87
+ f_operat_type: '停用',
88
+ f_describe: `${this.$login.f.name}对客户${this.row.f_user_name}进行表具停用操作`,
89
+ f_state: '有效',
90
+ f_operator: this.$login.f.name,
91
+ f_operatorid: this.$login.f.id,
92
+ f_orgid: this.$login.f.orgid,
93
+ f_orgname: this.$login.f.orgs,
94
+ f_depid: this.$login.f.depids,
95
+ f_depname: this.$login.f.deps,
96
+ f_zoneid: this.$login.f.zoneid,
97
+ f_zones: this.$login.f.zones
70
98
  }
71
99
  this.$resetpost('rs/logic/updateDisable', {data: data}, {
72
100
  resolveMsg: '更新停用原因成功',