address-client 3.0.39-aodeToV4 → 3.0.41-aodeToV4

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "address-client",
3
- "version": "3.0.39-aodeToV4",
3
+ "version": "3.0.41-aodeToV4",
4
4
  "description": "地址管理前台组件",
5
5
  "author": "wanbochao",
6
6
  "license": "ISC",
@@ -195,6 +195,9 @@
195
195
  f_filialeids:{
196
196
  type: String
197
197
  },
198
+ f_orgname:{
199
+ type: String
200
+ },
198
201
  style: {
199
202
  type: String,
200
203
  default: 'col-sm-2 '
@@ -276,11 +279,15 @@
276
279
  clear(){
277
280
  this.$refs.paged.$refs.cri.model = {}
278
281
  },
279
- getorg (val) {
280
- this.f_orgid = this.$login.convertToIn(val)
281
- if (!this.f_orgid) {
282
- this.f_orgid = this.f_filialeids
282
+ getorg (val, orgnames) {
283
+ if(orgnames.length>0){
284
+ this.f_orgname = orgnames[0].split(' - ')[0]
283
285
  }
286
+ // this.f_orgid = this.$login.convertToIn(val)
287
+ // if (!this.f_orgid) {
288
+ // this.f_orgid = this.f_filialeids
289
+ // }
290
+ this.f_orgid = val[0]
284
291
  this.f_filialeids = val[0]
285
292
  }
286
293
  },
@@ -1,12 +1,12 @@
1
1
  <template>
2
2
  <div id="unit" class="flex-row">
3
3
  <div :class="{'basic-main':!useraddressShow,'binary-left':useraddressShow}">
4
- <address-list @select-changed="selected" v-ref:addresslist :style="style" :f_filialeids.sync="f_filialeids"></address-list>
4
+ <address-list @select-changed="selected" v-ref:addresslist :style="style" :f_filialeids.sync="f_filialeids" :f_orgname.sync="f_orgname"></address-list>
5
5
  </div>
6
6
  <div v-show="useraddressShow" class="binary-right">
7
7
  <div class="flex">
8
8
  <user-address v-ref:useraddressmsg
9
- :f_filialeids.sync="f_filialeids" :row="row"></user-address>
9
+ :f_filialeids.sync="f_filialeids" :row="row" :f_orgname.sync="f_orgname"></user-address>
10
10
 
11
11
  <user-address-change v-if="addressId" :address_id="addressId"></user-address-change>
12
12
  </div>
@@ -23,6 +23,7 @@
23
23
  return {
24
24
  //分公司id串
25
25
  f_filialeids: this.$login.f.orgid,
26
+ f_orgname: this.$login.f.orgname,
26
27
  area: [],
27
28
  street: [],
28
29
  residential: [],
@@ -363,7 +363,7 @@
363
363
  sliceArea: []
364
364
  }
365
365
  },
366
- props: ['f_filialeids', 'row','operation','usertype'],
366
+ props: ['f_filialeids','f_orgname', 'row','operation','usertype'],
367
367
  ready(){
368
368
  this.initdata()
369
369
  getAreaConfig(this)
@@ -605,13 +605,13 @@
605
605
  data.f_room = data.f_room_prefix + m + '' + n
606
606
  }
607
607
  data.f_filialeid = this.f_filialeids
608
- data.f_operator = this.$login.f.name
609
- data.f_operatorid = this.$login.f.id
608
+ // data.f_operator = this.$login.f.name
609
+ // data.f_operatorid = this.$login.f.id
610
610
  data.sid = this.model.sid
611
- data.f_orgid = this.$login.f.orgid
612
- data.f_orgname = this.$login.f.orgs
613
- data.f_depid = this.$login.f.depids
614
- data.f_depname = this.$login.f.deps
611
+ data.f_orgid = this.f_filialeids
612
+ data.f_orgname = this.f_orgname
613
+ // data.f_depid = this.$login.f.depids
614
+ // data.f_depname = this.$login.f.deps
615
615
  data.f_pcd=this.findbyid(this.pcdslist,this.model.f_pcd_id).f_pcd
616
616
  data.f_street=this.findbyid(this.streetslist,this.model.f_street_id).f_street
617
617
  data.f_residential_area=this.findbyid(this.areaslist,this.model.f_residential_area_id).f_residential_area
@@ -668,12 +668,12 @@
668
668
  async saveonedata(){
669
669
  this.model.f_create_person= this.$login.f.name
670
670
  this.model.f_filialeid = this.f_filialeids
671
- this.model.f_operator = this.$login.f.name
672
- this.model.f_operatorid = this.$login.f.id
673
- this.model.f_orgid = this.$login.f.orgid
674
- this.model.f_orgname = this.$login.f.orgs
675
- this.model.f_depid = this.$login.f.depids
676
- this.model.f_depname = this.$login.f.deps
671
+ // this.model.f_operator = this.$login.f.name
672
+ // this.model.f_operatorid = this.$login.f.id
673
+ this.model.f_orgid = this.f_filialeids
674
+ this.model.f_orgname = this.f_orgname
675
+ // this.model.f_depid = this.$login.f.depids
676
+ // this.model.f_depname = this.$login.f.deps
677
677
  if (this.model.slice_area) {
678
678
  if (this.model.slice_area.length > 0) {
679
679
  this.model.f_slice_area = this.model.slice_area[0].name
@@ -152,6 +152,9 @@ export default {
152
152
  f_filialeids:{
153
153
  type: String
154
154
  },
155
+ f_orgname:{
156
+ type: String
157
+ },
155
158
  clear:{
156
159
  default:false
157
160
  }
@@ -225,8 +228,12 @@ export default {
225
228
  clear(){
226
229
  this.$refs.paged.$refs.cri.model = {}
227
230
  },
228
- getorg (val) {
229
- this.f_orgid = this.$login.convertToIn(val)
231
+ getorg (val, orgnames) {
232
+ if(orgnames.length>0){
233
+ this.f_orgname = orgnames[0].split(' - ')[0]
234
+ }
235
+ // this.f_orgid = this.$login.convertToIn(val)
236
+ this.f_orgid = val[0]
230
237
  this.f_filialeids = val[0]
231
238
  this.model.f_filiale_id = val[0]
232
239
  },
@@ -269,7 +276,11 @@ export default {
269
276
  }
270
277
  if (event.target.checked) {
271
278
  this.selecteddata.push(row.id)
272
- this.rowsdata.push({id:row.id,name:row.f_address})
279
+ this.rowsdata.push({
280
+ id:row.id,
281
+ name:row.f_address,
282
+ orgid: row.f_orgid,
283
+ gridman: row.f_gridman})
273
284
  if(this.length === this.selecteddata.length){
274
285
  this.all = true
275
286
  }
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <div id="unit" class="flex-row">
3
3
  <div class="basic-main" style="flex: 1; width:60%">
4
- <batch-list @submit="submit" @cancel="cancel" :f_filialeids.sync="f_filialeids" v-ref:addresslist></batch-list>
4
+ <batch-list @submit="submit" @cancel="cancel" :f_filialeids.sync="f_filialeids" :f_orgname.sync="f_orgname" v-ref:addresslist></batch-list>
5
5
  </div>
6
6
  <div v-show="useraddressShow" style="width: 36.6%" class="binary-right">
7
7
  <div class="flex">
8
- <user-address v-ref:useraddressmsg :f_filialeids.sync="f_filialeids" :row="row"></user-address>
8
+ <user-address v-ref:useraddressmsg :f_filialeids.sync="f_filialeids" :f_orgname.sync="f_orgname" :row="row"></user-address>
9
9
  </div>
10
10
  </div>
11
11
  </div>
@@ -24,6 +24,7 @@
24
24
  return {
25
25
  //分公司id串
26
26
  f_filialeids: this.$login.f.orgid,
27
+ f_orgname: this.$login.f.orgname,
27
28
  area: [],
28
29
  street: [],
29
30
  residential: [],