apply-clients 3.3.110-230 → 3.3.110-236

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.3.110-230",
3
+ "version": "3.3.110-236",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -95,7 +95,7 @@ export default {
95
95
  console.log('=========进来===============')
96
96
  let data = {
97
97
  tablename: 't_files',
98
- condition: `f_blobid = '${this.blobid}' `
98
+ condition: `f_blobid = '${this.blobid}' and fremarks='报装手机签字文件' `
99
99
  }
100
100
  let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
101
101
  // let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
@@ -15,12 +15,13 @@ export default {
15
15
  type: Object,
16
16
  default: {}
17
17
  },
18
+ index: "",
18
19
  },
19
20
  data() {
20
21
  return {
21
22
  results: "",
22
23
  errors: "",
23
- isshow:false
24
+ isshow:true
24
25
  }
25
26
  },
26
27
  methods: {
@@ -29,13 +30,15 @@ export default {
29
30
  },
30
31
  scan() {
31
32
  HostApp.__this__ = this
32
- if (this.istype.f_material_name === '报警器-汉威'){
33
+ // if (this.istype.f_material_name === '报警器-汉威'){
34
+ // HostApp.scanPhoneCode({callback: "javascript:HostApp.__this__.scanCallbackHanWei();"})
35
+ // } else {}
33
36
  HostApp.scanPhoneCode({callback: "javascript:HostApp.__this__.scanCallbackHanWei();"})
34
- } else {}
35
-
36
37
  },
37
38
  scanCallbackHanWei() {
39
+ console.log("这是扫码输出:",this.index)
38
40
  this.results = ""
41
+
39
42
  let response = HostApp.getPhoneCode()
40
43
  if (response.code == 200) {
41
44
  let aray = response.data.split(",")
@@ -44,7 +47,7 @@ export default {
44
47
  let tem = (aray[i]).split("=")
45
48
  if (tem[0] === "ID"){
46
49
  this.results = tem[1].trim().replaceAll("'","").trim()
47
- this.$parent.$parent.onetomany.fields[5].value = this.results
50
+ this.$parent.$parent.materials[this.index].f_bjq_sid = this.results
48
51
  break;
49
52
  }
50
53
  }
@@ -55,16 +58,16 @@ export default {
55
58
  }
56
59
  },
57
60
  watch: {
58
- 'istype'(){
59
- // console.log("这是监听值:",this.istype)
60
- if (this.istype){
61
- if (this.istype.f_material_name === '报警器-汉威'){
62
- this.isshow = true
63
- } else {
64
- this.isshow = false
65
- }
66
- }
67
- },
61
+ // 'istype'(){
62
+ // // console.log("这是监听值:",this.istype)
63
+ // if (this.istype){
64
+ // if (this.istype.f_material_name === '报警器-汉威'){
65
+ // this.isshow = true
66
+ // } else {
67
+ // this.isshow = false
68
+ // }
69
+ // }
70
+ // },
68
71
  }
69
72
  }
70
73
  </script>
@@ -148,10 +148,10 @@ export default {
148
148
  this.$showMessage('请添加报警器物料信息!!!')
149
149
  return
150
150
  }
151
- // if (numOne.length > 1){
152
- // this.$showMessage("暂时支持单个报警器物料安装!!!")
153
- // return
154
- // }
151
+ if (numOne.length > 1){
152
+ this.$showMessage("暂时支持单个报警器物料安装!!!")
153
+ return
154
+ }
155
155
  datatemp.sqvalue = this.show_data.areaData.sqvalue
156
156
 
157
157
  bjqststedata.f_userinfo_code = this.show_data.f_userinfo_code
@@ -728,6 +728,27 @@ export default {
728
728
  }
729
729
  }))
730
730
  },
731
+ // 获取集收单位
732
+ async getArea () {
733
+ let data = {
734
+ tablename: 't_area',
735
+ condition: `f_filialeid = '${Vue.user.orgid}'`
736
+ }
737
+ let http = new HttpResetClass()
738
+ let res = await http.load(
739
+ 'POST',
740
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
741
+ {data: data},
742
+ {resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
743
+ )
744
+
745
+ return res.data.map(item => {
746
+ return {
747
+ label: item.f_residential_area,
748
+ value: item.f_residential_area
749
+ }
750
+ })
751
+ },
731
752
  async pcdChange () {
732
753
  if (isEmpty(this.show_data.f_pcd)) {
733
754
  return
@@ -1516,6 +1537,31 @@ export default {
1516
1537
  }
1517
1538
  }))
1518
1539
  },
1540
+ // 搜索小区
1541
+ async 'searchAreaCollective' (area, index) {
1542
+ let data = {
1543
+ tablename: 't_area',
1544
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_residential_area like '%${area}%'`
1545
+ }
1546
+ let http = new HttpResetClass()
1547
+ let res = await http.load(
1548
+ 'POST',
1549
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
1550
+ {data: data},
1551
+ {resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
1552
+ )
1553
+
1554
+ if (res.data.length === 0) {
1555
+ return
1556
+ }
1557
+
1558
+ this.setLabelOptions('集收单位', res.data.map(item => {
1559
+ return {
1560
+ label: item.f_residential_area,
1561
+ value: item.f_residential_area
1562
+ }
1563
+ }))
1564
+ },
1519
1565
  // 团购转散户初始化
1520
1566
  'apply2ReadyEvent' () {
1521
1567
  if (this.show_data.f_apply_source === '线下发起') {
@@ -141,7 +141,51 @@
141
141
  />
142
142
  </div>
143
143
  </div>
144
+ <div class="form-group col-sm-6">
145
+ <label class="col-sm-4 control-label"></label>
146
+ <div class="col-sm-8">
147
+
148
+ </div>
149
+ </div>
150
+ <div class="form-group col-sm-6">
151
+ <label class="col-sm-4 control-label"></label>
152
+ <div class="col-sm-8">
153
+
154
+ </div>
155
+ </div>
156
+ <div class="form-group col-sm-6">
157
+ <label class="col-sm-4 control-label"></label>
158
+ <div class="col-sm-8">
159
+
160
+ </div>
161
+ </div>
162
+ <div class="form-group col-sm-6">
163
+ <label class="col-sm-4 control-label"></label>
164
+ <div class="col-sm-8">
165
+
166
+ </div>
167
+ </div>
168
+ <div class="form-group col-sm-6">
169
+ <label class="col-sm-4 control-label"></label>
170
+ <div class="col-sm-8">
171
+
172
+ </div>
173
+ </div>
174
+ <div class="form-group col-sm-6">
175
+ <label class="col-sm-4 control-label"></label>
176
+ <div class="col-sm-8">
177
+
178
+ </div>
179
+ </div>
180
+ <div class="form-group col-sm-6">
181
+ <label class="col-sm-4 control-label"></label>
182
+ <div class="col-sm-8">
144
183
 
184
+ </div>
185
+ </div>
186
+ <div v-if=" (this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建')">
187
+ <app-qrcode-reader :istype = fmaterialname :index = i v-show="isShow[i]"></app-qrcode-reader>
188
+ </div>
145
189
  </div>
146
190
  </article>
147
191
  <footer slot="modal-footer" class="modal-footer">
@@ -189,7 +233,10 @@
189
233
  }
190
234
  ],
191
235
  meterialOptions: [],
192
- row: {}
236
+ row: {},
237
+ bjqChecklag:[],
238
+ fmaterialname:{},
239
+ isShow:[false]
193
240
  }
194
241
  },
195
242
  ready() {
@@ -225,9 +272,11 @@
225
272
  }
226
273
  ],
227
274
  this.showMaterialModal = true
275
+ this.isShow = [false]
228
276
  },
229
277
  deleteDevicesinfo(index) {
230
278
  this.materials.splice(index, 1)
279
+ this.isShow.splice(index, 1)
231
280
  },
232
281
  pushMaterial() {
233
282
  this.materials.push({
@@ -239,6 +288,7 @@
239
288
  f_bjq_sid: '',
240
289
  f_material_code: ''
241
290
  })
291
+ this.isShow.push(false)
242
292
  },
243
293
  // 获取模态框材料
244
294
  async getMateralNames() {
@@ -269,6 +319,12 @@
269
319
  this.materials[index].f_material_unit = material.f_material_unit
270
320
  this.materials[index].f_material_number = material.f_material_number
271
321
  this.materials[index].f_material_code = material.f_material_code
322
+ if (material.f_material_name === "报警器-汉威"){
323
+ this.isShow[index] = true
324
+ }else {
325
+ this.isShow[index] = false
326
+ }
327
+ this.isShow.splice(0,1,this.isShow[0])
272
328
  },
273
329
  // 新增材料
274
330
  async addMaterial() {
@@ -282,6 +338,13 @@
282
338
  f_orgname: Vue.user.orgs,
283
339
  materials: this.materials
284
340
  }
341
+
342
+ //报警器流程 设备编号检验
343
+ await this.bjqCheck()
344
+ if (this.bjqChecklag.length > 0){
345
+ return
346
+ }
347
+
285
348
  let http = new HttpResetClass()
286
349
  let res = await http.load(
287
350
  'POST',
@@ -329,6 +392,13 @@
329
392
  data.f_material_number = this.materials[0].f_material_number
330
393
  data.f_material_code = this.materials[0].f_material_code
331
394
  data.f_bjq_sid = this.materials[0].f_bjq_sid
395
+
396
+ //报警器流程 设备编号检验
397
+ await this.bjqCheck()
398
+ if (this.bjqChecklag.length > 0){
399
+ return
400
+ }
401
+
332
402
  let http = new HttpResetClass()
333
403
  let res = await http.load(
334
404
  'POST',
@@ -344,6 +414,35 @@
344
414
  closeMaterials() {
345
415
  this.getOnetoManyData()
346
416
  this.showMaterialModal = false
417
+ },
418
+ async bjqCheck(){
419
+ //报警器设备型号校验
420
+ this.bjqChecklag = [] //初始化
421
+ if (this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建'){
422
+ let bjqinfo = {
423
+ f_material_name : "",
424
+ f_bjq_sid: ""
425
+ }
426
+ for (const bjqinfoElement of this.materials) {
427
+ bjqinfo.f_bjq_sid = bjqinfoElement.f_bjq_sid
428
+ bjqinfo.f_material_name = bjqinfoElement.f_material_name
429
+ if (bjqinfo.f_material_name.substr(0,3) === '报警器'){
430
+ let http = new HttpResetClass()
431
+ let res = await http.load(
432
+ 'POST',
433
+ // `/rs/logic/bjqcheck`,
434
+ `${this.$androidUtil.getProxyUrl()}/ncc/rs/logic/bjqcheck`,
435
+ bjqinfo
436
+ )
437
+ if (res.data.code != 200){
438
+ this.bjqChecklag.push(res.data.code)
439
+ //this.$showMessage(res.data.msg)
440
+ Vue.showAlert(res.data.msg, 'danger', 6000)
441
+ return
442
+ }
443
+ }
444
+ }
445
+ }
347
446
  }
348
447
  }
349
448
  }
@@ -151,6 +151,7 @@
151
151
 
152
152
  <script>
153
153
  import {HttpResetClass} from 'vue-client'
154
+ import Vue from "vue";
154
155
  export default {
155
156
  name: 'addMaterialScience',
156
157
  props: {
@@ -177,7 +178,8 @@
177
178
  }
178
179
  ],
179
180
  meterialOptions:[],
180
- row:{}
181
+ row:{},
182
+ bjqChecklag:[]
181
183
  }
182
184
  },
183
185
  ready(){
@@ -269,6 +271,12 @@
269
271
  f_orgname: this.$login.f.orgs,
270
272
  materials:this.materials
271
273
  }
274
+ //报警器流程 设备编号检验
275
+ await this.bjqCheck()
276
+ console.log("这是bjqChecklag数据:",this.bjqChecklag)
277
+ if (this.bjqChecklag.length > 0){
278
+ return
279
+ }
272
280
  let res = await this.$resetpost(
273
281
  `rs/logic/saveMaterials`,
274
282
  data
@@ -315,6 +323,11 @@
315
323
  data.f_material_number = this.materials[0].f_material_number
316
324
  data.f_material_code = this.materials[0].f_material_code
317
325
  data.f_bjq_sid = this.materials[0].f_bjq_sid
326
+ //报警器流程 设备编号检验
327
+ await this.bjqCheck()
328
+ if (this.bjqChecklag.length > 0){
329
+ return
330
+ }
318
331
  let res = await this.$resetpost(
319
332
  `rs/entity/t_material_apply`,
320
333
  data
@@ -328,6 +341,35 @@
328
341
  closeMaterials () {
329
342
  this.getOnetoManyData()
330
343
  this.showMaterialModal = false
344
+ },
345
+ async bjqCheck(){
346
+ //报警器设备型号校验
347
+ this.bjqChecklag = [] //初始化
348
+ if (this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建'){
349
+ let bjqinfo = {
350
+ f_material_name : "",
351
+ f_bjq_sid: ""
352
+ }
353
+ for (const bjqinfoElement of this.materials) {
354
+ bjqinfo.f_bjq_sid = bjqinfoElement.f_bjq_sid
355
+ bjqinfo.f_material_name = bjqinfoElement.f_material_name
356
+ if (bjqinfo.f_material_name.substr(0,3) === '报警器'){
357
+ let http = new HttpResetClass()
358
+ let res = await http.load(
359
+ 'POST',
360
+ // `/rs/logic/bjqcheck`,
361
+ `ncc/rs/logic/bjqcheck`,
362
+ bjqinfo
363
+ )
364
+ if (res.data.code != 200){
365
+ this.bjqChecklag.push(res.data.code)
366
+ // this.$showMessage(res.data.msg)
367
+ Vue.showAlert(res.data.msg, 'danger', 6000)
368
+ return
369
+ }
370
+ }
371
+ }
372
+ }
331
373
  }
332
374
  }
333
375
  }
@@ -480,7 +480,7 @@ export default {
480
480
  }
481
481
  })
482
482
  },
483
- // 获取区县
483
+ // 获取集收单位
484
484
  async getArea () {
485
485
  let data = {
486
486
  tablename: 't_area',
@@ -984,6 +984,31 @@ export default {
984
984
  }
985
985
  }))
986
986
  },
987
+ // 搜索小区
988
+ async 'searchAreaCollective' (area, index) {
989
+ let data = {
990
+ tablename: 't_area',
991
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_residential_area like '%${area}%'`
992
+ }
993
+ let http = new HttpResetClass()
994
+ let res = await http.load(
995
+ 'POST',
996
+ `rs/sql/singleTable`,
997
+ {data: data},
998
+ {resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
999
+ )
1000
+
1001
+ if (res.data.length === 0) {
1002
+ return
1003
+ }
1004
+
1005
+ this.setLabelOptions('集收单位', res.data.map(item => {
1006
+ return {
1007
+ label: item.f_residential_area,
1008
+ value: item.f_residential_area
1009
+ }
1010
+ }))
1011
+ },
987
1012
  // 选择气价
988
1013
  'priceChange' (index) {
989
1014
  debugger
@@ -1476,10 +1501,10 @@ export default {
1476
1501
  this.$showMessage('请添加报警器物料信息!!!')
1477
1502
  return
1478
1503
  }
1479
- // if (numOne.length > 1){
1480
- // this.$showMessage("暂时支持单个报警器物料安装!!!")
1481
- // return
1482
- // }
1504
+ if (numOne.length > 1){
1505
+ this.$showMessage("暂时支持单个报警器物料安装!!!")
1506
+ return
1507
+ }
1483
1508
  datatemp.sqvalue = this.show_data.areaData.sqvalue
1484
1509
  datatemp.f_bjq_baidu_lng = this.show_data.templatlng.baidutemplng
1485
1510
  datatemp.f_bjq_baidu_lat = this.show_data.templatlng.baidutemplat