address-client 3.2.48 → 3.2.51

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.
@@ -0,0 +1,117 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
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>
5
+ </div>
6
+ <div v-show="useraddressShow" class="binary-right">
7
+ <div class="flex">
8
+ <user-address v-ref:useraddressmsg
9
+ :f_filialeids.sync="f_filialeids" :row="row"></user-address>
10
+
11
+ <user-address-change v-if="addressId" :address_id="addressId"></user-address-change>
12
+ </div>
13
+ </div>
14
+ </div>
15
+ </template>
16
+
17
+ <script>
18
+ export default {
19
+ title: '地址管理',
20
+ components:{
21
+ },
22
+ data () {
23
+ return {
24
+ //分公司id串
25
+ f_filialeids: this.$login.f.orgid,
26
+ area: [],
27
+ street: [],
28
+ residential: [],
29
+ row: {},
30
+ useraddressShow: false,
31
+ addressId: null,
32
+ style:'col-sm-2 form-group'
33
+ }
34
+ },
35
+ props:{
36
+
37
+ },
38
+ methods:{
39
+ selected(obj){
40
+ this.$refs.addresslist.showrightchange=false;
41
+ this.style='col-sm-3 form-group'
42
+ if(obj.val&&obj.val.id){
43
+ // if (obj.val.f_filialeid != this.f_filialeids) {
44
+ // this.refresh()
45
+ // return
46
+ // }
47
+ // 呼叫中心需要
48
+ this.$dispatch('re-ref', obj.val)
49
+ this.addressId=obj.val.id
50
+ this.useraddressShow=true
51
+ this.$refs.useraddressmsg.cleardara()
52
+ this.$refs.useraddressmsg.initdata()
53
+ this.$refs.useraddressmsg.usertype=obj.val.f_user_type
54
+ this.$refs.useraddressmsg.operation='modify'
55
+ this.$refs.useraddressmsg.onedata='one'
56
+ this.$refs.useraddressmsg.model=Object.assign({},this.$refs.useraddressmsg.model,obj.val)
57
+ if(obj.val.f_special=='1'){
58
+ this.$refs.useraddressmsg.usertype = true
59
+ }else{
60
+ this.$refs.useraddressmsg.usertype = false
61
+ }
62
+ if (obj.val.f_slice_area) {
63
+ this.$refs.useraddressmsg.model.slice_area = [{
64
+ name: this.$refs.useraddressmsg.model.f_slice_area,
65
+ code: this.$refs.useraddressmsg.model.f_area_code
66
+ }]
67
+ }
68
+ }
69
+ },
70
+ refresh () {
71
+ this.addressId=null
72
+ this.useraddressShow = false
73
+ this.$refs.addresslist.$refs.paged.$refs.cri.search()
74
+ }
75
+ },
76
+ events:{
77
+ 'add'(val){
78
+ this.style='col-sm-3 form-group'
79
+ this.useraddressShow = true
80
+ this.$refs.useraddressmsg.cleardara()
81
+ this.addressId=null
82
+ //true为新增特殊地址
83
+ if (val!='民用') {
84
+ //非民用
85
+ this.$refs.useraddressmsg.usertype = true
86
+ this.$refs.useraddressmsg.onedata = 'one'
87
+ }else{
88
+ this.$refs.useraddressmsg.usertype = false
89
+ }
90
+ this.$refs.useraddressmsg.operation='add'
91
+ this.$refs.useraddressmsg.pcdslist=[]
92
+ this.$refs.useraddressmsg.streetslist=[]
93
+ this.$refs.useraddressmsg.areaslist=[]
94
+ this.$refs.useraddressmsg.initdata()
95
+ },
96
+ 'confirm' () {
97
+ this.style='col-sm-2 form-group'
98
+ this.addressId=null
99
+ this.$refs.addresslist.$refs.paged.$refs.cri.search()
100
+ this.useraddressShow = false
101
+ this.$refs.addresslist.showrightchange=true;
102
+ },
103
+ 'modify'(area){
104
+ this.style='col-sm-2 form-group'
105
+ },
106
+ 'cancel' () {
107
+ this.style='col-sm-2 form-group'
108
+ this.addressId=null
109
+ this.$refs.addresslist.showrightchange=true;
110
+ this.$refs.addresslist.$refs.paged.$refs.cri.search()
111
+ this.useraddressShow = false
112
+ },
113
+ }
114
+ }
115
+ </script>
116
+ <style>
117
+ </style>
@@ -0,0 +1,100 @@
1
+ <template>
2
+ <div id="unit" class="flex-row" :class="{'binary':areaShow}">
3
+ <div :class="{'basic-main':!areaShow,'binary-left':areaShow}">
4
+ <area-list @select-changed="selected" v-ref:arealist :style="style" :f_filialeids.sync="f_filialeids"></area-list>
5
+ </div>
6
+ <div v-show="areaShow" style="width: 60%" class="binary-right">
7
+ <div class="flex">
8
+ <add-area-msg v-ref:addareamsg :areatype="areatype" :operation="operation"
9
+ :f_filialeids.sync="f_filialeids" :row="arearow"></add-area-msg>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ export default {
17
+ title: '小区管理',
18
+ components:{
19
+ },
20
+ data () {
21
+ return {
22
+ //分公司id串
23
+ width:'100%',
24
+ f_filialeids: this.$login.f.f_orgids,
25
+ areaShow:false,
26
+ areatype:'小区',
27
+ arearow:{},
28
+ style:'col-sm-2 form-group'
29
+ }
30
+ },
31
+ ready(){
32
+
33
+ },
34
+ props:{
35
+
36
+ },
37
+ methods:{
38
+ selected(obj){
39
+ this.style='col-sm-3 form-group'
40
+ if(obj.val&&obj.val.id){
41
+ console.log('对比分公司', obj.val.f_filialeid, this.f_filialeids)
42
+ // if (obj.val.f_filialeid != this.f_filialeids) {
43
+ // this.refresh()
44
+ // return
45
+ // }
46
+ this.areaShow = true
47
+ this.$refs.addareamsg.cleardara()
48
+ this.$refs.addareamsg.operation='modify'
49
+ this.$refs.addareamsg.areatype='小区'
50
+ this.$refs.addareamsg.areamodel=Object.assign({},obj.val)
51
+ if (obj.val.f_slice_area) {
52
+ this.$refs.addareamsg.areamodel.slice_area = [{
53
+ name: this.$refs.addareamsg.areamodel.f_slice_area,
54
+ code: this.$refs.addareamsg.areamodel.f_area_code
55
+ }]
56
+ }
57
+ if (obj.val.f_meter_book != null && obj.val.f_meter_book != '' && obj.val.f_meter_book instanceof Array) {
58
+ this.$refs.addareamsg.areamodel.f_meter_book = parseInt(obj.val.f_meter_book[0])
59
+ }
60
+ if (obj.val.f_meter_book != null && obj.val.f_meter_book != '' && !(obj.val.f_meter_book instanceof Array)) {
61
+ this.$refs.addareamsg.areamodel.f_meter_book = parseInt(obj.val.f_meter_book)
62
+ }
63
+ if (obj.val.f_adjustable_id != null && obj.val.f_adjustable_id != '' && obj.val.f_adjustable_id instanceof Array) {
64
+ this.$refs.addareamsg.areamodel.f_adjustable_id = parseInt(obj.val.f_adjustable_id[0])
65
+ }
66
+ if (obj.val.f_adjustable_id != null && obj.val.f_adjustable_id != '' && !(obj.val.f_adjustable_id instanceof Array)) {
67
+ this.$refs.addareamsg.areamodel.f_adjustable_id = parseInt(obj.val.f_adjustable_id)
68
+ }
69
+ // this.$refs.addareamsg.initdata(obj.val)
70
+ // this.$refs.addareamsg.initrow(obj.val)
71
+ }
72
+ },
73
+ refresh() {
74
+ this.areaShow = false
75
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
76
+ }
77
+ },
78
+ events:{
79
+ 'add'(val){
80
+ this.style='col-sm-3 form-group'
81
+ this.areaShow=true
82
+ this.$refs.addareamsg.cleardara()
83
+ this.$refs.addareamsg.operation='add'
84
+ this.$refs.addareamsg.areatype=val
85
+ this.$refs.addareamsg.initdata()
86
+ },
87
+ 'confirm' () {
88
+ this.style='col-sm-2 form-group'
89
+ this.areaShow = false
90
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
91
+ },
92
+ 'cancel' () {
93
+ this.style='col-sm-2 form-group'
94
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
95
+ this.areaShow = false
96
+ }
97
+ }
98
+ }
99
+ </script>
100
+
@@ -0,0 +1,76 @@
1
+ <template>
2
+ <div id="unit" class="flex-row " :class="{'binary':areaShow}">
3
+ <div :class="{'basic-main':!areaShow,'binary-left':areaShow}">
4
+ <street-list @select-changed="selected" :f_filialeids.sync="f_filialeids" v-ref:arealist></street-list>
5
+ </div>
6
+ <div v-show="areaShow" class="binary-right">
7
+ <add-street-pcd v-ref:addstreetpcd :areatype.sync="areatype" :operation='operation' :f_filialeids.sync="f_filialeids" :row="row"></add-street-pcd>
8
+ </div>
9
+ </div>
10
+ </template>
11
+
12
+ <script>
13
+ export default {
14
+ title: '街道管理',
15
+ components:{
16
+ },
17
+ data () {
18
+ return {
19
+ //分公司id串
20
+ f_filialeids: this.$login.f.orgid,
21
+ areaShow:false,
22
+ areatype:'街道'
23
+
24
+ }
25
+ },
26
+ props:{
27
+
28
+ },
29
+ methods:{
30
+ selected(obj){
31
+ if(obj.val&&obj.val.id){
32
+ // if (obj.val.f_filialeid != this.f_filialeids) {
33
+ // this.refresh()
34
+ // return
35
+ // }
36
+ this.$refs.addstreetpcd.cleardara()
37
+ this.areatype = '街道'
38
+ this.areaShow=true
39
+ this.$refs.addstreetpcd.operation='modify'
40
+ this.$refs.addstreetpcd.streetmodel=Object.assign({},obj.val)
41
+ this.$refs.addstreetpcd.initdata()
42
+ }
43
+ },
44
+ async refresh () {
45
+ this.areaShow = false
46
+ await this.$refs.arealist.$refs.paged.$refs.cri.search()
47
+ }
48
+ },
49
+ events:{
50
+ 'add'(areatype){
51
+ this.style='col-sm-3 '
52
+ this.areaShow=true
53
+ this.$refs.addstreetpcd.cleardara()
54
+ this.$refs.addstreetpcd.operation='add'
55
+ this.$refs.addstreetpcd.areatype=areatype
56
+ this.$refs.addstreetpcd.initdata()
57
+ },
58
+ 'modify'(area){
59
+ this.style='col-sm-2 '
60
+ },
61
+ 'confirm' () {
62
+ this.style='col-sm-2 '
63
+
64
+ this.refresh()
65
+ },
66
+ 'cancel' () {
67
+ this.style='col-sm-2 '
68
+
69
+ this.areaShow = false
70
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
71
+ },
72
+ }
73
+ }
74
+ </script>
75
+
76
+
@@ -8,7 +8,10 @@ let specialComp = {
8
8
  'address-list': (resolve) => { require(['./AddressList.vue'], resolve) },
9
9
 
10
10
  'add-area-msg': (resolve) => { require(['./AddAreaMsg.vue'], resolve) },
11
- 'user-address': (resolve) => { require(['./UserAddress.vue'], resolve) }
11
+ 'user-address': (resolve) => { require(['./UserAddress.vue'], resolve) },
12
+ 'city-manage': (resolve) => { require(['./CityManage.vue'], resolve) },
13
+ 'address-manage': (resolve) => { require(['./AddAreaMsg.vue'], resolve) },
14
+ 'area-manage': (resolve) => { require(['./AreaManage.vue'], resolve) }
12
15
  }
13
16
  exports.specialComp = specialComp
14
17
 
package/src/main.js CHANGED
@@ -2,16 +2,15 @@ import Vue from 'vue'
2
2
  import App from './App'
3
3
  import { all } from 'vue-client'
4
4
  import { system } from 'system-clients'
5
- import { sale } from 'sale-client'
6
5
  import address from './address'
7
6
 
8
7
  Vue.config.silent = true
9
8
 
10
9
  /** **************************通用组件******************************/
11
10
  all()
12
- address("WEINAN")
11
+ address('qinhua')
13
12
  system(false)
14
- sale()
13
+ // sale()
15
14
  require('system-clients/src/styles/less/bootstrap.less')
16
15
 
17
16