address-client 3.2.40 → 3.2.41

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": "address-client",
3
- "version": "3.2.40",
3
+ "version": "3.2.41",
4
4
  "description": "地址管理前台组件",
5
5
  "author": "wanbochao",
6
6
  "license": "ISC",
@@ -335,6 +335,9 @@
335
335
  initGen(this)
336
336
  },
337
337
  methods: {
338
+ selected(val){
339
+ this.buildingmodel = {...val.val}
340
+ },
338
341
  loadMeterBooks(){
339
342
  this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
340
343
  },
@@ -569,15 +572,20 @@
569
572
  // 保存楼栋
570
573
  async savebuilding () {
571
574
  this.buildingmodel.f_residential_area = this.$refs.areaselect.selectedItems
572
- this.buildingmodel.f_filialeid = this.f_filialeids
573
- this.buildingmodel.f_operator = this.$login.f.name
574
- this.buildingmodel.f_operatorid = this.$login.f.id
575
- this.buildingmodel.f_orgid = this.$login.f.orgid
576
- this.buildingmodel.f_orgname = this.$login.f.orgs
577
- this.buildingmodel.f_depid = this.$login.f.depids
578
- this.buildingmodel.f_depname = this.$login.f.deps
575
+ this.buildingmodel.f_filialeid = this.buildingmodel.f_filialeid?this.buildingmodel.f_filialeid:this.f_filialeids
576
+ this.buildingmodel.f_operator = this.buildingmodel.f_operator?this.buildingmodel.f_operator:this.$login.f.name
577
+ this.buildingmodel.f_operatorid = this.buildingmodel.f_operatorid?this.buildingmodel.f_operatorid:this.$login.f.id
578
+ this.buildingmodel.f_orgid = this.buildingmodel.f_orgid?this.buildingmodel.f_orgid:this.$login.f.orgid
579
+ this.buildingmodel.f_orgname = this.buildingmodel.f_orgname?this.buildingmodel.f_orgname:this.$login.f.orgs
580
+ this.buildingmodel.f_depid = this.buildingmodel.f_depid?this.buildingmodel.f_depid:this.$login.f.depids
581
+ this.buildingmodel.f_depname = this.buildingmodel.f_depname?this.buildingmodel.f_depname:this.$login.f.deps
579
582
  await this.$resetpost('rs/logic/address_savebuilding', this.buildingmodel)
580
583
  this.$refs.buildinglist.search()
584
+ this.buildingmodel= {
585
+ f_residential_area: '',
586
+ f_residential_area_id: '',
587
+ f_building: ''
588
+ }
581
589
  },
582
590
  //保存小区
583
591
  async savearea(){
@@ -146,6 +146,9 @@
146
146
  getAreaConfig(this)
147
147
  },
148
148
  methods: {
149
+ selected(val){
150
+ this.pcdmodel = {...val.val}
151
+ },
149
152
  async streetyanzheng(){
150
153
  console.log(this.streetmodel.f_street_number.length)
151
154
  if (this.streetmodel.f_street_number.length != 2){
@@ -252,15 +255,22 @@
252
255
  },
253
256
  //保存省市区
254
257
  async savepcd(){
255
- this.pcdmodel.f_filialeid = this.f_filialeids
256
- this.pcdmodel.f_operator = this.$login.f.name
257
- this.pcdmodel.f_operatorid = this.$login.f.id
258
- this.pcdmodel.f_orgid = this.$login.f.orgid
259
- this.pcdmodel.f_orgname = this.$login.f.orgs
260
- this.pcdmodel.f_depid = this.$login.f.depids
261
- this.pcdmodel.f_depname = this.$login.f.deps
258
+ this.pcdmodel.f_filialeid = this.pcdmodel.f_filialeid?this.pcdmodel.f_filialeid:this.f_filialeids
259
+ this.pcdmodel.f_operator = this.pcdmodel.f_operator?this.pcdmodel.f_operator:this.$login.f.name
260
+ this.pcdmodel.f_operatorid = this.pcdmodel.f_operatorid?this.pcdmodel.f_operatorid:this.$login.f.id
261
+ this.pcdmodel.f_orgid = this.pcdmodel.f_orgid?this.pcdmodel.f_orgid:this.$login.f.orgid
262
+ this.pcdmodel.f_orgname = this.pcdmodel.f_orgname?this.pcdmodel.f_orgname:this.$login.f.orgs
263
+ this.pcdmodel.f_depid = this.pcdmodel.f_depid?this.pcdmodel.f_depid:this.$login.f.depids
264
+ this.pcdmodel.f_depname = this.pcdmodel.f_depname?this.pcdmodel.f_depname:this.$login.f.deps
262
265
  this.pcdmodel.f_pcd = this.pcdmodel.f_province+this.pcdmodel.f_city+this.pcdmodel.f_district
263
266
  await this.$resetpost('rs/logic/address_updatepcd', this.pcdmodel)
267
+ this.pcdmodel= {
268
+ f_province:'',
269
+ f_city:'',
270
+ f_district:'',
271
+ f_comments:'',
272
+ f_pcd_number: ''
273
+ }
264
274
  },
265
275
  //保存街道
266
276
  async savestreet(){