address-client 3.2.2 → 3.2.3-zk
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/buildOutputCleanup/cache.properties +2 -2
- package/build/dev-server.js +133 -125
- package/package.json +2 -2
- package/src/address.js +55 -55
- package/src/components/AddAreaMsg.vue +675 -669
- package/src/components/AddressList.vue +391 -611
- package/src/components/AddressManage.vue +110 -117
- package/src/components/AreaList.vue +137 -135
- package/src/components/AreaManage.vue +101 -100
- package/src/components/CityList.vue +133 -133
- package/src/components/StreetList.vue +210 -210
- package/src/components/UserAddress.vue +905 -896
- package/src/main.js +21 -21
- package/yarn-error.log +7619 -0
- package/.gradle/3.5/file-changes/last-build.bin +0 -0
- package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
- package/AddressClient.iml +0 -13
- package/src/filiale/WEINAN/AddAreaMsg.vue +0 -656
- package/src/filiale/WEINAN/AddressList.vue +0 -351
- package/src/filiale/WEINAN/AddressManage.vue +0 -122
- package/src/filiale/WEINAN/AreaList.vue +0 -275
- package/src/filiale/WEINAN/UserAddress.vue +0 -783
- package/src/filiale/WEINAN/sale.js +0 -16
- package/src/filiale/gaomi/AddressList.vue +0 -430
- package/src/filiale/gaomi/UserAddress.vue +0 -832
- package/src/filiale/gaomi/sale.js +0 -14
- package/src/filiale/gongyi/AddAreaMsg.vue +0 -640
- package/src/filiale/gongyi/AreaManage.vue +0 -100
- package/src/filiale/gongyi/UserAddress.vue +0 -751
- package/src/filiale/gongyi/sale.js +0 -14
- package/src/filiale/jingwei/UserAddress.vue +0 -764
- package/src/filiale/jingwei/sale.js +0 -12
- package/src/filiale/macheng/AddAreaMsg.vue +0 -635
- package/src/filiale/macheng/AddStreetOrPcd.vue +0 -231
- package/src/filiale/macheng/AddressList.vue +0 -306
- package/src/filiale/macheng/AreaList.vue +0 -279
- package/src/filiale/macheng/CityManage.vue +0 -76
- package/src/filiale/macheng/StreetList.vue +0 -186
- package/src/filiale/macheng/UserAddress.vue +0 -743
- package/src/filiale/macheng/sale.js +0 -17
- package/src/filiale/rongcheng/AddressList.vue +0 -363
- package/src/filiale/rongcheng/UserAddress.vue +0 -799
- package/src/filiale/rongcheng/sale.js +0 -11
- package/src/filiale/shaoguan/AddAreaMsg.vue +0 -631
- package/src/filiale/shaoguan/UserAddress.vue +0 -764
- package/src/filiale/shaoguan/sale.js +0 -11
- package/src/filiale/tongchuan/AddAreaMsg.vue +0 -635
- package/src/filiale/tongchuan/AddStreetOrPcd.vue +0 -308
- package/src/filiale/tongchuan/AddressList.vue +0 -379
- package/src/filiale/tongchuan/AreaList.vue +0 -315
- package/src/filiale/tongchuan/AreaManage.vue +0 -100
- package/src/filiale/tongchuan/CityList.vue +0 -133
- package/src/filiale/tongchuan/StreetList.vue +0 -208
- package/src/filiale/tongchuan/UserAddress.vue +0 -822
- package/src/filiale/tongchuan/sale.js +0 -19
- package/src/filiale/wuhai/UserAddress.vue +0 -795
- package/src/filiale/wuhai/sale.js +0 -12
- package/src/filiale/zhoukou/AddAreaMsg.vue +0 -673
- package/src/filiale/zhoukou/AddressList.vue +0 -391
- package/src/filiale/zhoukou/AddressManage.vue +0 -115
- package/src/filiale/zhoukou/AreaList.vue +0 -319
- package/src/filiale/zhoukou/AreaManage.vue +0 -100
- package/src/filiale/zhoukou/UserAddress.vue +0 -925
- package/src/filiale/zhoukou/sale.js +0 -23
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="span">
|
|
3
|
-
<validator name='v'>
|
|
4
|
-
<p class="bg-info text-center" style="padding: 8px;" v-if="operation=='add'">添加{{areatype}}</p>
|
|
5
|
-
<p class="bg-info text-center" style="padding: 8px;" v-if="operation=='modify'&&areatype=='街道'">修改【{{streetmodel.f_street}}】街道</p>
|
|
6
|
-
<p class="bg-info text-center" style="padding: 8px;" v-if="operation=='modify'&&areatype=='省市区'">修改【{{pcdmodel.f_pcd}}】</p>
|
|
7
|
-
<div class="auto select-overspread form-horizontal">
|
|
8
|
-
<div style="text-align:right;margin-top:6px;" class="col-sm-12">
|
|
9
|
-
<!-- 省市区-->
|
|
10
|
-
<div v-if="areatype=='省市区'" class="row">
|
|
11
|
-
<div class="col-sm-6 form-group "
|
|
12
|
-
:class="[$v.f_province.required ? 'has-error' : 'has-success']">
|
|
13
|
-
<label class="font_normal_body">省  份</label>
|
|
14
|
-
<input type="text" v-model="pcdmodel.f_province"
|
|
15
|
-
class="input_search" style="width:60%" placeholder="省份"
|
|
16
|
-
v-validate:f_province='{required: true }' value="湖北省">
|
|
17
|
-
</div>
|
|
18
|
-
<div class="col-sm-6 form-group "
|
|
19
|
-
:class="[$v.f_city.required ? 'has-error' : 'has-success']">
|
|
20
|
-
<label class="font_normal_body">城  市</label>
|
|
21
|
-
<input type="text" v-model="pcdmodel.f_city"
|
|
22
|
-
class="input_search" style="width:60%" placeholder="城市"
|
|
23
|
-
v-validate:f_city='{required: true }' value="麻城市">
|
|
24
|
-
</div>
|
|
25
|
-
<div class="col-sm-6 form-group "
|
|
26
|
-
:class="[$v.f_district.required ? 'has-error' : 'has-success']">
|
|
27
|
-
<label class="font_normal_body">区  / 镇</label>
|
|
28
|
-
<input type="text" v-model="pcdmodel.f_district"
|
|
29
|
-
class="input_search" style="width:60%" placeholder="区/镇"
|
|
30
|
-
v-validate:f_district='{required: true }'>
|
|
31
|
-
</div>
|
|
32
|
-
<div class="col-sm-12 form-group">
|
|
33
|
-
<label class="font_normal_body " style="">备  注</label>
|
|
34
|
-
<textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="pcdmodel.f_comments"></textarea>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
<!-- 街道-->
|
|
38
|
-
<div v-if="areatype=='街道'" class="row">
|
|
39
|
-
<div class="col-sm-6 form-group "
|
|
40
|
-
:class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
|
|
41
|
-
<label class="font_normal_body">省 市 区</label>
|
|
42
|
-
<input type="text" v-show="false" v-model="streetmodel.f_pcd_id"
|
|
43
|
-
v-validate:f_pcd_id='{required: true }'>
|
|
44
|
-
<v-select
|
|
45
|
-
:value.sync="streetmodel.f_pcd_id" :value-single="true"
|
|
46
|
-
:options='pcdslist' placeholder='请选择'
|
|
47
|
-
close-on-select search="true" @change="pcdChange">
|
|
48
|
-
</v-select>
|
|
49
|
-
</div>
|
|
50
|
-
<div class="col-sm-6 form-group "
|
|
51
|
-
:class="[$v.f_street.required ? 'has-error' : 'has-success']">
|
|
52
|
-
<label class="font_normal_body">社区/村委</label>
|
|
53
|
-
<input type="text" v-model="streetmodel.f_street"
|
|
54
|
-
class="input_search" style="width:60%" placeholder="社区/村委"
|
|
55
|
-
v-validate:f_street='{required: true }'>
|
|
56
|
-
</div>
|
|
57
|
-
<div class="col-sm-12 form-group">
|
|
58
|
-
<label class="font_normal_body " style="">备  注</label>
|
|
59
|
-
<textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="streetmodel.f_comments"></textarea>
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
|
|
63
|
-
<div class="row">
|
|
64
|
-
<div style="margin-top:40px;text-align:right;">
|
|
65
|
-
<button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
|
|
66
|
-
<button class="button_clear button_spacing" @click="cancel()">取消</button>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
</validator>
|
|
71
|
-
</div>
|
|
72
|
-
</template>
|
|
73
|
-
|
|
74
|
-
<script>
|
|
75
|
-
import {HttpResetClass} from 'vue-client'
|
|
76
|
-
export default {
|
|
77
|
-
title: '区域地址添加',
|
|
78
|
-
data () {
|
|
79
|
-
return {
|
|
80
|
-
//初始化省市区数据
|
|
81
|
-
pcdslist:[],
|
|
82
|
-
//省市区
|
|
83
|
-
pcdmodel: {
|
|
84
|
-
f_province:'',
|
|
85
|
-
f_city:'',
|
|
86
|
-
f_district:'',
|
|
87
|
-
f_comments:''
|
|
88
|
-
},
|
|
89
|
-
//街道
|
|
90
|
-
streetmodel: {
|
|
91
|
-
f_pcd_id:'',
|
|
92
|
-
f_street_id:'',
|
|
93
|
-
slice_area: null,
|
|
94
|
-
f_slice_area: null,
|
|
95
|
-
f_adjustable_id: null,
|
|
96
|
-
f_street:'',
|
|
97
|
-
f_comments:''
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
props: ['f_filialeids', 'areatype','row','operation'],
|
|
102
|
-
ready(){
|
|
103
|
-
this.initdata()
|
|
104
|
-
},
|
|
105
|
-
methods: {
|
|
106
|
-
//初始化省市区,添加街道
|
|
107
|
-
initpcds(pconditon){
|
|
108
|
-
console.log("省市区准备")
|
|
109
|
-
let HttpReset = new HttpResetClass()
|
|
110
|
-
HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
|
|
111
|
-
data: {
|
|
112
|
-
items: '*',
|
|
113
|
-
tablename: 't_pcd',
|
|
114
|
-
orderitem: 'id',
|
|
115
|
-
condition: pconditon
|
|
116
|
-
}
|
|
117
|
-
}, {resolveMsg: null, rejectMsg: '获取地址失败!'}).then((req) => {
|
|
118
|
-
let redata = []
|
|
119
|
-
req.data.forEach((row, n) => {
|
|
120
|
-
redata[n] = {
|
|
121
|
-
label: row.f_pcd,
|
|
122
|
-
value: row.id,
|
|
123
|
-
data:row,
|
|
124
|
-
id:row.id
|
|
125
|
-
}
|
|
126
|
-
})
|
|
127
|
-
this.pcdslist=redata
|
|
128
|
-
})
|
|
129
|
-
},
|
|
130
|
-
//根据名字找数据
|
|
131
|
-
findbyid(list,name){
|
|
132
|
-
var result
|
|
133
|
-
list.forEach((row, n) => {
|
|
134
|
-
if(name==row.id){
|
|
135
|
-
result= row.data
|
|
136
|
-
}
|
|
137
|
-
})
|
|
138
|
-
return result
|
|
139
|
-
},
|
|
140
|
-
//初始化数据
|
|
141
|
-
initdata(){
|
|
142
|
-
if(this.areatype=='街道'){
|
|
143
|
-
this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
|
|
144
|
-
}
|
|
145
|
-
if(this.areatype=='小区'){
|
|
146
|
-
this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
|
|
147
|
-
this.initstreets(` f_filialeid = '${this.f_filialeids}'`)
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
//省/市/区变化
|
|
151
|
-
pcdChange(val){
|
|
152
|
-
console.log("省/市/区变化",val)
|
|
153
|
-
this.$resetValidation()
|
|
154
|
-
},
|
|
155
|
-
//保存
|
|
156
|
-
async confirm(){
|
|
157
|
-
if(this.areatype=='省市区'){
|
|
158
|
-
await this.savepcd()
|
|
159
|
-
}
|
|
160
|
-
if(this.areatype=='街道'){
|
|
161
|
-
await this.savestreet()
|
|
162
|
-
}
|
|
163
|
-
this.cleardara()
|
|
164
|
-
this.$dispatch('confirm')
|
|
165
|
-
},
|
|
166
|
-
//保存省市区
|
|
167
|
-
async savepcd(){
|
|
168
|
-
this.pcdmodel.f_filialeid = this.f_filialeids
|
|
169
|
-
this.pcdmodel.f_operator = this.$login.f.name
|
|
170
|
-
this.pcdmodel.f_operatorid = this.$login.f.id
|
|
171
|
-
this.pcdmodel.f_orgid = this.$login.f.orgid
|
|
172
|
-
this.pcdmodel.f_orgname = this.$login.f.orgs
|
|
173
|
-
this.pcdmodel.f_depid = this.$login.f.depids
|
|
174
|
-
this.pcdmodel.f_depname = this.$login.f.deps
|
|
175
|
-
this.pcdmodel.f_pcd = this.pcdmodel.f_province+this.pcdmodel.f_city+this.pcdmodel.f_district
|
|
176
|
-
await this.$resetpost('rs/logic/address_updatepcd', this.pcdmodel)
|
|
177
|
-
},
|
|
178
|
-
//保存街道
|
|
179
|
-
async savestreet(){
|
|
180
|
-
this.streetmodel.f_filialeid = this.f_filialeids
|
|
181
|
-
this.streetmodel.f_operator= this.$login.f.name
|
|
182
|
-
this.streetmodel.f_operatorid = this.$login.f.id
|
|
183
|
-
this.streetmodel.f_orgid = this.$login.f.orgid
|
|
184
|
-
this.streetmodel.f_orgname = this.$login.f.orgs
|
|
185
|
-
this.streetmodel.f_depid = this.$login.f.depids
|
|
186
|
-
this.streetmodel.f_depname = this.$login.f.deps
|
|
187
|
-
this.streetmodel.f_pcd=this.findbyid(this.pcdslist,this.streetmodel.f_pcd_id).f_pcd
|
|
188
|
-
console.log('获取街道model', this.streetmodel)
|
|
189
|
-
await this.$resetpost('rs/logic/address_updatestreet', this.streetmodel)
|
|
190
|
-
},
|
|
191
|
-
cancel(){
|
|
192
|
-
this.cleardara()
|
|
193
|
-
this.$dispatch('cancel')
|
|
194
|
-
},
|
|
195
|
-
cleardara () {
|
|
196
|
-
this.pcdmodel = {
|
|
197
|
-
f_province: '',
|
|
198
|
-
f_city: '',
|
|
199
|
-
f_district: '',
|
|
200
|
-
f_comments:''
|
|
201
|
-
}
|
|
202
|
-
this.streetmodel = {
|
|
203
|
-
f_pcd_id: '',
|
|
204
|
-
f_slice_area: '',
|
|
205
|
-
f_adjustable_id: '',
|
|
206
|
-
f_street: '',
|
|
207
|
-
f_comments:''
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
},
|
|
212
|
-
watch: {
|
|
213
|
-
'areatype'(){
|
|
214
|
-
this.initdata()
|
|
215
|
-
},
|
|
216
|
-
'f_filialeids'(){
|
|
217
|
-
if (this.streetmodel.f_filialeid) {
|
|
218
|
-
if (this.streetmodel.f_filialeid != this.f_filialeids) {
|
|
219
|
-
this.$dispatch('cancel')
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
if (this.pcdmodel.f_filialeid) {
|
|
223
|
-
if (this.pcdmodel.f_filialeid != this.f_filialeids) {
|
|
224
|
-
this.$dispatch('cancel')
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
this.initdata()
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
</script>
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex" @keyup.enter="search">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
-
|
|
7
|
-
<div class="row">
|
|
8
|
-
|
|
9
|
-
<div :class="$parent.$parent.style">
|
|
10
|
-
<label class="font_normal_body">组织机构</label>
|
|
11
|
-
<res-select
|
|
12
|
-
restype='organization'
|
|
13
|
-
@res-select="$parent.$parent.getorg"
|
|
14
|
-
is-mul="false"
|
|
15
|
-
:initresid='$parent.$parent.curorgid'
|
|
16
|
-
>
|
|
17
|
-
</res-select>
|
|
18
|
-
</div>
|
|
19
|
-
<div :class="$parent.$parent.style" v-if="$parent.$parent.showrightchange">
|
|
20
|
-
<label class="font_normal_body">用户编号</label>
|
|
21
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" style="width:60%"
|
|
22
|
-
condition="f_userinfo_code = '{}'" placeholder="用户编号"/>
|
|
23
|
-
</div>
|
|
24
|
-
<div v-if="$parent.$parent.showrightchange" :class="$parent.$parent.style">
|
|
25
|
-
<label class="font_normal_body">小  区</label>
|
|
26
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_residential_arearea" style="width:60%"
|
|
27
|
-
condition="a.f_residential_area like '%{}%'" placeholder="小区"
|
|
28
|
-
:size="model.f_residential_arearea ? model.f_residential_arearea.length*2 : 8"/>
|
|
29
|
-
</div>
|
|
30
|
-
<!--<div v-if="$parent.$parent.showrightchange" :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.useraddressShow">-->
|
|
31
|
-
|
|
32
|
-
<div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.showrightchange">
|
|
33
|
-
<label class="font_normal_body">楼  号</label>
|
|
34
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_building" style="width:60%"
|
|
35
|
-
condition="a.f_building like '%{}%'" placeholder="楼号"
|
|
36
|
-
:size="model.f_building ? model.f_building.length*2 : 6"/>
|
|
37
|
-
</div>
|
|
38
|
-
<div class="col-sm-4 form-group button-range" >
|
|
39
|
-
<button class="button_search button_spacing" @click="search()" >查询</button>
|
|
40
|
-
<button class="button_new button_spacing" style="width: max-content" @click="$parent.$parent.add('民用')">添加民用</button>
|
|
41
|
-
<button class="button_new button_spacing" style="width: max-content" @click="$parent.$parent.add('非民用')">添加特殊地址</button>
|
|
42
|
-
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
43
|
-
<button class="button_export button_spacing" @click="$parent.$parent.importAddress">导入地址</button>
|
|
44
|
-
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
48
|
-
<div :class="$parent.$parent.style" v-if="!$parent.$parent.showrightchange">
|
|
49
|
-
<label class="font_normal_body">用户编号</label>
|
|
50
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" style="width:60%"
|
|
51
|
-
condition="f_userinfo_code = '{}'" placeholder="用户编号"/>
|
|
52
|
-
</div>
|
|
53
|
-
<div v-if="!$parent.$parent.showrightchange" :class="$parent.$parent.style">
|
|
54
|
-
<label class="font_normal_body">小  区</label>
|
|
55
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_residential_arearea" style="width:60%"
|
|
56
|
-
condition="a.f_residential_area like '%{}%'" placeholder="小区"
|
|
57
|
-
:size="model.f_residential_arearea ? model.f_residential_arearea.length*2 : 8"/>
|
|
58
|
-
</div>
|
|
59
|
-
<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showrightchange">
|
|
60
|
-
<label class="font_normal_body">楼  号</label>
|
|
61
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_building" style="width:60%"
|
|
62
|
-
condition="a.f_building like '%{}%'" placeholder="楼号"
|
|
63
|
-
:size="model.f_building ? model.f_building.length*2 : 6"/>
|
|
64
|
-
</div>
|
|
65
|
-
<div :class="$parent.$parent.style" >
|
|
66
|
-
<label class="font_normal_body">单  元</label>
|
|
67
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_unit" style="width:60%"
|
|
68
|
-
condition="a.f_unit like '%{}%'" placeholder="单元"
|
|
69
|
-
:size="model.f_unit ? model.f_unit.length*2 : 6"/>
|
|
70
|
-
</div>
|
|
71
|
-
<div :class="$parent.$parent.style">
|
|
72
|
-
<label class="font_normal_body">楼  层</label>
|
|
73
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_floor" style="width:60%"
|
|
74
|
-
condition="a.f_floor like '%{}%'" placeholder="楼层"
|
|
75
|
-
:size="model.f_floor ? model.f_floor.length*2 : 6"/>
|
|
76
|
-
</div>
|
|
77
|
-
<div :class="$parent.$parent.style">
|
|
78
|
-
<label class="font_normal_body">门 牌 号</label>
|
|
79
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_room" style="width:60%"
|
|
80
|
-
condition="a.f_room like '%{}%'" placeholder="门牌号"
|
|
81
|
-
:size="model.f_room ? model.f_room.length*2 : 6"/>
|
|
82
|
-
</div>
|
|
83
|
-
<!-- <div :class="$parent.$parent.style">-->
|
|
84
|
-
<!-- <label class="font_normal_body">小  区</label>-->
|
|
85
|
-
<!-- <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_arearea" style="width:60%"-->
|
|
86
|
-
<!-- condition="a.f_residential_area like '%{}%'" placeholder="小区"-->
|
|
87
|
-
<!-- :size="model.f_residential_arearea ? model.f_residential_arearea.length*2 : 8"/>-->
|
|
88
|
-
<!-- </div>-->
|
|
89
|
-
|
|
90
|
-
<div :class="$parent.$parent.style">
|
|
91
|
-
<label class="font_normal_body">地址 ID</label>
|
|
92
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.id" style="width:60%"
|
|
93
|
-
condition="a.id = '{}'" placeholder="地址ID"
|
|
94
|
-
/>
|
|
95
|
-
</div>
|
|
96
|
-
<div :class="$parent.$parent.style" >
|
|
97
|
-
<label class="font_normal_body">详细地址</label>
|
|
98
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_address" style="width:60%"
|
|
99
|
-
condition="a.f_address like '%{}%'" placeholder="详细地址"
|
|
100
|
-
:size="model.f_address ? model.f_address.length*2 : 8"/>
|
|
101
|
-
</div>
|
|
102
|
-
<div :class="$parent.$parent.style" >
|
|
103
|
-
<label class="font_normal_body">地址状态</label>
|
|
104
|
-
<v-select :value.sync="model.f_address_state"
|
|
105
|
-
class="select_list select"
|
|
106
|
-
v-model="model.f_address_state"
|
|
107
|
-
condition="a.f_address_state = '{}'"
|
|
108
|
-
:options='$parent.$parent.getaddresstate' placeholder='地址状态'
|
|
109
|
-
close-on-select>
|
|
110
|
-
</v-select>
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
</div>
|
|
114
|
-
</criteria>
|
|
115
|
-
<data-grid :model="model" partial='list' style="overflow: auto" class="list_area table_sy" v-ref:grid>
|
|
116
|
-
<template partial='head'>
|
|
117
|
-
<tr>
|
|
118
|
-
<th><nobr>序号</nobr></th>
|
|
119
|
-
<th><nobr>用户编号</nobr></th>
|
|
120
|
-
<th><nobr>区/镇</nobr></th>
|
|
121
|
-
<th><nobr>片区</nobr></th>
|
|
122
|
-
<th><nobr>社区/村委</nobr></th>
|
|
123
|
-
<th><nobr>小区(单位)</nobr></th>
|
|
124
|
-
<th><nobr>楼号</nobr></th>
|
|
125
|
-
<th><nobr>单元</nobr></th>
|
|
126
|
-
<th><nobr>楼层</nobr></th>
|
|
127
|
-
<th><nobr>门牌号</nobr></th>
|
|
128
|
-
<th><nobr>详细地址</nobr></th>
|
|
129
|
-
<th><nobr>地址状态</nobr></th>
|
|
130
|
-
<th><nobr>时间</nobr></th>
|
|
131
|
-
<th><nobr>操作</nobr></th>
|
|
132
|
-
</tr>
|
|
133
|
-
</template>
|
|
134
|
-
<template partial='body'>
|
|
135
|
-
<tr>
|
|
136
|
-
<td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
|
|
137
|
-
<td style="text-align:center"><nobr>{{row.f_userinfo_code}}</nobr></td>
|
|
138
|
-
<td style="text-align:center"><nobr>{{row.f_pcd}}</nobr></td>
|
|
139
|
-
<td style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
|
|
140
|
-
<td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
|
|
141
|
-
<td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
|
|
142
|
-
<td style="text-align:center"><nobr>{{row.f_building}}{{row.f_building_suffix}}</nobr></td>
|
|
143
|
-
<td style="text-align:center"><nobr>{{row.f_unit}}{{row.f_unit_suffix}}</nobr></td>
|
|
144
|
-
<td style="text-align:center"><nobr>{{row.f_floor}}{{row.f_floor_suffix}}</nobr></td>
|
|
145
|
-
<td style="text-align:center"><nobr>{{row.f_room}}{{row.f_room_suffix}}</nobr></td>
|
|
146
|
-
<td style="text-align:center"><nobr>{{row.f_address}}</nobr></td>
|
|
147
|
-
<td style="text-align:center"><nobr>{{row.f_address_state}}</nobr></td>
|
|
148
|
-
<td style="text-align:center"><nobr>{{row.f_create_date}}</nobr></td>
|
|
149
|
-
<td style="text-align:center">
|
|
150
|
-
<!-- <button type="button" name="button" class="btn btn-link"
|
|
151
|
-
@click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
|
|
152
|
-
<button type="button" name="button" class="btn btn-link"
|
|
153
|
-
@click.stop="$parent.$parent.$parent.delete(row)">删除</button>
|
|
154
|
-
</td>
|
|
155
|
-
</tr>
|
|
156
|
-
</template>
|
|
157
|
-
<template partial='foot'></template>
|
|
158
|
-
</data-grid>
|
|
159
|
-
</criteria-paged>
|
|
160
|
-
</div>
|
|
161
|
-
<modal :show.sync="showFile" v-ref:modal backdrop="true">
|
|
162
|
-
<header slot="modal-header" class="modal-header">
|
|
163
|
-
<button type="button" class="close" @click="closeFile"><span>×</span></button>
|
|
164
|
-
<h4 class="modal-title">选择文件</h4>
|
|
165
|
-
</header>
|
|
166
|
-
<article slot="modal-body" class="modal-body">
|
|
167
|
-
<div class="form-group">
|
|
168
|
-
<file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
|
|
169
|
-
</div>
|
|
170
|
-
</article>
|
|
171
|
-
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
172
|
-
</modal>
|
|
173
|
-
</template>
|
|
174
|
-
|
|
175
|
-
<script>
|
|
176
|
-
import { PagedList } from 'vue-client'
|
|
177
|
-
|
|
178
|
-
export default {
|
|
179
|
-
data () {
|
|
180
|
-
return {
|
|
181
|
-
criteriaShow: false,
|
|
182
|
-
model: new PagedList('rs/sql/address_getAddress',20,{tablename: `'t_user_address'`,items: `'*'`,orderitem: `'id desc'`}),
|
|
183
|
-
addflag: false,
|
|
184
|
-
addtitle:'',
|
|
185
|
-
|
|
186
|
-
// 公司下拉
|
|
187
|
-
curorgid: [this.$login.f.orgid],
|
|
188
|
-
f_orgid: '',
|
|
189
|
-
|
|
190
|
-
//文件上传弹框
|
|
191
|
-
showFile: false,
|
|
192
|
-
showrightchange:true
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
title: '地址列表',
|
|
196
|
-
props:{
|
|
197
|
-
f_filialeids:{
|
|
198
|
-
type: String
|
|
199
|
-
},
|
|
200
|
-
style: {
|
|
201
|
-
type: String,
|
|
202
|
-
default: 'col-sm-2 '
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
ready(){
|
|
206
|
-
this.search()
|
|
207
|
-
},
|
|
208
|
-
methods: {
|
|
209
|
-
hidden() {
|
|
210
|
-
this.criteriaShow = !this.criteriaShow
|
|
211
|
-
},
|
|
212
|
-
//添加方法
|
|
213
|
-
add(val){
|
|
214
|
-
if (this.f_filialeids) {
|
|
215
|
-
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
216
|
-
this.$dispatch('add',val)
|
|
217
|
-
this.showrightchange = false;
|
|
218
|
-
} else {
|
|
219
|
-
this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
importAddress(){
|
|
223
|
-
this.showFile = true
|
|
224
|
-
},
|
|
225
|
-
// 关闭文件上传对话框
|
|
226
|
-
closeFile() {
|
|
227
|
-
this.showFile = false
|
|
228
|
-
// 将选的文件清空
|
|
229
|
-
this.$refs.file.$el.querySelector('input').value = ''
|
|
230
|
-
},
|
|
231
|
-
//修改
|
|
232
|
-
modify(val){
|
|
233
|
-
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
234
|
-
this.$dispatch('modify',val)
|
|
235
|
-
},
|
|
236
|
-
async delete(row){
|
|
237
|
-
if(row.id){
|
|
238
|
-
var id = row.id
|
|
239
|
-
let userfiles = await this.$resetpost('rs/sql/address_singleTable', {data: {items: 'f_useraddress_id',tablename: 't_userfiles',condition: `f_useraddress_id='${id}' and f_table_state = '正常'`}},{resolveMsg: null, rejectMsg: null})
|
|
240
|
-
if(userfiles.data.length){
|
|
241
|
-
this.$showAlert('该地址下已有正常表具档案,无法删除!','warning',1000)
|
|
242
|
-
}else{
|
|
243
|
-
this.$resetdelete('rs/entity/t_user_address', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
244
|
-
this.$dispatch('cancel')
|
|
245
|
-
})
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
|
|
250
|
-
search () {
|
|
251
|
-
this.$refs.paged.$refs.cri.search()
|
|
252
|
-
},
|
|
253
|
-
|
|
254
|
-
selfSearch (args) {
|
|
255
|
-
|
|
256
|
-
if (!this.f_orgid) {
|
|
257
|
-
this.getorg([this.$login.f.orgid])
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
args.condition = `${args.condition} and a.f_filialeid = '${this.f_filialeids}'`
|
|
261
|
-
this.model.search(args.condition, args.model)
|
|
262
|
-
},
|
|
263
|
-
|
|
264
|
-
//清空
|
|
265
|
-
clear(){
|
|
266
|
-
this.$refs.paged.$refs.cri.model = {}
|
|
267
|
-
},
|
|
268
|
-
getorg (val) {
|
|
269
|
-
this.f_orgid = this.$login.convertToIn(val)
|
|
270
|
-
this.f_filialeids = val[0]
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
events: {
|
|
274
|
-
onFileUpload: async function (file, res) {
|
|
275
|
-
console.log("上传完毕"+JSON.stringify(res))
|
|
276
|
-
let data = {
|
|
277
|
-
filepath: res.f_downloadpath,
|
|
278
|
-
user:this.$login.f
|
|
279
|
-
}
|
|
280
|
-
console.log("filepath="+JSON.stringify(data))
|
|
281
|
-
await this.$resetpost(`rs/logic/address_useraddressimport`,data, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0).then((res)=>{
|
|
282
|
-
if(res.data.type=="success"){
|
|
283
|
-
this.$showAlert("导入信息:"+res.data.msg, res.data.type, 2000);
|
|
284
|
-
}else{
|
|
285
|
-
this.$showMessage(res.data.msg);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
//关闭上传框
|
|
289
|
-
this.closeFile()
|
|
290
|
-
//重新查询
|
|
291
|
-
this.init()
|
|
292
|
-
})
|
|
293
|
-
},
|
|
294
|
-
'onFileError'(error) {
|
|
295
|
-
this.$showAlert(error, 'warning', 2000)
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
computed: {
|
|
299
|
-
//地址状态下拉框
|
|
300
|
-
getaddresstate() {
|
|
301
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
}
|
|
306
|
-
</script>
|