apply-clients 3.0.7-148 → 3.0.7-151

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.0.7-148",
3
+ "version": "3.0.7-151",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
package/src/App.vue CHANGED
@@ -1,20 +1,20 @@
1
- <template>
2
- <div>
3
- <app-base class="bg">
4
- <div class='flex'>
5
- <article>
6
- <route :comp="{name: 'login'}"></route>
7
- </article>
8
- </div>
9
- </app-base>
10
- </div>
11
- </template>
12
-
13
- <script>
14
-
15
-
16
- export default {
17
-
18
-
19
- }
20
- </script>
1
+ <template>
2
+ <div>
3
+ <app-base class="bg">
4
+ <div class='flex'>
5
+ <article>
6
+ <route :comp="{name: 'login'}"></route>
7
+ </article>
8
+ </div>
9
+ </app-base>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+
15
+
16
+ export default {
17
+
18
+
19
+ }
20
+ </script>
@@ -97,6 +97,11 @@
97
97
  <button class="btn btn-primary btn-sm col-sm-1" style="margin-right: 20px" type="button" @click="$parent.$parent.addactive(6)">
98
98
  <span class="glyphicon glyphicon-plus" ></span>市政工程报装申请
99
99
  </button>
100
+ <a type="button" class="btn btn-primary btn-sm col-sm-1"
101
+ href="applyinstall/excel/民现户报装模板.xlsx" style="margin-right: 20px" download>模板下载</a>
102
+ <button class="btn btn-primary btn-sm col-sm-1" style="margin-right: 20px" type="button"
103
+ @click="$parent.$parent.showFile = !$parent.$parent.showFile">批量民现户导入</button>
104
+
100
105
  <button class="btn btn-primary btn-sm col-sm-1" style="margin-right: 20px" type="button" @click="$parent.$parent.searchNow(),$parent.$parent.close()">
101
106
  <span class="glyphicon glyphicon-search"></span>查询
102
107
  </button>
@@ -212,6 +217,18 @@
212
217
  </template>
213
218
  </data-grid>
214
219
  </criteria-paged>
220
+ <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
221
+ <header slot="modal-header" class="modal-header">
222
+ <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
223
+ <h4 class="modal-title">选择文件</h4>
224
+ </header>
225
+ <article slot="modal-body" class="modal-body">
226
+ <div class="form-group">
227
+ <file-upload class="my-file-uploader" action="rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
228
+ </div>
229
+ </article>
230
+ <footer slot="modal-footer" class="modal-footer"></footer>
231
+ </modal>
215
232
  </div>
216
233
  </div>
217
234
  </template>
@@ -256,6 +273,7 @@
256
273
  }
257
274
  }),
258
275
  condition: '',
276
+ showFile: false,
259
277
  select: '',
260
278
  urlname: '',
261
279
  workflow_name:['',''],
@@ -294,15 +312,16 @@
294
312
  },
295
313
  methods: {
296
314
  selfSearch (args) {
315
+ debugger
297
316
  let f_apply_department = this.$login.f.f_department_name
298
317
  if(f_apply_department === '成山供气部'){
299
318
  args.condition = `${args.condition} and (u.f_apply_department = '成山供气部' OR u.f_apply_department is null)`
300
319
  }
301
- debugger
302
- if(f_apply_department==='调度中心'||f_apply_department==='设计院'||f_apply_department==='财务部'){
320
+ if(f_apply_department==='调度中心'||f_apply_department==='设计院'||f_apply_department==='财务部'||f_apply_department==='工程部'
321
+ ||f_apply_department==='gis班' ||f_apply_department==='监理单位' ||f_apply_department===' 施工单位'||f_apply_department==='供销部'){
303
322
  args.condition = `${args.condition}`
304
323
  }
305
- if(f_apply_department != '成山供气部' && f_apply_department !='调度中心' && f_apply_department!='设计院' && f_apply_department!='财务部'){
324
+ if(f_apply_department != '成山供气部' && (f_apply_department==='市场发展部' || f_apply_department==='管网运行部'||f_apply_department==='客户服务部')){
306
325
  args.condition = `${args.condition} and (u.f_apply_department != '成山供气部' OR u.f_apply_department is null) `
307
326
  }
308
327
 
@@ -316,6 +335,12 @@
316
335
 
317
336
  this.model.search(args.condition, args.model)
318
337
  },
338
+ closeFile () {
339
+ this.showFile = false
340
+ // 将选的文件清空
341
+ this.$refs.file.$el.querySelector('input').value = ''
342
+ this.search()
343
+ },
319
344
  generateUUID() {
320
345
  console.log("--------------进入generateUUID---------------")
321
346
  var d = new Date().getTime()
@@ -607,6 +632,17 @@
607
632
  selected() {
608
633
  return this.$refs.cp.$refs.grid.selected
609
634
  }
635
+ },
636
+ events: {
637
+ async 'onFileUpload'(file, result) {
638
+ let data = {
639
+ filepath: result.f_downloadpath,
640
+ user: this.$login.f
641
+ }
642
+ let res = await this.$resetpost(`rs/logic/importApply`, {data:data}, {resolveMsg: null, rejectMsg: '导入失败!!!', silent: true}, 0)
643
+
644
+ this.closeFile()
645
+ }
610
646
  }
611
647
  }
612
648
  </script>
@@ -1189,6 +1189,37 @@
1189
1189
  }
1190
1190
  ,
1191
1191
  events: {
1192
+ async 'dizhi'(){
1193
+ debugger
1194
+ // this.selectdata.f_address_type = this.$refs.service_show.data.fields[index].value
1195
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1196
+ //地址类型为特殊
1197
+ if (this.selectdata.f_address_type==='特殊') {
1198
+
1199
+ if( this.$refs.service_show.data.fields[i].label === '区域' ||
1200
+ this.$refs.service_show.data.fields[i].label === '民用小区域' ||
1201
+ this.$refs.service_show.data.fields[i].label === '地址'){
1202
+ this.$refs.service_show.data.fields[i].hidden = false
1203
+ }
1204
+ }
1205
+ //地址类型为民用
1206
+ if (this.selectdata.f_address_type==='民用') {
1207
+
1208
+ if( this.$refs.service_show.data.fields[i].label === '区域' ||
1209
+ this.$refs.service_show.data.fields[i].label === '民用小区域' ||
1210
+ this.$refs.service_show.data.fields[i].label === '地址' ||
1211
+ this.$refs.service_show.data.fields[i].label === '小区' ||
1212
+ this.$refs.service_show.data.fields[i].label === '楼号' ||
1213
+ this.$refs.service_show.data.fields[i].label === '单元' ||
1214
+ this.$refs.service_show.data.fields[i].label === '楼层' ||
1215
+ this.$refs.service_show.data.fields[i].label === '门牌号'
1216
+ ){
1217
+ this.$refs.service_show.data.fields[i].hidden = false
1218
+ }
1219
+ }
1220
+
1221
+ }
1222
+ },
1192
1223
  async 'created'() {
1193
1224
  //荣成联合验收
1194
1225
  if (this.$refs.service_show.data.defname.includes("联合验收")) {
@@ -409,6 +409,9 @@
409
409
  }
410
410
  },
411
411
  methods: {
412
+ dizhi1(){
413
+ this.$dispatch('dizhi')
414
+ },
412
415
  async openProject(){
413
416
  let http = new HttpResetClass()
414
417
  let res = await http.load('POST', 'rs/sql/singleTable', {
@@ -817,6 +820,7 @@
817
820
  // 监听
818
821
  select_change(index) {
819
822
  this.$dispatch('select_cascade', index)
823
+ debugger
820
824
  // 如果有错误信息提示走错误信息判断处理
821
825
  if (this.data.fields[index].error || this.data.fields[index].type == 'datepicker') {
822
826
  this.$dispatch('error_check', index)
@@ -896,7 +900,13 @@
896
900
  let fields = this.data.fields
897
901
  this.data.fields = fields
898
902
  }
899
- }
903
+ },
904
+ ready(){
905
+ debugger
906
+
907
+ this.dizhi1()
908
+ }
909
+
900
910
  }
901
911
  </script>
902
912
  <style scoped>