apply-clients 3.3.110-229 → 3.3.110-235

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-229",
3
+ "version": "3.3.110-235",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
package/src/apply.js CHANGED
@@ -54,6 +54,7 @@ export default function () {
54
54
  // 收费管理
55
55
  Vue.component('apply-charge-management', (resolve) => { require(['./components/product/Process/Processes/chargeManagement'], resolve) })
56
56
  Vue.component('apply-print-charge', (resolve) => { require(['./components/product/Process/Processes/Print/printCharge'], resolve) })
57
+ Vue.component('apply-print-chargepc', (resolve) => { require(['./components/product/Process/Processes/Print/printChargepc'], resolve) })
57
58
  Vue.component('apply-print-refund', (resolve) => { require(['./components/product/Process/Processes/Print/printRefund'], resolve) })
58
59
 
59
60
  // 补充协议
@@ -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
@@ -260,9 +260,13 @@ export default {
260
260
  )
261
261
  restp.data[0].processname = '散户报建流程'
262
262
  restp.data[0].defname = '合同签订'
263
- this.$dispatch('gotoson',restp.data[0])
264
- this.$goto('app-service-control', {selectdata: restp.data[0]}, 'self', restp.data[0])
265
- // this.$dispatch('apply',restp.data[0])
263
+ let _this = this
264
+ this.$dispatch('gotoson', {
265
+ _this: _this,
266
+ title: restp.data[0].defname,
267
+ safe: true
268
+ })
269
+ this.$goto('app-service-control', {selectdata: restp.data[0]}, 'self')
266
270
 
267
271
  } else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
268
272
  let data2 = {
@@ -282,8 +286,14 @@ export default {
282
286
  console.log('打印查询的内容',restp1)
283
287
  // restp1.data[0].processname = '散户报建流程'
284
288
  // restp1.data[0].defname = '报装缴费'
285
- this.$dispatch('gotoson',restp1.data[0])
286
- this.$goto('app-service-control', {selectdata: restp1.data[0]}, 'self',restp1.data[0])
289
+
290
+ let _this = this
291
+ this.$dispatch('gotoson', {
292
+ _this: _this,
293
+ title: restp1.data[0].defname,
294
+ safe: true
295
+ })
296
+ this.$goto('app-service-control', {selectdata: restp1.data[0]}, 'self')
287
297
  }else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' && this.show_data.button.button_name === '提交'){
288
298
  let data3 = {
289
299
  condition: `u.id = ${this.show_data.id}`,
@@ -300,16 +310,21 @@ export default {
300
310
  {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
301
311
  )
302
312
  console.log('打印查询的内容',restp2)
313
+ debugger
303
314
  if(restp2.length>0){
304
- this.$dispatch('gotoson',restp2.data[0])
305
- this.$goto('app-service-control', {selectdata: restp2.data[0]}, 'self',restp2.data[0])
315
+ let _this = this
316
+ this.$dispatch('gotoson', {
317
+ _this: _this,
318
+ title: restp2.data[0].defname,
319
+ safe: true
320
+ })
321
+ this.$goto('app-service-control', {selectdata: restp2.data[0]}, 'self')
306
322
  }else{
307
323
  debugger
308
324
  this.$dispatch('confirm')
325
+ this.$dispatch('confirm')
326
+ this.$dispatch('confirm')
309
327
  }
310
- // restp2.data[0].processname = '散户报建流程'
311
- // restp2.data[0].defname = '工程派工'
312
-
313
328
  }
314
329
  else{
315
330
  // console.log('-----')
@@ -713,6 +728,27 @@ export default {
713
728
  }
714
729
  }))
715
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
+ },
716
752
  async pcdChange () {
717
753
  if (isEmpty(this.show_data.f_pcd)) {
718
754
  return
@@ -1501,6 +1537,31 @@ export default {
1501
1537
  }
1502
1538
  }))
1503
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
+ },
1504
1565
  // 团购转散户初始化
1505
1566
  'apply2ReadyEvent' () {
1506
1567
  if (this.show_data.f_apply_source === '线下发起') {
@@ -141,7 +141,9 @@
141
141
  />
142
142
  </div>
143
143
  </div>
144
-
144
+ <div v-if=" (this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建')">
145
+ <app-qrcode-reader :istype = fmaterialname :index = i v-show="isShow[i]"></app-qrcode-reader>
146
+ </div>
145
147
  </div>
146
148
  </article>
147
149
  <footer slot="modal-footer" class="modal-footer">
@@ -189,7 +191,10 @@
189
191
  }
190
192
  ],
191
193
  meterialOptions: [],
192
- row: {}
194
+ row: {},
195
+ bjqChecklag:[],
196
+ fmaterialname:{},
197
+ isShow:[false]
193
198
  }
194
199
  },
195
200
  ready() {
@@ -225,9 +230,11 @@
225
230
  }
226
231
  ],
227
232
  this.showMaterialModal = true
233
+ this.isShow = [false]
228
234
  },
229
235
  deleteDevicesinfo(index) {
230
236
  this.materials.splice(index, 1)
237
+ this.isShow.splice(index, 1)
231
238
  },
232
239
  pushMaterial() {
233
240
  this.materials.push({
@@ -239,6 +246,7 @@
239
246
  f_bjq_sid: '',
240
247
  f_material_code: ''
241
248
  })
249
+ this.isShow.push(false)
242
250
  },
243
251
  // 获取模态框材料
244
252
  async getMateralNames() {
@@ -269,6 +277,12 @@
269
277
  this.materials[index].f_material_unit = material.f_material_unit
270
278
  this.materials[index].f_material_number = material.f_material_number
271
279
  this.materials[index].f_material_code = material.f_material_code
280
+ if (material.f_material_name === "报警器-汉威"){
281
+ this.isShow[index] = true
282
+ }else {
283
+ this.isShow[index] = false
284
+ }
285
+ this.isShow.splice(0,1,this.isShow[0])
272
286
  },
273
287
  // 新增材料
274
288
  async addMaterial() {
@@ -282,6 +296,13 @@
282
296
  f_orgname: Vue.user.orgs,
283
297
  materials: this.materials
284
298
  }
299
+
300
+ //报警器流程 设备编号检验
301
+ await this.bjqCheck()
302
+ if (this.bjqChecklag.length > 0){
303
+ return
304
+ }
305
+
285
306
  let http = new HttpResetClass()
286
307
  let res = await http.load(
287
308
  'POST',
@@ -329,6 +350,13 @@
329
350
  data.f_material_number = this.materials[0].f_material_number
330
351
  data.f_material_code = this.materials[0].f_material_code
331
352
  data.f_bjq_sid = this.materials[0].f_bjq_sid
353
+
354
+ //报警器流程 设备编号检验
355
+ await this.bjqCheck()
356
+ if (this.bjqChecklag.length > 0){
357
+ return
358
+ }
359
+
332
360
  let http = new HttpResetClass()
333
361
  let res = await http.load(
334
362
  'POST',
@@ -344,6 +372,35 @@
344
372
  closeMaterials() {
345
373
  this.getOnetoManyData()
346
374
  this.showMaterialModal = false
375
+ },
376
+ async bjqCheck(){
377
+ //报警器设备型号校验
378
+ this.bjqChecklag = [] //初始化
379
+ if (this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建'){
380
+ let bjqinfo = {
381
+ f_material_name : "",
382
+ f_bjq_sid: ""
383
+ }
384
+ for (const bjqinfoElement of this.materials) {
385
+ bjqinfo.f_bjq_sid = bjqinfoElement.f_bjq_sid
386
+ bjqinfo.f_material_name = bjqinfoElement.f_material_name
387
+ if (bjqinfo.f_material_name.substr(0,3) === '报警器'){
388
+ let http = new HttpResetClass()
389
+ let res = await http.load(
390
+ 'POST',
391
+ // `/rs/logic/bjqcheck`,
392
+ `${this.$androidUtil.getProxyUrl()}/ncc/rs/logic/bjqcheck`,
393
+ bjqinfo
394
+ )
395
+ if (res.data.code != 200){
396
+ this.bjqChecklag.push(res.data.code)
397
+ //this.$showMessage(res.data.msg)
398
+ Vue.showAlert(res.data.msg, 'danger', 6000)
399
+ return
400
+ }
401
+ }
402
+ }
403
+ }
347
404
  }
348
405
  }
349
406
  }
@@ -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