address-client 3.2.28 → 3.2.29

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.
@@ -1,76 +1,76 @@
1
- <template>
2
- <div id="unit" class="flex-row " :class="{'binary':areaShow}">
3
- <div :class="{'basic-main':!areaShow,'binary-left':areaShow}">
4
- <street-list @select-changed="selected" :f_filialeids.sync="f_filialeids" v-ref:arealist></street-list>
5
- </div>
6
- <div v-show="areaShow" class="binary-right">
7
- <add-street-pcd v-ref:addstreetpcd :areatype.sync="areatype" :operation='operation' :f_filialeids.sync="f_filialeids" :row="row"></add-street-pcd>
8
- </div>
9
- </div>
10
- </template>
11
-
12
- <script>
13
- export default {
14
- title: '街道管理',
15
- components:{
16
- },
17
- data () {
18
- return {
19
- //分公司id串
20
- f_filialeids: this.$login.f.orgid,
21
- areaShow:false,
22
- areatype:'街道'
23
-
24
- }
25
- },
26
- props:{
27
-
28
- },
29
- methods:{
30
- selected(obj){
31
- if(obj.val&&obj.val.id){
32
- if (obj.val.f_filialeid != this.f_filialeids) {
33
- this.refresh()
34
- return
35
- }
36
- this.$refs.addstreetpcd.cleardara()
37
- this.areatype = '街道'
38
- this.areaShow=true
39
- this.$refs.addstreetpcd.operation='modify'
40
- this.$refs.addstreetpcd.streetmodel=Object.assign({},obj.val)
41
- this.$refs.addstreetpcd.initdata()
42
- }
43
- },
44
- async refresh () {
45
- this.areaShow = false
46
- await this.$refs.arealist.$refs.paged.$refs.cri.search()
47
- }
48
- },
49
- events:{
50
- 'add'(areatype){
51
- this.style='col-sm-3 '
52
- this.areaShow=true
53
- this.$refs.addstreetpcd.cleardara()
54
- this.$refs.addstreetpcd.operation='add'
55
- this.$refs.addstreetpcd.areatype=areatype
56
- this.$refs.addstreetpcd.initdata()
57
- },
58
- 'modify'(area){
59
- this.style='col-sm-2 '
60
- },
61
- 'confirm' () {
62
- this.style='col-sm-2 '
63
-
64
- this.refresh()
65
- },
66
- 'cancel' () {
67
- this.style='col-sm-2 '
68
-
69
- this.areaShow = false
70
- this.$refs.arealist.$refs.paged.$refs.cri.search()
71
- },
72
- }
73
- }
74
- </script>
75
-
76
-
1
+ <template>
2
+ <div id="unit" class="flex-row " :class="{'binary':areaShow}">
3
+ <div :class="{'basic-main':!areaShow,'binary-left':areaShow}">
4
+ <street-list @select-changed="selected" :f_filialeids.sync="f_filialeids" v-ref:arealist></street-list>
5
+ </div>
6
+ <div v-show="areaShow" class="binary-right">
7
+ <add-street-pcd v-ref:addstreetpcd :areatype.sync="areatype" :operation='operation' :f_filialeids.sync="f_filialeids" :row="row"></add-street-pcd>
8
+ </div>
9
+ </div>
10
+ </template>
11
+
12
+ <script>
13
+ export default {
14
+ title: '街道管理',
15
+ components:{
16
+ },
17
+ data () {
18
+ return {
19
+ //分公司id串
20
+ f_filialeids: this.$login.f.orgid,
21
+ areaShow:false,
22
+ areatype:'街道'
23
+
24
+ }
25
+ },
26
+ props:{
27
+
28
+ },
29
+ methods:{
30
+ selected(obj){
31
+ if(obj.val&&obj.val.id){
32
+ if (obj.val.f_filialeid != this.f_filialeids) {
33
+ this.refresh()
34
+ return
35
+ }
36
+ this.$refs.addstreetpcd.cleardara()
37
+ this.areatype = '街道'
38
+ this.areaShow=true
39
+ this.$refs.addstreetpcd.operation='modify'
40
+ this.$refs.addstreetpcd.streetmodel=Object.assign({},obj.val)
41
+ this.$refs.addstreetpcd.initdata()
42
+ }
43
+ },
44
+ async refresh () {
45
+ this.areaShow = false
46
+ await this.$refs.arealist.$refs.paged.$refs.cri.search()
47
+ }
48
+ },
49
+ events:{
50
+ 'add'(areatype){
51
+ this.style='col-sm-3 '
52
+ this.areaShow=true
53
+ this.$refs.addstreetpcd.cleardara()
54
+ this.$refs.addstreetpcd.operation='add'
55
+ this.$refs.addstreetpcd.areatype=areatype
56
+ this.$refs.addstreetpcd.initdata()
57
+ },
58
+ 'modify'(area){
59
+ this.style='col-sm-2 '
60
+ },
61
+ 'confirm' () {
62
+ this.style='col-sm-2 '
63
+
64
+ this.refresh()
65
+ },
66
+ 'cancel' () {
67
+ this.style='col-sm-2 '
68
+
69
+ this.areaShow = false
70
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
71
+ },
72
+ }
73
+ }
74
+ </script>
75
+
76
+
@@ -41,6 +41,12 @@
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
43
  <button class="button_export button_spacing" @click="$parent.$parent.importAddress">导入地址</button>
44
+ <export-excel :data="$parent.$parent.getCondition"
45
+ :field="$parent.$parent.getfield"
46
+ sqlurl="rs/logic/exportfile"
47
+ sql-name="addressGetAddress"
48
+ template-name='地址管理查询导出'
49
+ :choose-col="true"></export-excel>
44
50
  <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
51
  </div>
46
52
  </div>
@@ -175,6 +181,9 @@
175
181
  <script>
176
182
  import { PagedList } from 'vue-client'
177
183
 
184
+ let readyGen = async function (self) {
185
+ self.getfield = self.config.excelHeaders
186
+ }
178
187
  export default {
179
188
  data () {
180
189
  return {
@@ -183,6 +192,29 @@
183
192
  addflag: false,
184
193
  addtitle:'',
185
194
 
195
+ other: [],
196
+ footer: [],
197
+ getfield: {},
198
+ config: {
199
+ // 导出列要和查询列相同
200
+ excelHeaders: {
201
+ 'f_user_name':'用户姓名',
202
+ 'f_userinfo_code':'用户编号',
203
+ 'id':'地址ID',
204
+ 'f_pcd':'区/县',
205
+ 'f_slice_area':'片区',
206
+ 'f_street':'街道',
207
+ 'f_residential_area':'小区',
208
+ 'f_building':'楼号',
209
+ 'f_unit':'单元',
210
+ 'f_floor':'楼层',
211
+ 'f_room':'门牌号',
212
+ 'f_address':'详细地址',
213
+ 'f_address_state':'地址状态',
214
+ 'f_create_date':'时间',
215
+ 'f_state':'状态'
216
+ },
217
+ },
186
218
  // 公司下拉
187
219
  curorgid: [this.$login.f.orgid],
188
220
  f_orgid: '',
@@ -203,9 +235,29 @@
203
235
  }
204
236
  },
205
237
  ready(){
238
+ readyGen(this)
206
239
  this.search()
240
+ this.initpcds(`f_filialeid = '${this.f_filialeids}'`)
241
+ this.initareas(`f_filialeid = '${this.f_filialeids}'`)
207
242
  },
208
243
  methods: {
244
+ getotherfooter() {
245
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
246
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
247
+ this.other = [];
248
+ this.footer = [];
249
+ // let exportdata = this.getCondition;
250
+ let otherInData = [];
251
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
252
+ let footerData = [], exportfield = this.getfield;
253
+ footerData.push("合计");
254
+ let self = this;
255
+ for (var field in self.sumsmodel) {
256
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
257
+ }
258
+ this.footer.push(footerData);
259
+ this.other.push(otherInData);
260
+ },
209
261
  hidden() {
210
262
  this.criteriaShow = !this.criteriaShow
211
263
  },
@@ -299,6 +351,10 @@
299
351
  //地址状态下拉框
300
352
  getaddresstate() {
301
353
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
354
+ },
355
+ getCondition() {
356
+ return {
357
+ condition: `${this.$refs.paged.$refs.cri.condition}` + `and a.f_filialeid = '${this.f_filialeids}'`}
302
358
  }
303
359
  }
304
360