address-client 3.0.33-aode → 3.0.34-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.
- package/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/CHANGELOG.md +12 -12
- package/examples/showAdd/App.vue +40 -40
- package/index.html +40 -40
- package/package.json +1 -1
- package/src/components/AddAreaMsg.vue +599 -599
- package/src/components/AddStreetOrPcd.vue +231 -231
- package/src/components/AddressAddAddress.vue +479 -479
- package/src/components/AddressFiles.vue +156 -156
- package/src/components/AddressList.vue +23 -7
- package/src/components/AddressManage.vue +117 -117
- package/src/components/AddressTree.vue +501 -501
- package/src/components/AreaFiles.vue +73 -73
- package/src/components/AreaList.vue +36 -6
- package/src/components/AreaManage.vue +101 -101
- package/src/components/AreaTree.vue +508 -508
- package/src/components/Basch.vue +72 -72
- package/src/components/BatchOrders.vue +328 -328
- package/src/components/CityManage.vue +76 -76
- package/src/components/NewAddressInfo.vue +432 -432
- package/src/components/OneCodeList.vue +1 -1
- package/src/components/StreetList.vue +184 -184
- package/src/components/UserAddress.vue +780 -780
- package/src/components/UserAddressChange.vue +58 -58
- package/src/components/addressts/AddressListts.vue +6 -6
- package/src/components/addressts/UserAddressChangets.vue +1 -1
- package/src/components/addressts/UserAddressts.vue +6 -6
- package/src/components/areauser/AreaUser.vue +233 -233
- package/src/components/selectAddress/BatchList.vue +326 -326
|
@@ -1,156 +1,156 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="widows: auto;">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged :pager="false">
|
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.selfsearch' v-ref:cri>
|
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
-
<div class="row">
|
|
7
|
-
<!--<div class="col-sm-4 ">-->
|
|
8
|
-
<!--<input type="text" style="width:98%" class="input_search" v-model="model.f_residential_arearea"-->
|
|
9
|
-
<!--condition="f_residential_area like '%{}%'" placeholder="小区"/>-->
|
|
10
|
-
<!--</div>-->
|
|
11
|
-
<!--<div class="col-sm-4 ">-->
|
|
12
|
-
<!--<input type="text" style="width:98%" class="input_search" v-model="model.f_building"-->
|
|
13
|
-
<!--condition="f_building like '%{}%'" placeholder="楼号"/>-->
|
|
14
|
-
<!--</div>-->
|
|
15
|
-
<div class="col-sm-9 ">
|
|
16
|
-
<input type="text" class="input_search button_spacing" v-model="model.f_address"
|
|
17
|
-
condition="f_address like '%{}%'" placeholder="详细地址"/>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
<div class="span" style="float:right;">
|
|
21
|
-
<button class="button_search button_spacing" @click="search()" >查询</button>
|
|
22
|
-
<!--<div style="float: right" class="button_spacing" ></div>-->
|
|
23
|
-
<!--<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>-->
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
<!--<div class="row" v-show="$parent.$parent.criteriaShow" style="margin-top: 10px">-->
|
|
27
|
-
<!--<div class="col-sm-4 ">-->
|
|
28
|
-
<!--<input type="text" style="width:98%" class="input_search " v-model="model.f_unit"-->
|
|
29
|
-
<!--condition="f_unit like '%{}%'" placeholder="单元"/>-->
|
|
30
|
-
<!--</div>-->
|
|
31
|
-
<!--<div class="col-sm-4 ">-->
|
|
32
|
-
<!--<input type="text" style="width:98%" class="input_search " v-model="model.f_floor"-->
|
|
33
|
-
<!--condition="f_floor like '%{}%'" placeholder="楼层"/>-->
|
|
34
|
-
<!--</div>-->
|
|
35
|
-
<!--<div class="col-sm-4 ">-->
|
|
36
|
-
<!--<input type="text" style="width:98%" class="input_search " v-model="model.f_room"-->
|
|
37
|
-
<!--condition="f_room like '%{}%'" placeholder="门牌号"/>-->
|
|
38
|
-
<!--</div>-->
|
|
39
|
-
<!--<div class="col-sm-4 ">-->
|
|
40
|
-
<!--<v-select :value.sync="model.file_num" :options='$parent.$parent.filenums' placeholder='表具数'-->
|
|
41
|
-
<!--close-on-select-->
|
|
42
|
-
<!--v-model='model.file_num' condition="file_num {}" style="width: 98%"></v-select>-->
|
|
43
|
-
<!--</div>-->
|
|
44
|
-
<!--<div class="col-sm-8 ">-->
|
|
45
|
-
<!--<input type="text" style="width:98%" class="input_search" v-model="model.f_address"-->
|
|
46
|
-
<!--condition="f_address like '%{}%'" placeholder="详细地址"/>-->
|
|
47
|
-
<!--</div>-->
|
|
48
|
-
<!--</div>-->
|
|
49
|
-
</div>
|
|
50
|
-
</criteria>
|
|
51
|
-
|
|
52
|
-
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" v-ref:grid>
|
|
53
|
-
<template partial='head'>
|
|
54
|
-
<tr>
|
|
55
|
-
<th><nobr>详细地址</nobr></th>
|
|
56
|
-
<th><nobr>表具数</nobr></th>
|
|
57
|
-
<th><nobr>操作</nobr></th>
|
|
58
|
-
</tr>
|
|
59
|
-
</template>
|
|
60
|
-
<template partial='body'>
|
|
61
|
-
<tr>
|
|
62
|
-
<td style="text-align:center"><nobr>{{row.f_address}}</nobr></td>
|
|
63
|
-
<td style="text-align:center"><nobr>{{row.file_num}}</nobr></td>
|
|
64
|
-
<td style="text-align:center">
|
|
65
|
-
<div v-if="row.file_num > 0 && !row.f_userinfo_id">
|
|
66
|
-
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.create(row, 'complete')">完善档案</button>
|
|
67
|
-
</div>
|
|
68
|
-
<div v-if="row.file_num === 0">
|
|
69
|
-
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.create(row, 'add')">添加表具</button>
|
|
70
|
-
</div>
|
|
71
|
-
<div v-if="row.file_num > 0 && row.f_userinfo_id && $parent.$parent.$parent.config.oneToMany">
|
|
72
|
-
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.create(row, 'add')">添加表具</button>
|
|
73
|
-
</div>
|
|
74
|
-
</td>
|
|
75
|
-
</tr>
|
|
76
|
-
</template>
|
|
77
|
-
<template partial='foot'></template>
|
|
78
|
-
</data-grid>
|
|
79
|
-
</criteria-paged>
|
|
80
|
-
</div>
|
|
81
|
-
</template>
|
|
82
|
-
|
|
83
|
-
<script>
|
|
84
|
-
import { PagedList, HttpResetClass } from 'vue-client'
|
|
85
|
-
|
|
86
|
-
let readySync = async function (self) {
|
|
87
|
-
await self.$refs.paged.$refs.cri.search()
|
|
88
|
-
// 获取地址管理特殊文件
|
|
89
|
-
let http = new HttpResetClass()
|
|
90
|
-
let getConfig = await http.load('GET', '/rs/vue/AddressList.json', {}, {resolveMsg: null, rejectMsg: null})
|
|
91
|
-
|
|
92
|
-
if (getConfig) {
|
|
93
|
-
Object.assign(self.config, self.config, getConfig.data)
|
|
94
|
-
}
|
|
95
|
-
console.log('获取到的地址配置文件', self.config)
|
|
96
|
-
}
|
|
97
|
-
export default {
|
|
98
|
-
data () {
|
|
99
|
-
return {
|
|
100
|
-
criteriaShow: false,
|
|
101
|
-
config: {
|
|
102
|
-
// 是否支持一对多
|
|
103
|
-
oneToMany: false
|
|
104
|
-
},
|
|
105
|
-
model: new PagedList('
|
|
106
|
-
//分公司id串
|
|
107
|
-
// f_filialeids: this.$login.f.orgid,
|
|
108
|
-
filenums: [{label: '全部', value: ''},{label: '多表', value: '> 1'}, {label: '一表', value: '= 1'}]
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
props: ['f_filialeid'],
|
|
112
|
-
ready(){
|
|
113
|
-
readySync(this)
|
|
114
|
-
},
|
|
115
|
-
watch: {
|
|
116
|
-
'f_filialeid' (val) {
|
|
117
|
-
this.$refs.paged.$refs.cri.search()
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
methods: {
|
|
121
|
-
hidden() {
|
|
122
|
-
this.criteriaShow = !this.criteriaShow
|
|
123
|
-
},
|
|
124
|
-
selfsearch(args){
|
|
125
|
-
//添加分公司查询条件
|
|
126
|
-
args.condition = `${args.condition} and f_filialeid = '${this.f_filialeid}'`
|
|
127
|
-
this.$refs.paged.$refs.grid.$el.scrollTop = 0
|
|
128
|
-
//执行查询
|
|
129
|
-
this.model.search(args.condition, args.model, args.condValue)
|
|
130
|
-
},
|
|
131
|
-
//清空
|
|
132
|
-
clear(){
|
|
133
|
-
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
134
|
-
this.$refs.paged.$refs.cri.model[key] = ''
|
|
135
|
-
})
|
|
136
|
-
},
|
|
137
|
-
create(row, action){
|
|
138
|
-
|
|
139
|
-
console.log('点击的动作', action)
|
|
140
|
-
|
|
141
|
-
if (row.file_num > 0 && action === 'add') {
|
|
142
|
-
// 属于一址多表
|
|
143
|
-
this.$showMessage('该地址下已存在表具信息,确定要新加一个新表具吗?', ['confirm', 'cancel']).then((res) => {
|
|
144
|
-
if (res === 'confirm') {
|
|
145
|
-
//发出事件,用于建档或修正档案
|
|
146
|
-
this.$dispatch('buildfiles',row)
|
|
147
|
-
}
|
|
148
|
-
})
|
|
149
|
-
} else {
|
|
150
|
-
this.$dispatch('buildfiles',row)
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div style="widows: auto;">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged :pager="false">
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfsearch' v-ref:cri>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row">
|
|
7
|
+
<!--<div class="col-sm-4 ">-->
|
|
8
|
+
<!--<input type="text" style="width:98%" class="input_search" v-model="model.f_residential_arearea"-->
|
|
9
|
+
<!--condition="f_residential_area like '%{}%'" placeholder="小区"/>-->
|
|
10
|
+
<!--</div>-->
|
|
11
|
+
<!--<div class="col-sm-4 ">-->
|
|
12
|
+
<!--<input type="text" style="width:98%" class="input_search" v-model="model.f_building"-->
|
|
13
|
+
<!--condition="f_building like '%{}%'" placeholder="楼号"/>-->
|
|
14
|
+
<!--</div>-->
|
|
15
|
+
<div class="col-sm-9 ">
|
|
16
|
+
<input type="text" class="input_search button_spacing" v-model="model.f_address"
|
|
17
|
+
condition="f_address like '%{}%'" placeholder="详细地址"/>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div class="span" style="float:right;">
|
|
21
|
+
<button class="button_search button_spacing" @click="search()" >查询</button>
|
|
22
|
+
<!--<div style="float: right" class="button_spacing" ></div>-->
|
|
23
|
+
<!--<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>-->
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<!--<div class="row" v-show="$parent.$parent.criteriaShow" style="margin-top: 10px">-->
|
|
27
|
+
<!--<div class="col-sm-4 ">-->
|
|
28
|
+
<!--<input type="text" style="width:98%" class="input_search " v-model="model.f_unit"-->
|
|
29
|
+
<!--condition="f_unit like '%{}%'" placeholder="单元"/>-->
|
|
30
|
+
<!--</div>-->
|
|
31
|
+
<!--<div class="col-sm-4 ">-->
|
|
32
|
+
<!--<input type="text" style="width:98%" class="input_search " v-model="model.f_floor"-->
|
|
33
|
+
<!--condition="f_floor like '%{}%'" placeholder="楼层"/>-->
|
|
34
|
+
<!--</div>-->
|
|
35
|
+
<!--<div class="col-sm-4 ">-->
|
|
36
|
+
<!--<input type="text" style="width:98%" class="input_search " v-model="model.f_room"-->
|
|
37
|
+
<!--condition="f_room like '%{}%'" placeholder="门牌号"/>-->
|
|
38
|
+
<!--</div>-->
|
|
39
|
+
<!--<div class="col-sm-4 ">-->
|
|
40
|
+
<!--<v-select :value.sync="model.file_num" :options='$parent.$parent.filenums' placeholder='表具数'-->
|
|
41
|
+
<!--close-on-select-->
|
|
42
|
+
<!--v-model='model.file_num' condition="file_num {}" style="width: 98%"></v-select>-->
|
|
43
|
+
<!--</div>-->
|
|
44
|
+
<!--<div class="col-sm-8 ">-->
|
|
45
|
+
<!--<input type="text" style="width:98%" class="input_search" v-model="model.f_address"-->
|
|
46
|
+
<!--condition="f_address like '%{}%'" placeholder="详细地址"/>-->
|
|
47
|
+
<!--</div>-->
|
|
48
|
+
<!--</div>-->
|
|
49
|
+
</div>
|
|
50
|
+
</criteria>
|
|
51
|
+
|
|
52
|
+
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" v-ref:grid>
|
|
53
|
+
<template partial='head'>
|
|
54
|
+
<tr>
|
|
55
|
+
<th><nobr>详细地址</nobr></th>
|
|
56
|
+
<th><nobr>表具数</nobr></th>
|
|
57
|
+
<th><nobr>操作</nobr></th>
|
|
58
|
+
</tr>
|
|
59
|
+
</template>
|
|
60
|
+
<template partial='body'>
|
|
61
|
+
<tr>
|
|
62
|
+
<td style="text-align:center"><nobr>{{row.f_address}}</nobr></td>
|
|
63
|
+
<td style="text-align:center"><nobr>{{row.file_num}}</nobr></td>
|
|
64
|
+
<td style="text-align:center">
|
|
65
|
+
<div v-if="row.file_num > 0 && !row.f_userinfo_id">
|
|
66
|
+
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.create(row, 'complete')">完善档案</button>
|
|
67
|
+
</div>
|
|
68
|
+
<div v-if="row.file_num === 0">
|
|
69
|
+
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.create(row, 'add')">添加表具</button>
|
|
70
|
+
</div>
|
|
71
|
+
<div v-if="row.file_num > 0 && row.f_userinfo_id && $parent.$parent.$parent.config.oneToMany">
|
|
72
|
+
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.create(row, 'add')">添加表具</button>
|
|
73
|
+
</div>
|
|
74
|
+
</td>
|
|
75
|
+
</tr>
|
|
76
|
+
</template>
|
|
77
|
+
<template partial='foot'></template>
|
|
78
|
+
</data-grid>
|
|
79
|
+
</criteria-paged>
|
|
80
|
+
</div>
|
|
81
|
+
</template>
|
|
82
|
+
|
|
83
|
+
<script>
|
|
84
|
+
import { PagedList, HttpResetClass } from 'vue-client'
|
|
85
|
+
|
|
86
|
+
let readySync = async function (self) {
|
|
87
|
+
await self.$refs.paged.$refs.cri.search()
|
|
88
|
+
// 获取地址管理特殊文件
|
|
89
|
+
let http = new HttpResetClass()
|
|
90
|
+
let getConfig = await http.load('GET', '/rs/vue/AddressList.json', {}, {resolveMsg: null, rejectMsg: null})
|
|
91
|
+
|
|
92
|
+
if (getConfig) {
|
|
93
|
+
Object.assign(self.config, self.config, getConfig.data)
|
|
94
|
+
}
|
|
95
|
+
console.log('获取到的地址配置文件', self.config)
|
|
96
|
+
}
|
|
97
|
+
export default {
|
|
98
|
+
data () {
|
|
99
|
+
return {
|
|
100
|
+
criteriaShow: false,
|
|
101
|
+
config: {
|
|
102
|
+
// 是否支持一对多
|
|
103
|
+
oneToMany: false
|
|
104
|
+
},
|
|
105
|
+
model: new PagedList('api/af-revenue/sql/address_files',30,{orderitem: `'f_create_date desc'`}),
|
|
106
|
+
//分公司id串
|
|
107
|
+
// f_filialeids: this.$login.f.orgid,
|
|
108
|
+
filenums: [{label: '全部', value: ''},{label: '多表', value: '> 1'}, {label: '一表', value: '= 1'}]
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
props: ['f_filialeid'],
|
|
112
|
+
ready(){
|
|
113
|
+
readySync(this)
|
|
114
|
+
},
|
|
115
|
+
watch: {
|
|
116
|
+
'f_filialeid' (val) {
|
|
117
|
+
this.$refs.paged.$refs.cri.search()
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
methods: {
|
|
121
|
+
hidden() {
|
|
122
|
+
this.criteriaShow = !this.criteriaShow
|
|
123
|
+
},
|
|
124
|
+
selfsearch(args){
|
|
125
|
+
//添加分公司查询条件
|
|
126
|
+
args.condition = `${args.condition} and f_filialeid = '${this.f_filialeid}'`
|
|
127
|
+
this.$refs.paged.$refs.grid.$el.scrollTop = 0
|
|
128
|
+
//执行查询
|
|
129
|
+
this.model.search(args.condition, args.model, args.condValue)
|
|
130
|
+
},
|
|
131
|
+
//清空
|
|
132
|
+
clear(){
|
|
133
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
134
|
+
this.$refs.paged.$refs.cri.model[key] = ''
|
|
135
|
+
})
|
|
136
|
+
},
|
|
137
|
+
create(row, action){
|
|
138
|
+
|
|
139
|
+
console.log('点击的动作', action)
|
|
140
|
+
|
|
141
|
+
if (row.file_num > 0 && action === 'add') {
|
|
142
|
+
// 属于一址多表
|
|
143
|
+
this.$showMessage('该地址下已存在表具信息,确定要新加一个新表具吗?', ['confirm', 'cancel']).then((res) => {
|
|
144
|
+
if (res === 'confirm') {
|
|
145
|
+
//发出事件,用于建档或修正档案
|
|
146
|
+
this.$dispatch('buildfiles',row)
|
|
147
|
+
}
|
|
148
|
+
})
|
|
149
|
+
} else {
|
|
150
|
+
this.$dispatch('buildfiles',row)
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
</script>
|
|
@@ -40,6 +40,10 @@
|
|
|
40
40
|
<button class="button_new button_spacing" style="width: max-content" @click="$parent.$parent.add('民用')">添加民用</button>
|
|
41
41
|
<button class="button_new button_spacing" style="width: max-content" @click="$parent.$parent.add('非民用')">添加特殊地址</button>
|
|
42
42
|
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
43
|
+
<export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.getfield"
|
|
44
|
+
:field="$parent.$parent.getfield"
|
|
45
|
+
sqlurl="api/af-revenue/logic/exportfile" sql-name="address_getAddress" template-name='地址导出'
|
|
46
|
+
:choose-col="true"></export-excel>
|
|
43
47
|
<button class="button_export button_spacing" @click="$parent.$parent.importAddress">导入地址</button>
|
|
44
48
|
<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
49
|
</div>
|
|
@@ -155,7 +159,7 @@
|
|
|
155
159
|
</header>
|
|
156
160
|
<article slot="modal-body" class="modal-body">
|
|
157
161
|
<div class="form-group">
|
|
158
|
-
<file-upload class="my-file-uploader" name="useraddressUploadFile" action="
|
|
162
|
+
<file-upload class="my-file-uploader" name="useraddressUploadFile" action="api/af-revenue/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
|
|
159
163
|
</div>
|
|
160
164
|
</article>
|
|
161
165
|
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
@@ -172,10 +176,10 @@
|
|
|
172
176
|
return {
|
|
173
177
|
iswork: false,
|
|
174
178
|
criteriaShow: false,
|
|
175
|
-
model: new PagedList('
|
|
179
|
+
model: new PagedList('api/af-revenue/sql/address_getAddress',20,{tablename: `'t_user_address'`,items: `'*'`,orderitem: `'id desc'`}),
|
|
176
180
|
addflag: false,
|
|
177
181
|
addtitle:'',
|
|
178
|
-
|
|
182
|
+
condition:'',
|
|
179
183
|
// 公司下拉
|
|
180
184
|
curorgid: [this.$login.f.orgid],
|
|
181
185
|
f_orgid: '',
|
|
@@ -231,8 +235,8 @@
|
|
|
231
235
|
|
|
232
236
|
if(row.id){
|
|
233
237
|
var id = row.id
|
|
234
|
-
let userfiles = await this.$resetpost('
|
|
235
|
-
let isdelete = await this.$resetpost('
|
|
238
|
+
let userfiles = await this.$resetpost('api/af-revenue/sql/address_singleTable', {data: {items: 'f_useraddress_id',tablename: 't_userfiles',condition: `f_useraddress_id='${id}' and f_table_state in ('正常','待开通')`}},{resolveMsg: null, rejectMsg: null})
|
|
239
|
+
let isdelete = await this.$resetpost('api/af-revenue/sql/isDeleteAddress', {data: {f_addressid: id}},{resolveMsg: null, rejectMsg: null})
|
|
236
240
|
if(userfiles.data.length){
|
|
237
241
|
this.$showAlert('该地址下已有正常/待开通表具档案,无法删除!','warning',1000)
|
|
238
242
|
return
|
|
@@ -241,7 +245,7 @@
|
|
|
241
245
|
this.$showAlert('该地址下已有正在工作的置换单,无法删除!','warning',1000)
|
|
242
246
|
return
|
|
243
247
|
}
|
|
244
|
-
this.$resetdelete('
|
|
248
|
+
this.$resetdelete('api/af-revenue/entity/t_user_address', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
245
249
|
this.$dispatch('cancel')
|
|
246
250
|
})
|
|
247
251
|
}
|
|
@@ -264,6 +268,7 @@
|
|
|
264
268
|
}
|
|
265
269
|
console.log("xxx"+this.f_filialeids)
|
|
266
270
|
args.condition = `${args.condition} and a.f_filialeid = '${this.f_filialeids}'`
|
|
271
|
+
this.condition = args.condition
|
|
267
272
|
this.model.search(args.condition, args.model)
|
|
268
273
|
},
|
|
269
274
|
|
|
@@ -279,6 +284,17 @@
|
|
|
279
284
|
this.f_filialeids = val[0]
|
|
280
285
|
}
|
|
281
286
|
},
|
|
287
|
+
computed:{
|
|
288
|
+
getCondition() {
|
|
289
|
+
return {condition: this.condition}
|
|
290
|
+
},
|
|
291
|
+
getfield() {
|
|
292
|
+
let filed =[]
|
|
293
|
+
filed = {'f_userinfo_code': '用户编号','f_pcd': '区/县', 'f_slice_area': '片区/管理站', 'f_street': '街道名称','f_residential_area':'小区名称','f_building': '楼号','f_unit': '单元','f_floor':'楼层',
|
|
294
|
+
'f_room': '门牌号','f_address': '详细地址','f_create_date': '时间'}
|
|
295
|
+
return filed
|
|
296
|
+
},
|
|
297
|
+
},
|
|
282
298
|
events: {
|
|
283
299
|
onFileUpload: async function (file, res) {
|
|
284
300
|
this.$showAlert('文件上传成功','success',1000);
|
|
@@ -290,7 +306,7 @@
|
|
|
290
306
|
}
|
|
291
307
|
this.closeFile();
|
|
292
308
|
try{
|
|
293
|
-
await this.$resetpost(`
|
|
309
|
+
await this.$resetpost(`api/af-revenue/logic/address_useraddressimport`,data, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0).then((res)=>{
|
|
294
310
|
this.$showAlert("导入成功",'success', 2000);
|
|
295
311
|
this.iswork = false
|
|
296
312
|
this.init()
|
|
@@ -1,117 +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({},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>
|
|
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({},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>
|