address-client 3.0.24-9 → 3.0.24-aode
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/5.5/fileChanges/last-build.bin +0 -0
- package/.gradle/5.5/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.5/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/CHANGELOG.md +0 -3
- package/build/dev-server.js +2 -2
- package/package.json +98 -97
- package/src/address.js +4 -8
- package/src/components/AddAreaMsg.vue +14 -10
- package/src/components/AddressList.vue +84 -83
- package/src/components/AreaList.vue +247 -236
- package/src/components/AreaManage.vue +16 -2
- package/src/components/UserAddress.vue +394 -393
- package/src/components/areauser/AreaUser.vue +233 -0
- package/src/main.js +1 -1
- package/.npmignore +0 -10
- package/AddressClient.iml +0 -9
- package/build/.npmignore +0 -1
- package/src/filiale/rongcheng/AddressList.vue +0 -308
- package/src/filiale/rongcheng/UserAddress.vue +0 -708
- package/src/filiale/rongcheng/sale.js +0 -11
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="form-group col-sm-4" >
|
|
8
|
+
<label class="font_normal_body">客户编号</label>
|
|
9
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
|
|
10
|
+
condition="f_userinfo_code = '{}'" @keyup.enter="search()">
|
|
11
|
+
</div>
|
|
12
|
+
<div class="form-group col-sm-4 button-range" >
|
|
13
|
+
<button class="button_search" style="margin-right: 10px" v-if="this.$login.r.includes('批量调小区')" @click="$parent.$parent.changearea()" v-el:cba>批量调小区</button>
|
|
14
|
+
<button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</criteria>
|
|
19
|
+
<data-grid :model="model" class="table_sy" partial='list' v-ref:grid >
|
|
20
|
+
<template partial='head' >
|
|
21
|
+
<tr>
|
|
22
|
+
<th><nobr>序号</nobr></th>
|
|
23
|
+
<th><nobr>客户编号</nobr></th>
|
|
24
|
+
<th><nobr>客户名称</nobr></th>
|
|
25
|
+
<th><nobr>客户地址</nobr></th>
|
|
26
|
+
</tr>
|
|
27
|
+
</template>
|
|
28
|
+
<template partial='body' >
|
|
29
|
+
<tr >
|
|
30
|
+
<td style="text-align:center;">{{$index+1}}</td>
|
|
31
|
+
<td style="text-align:center"><span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></td>
|
|
32
|
+
<td style="text-align:center">{{row.f_user_name}}</td>
|
|
33
|
+
<td style="text-align:center;white-space: nowrap;">{{row.f_address}}</td>
|
|
34
|
+
</tr>
|
|
35
|
+
</template>
|
|
36
|
+
<template partial='foot'></template>
|
|
37
|
+
</data-grid>
|
|
38
|
+
</criteria-paged>
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
<modal :show.sync="show" width="40%" backdrop="false">
|
|
42
|
+
|
|
43
|
+
<header slot="modal-header" class="modal-header">
|
|
44
|
+
<h4 class="modal-title" style="text-align: center;">小区调整</h4>
|
|
45
|
+
</header>
|
|
46
|
+
<article slot="modal-body" class="modal-body">
|
|
47
|
+
<div class="panel panel-primary datapanel">
|
|
48
|
+
<form class="form-horizontal select-overspread">
|
|
49
|
+
<div class="form-group">
|
|
50
|
+
<div class="row bg-info text-center text-center" style="height:35px">
|
|
51
|
+
<div style="float: left">
|
|
52
|
+
<label class="font_normal_body">旧小区信息</label>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="row" style="margin-top: 2%">
|
|
56
|
+
<div class="col-sm-6 flex-row ">
|
|
57
|
+
<label class="control-label">小区名称</label>
|
|
58
|
+
<p class="form-control-static">{{model.rows[0].f_residential_area}}</p>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="col-sm-6 flex-row ">
|
|
61
|
+
<label class="control-label">可调整用户数</label>
|
|
62
|
+
<p class="form-control-static">{{model.count}}</p>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="row bg-info text-center text-center" style="height:35px">
|
|
66
|
+
<div style="float: left">
|
|
67
|
+
<label class="font_normal_body">新小区信息</label>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
<div class="row" style="margin-top: 2%">
|
|
71
|
+
|
|
72
|
+
<div class="col-sm-6 flex-row" >
|
|
73
|
+
<label class="control-label">小区名称</label>
|
|
74
|
+
<v-select :value.sync="newinfo.residential_id" v-model="newinfo.residential_id"
|
|
75
|
+
placeholder='小区名称' :options="areaslist" value-single
|
|
76
|
+
close-on-select v-ref:name></v-select>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</form>
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
</article>
|
|
86
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
87
|
+
<button :disabled="battchbuttonClick" class="button_search" @click="modifyUser">确认</button>
|
|
88
|
+
<button type="button" class="button_clear" @click='close'>取消</button>
|
|
89
|
+
</footer>
|
|
90
|
+
|
|
91
|
+
</modal>
|
|
92
|
+
</div>
|
|
93
|
+
</template>
|
|
94
|
+
|
|
95
|
+
<script>
|
|
96
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
let loadParamGem = async function (self) {
|
|
100
|
+
console.log('执行了')
|
|
101
|
+
await self.initareas(` f_filialeid = '${self.f_filialeid}'`)
|
|
102
|
+
}
|
|
103
|
+
export default {
|
|
104
|
+
title: '小区使用人',
|
|
105
|
+
data () {
|
|
106
|
+
return {
|
|
107
|
+
model: new PagedList('rs/sql/getareauser', 20, {}),
|
|
108
|
+
condition:'',
|
|
109
|
+
getfield: {},
|
|
110
|
+
show:false,
|
|
111
|
+
gasproperties: [],
|
|
112
|
+
newinfo:{
|
|
113
|
+
residential_id:''
|
|
114
|
+
},
|
|
115
|
+
battchbuttonClick:false, //批量调整确认按钮
|
|
116
|
+
areaslist:[]
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
props: ['f_residential_area_id','f_residential_area','f_filialeid'],
|
|
120
|
+
ready () {
|
|
121
|
+
this.search()
|
|
122
|
+
loadParamGem(this)
|
|
123
|
+
},
|
|
124
|
+
methods: {
|
|
125
|
+
async initareas(pconditon){
|
|
126
|
+
// if(this.usertype){
|
|
127
|
+
// pconditon=pconditon+` and f_special='1' `
|
|
128
|
+
// }
|
|
129
|
+
this.areaslist = []
|
|
130
|
+
let HttpReset = new HttpResetClass()
|
|
131
|
+
let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
|
|
132
|
+
data: {
|
|
133
|
+
items: '*',
|
|
134
|
+
tablename: 't_area',
|
|
135
|
+
orderitem: 'id',
|
|
136
|
+
condition: pconditon
|
|
137
|
+
}
|
|
138
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
139
|
+
let redata = []
|
|
140
|
+
req.data.forEach((row) => {
|
|
141
|
+
redata.push({
|
|
142
|
+
label: row.f_residential_area,
|
|
143
|
+
value: row.id,
|
|
144
|
+
data: row,
|
|
145
|
+
id: row.id
|
|
146
|
+
})
|
|
147
|
+
})
|
|
148
|
+
this.areaslist=redata
|
|
149
|
+
},
|
|
150
|
+
close() {
|
|
151
|
+
this.show = false
|
|
152
|
+
this.newinfo = {
|
|
153
|
+
residential_id:''
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
async modifyUser () {
|
|
157
|
+
if(this.newinfo.residential_id == ''){
|
|
158
|
+
this.$showAlert('请选择新小区后进行点击!','warning',1000)
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
if(this.f_filialeid ==''){
|
|
162
|
+
this.$showAlert('请选择组织后进行点击!','warning',1000)
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
//将调整按钮改为不可点击
|
|
166
|
+
this.battchbuttonClick = true
|
|
167
|
+
let param={
|
|
168
|
+
f_oldresidential_area_id: this.f_residential_area_id,
|
|
169
|
+
f_oldresidential_area: this.model.rows[0].f_residential_area,
|
|
170
|
+
f_filialeid:this.f_filialeid,
|
|
171
|
+
f_operator : this.$login.f.name,
|
|
172
|
+
f_operatorid : this.$login.f.id,
|
|
173
|
+
f_orgid : this.$login.f.orgid,
|
|
174
|
+
f_orgname : this.$login.f.orgs,
|
|
175
|
+
f_depid :this.$login.f.depids,
|
|
176
|
+
f_depname : this.$login.f.deps,
|
|
177
|
+
f_residential_area_id:this.newinfo.residential_id
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
let res = await this.$resetpost('rs/logic/changeareaUser', {data: param}, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
|
|
181
|
+
this.$showMessage(`成功批量修改了${res.data}位用户的小区`)
|
|
182
|
+
this.criteriaShow = false
|
|
183
|
+
this.close()
|
|
184
|
+
this.search ()
|
|
185
|
+
},
|
|
186
|
+
search() {
|
|
187
|
+
this.$refs.paged.$refs.criteria.search()
|
|
188
|
+
},
|
|
189
|
+
changearea(){
|
|
190
|
+
this.battchbuttonClick=false
|
|
191
|
+
this.show=true
|
|
192
|
+
},
|
|
193
|
+
selfSearch(args) {
|
|
194
|
+
if(this.f_filialeid==null || this.f_filialeid == ''){
|
|
195
|
+
this.$showAlert("请选择组织进行操作!!",'warning',2000);
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
args.condition = `${args.condition} and id = '${this.f_residential_area_id}' and f_orgid = ${this.f_filialeid}`
|
|
199
|
+
this.condition = args.condition
|
|
200
|
+
this.model.search(args.condition, args.model)
|
|
201
|
+
},
|
|
202
|
+
dealmsg (val) {
|
|
203
|
+
this.$parent.f_userinfo_id=val.f_userinfo_id
|
|
204
|
+
this.$parent.listpage=false
|
|
205
|
+
},
|
|
206
|
+
getPricenames () {
|
|
207
|
+
console.log('气价。,。。', this.newinfo.pricetype, this.newinfo.f_user_type, this.newinfo.f_gasproperties)
|
|
208
|
+
let rs = []
|
|
209
|
+
if (this.newinfo.f_user_type.length === 1 && this.newinfo.f_gasproperties.length === 1 && this.newinfo.pricetype.length === 1) {
|
|
210
|
+
let params = {
|
|
211
|
+
f_user_type: this.newinfo.f_user_type[0],
|
|
212
|
+
f_gasproperties: this.newinfo.f_gasproperties[0],
|
|
213
|
+
f_price_type: this.newinfo.pricetype[0],
|
|
214
|
+
filter: this.f_filialeid
|
|
215
|
+
}
|
|
216
|
+
rs = this.$GetSaleParam.getPrice(params)
|
|
217
|
+
}
|
|
218
|
+
if (rs.length === 0) {
|
|
219
|
+
this.newinfo.f_price_name = ''
|
|
220
|
+
}
|
|
221
|
+
return rs
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
watch:{
|
|
225
|
+
'f_residential_area_id'(){
|
|
226
|
+
this.search()
|
|
227
|
+
},
|
|
228
|
+
'f_filialeid' (val) {
|
|
229
|
+
loadParamGem(this)
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
</script>
|
package/src/main.js
CHANGED
package/.npmignore
DELETED
package/AddressClient.iml
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module external.linked.project.id="AddressClient" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
-
<exclude-output />
|
|
5
|
-
<content url="file://$MODULE_DIR$" />
|
|
6
|
-
<orderEntry type="inheritedJdk" />
|
|
7
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
-
</component>
|
|
9
|
-
</module>
|
package/build/.npmignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,308 +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
|
-
<th><nobr>操作</nobr></th>
|
|
133
|
-
</tr>
|
|
134
|
-
</template>
|
|
135
|
-
<template partial='body'>
|
|
136
|
-
<tr>
|
|
137
|
-
<td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
|
|
138
|
-
<td style="text-align:center"><nobr>{{row.f_userinfo_code}}</nobr></td>
|
|
139
|
-
<td style="text-align:center"><nobr>{{row.f_pcd}}</nobr></td>
|
|
140
|
-
<td style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
|
|
141
|
-
<td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
|
|
142
|
-
<td style="text-align:center"><nobr>{{row.f_small_area}}</nobr></td>
|
|
143
|
-
<td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
|
|
144
|
-
<td style="text-align:center"><nobr>{{row.f_building}}{{row.f_building_suffix}}</nobr></td>
|
|
145
|
-
<td style="text-align:center"><nobr>{{row.f_unit}}{{row.f_unit_suffix}}</nobr></td>
|
|
146
|
-
<td style="text-align:center"><nobr>{{row.f_floor}}{{row.f_floor_suffix}}</nobr></td>
|
|
147
|
-
<td style="text-align:center"><nobr>{{row.f_room}}{{row.f_room_suffix}}</nobr></td>
|
|
148
|
-
<td style="text-align:center"><nobr>{{row.f_address}}</nobr></td>
|
|
149
|
-
<td style="text-align:center"><nobr>{{row.f_address_state}}</nobr></td>
|
|
150
|
-
<td style="text-align:center"><nobr>{{row.f_create_date}}</nobr></td>
|
|
151
|
-
<td style="text-align:center">
|
|
152
|
-
<!-- <button type="button" name="button" class="btn btn-link"
|
|
153
|
-
@click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
|
|
154
|
-
<button type="button" name="button" class="btn btn-link"
|
|
155
|
-
@click.stop="$parent.$parent.$parent.delete(row)">删除</button>
|
|
156
|
-
</td>
|
|
157
|
-
</tr>
|
|
158
|
-
</template>
|
|
159
|
-
<template partial='foot'></template>
|
|
160
|
-
</data-grid>
|
|
161
|
-
</criteria-paged>
|
|
162
|
-
</div>
|
|
163
|
-
<modal :show.sync="showFile" v-ref:modal backdrop="true">
|
|
164
|
-
<header slot="modal-header" class="modal-header">
|
|
165
|
-
<button type="button" class="close" @click="closeFile"><span>×</span></button>
|
|
166
|
-
<h4 class="modal-title">选择文件</h4>
|
|
167
|
-
</header>
|
|
168
|
-
<article slot="modal-body" class="modal-body">
|
|
169
|
-
<div class="form-group">
|
|
170
|
-
<file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
|
|
171
|
-
</div>
|
|
172
|
-
</article>
|
|
173
|
-
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
174
|
-
</modal>
|
|
175
|
-
</template>
|
|
176
|
-
|
|
177
|
-
<script>
|
|
178
|
-
import { PagedList } from 'vue-client'
|
|
179
|
-
|
|
180
|
-
export default {
|
|
181
|
-
data () {
|
|
182
|
-
return {
|
|
183
|
-
criteriaShow: false,
|
|
184
|
-
model: new PagedList('rs/sql/address_getAddress',20,{tablename: `'t_user_address'`,items: `'*'`,orderitem: `'id desc'`}),
|
|
185
|
-
addflag: false,
|
|
186
|
-
addtitle:'',
|
|
187
|
-
|
|
188
|
-
// 公司下拉
|
|
189
|
-
curorgid: [this.$login.f.orgid],
|
|
190
|
-
f_orgid: '',
|
|
191
|
-
|
|
192
|
-
//文件上传弹框
|
|
193
|
-
showFile: false,
|
|
194
|
-
showrightchange:true
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
title: '地址列表',
|
|
198
|
-
props:{
|
|
199
|
-
f_filialeids:{
|
|
200
|
-
type: String
|
|
201
|
-
},
|
|
202
|
-
style: {
|
|
203
|
-
type: String,
|
|
204
|
-
default: 'col-sm-2 '
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
ready(){
|
|
208
|
-
this.search()
|
|
209
|
-
},
|
|
210
|
-
methods: {
|
|
211
|
-
hidden() {
|
|
212
|
-
this.criteriaShow = !this.criteriaShow
|
|
213
|
-
},
|
|
214
|
-
//添加方法
|
|
215
|
-
add(val){
|
|
216
|
-
if (this.f_filialeids) {
|
|
217
|
-
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
218
|
-
this.$dispatch('add',val)
|
|
219
|
-
this.showrightchange = false;
|
|
220
|
-
} else {
|
|
221
|
-
this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
importAddress(){
|
|
225
|
-
this.showFile = true
|
|
226
|
-
},
|
|
227
|
-
// 关闭文件上传对话框
|
|
228
|
-
closeFile() {
|
|
229
|
-
this.showFile = false
|
|
230
|
-
// 将选的文件清空
|
|
231
|
-
this.$refs.file.$el.querySelector('input').value = ''
|
|
232
|
-
},
|
|
233
|
-
//修改
|
|
234
|
-
modify(val){
|
|
235
|
-
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
236
|
-
this.$dispatch('modify',val)
|
|
237
|
-
},
|
|
238
|
-
async delete(row){
|
|
239
|
-
if(row.id){
|
|
240
|
-
var id = row.id
|
|
241
|
-
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})
|
|
242
|
-
if(userfiles.data.length){
|
|
243
|
-
this.$showAlert('该地址下已有正常表具档案,无法删除!','warning',1000)
|
|
244
|
-
}else{
|
|
245
|
-
this.$resetdelete('rs/entity/t_user_address', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
246
|
-
this.$dispatch('cancel')
|
|
247
|
-
})
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
|
|
252
|
-
search () {
|
|
253
|
-
this.$refs.paged.$refs.cri.search()
|
|
254
|
-
},
|
|
255
|
-
|
|
256
|
-
selfSearch (args) {
|
|
257
|
-
|
|
258
|
-
if (!this.f_orgid) {
|
|
259
|
-
this.getorg([this.$login.f.orgid])
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
args.condition = `${args.condition} and a.f_filialeid = '${this.f_filialeids}'`
|
|
263
|
-
this.model.search(args.condition, args.model)
|
|
264
|
-
},
|
|
265
|
-
|
|
266
|
-
//清空
|
|
267
|
-
clear(){
|
|
268
|
-
this.$refs.paged.$refs.cri.model = {}
|
|
269
|
-
},
|
|
270
|
-
getorg (val) {
|
|
271
|
-
this.f_orgid = this.$login.convertToIn(val)
|
|
272
|
-
this.f_filialeids = val[0]
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
events: {
|
|
276
|
-
onFileUpload: async function (file, res) {
|
|
277
|
-
console.log("上传完毕"+JSON.stringify(res))
|
|
278
|
-
let data = {
|
|
279
|
-
filepath: res.f_downloadpath,
|
|
280
|
-
user:this.$login.f
|
|
281
|
-
}
|
|
282
|
-
console.log("filepath="+JSON.stringify(data))
|
|
283
|
-
await this.$resetpost(`rs/logic/address_useraddressimport`,data, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0).then((res)=>{
|
|
284
|
-
if(res.data.type=="success"){
|
|
285
|
-
this.$showAlert("导入信息:"+res.data.msg, res.data.type, 2000);
|
|
286
|
-
}else{
|
|
287
|
-
this.$showMessage(res.data.msg);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
//关闭上传框
|
|
291
|
-
this.closeFile()
|
|
292
|
-
//重新查询
|
|
293
|
-
this.init()
|
|
294
|
-
})
|
|
295
|
-
},
|
|
296
|
-
'onFileError'(error) {
|
|
297
|
-
this.$showAlert(error, 'warning', 2000)
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
computed: {
|
|
301
|
-
//地址状态下拉框
|
|
302
|
-
getaddresstate() {
|
|
303
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
}
|
|
308
|
-
</script>
|