sale-client 4.2.92 → 4.2.94
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
|
@@ -291,16 +291,16 @@ export default {
|
|
|
291
291
|
f_house_type: true
|
|
292
292
|
},
|
|
293
293
|
validateRules: {},
|
|
294
|
-
inputtores: this.$appdata.getParam('抄表员'),
|
|
295
|
-
credentials: this.$appdata.getParam('证件类型'),
|
|
296
|
-
costtypes: this.$appdata.getParam('缴费类型'),
|
|
297
|
-
banknames: this.$appdata.getParam('银行名称'),
|
|
294
|
+
inputtores: this.$appdata.getParam('抄表员') ? this.$appdata.getParam('抄表员') : [],
|
|
295
|
+
credentials: this.$appdata.getParam('证件类型') ? this.$appdata.getParam('证件类型') : [],
|
|
296
|
+
costtypes: this.$appdata.getParam('缴费类型') ? this.$appdata.getParam('缴费类型') : [],
|
|
297
|
+
banknames: this.$appdata.getParam('银行名称') ? this.$appdata.getParam('银行名称') : [],
|
|
298
298
|
userstates: this.$appdata.getParam('预备客户状态参数') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('预备客户状态参数')] : [{label: '预备', value: '预备'}],
|
|
299
|
-
housetype: this.$appdata.getParam('
|
|
300
|
-
mgq: this.$appdata.getParam('是否煤改气'),
|
|
301
|
-
costtype: this.$appdata.getParam('付款类型'),
|
|
299
|
+
housetype: this.$appdata.getParam('是否煤改气') ? this.$appdata.getParam('是否煤改气') : [],
|
|
300
|
+
mgq: this.$appdata.getParam('是否煤改气') ? this.$appdata.getParam('是否煤改气') : [],
|
|
301
|
+
costtype: this.$appdata.getParam('付款类型') ? this.$appdata.getParam('付款类型') : [],
|
|
302
302
|
printstate: this.$appdata.getParam('建档打印类型') ? [{label: '暂不选择', value: '暂不选择'}, ...this.$appdata.getParam('建档打印类型')] : [{label: '暂不选择', value: '暂不选择'}],
|
|
303
|
-
peopleMax: this.$appdata.getSingleValue('最大人口数'),
|
|
303
|
+
peopleMax: this.$appdata.getSingleValue('最大人口数') ? this.$appdata.getParam('最大人口数') : [],
|
|
304
304
|
jurisdiction: this.$login.r,
|
|
305
305
|
edituserstate: false,
|
|
306
306
|
// highMeterPlugin: {},
|
|
@@ -341,14 +341,15 @@ export default {
|
|
|
341
341
|
// },
|
|
342
342
|
|
|
343
343
|
getConfigValidate (name, defaultVal) {
|
|
344
|
-
|
|
344
|
+
console.log(name, defaultVal)
|
|
345
345
|
if (this.formconfig && this.formconfig[name]) {
|
|
346
346
|
let Validate = {}
|
|
347
347
|
if (this.formconfig[name].required) {
|
|
348
348
|
Object.assign(Validate, {required: true})
|
|
349
349
|
} else {
|
|
350
|
-
|
|
351
|
-
|
|
350
|
+
console.log(name, this.formconfig[name])
|
|
351
|
+
// 这里是防止默认值为true 第一遍加载时 formconfig 中没值导致校验中required一直是true的情况
|
|
352
|
+
if (defaultVal && this.$v && this.$v[name] && this.$v[name].required) {
|
|
352
353
|
this.$set(this.$v[name], 'required', false)
|
|
353
354
|
}
|
|
354
355
|
}
|
|
@@ -3,21 +3,21 @@ import Vue from 'vue'
|
|
|
3
3
|
|
|
4
4
|
export default function () {
|
|
5
5
|
// 左侧用户基本信息展示
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
// 单个表具信息
|
|
11
|
-
|
|
12
|
-
// 收费页面
|
|
13
|
-
|
|
14
|
-
// 用户基本信息
|
|
15
|
-
|
|
16
|
-
// 批量开关阀
|
|
17
|
-
|
|
18
|
-
// 换表
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
// Vue.component('sale-userinfo', (resolve) => { require(['./base/leftview/Userinfo'], resolve) })
|
|
7
|
+
//
|
|
8
|
+
// Vue.component('card-list', (resolve) => { require(['./base/rightview/CardList'], resolve) })
|
|
9
|
+
// Vue.component('transfer-manage', (resolve) => { require(['./TransferManage'], resolve) })
|
|
10
|
+
// // 单个表具信息
|
|
11
|
+
// Vue.component('file-meter-info', (resolve) => { require(['./MeterinfoTest'], resolve) })
|
|
12
|
+
// // 收费页面
|
|
13
|
+
// Vue.component('user-base-info-new', (resolve) => { require(['./UserBaseInfoNew'], resolve) })
|
|
14
|
+
// // 用户基本信息
|
|
15
|
+
// Vue.component('file-user-essential-info', (resolve) => { require(['./UserEssentialInfoTest'], resolve) })
|
|
16
|
+
// // 批量开关阀
|
|
17
|
+
// Vue.component('sale-web-meter-batch-operation-valve', (resolve) => { require(['./WebMeterBatchOperationValve'], resolve) })
|
|
18
|
+
// // 换表
|
|
19
|
+
// Vue.component('change-meter', (resolve) => { require(['./ChangeMeter'], resolve) })
|
|
20
|
+
// // 收费查询
|
|
21
|
+
// Vue.component('charge-query-user', (resolve) => { require(['./ChargeQueryUser'], resolve) })
|
|
22
22
|
Vue.component('user-info-detail-manage-new', (resolve) => { require(['./UserInfoDetailManageNew'], resolve) })
|
|
23
23
|
}
|