sale-client 3.6.499 → 3.6.500
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/revenue/HandManager/HandManager.vue +0 -1
- package/src/filiale/bayan/FileUserFiles.vue +1 -1
- package/src/filiale/bayan/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/bayan/FilesManageNew/UserEssentialInfoTest.vue +123 -114
- package/src/filiale/macheng/UserBaseInfoNew.vue +2 -2
- package/src/filiale/tongchuan/BankPayment/BankPayment.vue +0 -2
package/package.json
CHANGED
|
@@ -1269,7 +1269,6 @@
|
|
|
1269
1269
|
this.$refs.paged.$refs.criteria.model.f_orgid = `${Vue.$login.f.orgid}`
|
|
1270
1270
|
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStartAndEndDateString()[0]
|
|
1271
1271
|
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStartAndEndDateString()[1]
|
|
1272
|
-
this.search()
|
|
1273
1272
|
},
|
|
1274
1273
|
beforenter (index, row) {
|
|
1275
1274
|
this.inputid = index + 1
|
|
@@ -485,7 +485,7 @@ export default {
|
|
|
485
485
|
methods: {
|
|
486
486
|
userRegionChange (val) {
|
|
487
487
|
console.log('看一下用户区域的变化', val)
|
|
488
|
-
if (val.length > 0) {
|
|
488
|
+
if (val && val.length > 0) {
|
|
489
489
|
this.userBusinessHalls = this.$appdata.getParam(val[0] + '区域营业厅') ? [{label: '全部', value: ''}, ...this.$appdata.getParam(val[0] + '区域营业厅')] : []
|
|
490
490
|
}
|
|
491
491
|
},
|
|
@@ -740,7 +740,7 @@ let loadParamGem = async function (self) {
|
|
|
740
740
|
methods: {
|
|
741
741
|
userRegionChange (val) {
|
|
742
742
|
console.log('看一下用户区域的变化', val)
|
|
743
|
-
if (val.length > 0) {
|
|
743
|
+
if (val && val.length > 0) {
|
|
744
744
|
this.userBusinessHalls = this.$appdata.getParam(val[0] + '区域营业厅') ? [{label: '全部', value: ''}, ...this.$appdata.getParam(val[0] + '区域营业厅')] : []
|
|
745
745
|
}
|
|
746
746
|
},
|
|
@@ -5,20 +5,16 @@
|
|
|
5
5
|
<div class="row">
|
|
6
6
|
<div class="col-sm-4 form-group " :class="[!baseinfo.base.f_user_name ? 'has-error' : '']"
|
|
7
7
|
v-if="getConfigShowItem('f_user_name')">
|
|
8
|
-
<label for="f_user_name"
|
|
9
|
-
class="font_normal_body">*{{ getConfigLabelName('f_user_name', '用户姓名') }}</label>
|
|
8
|
+
<label for="f_user_name" class="font_normal_body">*{{getConfigLabelName('f_user_name','用户姓名')}}</label>
|
|
10
9
|
<input type="text" v-model="baseinfo.base.f_user_name"
|
|
11
10
|
v-validate:f_user_name='getConfigValidate("f_user_name",true)'
|
|
12
|
-
class="input_search" style="width:60%" :placeholder="getConfigPlaceholder('f_user_name','用户姓名')"
|
|
13
|
-
v-next-el="phone">
|
|
11
|
+
class="input_search" style="width:60%" :placeholder="getConfigPlaceholder('f_user_name','用户姓名')" v-next-el="phone">
|
|
14
12
|
</div>
|
|
15
13
|
<div style="" class="col-sm-4 form-group"
|
|
16
|
-
:class="[$v.f_user_phone.minlength || $v.f_user_phone.maxlength ? 'has-error' : '']"
|
|
17
|
-
|
|
18
|
-
<label for="f_user_phone"
|
|
19
|
-
class="font_normal_body">*{{ getConfigLabelName('f_user_phone', '客户电话') }}</label>
|
|
14
|
+
:class="[$v.f_user_phone.minlength || $v.f_user_phone.maxlength ? 'has-error' : '']" v-if="getConfigShowItem('f_user_phone')">
|
|
15
|
+
<label for="f_user_phone" class="font_normal_body">*{{getConfigLabelName('f_user_phone','客户电话')}}</label>
|
|
20
16
|
<input type="text" maxlength="11" v-model="baseinfo.base.f_user_phone"
|
|
21
|
-
v-validate:f_user_phone=getConfigValidate(
|
|
17
|
+
v-validate:f_user_phone="getConfigValidate('f_user_phone')" class="input_search" style="width:60%"
|
|
22
18
|
:placeholder="getConfigPlaceholder('f_user_phone','客户电话')"
|
|
23
19
|
v-el:phone v-next-el="area">
|
|
24
20
|
</div>
|
|
@@ -34,23 +30,27 @@
|
|
|
34
30
|
<div class="row">
|
|
35
31
|
<div style="" class="col-sm-4 form-group">
|
|
36
32
|
<label for="f_credentials" class="font_normal_body"> 证件类型</label>
|
|
37
|
-
<v-select id="idCardType"
|
|
33
|
+
<v-select id="idCardType"
|
|
34
|
+
:value.sync="baseinfo.base.f_credentials"
|
|
38
35
|
v-model="baseinfo.base.f_credentials"
|
|
39
36
|
:value-single="true"
|
|
40
|
-
:options='credentials'
|
|
37
|
+
:options='credentials'
|
|
38
|
+
placeholder='证件类型'
|
|
41
39
|
style="width: 65%"
|
|
42
40
|
close-on-select></v-select>
|
|
43
41
|
</div>
|
|
44
42
|
<div style="" class="col-sm-8 form-group"
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
key="身份证号码"
|
|
44
|
+
:class="[$v.f_idnumber.identityCardValid ? 'has-error' : '']"
|
|
45
|
+
v-if="baseinfo.base.f_credentials.includes('身份证')">
|
|
47
46
|
<label for="f_idnumber" class="font_normal_body color-red">*证件号码</label>
|
|
48
47
|
<input type="text" maxlength="18" v-model="baseinfo.base.f_idnumber"
|
|
49
|
-
v-validate:
|
|
48
|
+
v-validate:f_idnumber='{identityCardValid: true}' class="input_search" style="width:80%"
|
|
50
49
|
placeholder="证件号码">
|
|
51
50
|
</div>
|
|
52
51
|
<div style="" class="col-sm-8 form-group"
|
|
53
|
-
|
|
52
|
+
key="证件号码"
|
|
53
|
+
v-else>
|
|
54
54
|
<label class="font_normal_body"> 证件号码</label>
|
|
55
55
|
<input type="text" v-model="baseinfo.base.f_idnumber" class="input_search" style="width:80%"
|
|
56
56
|
placeholder="证件号码">
|
|
@@ -59,15 +59,12 @@
|
|
|
59
59
|
<div class="row">
|
|
60
60
|
<div class="col-sm-12 form-group" :class="[$v.f_address.required ? 'has-error' : '']">
|
|
61
61
|
<label for="f_address" class="font_normal_body">*地址信息</label>
|
|
62
|
-
<input type="text" v-model="addressinfo.f_address" :
|
|
63
|
-
|
|
64
|
-
class="input_search" disabled="disabled" style="width:75%;" placeholder="用户地址">
|
|
62
|
+
<input type="text" v-model="addressinfo.f_address" v-validate:f_address="{required: true}"
|
|
63
|
+
class="input_search" disabled="disabled" style="width:75%;" placeholder="用户地址" >
|
|
65
64
|
<span>
|
|
66
|
-
<button class="button_search button_spacing" type="button" style="width: max-content" v-if="!isedit"
|
|
67
|
-
@click="selectaddress()">选择地址</button>
|
|
65
|
+
<button class="button_search button_spacing" type="button" style="width: max-content" v-if="!isedit" @click="selectaddress()">选择地址</button>
|
|
68
66
|
<!-- <button class="button_search button_spacing" type="button" style="width: max-content" v-if="isedit" @click="modifyaddress()">修改地址</button>-->
|
|
69
|
-
<button class="button_search button_spacing" type="button" style="width: max-content" v-if="isedit"
|
|
70
|
-
@click="selectaddress()">修改地址</button>
|
|
67
|
+
<button class="button_search button_spacing" type="button" style="width: max-content" v-if="isedit" @click="selectaddress()">修改地址</button>
|
|
71
68
|
</span>
|
|
72
69
|
</div>
|
|
73
70
|
</div>
|
|
@@ -76,10 +73,9 @@
|
|
|
76
73
|
v-show="(formconfig && formconfig.f_used_name && formconfig.f_used_name.required) || !onlyshowmust"
|
|
77
74
|
:class="[$v.f_used_name.required ? 'has-error' : '']"
|
|
78
75
|
class="col-sm-4 form-group" v-if="getConfigShowItem('f_used_name')">
|
|
79
|
-
<label style="letter-spacing: 0.5em;margin-right: -0.5em;margin-left: -0.5em" for="f_used_name"
|
|
80
|
-
class="font_normal_body w3"> {{ getConfigLabelName('f_used_name', '曾用名') }}</label>
|
|
76
|
+
<label style="letter-spacing: 0.5em;margin-right: -0.5em;margin-left: -0.5em" for="f_used_name" class="font_normal_body w3"> {{getConfigLabelName('f_used_name','曾用名')}}</label>
|
|
81
77
|
<input type="text" v-model="baseinfo.base.f_used_name" class="input_search" style="width:60%"
|
|
82
|
-
v-validate:f_used_name=getConfigValidate(
|
|
78
|
+
v-validate:f_used_name="getConfigValidate('f_used_name',false)"
|
|
83
79
|
:placeholder="getConfigPlaceholder('f_used_name','曾用名')">
|
|
84
80
|
</div>
|
|
85
81
|
<div style="" class="col-sm-4 form-group"
|
|
@@ -87,16 +83,14 @@
|
|
|
87
83
|
:class="[$v.f_rent_phone.required ? 'has-error' : '']" v-if="getConfigShowItem('f_rent_phone')">
|
|
88
84
|
<label for="f_rent_phone" class="font_normal_body"> 备用电话</label>
|
|
89
85
|
<input type="text" v-model="baseinfo.base.f_rent_phone" class="input_search" style="width:60%"
|
|
90
|
-
v-validate:f_rent_phone=getConfigValidate(
|
|
86
|
+
v-validate:f_rent_phone="getConfigValidate('f_rent_phone',false)"
|
|
91
87
|
placeholder="备用电话">
|
|
92
88
|
</div>
|
|
93
89
|
<div class="col-sm-4 form-group"
|
|
94
90
|
v-show="(formconfig && formconfig.f_people_num && formconfig.f_people_num.required) || !onlyshowmust"
|
|
95
91
|
:class="[$v.f_people_num.dctest ? 'has-error' : '']" v-if="getConfigShowItem('f_people_num')">
|
|
96
|
-
<label for="f_people_num" style="letter-spacing: 0.5em;margin-right: -0.5em"
|
|
97
|
-
|
|
98
|
-
<input type="number" v-model="baseinfo.base.f_people_num" v-show="!peopleMax"
|
|
99
|
-
v-validate:f_people_num='{dctest: [0, ">=" ]}'
|
|
92
|
+
<label for="f_people_num" style="letter-spacing: 0.5em;margin-right: -0.5em" class="font_normal_body w3">{{getConfigLabelName('f_people_num','人口数')}}</label>
|
|
93
|
+
<input type="number" v-model="baseinfo.base.f_people_num" v-show="!peopleMax" v-validate:f_people_num='{dctest: [0, ">=" ]}'
|
|
100
94
|
:disabled="!jurisdiction.includes('修改人口数')" class="input_search" style="width:60%"
|
|
101
95
|
placeholder="家庭人口数">
|
|
102
96
|
<v-select id="f_people_num" :value.sync="baseinfo.base.f_people_num"
|
|
@@ -114,31 +108,28 @@
|
|
|
114
108
|
v-show="(formconfig && formconfig.f_balance && formconfig.f_balance.required) || !onlyshowmust"
|
|
115
109
|
:class="[$v.f_balance.required ? 'has-error' : '']"
|
|
116
110
|
class="col-sm-4 form-group" v-if="getConfigShowItem('f_balance')">
|
|
117
|
-
<label for="f_balance"
|
|
118
|
-
class="font_normal_body"> {{ getConfigLabelName('f_balance', '用户余额') }}</label>
|
|
111
|
+
<label for="f_balance" class="font_normal_body"> {{getConfigLabelName('f_balance','用户余额')}}</label>
|
|
119
112
|
<input type="text" v-model="baseinfo.base.f_balance" class="input_search" style="width:60%"
|
|
120
|
-
v-validate:f_balance=getConfigValidate(
|
|
113
|
+
v-validate:f_balance="getConfigValidate('f_balance',false)"
|
|
121
114
|
:placeholder="getConfigPlaceholder('f_balance','用户余额')"
|
|
122
115
|
:disabled="!jurisdiction.includes('档案信息查询修改')">
|
|
123
116
|
</div>
|
|
124
117
|
<div style="" class="col-sm-4 form-group" v-if="getConfigShowItem('f_is_mgq')"
|
|
125
118
|
v-show="(formconfig && formconfig.f_is_mgq && formconfig.f_is_mgq.required) || !onlyshowmust"
|
|
126
119
|
:class="[$v.f_is_mgq.required ? 'has-error' : '']">
|
|
127
|
-
<label for="f_is_mgq" style="letter-spacing: 0.5em;margin-right: -0.5em"
|
|
128
|
-
class="font_normal_body w3">{{ getConfigLabelName('f_is_mgq', '煤改气') }}</label>
|
|
120
|
+
<label for="f_is_mgq" style="letter-spacing: 0.5em;margin-right: -0.5em" class="font_normal_body w3">{{getConfigLabelName('f_is_mgq','煤改气')}}</label>
|
|
129
121
|
<input type="text" v-show="false" v-model="baseinfo.base.f_is_mgq"
|
|
130
|
-
v-validate:f_is_mgq=getConfigValidate(
|
|
131
|
-
<v-select id="f_is_mgq" :value.sync="baseinfo.base.f_is_mgq"
|
|
122
|
+
v-validate:f_is_mgq="getConfigValidate('f_is_mgq',false)">
|
|
123
|
+
<v-select id="f_is_mgq" :value.sync="baseinfo.base.f_is_mgq" v-model="baseinfo.base.f_is_mgq"
|
|
132
124
|
:placeholder="getConfigPlaceholder('f_is_mgq','是否煤改气')"
|
|
133
|
-
:options='mgq' style="width: 65%"
|
|
125
|
+
:options='mgq' style="width: 65%" close-on-select></v-select>
|
|
134
126
|
</div>
|
|
135
127
|
<div class="col-sm-4 form-group" v-if="getConfigShowItem('f_book_no')"
|
|
136
128
|
v-show="(formconfig && formconfig.f_book_no && formconfig.f_book_no.required) || !onlyshowmust"
|
|
137
129
|
:class="[$v.f_book_no.required ? 'has-error' : '']">
|
|
138
|
-
<label for="f_contract"
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
v-validate:f_book_no=getConfigValidate("f_book_no",false)
|
|
130
|
+
<label for="f_contract" class="font_normal_body"> {{getConfigLabelName('f_book_no','燃气本号')}}</label>
|
|
131
|
+
<input type="text" v-model="baseinfo.base.f_book_no" class="input_search" style="width:60%"
|
|
132
|
+
v-validate:f_book_no="getConfigValidate('f_book_no',false)"
|
|
142
133
|
:placeholder="getConfigPlaceholder('f_book_no','用户证号')">
|
|
143
134
|
</div>
|
|
144
135
|
</div>
|
|
@@ -146,56 +137,44 @@
|
|
|
146
137
|
<div style="" class="col-sm-4 form-group" v-if="getConfigShowItem('f_rent_name')"
|
|
147
138
|
v-show="(formconfig && formconfig.f_rent_name && formconfig.f_rent_name.required) || !onlyshowmust"
|
|
148
139
|
:class="[$v.f_rent_name.required ? 'has-error' : '']">
|
|
149
|
-
<label for="f_rent_name"
|
|
150
|
-
class="font_normal_body"> {{ getConfigLabelName('f_rent_name', '租户姓名') }}</label>
|
|
140
|
+
<label for="f_rent_name" class="font_normal_body"> {{getConfigLabelName('f_rent_name','租户姓名')}}</label>
|
|
151
141
|
<input type="text" v-model="baseinfo.base.f_rent_name" class="input_search" style="width:60%"
|
|
152
|
-
v-validate:f_rent_name=getConfigValidate(
|
|
142
|
+
v-validate:f_rent_name="getConfigValidate('f_rent_name',false)"
|
|
153
143
|
:placeholder="getConfigPlaceholder('f_rent_name','租户姓名')">
|
|
154
144
|
</div>
|
|
155
145
|
<div style="" class="col-sm-4 form-group" v-if="getConfigShowItem('f_zuhu_phone')"
|
|
156
146
|
v-show="(formconfig && formconfig.f_zuhu_phone && formconfig.f_zuhu_phone.required) || !onlyshowmust"
|
|
157
147
|
:class="[$v.f_zuhu_phone.required ? 'has-error' : '']">
|
|
158
|
-
<label for="f_zuhu_phone"
|
|
159
|
-
class="font_normal_body">{{ getConfigLabelName('f_zuhu_phone', '租户电话') }}</label>
|
|
148
|
+
<label for="f_zuhu_phone" class="font_normal_body">{{getConfigLabelName('f_zuhu_phone','租户电话')}}</label>
|
|
160
149
|
<input type="text" v-model="baseinfo.base.f_zuhu_phone" class="input_search" style="width:60%"
|
|
161
|
-
v-validate:f_zuhu_phone=getConfigValidate(
|
|
150
|
+
v-validate:f_zuhu_phone="getConfigValidate('f_zuhu_phone',false)"
|
|
162
151
|
:placeholder="getConfigPlaceholder('f_zuhu_phone','租户电话')">
|
|
163
152
|
</div>
|
|
164
153
|
<div style="" class="col-sm-4 form-group"
|
|
165
154
|
v-show="(formconfig && formconfig.f_cost_type && formconfig.f_cost_type.required) || !onlyshowmust"
|
|
166
155
|
v-if="getConfigShowItem('f_cost_type')">
|
|
167
|
-
<label for="f_is_mgq"
|
|
168
|
-
|
|
169
|
-
<v-select id="f_is_mgq" :value.sync="baseinfo.base.f_cost_type" v-model="baseinfo.base.f_cost_type"
|
|
156
|
+
<label for="f_is_mgq" class="font_normal_body "> {{getConfigLabelName('f_cost_type','付款类型')}}</label>
|
|
157
|
+
<v-select id="f_is_mgq" :value.sync="baseinfo.base.f_cost_type" v-model="baseinfo.base.f_cost_type"
|
|
170
158
|
:options='costtype'
|
|
171
|
-
:placeholder="getConfigPlaceholder('f_cost_type','付款类型')"
|
|
172
|
-
close-on-select></v-select>
|
|
159
|
+
:placeholder="getConfigPlaceholder('f_cost_type','付款类型')" style="width: 65%" close-on-select></v-select>
|
|
173
160
|
</div>
|
|
174
161
|
</div>
|
|
175
162
|
<div class="row">
|
|
176
163
|
<div class="col-sm-8 form-group" v-if="getConfigShowItem('f_contract_id')"
|
|
177
164
|
v-show="(formconfig && formconfig.f_contract_id && formconfig.f_contract_id.required) || !onlyshowmust"
|
|
178
165
|
:class="[$v.f_contract_id.required ? 'has-error' : '']">
|
|
179
|
-
<label for="f_contract"
|
|
180
|
-
class="font_normal_body"> {{ getConfigLabelName('f_contract_id', '合同编号') }}</label>
|
|
166
|
+
<label for="f_contract" class="font_normal_body"> {{getConfigLabelName('f_contract_id','合同编号')}}</label>
|
|
181
167
|
<input type="text" v-model="baseinfo.base.f_contract_id" class="input_search" style="width:80%"
|
|
182
|
-
v-validate:f_contract_id=getConfigValidate(
|
|
168
|
+
v-validate:f_contract_id="getConfigValidate('f_contract_id',false)"
|
|
183
169
|
:placeholder="getConfigPlaceholder('f_contract_id','合同编号')">
|
|
184
170
|
</div>
|
|
185
|
-
<!--<div style="" class="col-sm-4 form-group">-->
|
|
186
|
-
<!--<label for="f_print_lc" class="font_normal_body "> 打印状态</label>-->
|
|
187
|
-
<!--<v-select id="f_print_lc" :value.sync="baseinfo.base.f_print_lc" v-model="baseinfo.base.f_print_lc"-->
|
|
188
|
-
<!--:value-single="true" :disabled="!jurisdiction.includes('档案信息查询修改')"-->
|
|
189
|
-
<!--:options='mgq' placeholder='是否打印' style="width: 65%" close-on-select></v-select>-->
|
|
190
|
-
<!--</div>-->
|
|
191
171
|
<div class="col-sm-4 form-group"
|
|
192
172
|
v-show="(formconfig && formconfig.f_contract_id && formconfig.f_contract_id.required) || !onlyshowmust"
|
|
193
173
|
:class="[$v.f_contract_id.required ? 'has-error' : '']">
|
|
194
|
-
<label for="f_print_dh"
|
|
195
|
-
class="font_normal_body "> {{ getConfigLabelName('f_print_dh', '打印类别') }}</label>
|
|
174
|
+
<label for="f_print_dh" class="font_normal_body "> {{getConfigLabelName('f_print_dh','打印类别')}}</label>
|
|
196
175
|
<input type="text" v-show="false" v-model="baseinfo.base.f_print_dh"
|
|
197
|
-
v-validate:f_print_dh=getConfigValidate(
|
|
198
|
-
<v-select id="f_print_dh" :value.sync="baseinfo.base.f_print_dh"
|
|
176
|
+
v-validate:f_print_dh="getConfigValidate('f_print_dh',false)">
|
|
177
|
+
<v-select id="f_print_dh" :value.sync="baseinfo.base.f_print_dh" v-model="baseinfo.base.f_print_dh"
|
|
199
178
|
:value-single="true" :disabled="baseinfo.base.f_print_dh_stats" :search="false"
|
|
200
179
|
:options='printstate' placeholder='流程单 | 点火单' style="width: 65%" close-on-select></v-select>
|
|
201
180
|
</div>
|
|
@@ -206,20 +185,22 @@
|
|
|
206
185
|
<div style="" class="col-sm-12 form-group" v-if="getConfigShowItem('f_comments')"
|
|
207
186
|
v-show="(formconfig && formconfig.f_comments && formconfig.f_comments.required) || !onlyshowmust"
|
|
208
187
|
:class="[$v.f_comments.required ? 'has-error' : '']">
|
|
209
|
-
<label for="f_paper_accoun" style="letter-spacing: 2em;margin-right: -2em;margin-left: -2em"
|
|
210
|
-
class="font_normal_body w2"> {{ getConfigLabelName('f_comments', '备注') }}</label>
|
|
188
|
+
<label for="f_paper_accoun" style="letter-spacing: 2em;margin-right: -2em;margin-left: -2em" class="font_normal_body w2"> {{getConfigLabelName('f_comments','备注')}}</label>
|
|
211
189
|
<input class="input_search" style="width:86.5%;height: 40px" v-model="baseinfo.base.f_comments"
|
|
212
190
|
:placeholder="getConfigPlaceholder('f_comments','请输入备注信息')"
|
|
213
|
-
v-validate:f_comments=getConfigValidate(
|
|
191
|
+
v-validate:f_comments="getConfigValidate('f_comments',false)">
|
|
214
192
|
</div>
|
|
215
|
-
|
|
216
|
-
|
|
193
|
+
|
|
194
|
+
<div class="col-sm-4 form-group"
|
|
195
|
+
v-show="((formconfig && formconfig.f_house_type && formconfig.f_house_type.required) || !onlyshowmust) && getConfigShowItem('f_house_type')"
|
|
217
196
|
:class="[$v.f_house_type.required ? 'has-error' : '']">
|
|
218
|
-
<label for="f_user_state"
|
|
219
|
-
class="font_normal_body"> {{ getConfigLabelName('f_house_type', '房屋类型') }}</label>
|
|
197
|
+
<label for="f_user_state" class="font_normal_body"> {{getConfigLabelName('f_house_type','房屋类型')}}</label>
|
|
220
198
|
<input type="text" v-show="false" v-model="baseinfo.base.f_house_type"
|
|
221
|
-
v-validate:f_house_type=getConfigValidate(
|
|
222
|
-
<v-select :value.sync="baseinfo.base.f_house_type"
|
|
199
|
+
v-validate:f_house_type="getConfigValidate('f_house_type')"/>
|
|
200
|
+
<v-select :value.sync="baseinfo.base.f_house_type"
|
|
201
|
+
v-model="baseinfo.base.f_house_type"
|
|
202
|
+
:search="false"
|
|
203
|
+
:value-single="true"
|
|
223
204
|
:options='housetype' close-on-select
|
|
224
205
|
:placeholder="getConfigPlaceholder('f_house_type','房屋类型')">
|
|
225
206
|
</v-select>
|
|
@@ -230,7 +211,7 @@
|
|
|
230
211
|
<label for="f_user_nature" class="font_normal_body"
|
|
231
212
|
title="用户性质"> {{ getConfigLabelName('f_user_region', '用户区域') }}</label>
|
|
232
213
|
<input type="text" v-show="false" v-model="baseinfo.base.f_user_region"
|
|
233
|
-
v-validate:f_user_nature=getConfigValidate(
|
|
214
|
+
v-validate:f_user_nature=getConfigValidate('f_user_region',false)>
|
|
234
215
|
<v-select :value.sync="baseinfo.base.f_user_region"
|
|
235
216
|
:search="false"
|
|
236
217
|
:value-single="true"
|
|
@@ -246,7 +227,7 @@
|
|
|
246
227
|
<label for="f_user_nature" class="font_normal_body"
|
|
247
228
|
title="用户性质">  {{ getConfigLabelName('f_user_business_hall', '营业厅') }}</label>
|
|
248
229
|
<input type="text" v-show="false" v-model="baseinfo.base.f_user_business_hall"
|
|
249
|
-
v-validate:f_user_business_hall=getConfigValidate(
|
|
230
|
+
v-validate:f_user_business_hall=getConfigValidate('f_user_nature',false)>
|
|
250
231
|
<v-select :value.sync="baseinfo.base.f_user_business_hall"
|
|
251
232
|
:search="false"
|
|
252
233
|
:value-single="true"
|
|
@@ -315,7 +296,6 @@
|
|
|
315
296
|
|
|
316
297
|
<script>
|
|
317
298
|
import {HttpResetClass} from 'vue-client'
|
|
318
|
-
// import HighMeter from '../../plugins/HighMeterPlugin'
|
|
319
299
|
|
|
320
300
|
let getEditUserState = async function (self) {
|
|
321
301
|
try {
|
|
@@ -346,6 +326,7 @@ export default {
|
|
|
346
326
|
f_idnumber: true,
|
|
347
327
|
f_house_type: true
|
|
348
328
|
},
|
|
329
|
+
validateRules: {},
|
|
349
330
|
inputtores: this.$appdata.getParam('抄表员'),
|
|
350
331
|
credentials: this.$appdata.getParam('证件类型'),
|
|
351
332
|
costtypes: this.$appdata.getParam('缴费类型'),
|
|
@@ -354,10 +335,7 @@ export default {
|
|
|
354
335
|
housetype: this.$appdata.getParam('房屋类型'),
|
|
355
336
|
mgq: this.$appdata.getParam('是否煤改气'),
|
|
356
337
|
costtype: this.$appdata.getParam('付款类型'),
|
|
357
|
-
printstate: this.$appdata.getParam('建档打印类型') ? [{
|
|
358
|
-
label: '暂不选择',
|
|
359
|
-
value: '暂不选择'
|
|
360
|
-
}, ...this.$appdata.getParam('建档打印类型')] : [{label: '暂不选择', value: '暂不选择'}],
|
|
338
|
+
printstate: this.$appdata.getParam('建档打印类型') ? [{label: '暂不选择', value: '暂不选择'}, ...this.$appdata.getParam('建档打印类型')] : [{label: '暂不选择', value: '暂不选择'}],
|
|
361
339
|
peopleMax: this.$appdata.getSingleValue('最大人口数'),
|
|
362
340
|
userRegions: this.$appdata.getParam('区域'),
|
|
363
341
|
userBusinessHalls: [],
|
|
@@ -370,14 +348,11 @@ export default {
|
|
|
370
348
|
}
|
|
371
349
|
},
|
|
372
350
|
ready () {
|
|
373
|
-
console.log('f_filialeid222,,,', this.f_filialeid)
|
|
374
351
|
getEditUserState(this)
|
|
375
352
|
this.$resetValidation()
|
|
376
|
-
|
|
353
|
+
this.initValidateRules()
|
|
377
354
|
},
|
|
378
355
|
beforeDestroy () {
|
|
379
|
-
console.log('销毁')
|
|
380
|
-
// this.highMeterPlugin.Stop()
|
|
381
356
|
},
|
|
382
357
|
methods: {
|
|
383
358
|
userRegionChange () {
|
|
@@ -386,25 +361,57 @@ export default {
|
|
|
386
361
|
this.userBusinessHalls = this.$appdata.getParam(this.baseinfo.base.f_user_region + '区域营业厅')
|
|
387
362
|
}
|
|
388
363
|
},
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
364
|
+
initValidateRules () {
|
|
365
|
+
const fields = [
|
|
366
|
+
'f_user_name', 'f_user_phone', 'f_idnumber', 'f_address', 'f_used_name',
|
|
367
|
+
'f_rent_phone', 'f_people_num', 'f_balance', 'f_is_mgq', 'f_book_no',
|
|
368
|
+
'f_rent_name', 'f_zuhu_phone', 'f_cost_type', 'f_contract_id', 'f_print_dh',
|
|
369
|
+
'f_comments', 'f_house_type', 'f_bank_accopen', 'f_bank_account'
|
|
370
|
+
]
|
|
371
|
+
|
|
372
|
+
fields.forEach(field => {
|
|
373
|
+
this.validateRules[field] = {}
|
|
374
|
+
})
|
|
375
|
+
|
|
376
|
+
this.validateRules['f_user_phone'] = { minlength: 11, maxlength: 11 }
|
|
377
|
+
|
|
378
|
+
this.updateValidateRules()
|
|
379
|
+
},
|
|
380
|
+
|
|
381
|
+
updateValidateRules () {
|
|
382
|
+
if (!this.formconfig) return
|
|
383
|
+
|
|
384
|
+
Object.keys(this.formconfig).forEach(field => {
|
|
385
|
+
const fieldConfig = this.formconfig[field]
|
|
386
|
+
const rules = {}
|
|
387
|
+
|
|
388
|
+
if (fieldConfig.required) {
|
|
389
|
+
rules.required = true
|
|
395
390
|
}
|
|
396
|
-
|
|
397
|
-
|
|
391
|
+
|
|
392
|
+
if (fieldConfig.minlength || fieldConfig.minlength === 0) {
|
|
393
|
+
rules.minlength = fieldConfig.minlength
|
|
398
394
|
}
|
|
399
|
-
|
|
400
|
-
|
|
395
|
+
|
|
396
|
+
if (fieldConfig.maxlength) {
|
|
397
|
+
rules.maxlength = fieldConfig.maxlength
|
|
401
398
|
}
|
|
402
|
-
|
|
399
|
+
|
|
400
|
+
this.validateRules[field] = Object.assign({}, this.validateRules[field], rules)
|
|
401
|
+
})
|
|
402
|
+
},
|
|
403
|
+
|
|
404
|
+
getConfigValidate (name, defaultVal) {
|
|
405
|
+
this.$resetValidation()
|
|
406
|
+
|
|
407
|
+
if (this.validateRules[name] && Object.keys(this.validateRules[name]).length > 0) {
|
|
408
|
+
return this.validateRules[name]
|
|
403
409
|
} else if (name === 'f_user_phone') {
|
|
404
|
-
return {minlength: 11, maxlength: 11}
|
|
410
|
+
return { minlength: 11, maxlength: 11 }
|
|
405
411
|
} else if (defaultVal) {
|
|
406
412
|
return {required: defaultVal}
|
|
407
413
|
}
|
|
414
|
+
|
|
408
415
|
return {}
|
|
409
416
|
},
|
|
410
417
|
getConfigShowItem (name, defaultVal = true) {
|
|
@@ -445,6 +452,12 @@ export default {
|
|
|
445
452
|
doNothing () {
|
|
446
453
|
// console.log('啥也不做')
|
|
447
454
|
},
|
|
455
|
+
resetValidation () {
|
|
456
|
+
this.baseinfo = Object.assign({}, this.baseinfo)
|
|
457
|
+
this.$nextTick(() => {
|
|
458
|
+
this.$resetValidation();
|
|
459
|
+
})
|
|
460
|
+
},
|
|
448
461
|
readIDCardCallback (compoent, msg) {
|
|
449
462
|
// console.log('进入高拍仪',msg)
|
|
450
463
|
if (msg.err !== 0) {
|
|
@@ -453,30 +466,27 @@ export default {
|
|
|
453
466
|
// document.getElementById("idCardType").getElementsByClassName("btn-content")[0].innerHTML="身份证"
|
|
454
467
|
compoent.baseinfo.base.f_idnumber = msg.strID
|
|
455
468
|
compoent.baseinfo.base.f_user_name = msg.strName.trim()
|
|
456
|
-
compoent.baseinfo.base.f_credentials =
|
|
469
|
+
compoent.baseinfo.base.f_credentials = '身份证'
|
|
457
470
|
}
|
|
458
471
|
},
|
|
459
472
|
watch: {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
// console.log('验证器重置')
|
|
463
|
-
this.$resetValidation()
|
|
473
|
+
'baseinfo.base.f_credentials' () {
|
|
474
|
+
this.$resetValidation();
|
|
464
475
|
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
|
|
465
476
|
},
|
|
466
477
|
'baseinfo.base.f_cost_type[0]' () {
|
|
467
|
-
// console.log('验证器重置')
|
|
468
478
|
this.$resetValidation()
|
|
469
479
|
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
|
|
470
480
|
},
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
481
|
+
'baseinfo.base.f_house_type' () {
|
|
482
|
+
console.log(JSON.stringify(this.$v));
|
|
483
|
+
this.resetValidation()
|
|
484
|
+
},
|
|
485
|
+
'formconfig': {
|
|
486
|
+
handler () {
|
|
487
|
+
this.updateValidateRules()
|
|
488
|
+
},
|
|
489
|
+
deep: true
|
|
480
490
|
}
|
|
481
491
|
},
|
|
482
492
|
computed: {
|
|
@@ -494,7 +504,6 @@ export default {
|
|
|
494
504
|
},
|
|
495
505
|
events: {
|
|
496
506
|
'confirmaddress' (res) {
|
|
497
|
-
// console.log('选定地址', res)
|
|
498
507
|
this.showselectaddress = false
|
|
499
508
|
this.addressinfo.f_address = res.f_address
|
|
500
509
|
this.addressinfo.id = res.id
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
<input class="input-underline" style="width:80%" :value="row.f_idnumber" readonly>
|
|
42
42
|
</div>
|
|
43
43
|
<div class="col-sm-4">
|
|
44
|
-
<label class="font_normal_body_new"
|
|
45
|
-
<input class="input-underline" style="width:60%" :value="row.
|
|
44
|
+
<label class="font_normal_body_new">使用状态</label>
|
|
45
|
+
<input class="input-underline" style="width:60%" :value="row.f_usestate" readonly>
|
|
46
46
|
</div>
|
|
47
47
|
<div class="col-sm-4">
|
|
48
48
|
<label class="font_normal_body_new">账户余额</label>
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
<datepicker id="startDate" placeholder="开始日期"
|
|
30
30
|
v-model="model.startDate" style="width: 55%"
|
|
31
31
|
:value.sync="model.startDate"
|
|
32
|
-
condition="(f_trade_date >= '{} 00:00:00' or f_operate_date >= '{} 00:00:00')"
|
|
33
32
|
:disabled-days-of-Week="[]"
|
|
34
33
|
:format="'yyyy-MM-dd'"
|
|
35
34
|
:show-reset-button="reset">
|
|
@@ -40,7 +39,6 @@
|
|
|
40
39
|
<datepicker id="endDate" placeholder="结束日期"
|
|
41
40
|
v-model="model.endDate" style="width: 55%"
|
|
42
41
|
:value.sync="model.endDate"
|
|
43
|
-
condition="(f_trade_date < '{} 23:59:59' or f_operate_date < '{} 23:59:59' )"
|
|
44
42
|
:disabled-days-of-Week="[]"
|
|
45
43
|
:format="'yyyy-MM-dd'"
|
|
46
44
|
:show-reset-button="reset">
|