sale-client 4.2.92-1 → 4.2.92

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": "4.2.92-1",
3
+ "version": "4.2.92",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -291,16 +291,16 @@ export default {
291
291
  f_house_type: true
292
292
  },
293
293
  validateRules: {},
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('银行名称') : [],
294
+ inputtores: this.$appdata.getParam('抄表员'),
295
+ credentials: this.$appdata.getParam('证件类型'),
296
+ costtypes: this.$appdata.getParam('缴费类型'),
297
+ banknames: this.$appdata.getParam('银行名称'),
298
298
  userstates: this.$appdata.getParam('预备客户状态参数') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('预备客户状态参数')] : [{label: '预备', value: '预备'}],
299
- housetype: this.$appdata.getParam('是否煤改气') ? this.$appdata.getParam('是否煤改气') : [],
300
- mgq: this.$appdata.getParam('是否煤改气') ? this.$appdata.getParam('是否煤改气') : [],
301
- costtype: this.$appdata.getParam('付款类型') ? this.$appdata.getParam('付款类型') : [],
299
+ housetype: this.$appdata.getParam('房屋类型'),
300
+ mgq: this.$appdata.getParam('是否煤改气'),
301
+ costtype: this.$appdata.getParam('付款类型'),
302
302
  printstate: this.$appdata.getParam('建档打印类型') ? [{label: '暂不选择', value: '暂不选择'}, ...this.$appdata.getParam('建档打印类型')] : [{label: '暂不选择', value: '暂不选择'}],
303
- peopleMax: this.$appdata.getSingleValue('最大人口数') ? this.$appdata.getParam('最大人口数') : [],
303
+ peopleMax: this.$appdata.getSingleValue('最大人口数'),
304
304
  jurisdiction: this.$login.r,
305
305
  edituserstate: false,
306
306
  // highMeterPlugin: {},
@@ -341,15 +341,14 @@ export default {
341
341
  // },
342
342
 
343
343
  getConfigValidate (name, defaultVal) {
344
- console.log(name, defaultVal)
344
+ this.$resetValidation()
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
- console.log(name, this.formconfig[name])
351
- // 这里是防止默认值为true 第一遍加载时 formconfig 中没值导致校验中required一直是true的情况
352
- if (defaultVal && this.$v && this.$v[name] && this.$v[name].required) {
350
+ // 这里是防止默认值位true 第一遍加载时 formconfig 中没值导致校验中required一直是true的情况
351
+ if (this.$v && this.$v[name] && this.$v[name].required) {
353
352
  this.$set(this.$v[name], 'required', false)
354
353
  }
355
354
  }