address-client 3.2.28-mc → 3.2.30

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.
@@ -43,6 +43,12 @@
43
43
  <button v-if="!$parent.$parent.f_special" class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('小区')">添加小区</button>
44
44
  <button v-if="$parent.$parent.f_special"class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('单位')">添加单位</button>
45
45
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
46
+ <export-excel :data="$parent.$parent.getCondition"
47
+ :field="$parent.$parent.getfield"
48
+ sqlurl="rs/logic/exportfile"
49
+ sql-name="manage_getarealist"
50
+ template-name='小区信息查询导出'
51
+ :choose-col="true"></export-excel>
46
52
  <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>
47
53
  </div>
48
54
  </div>
@@ -161,6 +167,10 @@
161
167
  <script>
162
168
  import { PagedList } from 'vue-client'
163
169
 
170
+ let readyGen = async function (self) {
171
+ self.getfield = self.config.excelHeaders
172
+ self.search()
173
+ }
164
174
  export default {
165
175
 
166
176
  data () {
@@ -170,6 +180,24 @@
170
180
  addflag: false,
171
181
  addtitle:'',
172
182
 
183
+ getfield: {},
184
+ config: {
185
+ // 导出列要和查询列相同
186
+ excelHeaders: {
187
+ 'f_district':'区/县',
188
+ 'f_street':'街道名称',
189
+ 'f_residential_area':'小区名称',
190
+ 'f_area_address':'小区地址',
191
+ 'f_comments':'小区备注',
192
+ 'f_inputtor':'抄表员',
193
+ 'f_house_type':'房屋类型',
194
+ 'f_position':'安装位置',
195
+ 'f_slice_area':'片区/管理站',
196
+ 'f_operator':'操作人',
197
+ 'f_operate_date':'操作日期',
198
+ 'addressnum':'地址数'
199
+ }
200
+ },
173
201
  // 公司下拉
174
202
  curorgid: [this.$login.f.orgid],
175
203
  f_orgid: '',
@@ -192,7 +220,7 @@
192
220
  }
193
221
  },
194
222
  ready(){
195
- this.search()
223
+ readyGen(this)
196
224
  },
197
225
  methods: {
198
226
  hidden() {
@@ -259,6 +287,17 @@
259
287
 
260
288
  },
261
289
  computed:{
290
+ getCondition() {
291
+ var condition=''
292
+ if(this.f_special){
293
+ condition = `${this.$refs.paged.$refs.cri.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
294
+ }else{
295
+ condition = `${this.$refs.paged.$refs.cri.condition} and s.f_filialeid = ${this.f_orgid}`
296
+ }
297
+ return {
298
+ condition: condition
299
+ }
300
+ },
262
301
  inputtores () {
263
302
  // 获取抄表员
264
303
  let rs = new Array()