address-client 1.3.55 → 1.3.57-2
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/.gradle/4.4/fileChanges/last-build.bin +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
- package/build/dev-server.js +134 -134
- package/build/webpack.base.conf.js +78 -78
- package/build.gradle +14 -14
- package/package.json +1 -1
- package/src/address.js +48 -48
- package/src/components/AddAreaMsg.vue +564 -544
- package/src/components/AddStreetOrPcd.vue +235 -237
- package/src/components/AddressList.vue +226 -211
- package/src/components/AddressManage.vue +113 -92
- package/src/components/AreaFiles.vue +80 -80
- package/src/components/AreaList.vue +189 -180
- package/src/components/AreaManage.vue +75 -75
- package/src/components/NewAddressInfo.vue +435 -434
- package/src/components/StreetList.vue +153 -146
- package/src/components/UserAddress.vue +641 -626
- package/src/main.js +25 -25
- package/.npmignore +0 -9
- package/build/.npmignore +0 -1
- package/yarn.lock +0 -7463
|
@@ -1,146 +1,153 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
|
|
5
|
-
<div novalidate class="form-inline auto" partial>
|
|
6
|
-
<div class="form-group form-input-group">
|
|
7
|
-
<right-tree
|
|
8
|
-
:userid.sync='$parent.$parent.userid'
|
|
9
|
-
:source.sync='$parent.$parent.source'
|
|
10
|
-
@re-res="$parent.$parent.getRes"></right-tree>
|
|
11
|
-
</div>
|
|
12
|
-
<div class="form-group form-input-group">
|
|
13
|
-
<input type="text" class="form-control" v-model="model.f_province"
|
|
14
|
-
condition="f_province like '%{}%'" placeholder="省份"
|
|
15
|
-
:size="model.f_province ? model.f_province.length*2 : 2"/>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="form-group form-input-group">
|
|
18
|
-
<input type="text" class="form-control" v-model="model.f_city"
|
|
19
|
-
condition="f_city like '%{}%'" placeholder="城市"
|
|
20
|
-
:size="model.f_city ? model.f_city.length*2 : 2"/>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="form-group form-input-group">
|
|
23
|
-
<input type="text" class="form-control" v-model="model.f_district"
|
|
24
|
-
condition="f_district like '%{}%'" placeholder="区县"
|
|
25
|
-
:size="model.f_district ? model.f_district.length*2 : 2"/>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="form-group form-input-group">
|
|
28
|
-
<input type="text" class="form-control" v-model="model.f_street"
|
|
29
|
-
condition="f_street like '%{}%'" placeholder="街道"
|
|
30
|
-
:size="model.f_street ? model.f_street.length*2 : 2"/>
|
|
31
|
-
</div>
|
|
32
|
-
<div class="form-group form-input-group">
|
|
33
|
-
<button class="btn btn-success width-80" @click="search()" >查询</button>
|
|
34
|
-
<button class="btn btn-success width-80" @click="$parent.$parent.add('省市区')">添加省市区</button>
|
|
35
|
-
<button class="btn btn-success width-80" @click="$parent.$parent.add('街道')">添加街道</button>
|
|
36
|
-
<button class="btn btn-success width-80" @click="$parent.$parent.clear()">清空</button>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
</criteria>
|
|
40
|
-
<data-grid :model="model" partial='list' v-ref:grid>
|
|
41
|
-
<template partial='head'>
|
|
42
|
-
<tr>
|
|
43
|
-
|
|
44
|
-
<th><nobr>省份</nobr></th>
|
|
45
|
-
<th><nobr>城市</nobr></th>
|
|
46
|
-
<th><nobr>区/县</nobr></th>
|
|
47
|
-
<th><nobr>街道名称</nobr></th>
|
|
48
|
-
<th><nobr>详细地址</nobr></th>
|
|
49
|
-
<th><nobr
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
<td style="text-align:center"><nobr>{{row.
|
|
59
|
-
<td style="text-align:center"><nobr>{{row.
|
|
60
|
-
<td style="text-align:center"><nobr>{{row.
|
|
61
|
-
<td style="text-align:center"><nobr>{{row.
|
|
62
|
-
<td style="text-align:center"><nobr>{{row.
|
|
63
|
-
<td style="text-align:center"><nobr>{{row.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
@click.stop="$parent.$parent.$parent.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
</
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
{
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
this.$
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
this.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
|
|
5
|
+
<div novalidate class="form-inline auto" partial>
|
|
6
|
+
<div class="form-group form-input-group">
|
|
7
|
+
<right-tree
|
|
8
|
+
:userid.sync='$parent.$parent.userid'
|
|
9
|
+
:source.sync='$parent.$parent.source'
|
|
10
|
+
@re-res="$parent.$parent.getRes"></right-tree>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="form-group form-input-group">
|
|
13
|
+
<input type="text" class="form-control" v-model="model.f_province"
|
|
14
|
+
condition="f_province like '%{}%'" placeholder="省份"
|
|
15
|
+
:size="model.f_province ? model.f_province.length*2 : 2"/>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="form-group form-input-group">
|
|
18
|
+
<input type="text" class="form-control" v-model="model.f_city"
|
|
19
|
+
condition="f_city like '%{}%'" placeholder="城市"
|
|
20
|
+
:size="model.f_city ? model.f_city.length*2 : 2"/>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="form-group form-input-group">
|
|
23
|
+
<input type="text" class="form-control" v-model="model.f_district"
|
|
24
|
+
condition="f_district like '%{}%'" placeholder="区县"
|
|
25
|
+
:size="model.f_district ? model.f_district.length*2 : 2"/>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="form-group form-input-group">
|
|
28
|
+
<input type="text" class="form-control" v-model="model.f_street"
|
|
29
|
+
condition="f_street like '%{}%'" placeholder="街道"
|
|
30
|
+
:size="model.f_street ? model.f_street.length*2 : 2"/>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="form-group form-input-group">
|
|
33
|
+
<button class="btn btn-success width-80" @click="search()" >查询</button>
|
|
34
|
+
<button class="btn btn-success width-80" @click="$parent.$parent.add('省市区')">添加省市区</button>
|
|
35
|
+
<button class="btn btn-success width-80" @click="$parent.$parent.add('街道')">添加街道</button>
|
|
36
|
+
<button class="btn btn-success width-80" @click="$parent.$parent.clear()">清空</button>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</criteria>
|
|
40
|
+
<data-grid :model="model" partial='list' v-ref:grid>
|
|
41
|
+
<template partial='head'>
|
|
42
|
+
<tr>
|
|
43
|
+
<!--<th><nobr>id</nobr></th>-->
|
|
44
|
+
<th><nobr>省份</nobr></th>
|
|
45
|
+
<th><nobr>城市</nobr></th>
|
|
46
|
+
<th><nobr>区/县</nobr></th>
|
|
47
|
+
<th><nobr>街道名称</nobr></th>
|
|
48
|
+
<th><nobr>详细地址</nobr></th>
|
|
49
|
+
<th><nobr>小区数量</nobr></th>
|
|
50
|
+
<!--<th><nobr>片区/管理站 </nobr></th>-->
|
|
51
|
+
<!--<th><nobr>分公司</nobr></th>-->
|
|
52
|
+
<th><nobr>操作</nobr></th>
|
|
53
|
+
</tr>
|
|
54
|
+
</template>
|
|
55
|
+
<template partial='body'>
|
|
56
|
+
<tr>
|
|
57
|
+
<!--<td style="text-align:center"><nobr>{{row.id}}</nobr></td>-->
|
|
58
|
+
<td style="text-align:center"><nobr>{{row.f_province}}</nobr></td>
|
|
59
|
+
<td style="text-align:center"><nobr>{{row.f_city}}</nobr></td>
|
|
60
|
+
<td style="text-align:center"><nobr>{{row.f_district}}</nobr></td>
|
|
61
|
+
<td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
|
|
62
|
+
<td style="text-align:center"><nobr>{{row.f_pcd}}-{{row.f_street}}</nobr></td>
|
|
63
|
+
<td style="text-align:center"><nobr>{{row.areacount}}</nobr></td>
|
|
64
|
+
<!--<td style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>-->
|
|
65
|
+
<!--<td style="text-align:center"><nobr>{{row.f_filiale}}</nobr></td>-->
|
|
66
|
+
<td style="text-align:center"><nobr>
|
|
67
|
+
<!-- <button type="button" name="button" class="btn btn-link"
|
|
68
|
+
@click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
|
|
69
|
+
<button type="button" name="button" class="btn btn-link"
|
|
70
|
+
@click.stop="$parent.$parent.$parent.delete(row)">删除</button>
|
|
71
|
+
</nobr></td>
|
|
72
|
+
</tr>
|
|
73
|
+
</template>
|
|
74
|
+
<template partial='foot'></template>
|
|
75
|
+
</data-grid>
|
|
76
|
+
</criteria-paged>
|
|
77
|
+
</div>
|
|
78
|
+
</template>
|
|
79
|
+
|
|
80
|
+
<script>
|
|
81
|
+
import { PagedList } from 'vue-client'
|
|
82
|
+
|
|
83
|
+
export default {
|
|
84
|
+
data () {
|
|
85
|
+
return {
|
|
86
|
+
model: new PagedList('rs/sql/address_getstreetlist',20),
|
|
87
|
+
userid: this.$login.f.id,
|
|
88
|
+
source:`tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
|
|
89
|
+
addflag: false,
|
|
90
|
+
addtitle:''
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
title: '街道管理',
|
|
94
|
+
props:{
|
|
95
|
+
f_filialeids:{
|
|
96
|
+
type: String
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
ready(){
|
|
100
|
+
this.init()
|
|
101
|
+
},
|
|
102
|
+
methods: {
|
|
103
|
+
async init(){
|
|
104
|
+
await this.$refs.paged.$refs.cri.search()
|
|
105
|
+
},
|
|
106
|
+
async delete(row){
|
|
107
|
+
if(row.id){
|
|
108
|
+
var id = row.id
|
|
109
|
+
let useraredss = await this.$resetpost('rs/sql/address_singleTable',
|
|
110
|
+
{data: {
|
|
111
|
+
items: 'f_street_id',
|
|
112
|
+
tablename: 't_area',
|
|
113
|
+
condition: `f_street_id='${id}'`}
|
|
114
|
+
},
|
|
115
|
+
{resolveMsg: null, rejectMsg: null})
|
|
116
|
+
if(useraredss.data.length>0){
|
|
117
|
+
this.$showAlert('该街道下已有小区信息,无法删除!','warning',1000)
|
|
118
|
+
}else{
|
|
119
|
+
this.$resetdelete('rs/entity/t_street', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
120
|
+
this.$dispatch('cancel')
|
|
121
|
+
})
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
add(val){
|
|
126
|
+
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
127
|
+
this.$dispatch('add',val)
|
|
128
|
+
},
|
|
129
|
+
modify(val){
|
|
130
|
+
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
131
|
+
this.$dispatch('modify',val)
|
|
132
|
+
},
|
|
133
|
+
search (args) {
|
|
134
|
+
args.condition = `${args.condition} and s.f_filialeids = '${this.f_filialeids}'`
|
|
135
|
+
this.model.search(args.condition, args.model)
|
|
136
|
+
},
|
|
137
|
+
//清空
|
|
138
|
+
clear(){
|
|
139
|
+
this.$refs.paged.$refs.cri.model = {}
|
|
140
|
+
},
|
|
141
|
+
getRes (obj) {
|
|
142
|
+
console.log(obj,'选择到公司')
|
|
143
|
+
this.f_filialeids = obj.resids
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
watch:{
|
|
147
|
+
'f_filialeids'(){
|
|
148
|
+
this.init()
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
}
|
|
153
|
+
</script>
|