telephone-clients 3.0.103-74 → 3.0.103-76

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.
@@ -403,95 +403,6 @@
403
403
  if(res.state == 'ok'){
404
404
  let result = JSON.parse(res.result)
405
405
  if (result.result === '成功') {
406
- if (this.msg.serviceacitivity.length && this.msg.serviceacitivity[0].servicerepair
407
- && this.msg.serviceacitivity[0].servicerepair.length && this.msg.f_workorder_type == '置换通气单'){
408
- let res = await new HttpResetClass().load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/saleSingleTable`, {data: {
409
- items:"*",
410
- tablename:"t_userfiles",
411
- condition:`f_userinfo_id = ${this.msg.serviceacitivity[0].baseuserinfo.f_userinfo_id} and f_table_state = '正常'`,
412
- orderitem:"f_userfiles_id"
413
- }})
414
- console.log('res=', JSON.stringify(res))
415
- let res2 = await new HttpResetClass().load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/saleSingleTable`, {data: {
416
- items:"*",
417
- tablename:"t_userfire",
418
- condition:`f_userfiles_id = '${res.data[0].f_userfiles_id}' and f_state = '有效'`,
419
- orderitem:"f_userfiles_id"
420
- }})
421
- let maps = {
422
- "镀锌管": "f_galvanize_pipe",
423
- "三通": "f_tee",
424
- "对丝": "f_nipple",
425
- "弯头": "f_elbow",
426
- "管卡": "f_pipe_strap",
427
- "灶前阀": "f_zqf",
428
- "胶管": "f_sebific_duct",
429
- "自闭阀": "f_zbf",
430
- "表前阀": "f_bqf_type",
431
- "报警器": "f_alarm_code",
432
- "灶具品牌": "f_gas_appliance",
433
- "壁挂炉品牌": "f_bgl",
434
- "热水器品牌": "f_geyser",
435
- "表封号": "f_metertitles",
436
- "表向": "f_aroundmeter",
437
- }
438
- if (this.msg.serviceacitivity[0].baseuserinfo.f_user_type != '民用'){
439
- maps = {
440
- "流量计品牌": "f_flowmeter_brand",
441
- "流量计型号": "f_flowmeter_model",
442
- "流量计类型": "f_llj_type",
443
- "流量范围(m³/h)": "f_llj_range",
444
-
445
- "控制器品牌": "f_control_brand",
446
- "控制器型号": "f_control_model",
447
- "控制器编号": "f_control_code",
448
-
449
- "灶具品牌": "f_appliance_brand",
450
- "灶具型号": "f_appliance_model",
451
-
452
- "气表品牌": "f_fire_gasbrand",
453
- "表向": "f_aroundmeter",
454
- }
455
- }
456
- const userfire = {
457
- id: res2.data[0].id,
458
- f_lgniter: Vue.user.name,
459
- f_operator: Vue.user.name,
460
- f_operatorid: Vue.user.id,
461
- f_operate_date: Util.toStandardTimeString()
462
- }
463
- const userfiles = {
464
- f_userfiles_id: res.data[0].f_userfiles_id,
465
- version: res.data[0].version
466
- }
467
- let update1 = false
468
- let update2 = false
469
- for (const item of this.msg.serviceacitivity[0].servicerepair) {
470
- if (item.details[0].f_content == '有' || item.f_type == '表具信息'){
471
- for (const detail of item.details) {
472
- if (maps[detail.f_project]) {
473
- if (['表前阀', '报警器', '表封号', '表向', '流量计品牌', '流量计型号', '流量计类型', '流量范围(m³/h)'].indexOf(detail.f_project) >= 0){
474
- userfiles[maps[detail.f_project]] = detail.f_content
475
- if (detail.f_content){
476
- update2 = true
477
- }
478
- }else {
479
- userfire[maps[detail.f_project]] = detail.f_content
480
- if (detail.f_content){
481
- update1 = true
482
- }
483
- }
484
- }
485
- }
486
- }
487
- }
488
- if (update1) {
489
- await new HttpResetClass().load('POST',`${this.$androidUtil.getProxyUrl()}/rs/entity/t_userfire`, userfire, {rejectMsg: '更新点火信息失败!'})
490
- }
491
- if (update2) {
492
- await new HttpResetClass().load('POST',`${this.$androidUtil.getProxyUrl()}/rs/entity/t_userfiles`, userfiles, {rejectMsg: '更新点火信息失败!'})
493
- }
494
- }
495
406
  this.$showMessage('保存提交成功!', ['confirm'])
496
407
  } else {
497
408
  this.$showMessage(`保存提交失败!${result.errMsg}`, ['confirm'])