safecheck-client 3.0.33-16 → 3.0.33-161

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.
Files changed (169) hide show
  1. package/index.html +6 -2
  2. package/package.json +133 -133
  3. package/src/App.vue +2 -2
  4. package/src/components/Util/ImgSelfSafePlus.vue +19 -10
  5. package/src/components/Util.js +7 -0
  6. package/src/components/android/AreaPlan.vue +2 -1
  7. package/src/components/android/CurrentCreate.vue +1 -1
  8. package/src/components/android/ImgSelfAndroid.vue +181 -181
  9. package/src/components/android/SafecheckDevices.vue +5 -1
  10. package/src/components/android/SafecheckOrderV.vue +18 -12
  11. package/src/components/map/checkScreen.vue +27 -21
  12. package/src/components/paper/PlanChooser.vue +4 -2
  13. package/src/components/pc/NewCheckpaper.vue +11 -8
  14. package/src/components/planmanage/PlanManage.vue +14 -4
  15. package/src/components/planmanage/checkPlanList.vue +2 -1
  16. package/src/components/planmanage/checkUserList.vue +2 -0
  17. package/src/components/report/HiddenSituation.vue +3 -3
  18. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +28 -2
  19. package/src/components/rongcheng/AspiratedPaperMessage.vue +1 -1
  20. package/src/components/rongcheng/DefectPaper.vue +1 -1
  21. package/src/components/rongcheng/PaperListNPSQ.vue +36 -1
  22. package/src/components/rongcheng/PaperListSQ.vue +32 -11
  23. package/src/components/rongcheng/PhoneUpUserinfo.vue +939 -802
  24. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  25. package/src/components/rongcheng/report/CheckPlanAreaList.vue +1 -3
  26. package/src/components/safecheckNew/PaperList.vue +785 -0
  27. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -0
  28. package/src/components/safecheckNew/android/AreaPlan.vue +561 -0
  29. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -0
  30. package/src/components/safecheckNew/android/Recheck.vue +379 -0
  31. package/src/components/safecheckNew/android/SafecheckDevices.vue +1400 -0
  32. package/src/components/safecheckNew/android/SafecheckOrderV.vue +2692 -0
  33. package/src/filiale/Util.js +5 -0
  34. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -0
  35. package/src/filiale/baiyin/android.js +10 -0
  36. package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -0
  37. package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -0
  38. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -0
  39. package/src/filiale/baiyin/pc/DefectMainNew.vue +63 -0
  40. package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -0
  41. package/src/filiale/baiyin/pc/PaperList.vue +790 -0
  42. package/src/filiale/baiyin/pc/PlanChooser.vue +167 -0
  43. package/src/filiale/baiyin/pc/PlanManage.vue +834 -0
  44. package/src/filiale/baiyin/pc/RightTreeSafe.vue +348 -0
  45. package/src/filiale/baiyin/pc/RoleSelector.vue +160 -0
  46. package/src/filiale/baiyin/pc.js +20 -0
  47. package/src/filiale/bayan/android/AddPlanItem.vue +7 -2
  48. package/src/filiale/bayan/android/CheckPlanDown.vue +249 -0
  49. package/src/filiale/bayan/android/SafecheckOrderV.vue +20 -7
  50. package/src/filiale/bayan/android/SafecheckUserInfo.vue +566 -514
  51. package/src/filiale/bayan/android.js +1 -0
  52. package/src/filiale/bayan/pc/CheckDetail.vue +205 -0
  53. package/src/filiale/bayan/pc/CheckPlan.vue +59 -0
  54. package/src/filiale/bayan/pc/CheckPlanAreaList.vue +565 -0
  55. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -0
  56. package/src/filiale/bayan/pc/DefectListNew.vue +597 -0
  57. package/src/filiale/bayan/pc/DefectMainNew.vue +63 -0
  58. package/src/filiale/bayan/pc/DefectPaperNew.vue +1218 -0
  59. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -0
  60. package/src/filiale/bayan/pc/HiddenSituation.vue +256 -0
  61. package/src/filiale/bayan/pc/NewCheckpaper.vue +31 -1
  62. package/src/filiale/bayan/pc/PaperList.vue +119 -12
  63. package/src/filiale/bayan/pc/PlanManage.vue +29 -8
  64. package/src/filiale/bayan/pc/SelectCheckPlan.vue +333 -0
  65. package/src/filiale/bayan/pc.js +7 -0
  66. package/src/filiale/dexin/android/SafecheckOrderV.vue +123 -24
  67. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -0
  68. package/src/filiale/fugou/android.js +2 -1
  69. package/src/filiale/fugou/pc/AddToCheckBook.vue +13 -14
  70. package/src/filiale/fugou/pc/CheckBook.vue +2 -0
  71. package/src/filiale/fugou/pc/CheckBookEntry.vue +2 -6
  72. package/src/filiale/fugou/pc/CheckBookList.vue +2 -2
  73. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -18
  74. package/src/filiale/fugou/pc/CheckBookUser.vue +102 -45
  75. package/src/filiale/fugou/pc/DefectPaperNew.vue +10 -6
  76. package/src/filiale/fugou/pc/PaperDefectMain.vue +12 -6
  77. package/src/filiale/fugou/pc/PaperList.vue +14 -6
  78. package/src/filiale/fugou/pc/PlanManage.vue +62 -8
  79. package/src/filiale/fugou/pc/checkUserList.vue +36 -35
  80. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +15 -5
  81. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +12 -2
  82. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +12 -3
  83. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
  84. package/src/filiale/hanzhong/pc/CheckUserList.vue +30 -11
  85. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +11 -2
  86. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -0
  87. package/src/filiale/jingyang/pc.js +1 -0
  88. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +2 -22
  89. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -0
  90. package/src/filiale/liaoyuan/pc.js +2 -1
  91. package/src/filiale/qianneng/pc/PaperList.vue +31 -1
  92. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1270 -1268
  93. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2779
  94. package/src/filiale/rongchuang/android/SafecheckDevices.vue +468 -748
  95. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +984 -1234
  96. package/src/filiale/rongchuang/android.js +1 -0
  97. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +294 -305
  98. package/src/filiale/rongchuang/pc/PaperList.vue +812 -0
  99. package/src/filiale/rongchuang/pc.js +1 -0
  100. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -0
  101. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -0
  102. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -0
  103. package/src/filiale/siyang/android.js +11 -0
  104. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -0
  105. package/src/filiale/siyang/pc/PaperList.vue +834 -0
  106. package/src/filiale/siyang/pc/PlanManage.vue +839 -0
  107. package/src/filiale/siyang/pc/checkUserList.vue +781 -0
  108. package/src/filiale/siyang/pc.js +15 -0
  109. package/src/filiale/tianke/pc/checkScreen.vue +36 -31
  110. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +60 -2
  111. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +2 -3
  112. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +1 -1
  113. package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
  114. package/src/filiale/weinan/android/PaperFeedback.vue +8 -8
  115. package/src/filiale/weinan/android/SafecheckDevices.vue +6 -2
  116. package/src/filiale/weinan/android/SafecheckOrderV.vue +16 -2
  117. package/src/filiale/weinan/android/SafecheckUserInfo.vue +7 -2
  118. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -0
  119. package/src/filiale/weinan/pc/DefectListNew.vue +617 -0
  120. package/src/filiale/weinan/pc/DefectMainNew.vue +1 -1
  121. package/src/filiale/weinan/pc/DefectPaperNew.vue +7 -1
  122. package/src/filiale/weinan/pc.js +2 -0
  123. package/src/filiale/wenxi/android/CurrentCreate.vue +1 -1
  124. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1 -1
  125. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +85 -63
  126. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1 -1
  127. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +46 -1
  128. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +45 -4
  129. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +2 -2
  130. package/src/filiale/yangchunboneng/android/NewCheckpaperAndroid.vue +1362 -1362
  131. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1731 -1731
  132. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -0
  133. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +1332 -1332
  134. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2845 -2832
  135. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -869
  136. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +2 -1
  137. package/src/filiale/yangchunboneng/android.js +1 -0
  138. package/src/filiale/yangchunboneng/pc/CheckBookList.vue +4 -4
  139. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +76 -32
  140. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +72 -1
  141. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1018
  142. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +944 -849
  143. package/src/filiale/yangchunboneng/pc/PaperList.vue +17 -0
  144. package/src/filiale/yongzhou/android/PaperFeedback.vue +1 -1
  145. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +221 -256
  146. package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
  147. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1 -1
  148. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
  149. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +412 -107
  150. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -0
  151. package/src/filiale/yongzhou/pc/PaperList.vue +1 -1
  152. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
  153. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +56 -125
  154. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
  155. package/src/filiale/yongzhou/pc/safeDetail.vue +311 -20
  156. package/src/filiale/yongzhou/pc/safeStatistics.vue +74 -24
  157. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +2 -2
  158. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +2 -2
  159. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +47 -23
  160. package/src/filiale/yongzhou/pc/safeTable.vue +3 -3
  161. package/src/filiale/yongzhou/pc.js +4 -0
  162. package/src/filiale/yuansheng/android/AndroidDefectDeal.vue +652 -0
  163. package/src/filiale/yuansheng/android.js +1 -0
  164. package/src/filiale/zhongsheng/android/CurrentCreate.vue +7 -2
  165. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +6 -2
  166. package/src/main.js +33 -33
  167. package/src/rongcheng.js +3 -1
  168. package/src/safecheck-android.js +6 -0
  169. package/src/safecheck.js +3 -0
@@ -230,6 +230,17 @@
230
230
  :value-single="true">
231
231
  </v-select>
232
232
  </div>
233
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
234
+ <label class="font_normal_body">客户评价</label>
235
+ <v-select class="select_list select"
236
+ placeholder='客户评价' style="width: 60%"
237
+ :value.sync="model.f_client_evaluation" v-model="model.f_client_evaluation"
238
+ :options='$parent.$parent.evaluations'
239
+ close-on-select clear-button
240
+ condition="f_client_evaluation='{}'"
241
+ :value-single="true">
242
+ </v-select>
243
+ </div>
233
244
  </div>
234
245
  <modal :show.sync="$parent.$parent.showModal" v-ref:modal backdrop="false">
235
246
  <div slot="modal-header" class="modal-header">
@@ -298,6 +309,9 @@
298
309
  <th>
299
310
  <nobr>备注</nobr>
300
311
  </th>
312
+ <th>
313
+ <nobr>客户评价</nobr>
314
+ </th>
301
315
  <th>
302
316
  <nobr>操作</nobr>
303
317
  </th>
@@ -325,6 +339,7 @@
325
339
  <td style="text-align: center">{{row.f_remaining_gas_volume}}</td>
326
340
  <td style="text-align: center">{{row.f_remaining_amount}}</td>
327
341
  <td style="text-align: center">{{row.f_repair_approved_note}}</td>
342
+ <td style="text-align: center">{{row.f_client_evaluation}}</td>
328
343
  <td style="text-align: center">
329
344
  <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
330
345
 
@@ -444,6 +459,7 @@ export default {
444
459
  'f_remaining_amount': '剩余金额',
445
460
  'f_safecheck_type':'安检类型',
446
461
  'f_repair_approved_note': '备注',
462
+ 'f_client_evaluation': '评价',
447
463
  'f_plan_name': '计划名称',
448
464
  },
449
465
  fun: this.$login.f,
@@ -461,6 +477,7 @@ export default {
461
477
  f_entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
462
478
  f_checkplans: this.$appdata.getParam('有无计划')?[{label: '全部', value: ''}, ...this.$appdata.getParam('有无计划')]:[{label: '全部', value: ''}],
463
479
  showcheckmsg: false,
480
+ evaluations:[{label: '全部', value: ''},{label: '满意', value: '满意'},{label: '基本满意', value: '基本满意'},{label: '不满意', value: '不满意'}],
464
481
  checkInfo: {},
465
482
  orderDefault: "'f_offsite_time'",
466
483
  orderFields: {
@@ -1229,7 +1229,7 @@ export default {
1229
1229
  ////tag)
1230
1230
  ////tag
1231
1231
  let limit_times=1
1232
- let limit_value=3
1232
+ let limit_value=5
1233
1233
  if(Vue.config.safecheck && Vue.config.safecheck.ApproveConfig.limit_times && Vue.config.safecheck.ApproveConfig.limit_value){
1234
1234
  limit_times = Vue.config.safecheck.ApproveConfig.limit_times
1235
1235
  limit_value = Vue.config.safecheck.ApproveConfig.limit_value
@@ -1552,98 +1552,63 @@ export default {
1552
1552
  if (res.code == 200) {
1553
1553
  //tag
1554
1554
  if (!this.onlySave) {
1555
- let codata = this.getAllDefect()
1556
- //获取微信推送内容
1557
- // let WxResult = this.getWeixin(codata)
1558
- let haslivedispose = this.$androidUtil.bzLogic('getLiveDispose', {
1559
- f_check_item_id: this.data.f_check_item_id
1560
- })
1561
- //如果是转维修上传,则不做校验,上传完成后自动转维修
1562
- //tag
1563
- //tag
1564
- if (!this.isToRepair) {
1565
- if (haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)) {
1566
- //tag
1567
- //tag
1568
- if (!this.isSafeCheckToRepair) {
1569
-
1570
- }
1555
+ let day = this.$appdata.getSingleValue('到访不遇间隔限制') || 7
1556
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
1557
+ data: {
1558
+ items: 'count(0) as num',
1559
+ tablename: 't_check_paper',
1560
+ condition: `f_userinfoid = '${this.item.f_userinfoid}' and f_entry_status = '到访不遇' and f_offsite_time BETWEEN DATEADD(DAY, ${day * -1}, GETDATE()) AND GETDATE()`,
1561
+ orderitem: '1'
1571
1562
  }
1572
- }
1573
- //tag
1574
- for (let key in codata) {
1575
- if (key.startsWith("device")) {
1576
- codata[key] = []
1563
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
1564
+ if (this.data.f_entry_status != '到访不遇' || res.data[0].num == 0){
1565
+ let codata = this.getAllDefect()
1566
+ let haslivedispose = this.$androidUtil.bzLogic('getLiveDispose', {
1567
+ f_check_item_id: this.data.f_check_item_id
1568
+ })
1569
+ for (let key in codata) {
1570
+ if (key.startsWith("device")) {
1571
+ codata[key] = []
1572
+ }
1573
+ }
1574
+ codata.f_devices = this.f_devices
1575
+ if (this.rowCodata && this.rowCodata.istoRepair == '转维修') {
1576
+ this.rowCodata = Object.assign({}, this.rowCodata, codata)
1577
+ } else {
1578
+ this.rowCodata = codata
1579
+ }
1580
+ let param = {
1581
+ f_check_item_id: this.data.f_check_item_id,
1582
+ f_checker_id: this.data.f_checker_id,
1583
+ row: this.rowCodata
1584
+ }
1585
+ let paramStr = JSON.stringify(param)
1586
+ let subLength = 800
1587
+ for (let i = 0; i < paramStr.length; i += subLength) {
1588
+ HostApp.param_cache(paramStr.substr(i, subLength))
1589
+ }
1590
+ HostApp.__this__ = this
1591
+ HostApp.syncLogic({
1592
+ 'logic': '上传安检信息',
1593
+ 'callback': 'javascript:HostApp.__this__.uploadCallBack()',
1594
+ 'backresult': 1
1595
+ })
1596
+ }else {
1597
+ this.$showMessage('距上次到访不遇时间不足七天,请核实后重新上传')
1577
1598
  }
1578
- }
1579
- //tag}`)
1580
-
1581
- //tag
1582
- // let isStart = true
1583
- // let res
1584
- // for (let i in this.f_devices){
1585
- // res = HostApp.organizeJSON({isStart:isStart,isDevice:true,device:this.f_devices[i]})
1586
- // if(res.code == 200){
1587
- // isStart = false
1588
- // }else{
1589
- // this.$showMessage("上传失败!")
1590
- // return
1591
- // }
1592
- // }
1593
- // let result = HostApp.organizeJSON({
1594
- // isStart:false,
1595
- // isJSON:true,
1596
- // jsonstr:{
1597
- // f_check_item_id: this.data.f_check_item_id,
1598
- // f_checker_id: this.data.f_checker_id,
1599
- // row: codata
1600
- // }
1601
- // })
1602
- codata.f_devices = this.f_devices
1603
- if (this.rowCodata && this.rowCodata.istoRepair == '转维修') {
1604
- this.rowCodata = Object.assign({}, this.rowCodata, codata)
1605
- } else {
1606
- this.rowCodata = codata
1607
- }
1608
- let param = {
1609
- f_check_item_id: this.data.f_check_item_id,
1610
- f_checker_id: this.data.f_checker_id,
1611
- // row: codata
1612
- row: this.rowCodata
1613
- }
1614
- //tag)
1615
- let paramStr = JSON.stringify(param)
1616
- // 多长截断一次
1617
- let subLength = 800
1618
- for (let i = 0; i < paramStr.length; i += subLength) {
1619
- HostApp.param_cache(paramStr.substr(i, subLength))
1620
- }
1621
- HostApp.__this__ = this
1622
- HostApp.syncLogic({
1623
- // logic别名,key必须为logic
1624
- 'logic': '上传安检信息',
1625
- // 回调执行方法名,key必须为callback
1626
- 'callback': 'javascript:HostApp.__this__.uploadCallBack()',
1627
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1628
- // 执行回调方法传入key为backresult
1629
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1630
- 'backresult': 1
1631
1599
  })
1632
1600
  } else {
1633
1601
  this.$showMessage('保存成功!')
1634
1602
  if (this.clickBack) {
1635
1603
  this.isStrat = false
1636
1604
  this.$dispatch('confirm')
1637
- //this.$back()
1638
1605
  }
1639
1606
  }
1640
1607
  } else {
1641
1608
  this.$showMessage('保存失败!')
1642
- return
1643
1609
  }
1644
1610
  } else {
1645
1611
  this.$showMessage('服务器内部错误,保存失败!')
1646
- return
1647
1612
  }
1648
1613
  },
1649
1614
  uploadCallBack(jo) {
@@ -2080,74 +2045,74 @@ export default {
2080
2045
  ]
2081
2046
  })
2082
2047
  } else if (this.devices[de].device == "燃气表") {
2083
- this.data['device' + this.devices[de].n].push({
2084
- f_device_type: "燃气表",
2085
- f_items: [
2086
- {
2087
- f_defect_level: null,
2088
- f_device_id: "",
2089
- f_is_defect: "",
2090
- f_item_name: "基表编号",
2091
- f_item_value: this.item.f_plan_meters[i].f_meter_no,
2092
- f_path: "",
2093
- type: "number"
2094
- },
2095
- {
2096
- f_defect_level: null,
2097
- f_device_id: "",
2098
- f_is_defect: "",
2099
- f_item_name: "气表型号",
2100
- f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
2101
- f_path: "",
2102
- type: "string"
2103
- },
2104
- {
2105
- f_defect_level: null,
2106
- f_device_id: "",
2107
- f_is_defect: "",
2108
- f_item_name: "气表品牌",
2109
- f_item_value: this.item.f_plan_meters[i].f_aliasname,
2110
- f_path: "",
2111
- type: "string"
2112
- },
2113
- {
2114
- f_defect_level: null,
2115
- f_device_id: "",
2116
- f_is_defect: "",
2117
- f_item_name: "进气方向",
2118
- f_item_value: this.item.f_plan_meters[i].f_flow_direction,
2119
- f_path: "",
2120
- type: "string"
2121
- },
2122
- {
2123
- f_defect_level: null,
2124
- f_device_id: "",
2125
- f_is_defect: "",
2126
- f_item_name: "上期表读数",
2127
- f_item_value: this.item.f_plan_meters[i].f_prior_reading,
2128
- f_path: "",
2129
- type: "number"
2130
- },
2131
- {
2132
- f_defect_level: null,
2133
- f_device_id: "",
2134
- f_is_defect: "",
2135
- f_item_name: "表箱号",
2136
- f_item_value: this.item.f_plan_meters[i].f_metertitles,
2137
- f_path: "",
2138
- type: "string"
2139
- },
2140
- {
2141
- f_defect_level: null,
2142
- f_device_id: "",
2143
- f_is_defect: "",
2144
- f_item_name: "系统表底数",
2145
- f_item_value: this.item.f_plan_meters[i].f_meter_base,
2146
- f_path: "",
2147
- type: "string"
2148
- }
2149
- ]
2150
- })
2048
+ this.data['device' + this.devices[de].n].push({
2049
+ f_device_type: "燃气表",
2050
+ f_items: [
2051
+ {
2052
+ f_defect_level: null,
2053
+ f_device_id: "",
2054
+ f_is_defect: "",
2055
+ f_item_name: "基表编号",
2056
+ f_item_value: this.item.f_plan_meters[i].f_meter_no,
2057
+ f_path: "",
2058
+ type: "number"
2059
+ },
2060
+ {
2061
+ f_defect_level: null,
2062
+ f_device_id: "",
2063
+ f_is_defect: "",
2064
+ f_item_name: "气表型号",
2065
+ f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
2066
+ f_path: "",
2067
+ type: "string"
2068
+ },
2069
+ {
2070
+ f_defect_level: null,
2071
+ f_device_id: "",
2072
+ f_is_defect: "",
2073
+ f_item_name: "气表品牌",
2074
+ f_item_value: this.item.f_plan_meters[i].f_aliasname,
2075
+ f_path: "",
2076
+ type: "string"
2077
+ },
2078
+ {
2079
+ f_defect_level: null,
2080
+ f_device_id: "",
2081
+ f_is_defect: "",
2082
+ f_item_name: "进气方向",
2083
+ f_item_value: this.item.f_plan_meters[i].f_flow_direction,
2084
+ f_path: "",
2085
+ type: "string"
2086
+ },
2087
+ {
2088
+ f_defect_level: null,
2089
+ f_device_id: "",
2090
+ f_is_defect: "",
2091
+ f_item_name: "上期表读数",
2092
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
2093
+ f_path: "",
2094
+ type: "number"
2095
+ },
2096
+ {
2097
+ f_defect_level: null,
2098
+ f_device_id: "",
2099
+ f_is_defect: "",
2100
+ f_item_name: "表箱号",
2101
+ f_item_value: this.item.f_plan_meters[i].f_metertitles,
2102
+ f_path: "",
2103
+ type: "string"
2104
+ },
2105
+ {
2106
+ f_defect_level: null,
2107
+ f_device_id: "",
2108
+ f_is_defect: "",
2109
+ f_item_name: "系统表底数",
2110
+ f_item_value: this.item.f_plan_meters[i].f_meter_base,
2111
+ f_path: "",
2112
+ type: "string"
2113
+ }
2114
+ ]
2115
+ })
2151
2116
  }
2152
2117
  if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_collection_type) {
2153
2118
  this.data['device' + this.devices[de].n].forEach(device => {
@@ -2164,123 +2129,123 @@ export default {
2164
2129
  if (this.item.f_plan_meters[i].f_collection_type == '按金额') {
2165
2130
  if (this.item.f_plan_meters[i].f_meter_type.indexOf('物联网') !==-1 ){
2166
2131
  if (!this.data.f_collection_type) {
2167
- this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
2168
- delete this.config['燃气表']['items']['累购气量']
2169
- delete this.config['燃气表']['items']['已用金额']
2170
- delete this.config['燃气表']['items']['剩余气量']
2171
- delete this.config['燃气表']['items']['气量异常差值']
2172
- device.f_items.push(
2173
- {
2174
- f_defect_level: null,
2175
- f_device_id: "",
2176
- f_is_defect: "",
2177
- f_item_name: "初始表底",
2178
- isshow: false,
2179
- f_item_value: '',
2180
- f_path: "",
2181
- type: "number"
2182
- },
2183
- {
2184
- f_defect_level: null,
2185
- f_device_id: "",
2186
- f_is_defect: "",
2187
- f_item_name: "累购金额",
2188
- f_item_value: this.item.f_plan_meters[i].f_total_fee,
2189
- f_path: "",
2190
- type: "number"
2191
- },
2192
- {
2193
- f_defect_level: null,
2194
- f_device_id: "",
2195
- f_is_defect: "",
2196
- f_item_name: "已用气量",
2197
- f_item_value: null,
2198
- f_path: "",
2199
- type: "number"
2200
- },
2201
- {
2202
- f_defect_level: null,
2203
- f_device_id: "",
2204
- f_is_defect: "",
2205
- f_item_name: "剩余金额",
2206
- f_item_value: null,
2207
- f_path: "",
2208
- type: "number"
2209
- },
2210
- {
2211
- f_defect_level: null,
2212
- f_device_id: "",
2213
- f_is_defect: "",
2214
- f_item_name: "金额异常差值",
2215
- f_item_value: null,
2216
- f_path: "",
2217
- type: "number"
2218
- }
2219
- )
2220
- //tag)
2221
- }
2132
+ this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
2133
+ delete this.config['燃气表']['items']['累购气量']
2134
+ delete this.config['燃气表']['items']['已用金额']
2135
+ delete this.config['燃气表']['items']['剩余气量']
2136
+ delete this.config['燃气表']['items']['气量异常差值']
2137
+ device.f_items.push(
2138
+ {
2139
+ f_defect_level: null,
2140
+ f_device_id: "",
2141
+ f_is_defect: "",
2142
+ f_item_name: "初始表底",
2143
+ isshow: false,
2144
+ f_item_value: '',
2145
+ f_path: "",
2146
+ type: "number"
2147
+ },
2148
+ {
2149
+ f_defect_level: null,
2150
+ f_device_id: "",
2151
+ f_is_defect: "",
2152
+ f_item_name: "累购金额",
2153
+ f_item_value: this.item.f_plan_meters[i].f_total_fee,
2154
+ f_path: "",
2155
+ type: "number"
2156
+ },
2157
+ {
2158
+ f_defect_level: null,
2159
+ f_device_id: "",
2160
+ f_is_defect: "",
2161
+ f_item_name: "已用气量",
2162
+ f_item_value: null,
2163
+ f_path: "",
2164
+ type: "number"
2165
+ },
2166
+ {
2167
+ f_defect_level: null,
2168
+ f_device_id: "",
2169
+ f_is_defect: "",
2170
+ f_item_name: "剩余金额",
2171
+ f_item_value: null,
2172
+ f_path: "",
2173
+ type: "number"
2174
+ },
2175
+ {
2176
+ f_defect_level: null,
2177
+ f_device_id: "",
2178
+ f_is_defect: "",
2179
+ f_item_name: "金额异常差值",
2180
+ f_item_value: null,
2181
+ f_path: "",
2182
+ type: "number"
2183
+ }
2184
+ )
2185
+ //tag)
2186
+ }
2222
2187
  }
2223
2188
  else {
2224
2189
  if (!this.data.f_collection_type) {
2225
- this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
2226
- delete this.config['燃气表']['items']['累购气量']
2227
- delete this.config['燃气表']['items']['已用气量']
2228
- delete this.config['燃气表']['items']['剩余气量']
2229
- delete this.config['燃气表']['items']['气量异常差值']
2230
- device.f_items.push(
2231
- {
2232
- f_defect_level: null,
2233
- f_device_id: "",
2234
- f_is_defect: "",
2235
- f_item_name: "初始表底",
2236
- isshow: false,
2237
- f_item_value: '',
2238
- f_path: "",
2239
- type: "number"
2240
- },
2241
- {
2242
- f_defect_level: null,
2243
- f_device_id: "",
2244
- f_is_defect: "",
2245
- f_item_name: "累购金额",
2246
- f_item_value: this.item.f_plan_meters[i].f_total_fee,
2247
- f_path: "",
2248
- type: "number"
2249
- },
2250
- {
2251
- f_defect_level: null,
2252
- f_device_id: "",
2253
- f_is_defect: "",
2254
- f_item_name: "已用金额",
2255
- f_item_value: null,
2256
- f_path: "",
2257
- type: "number"
2258
- },
2259
- {
2260
- f_defect_level: null,
2261
- f_device_id: "",
2262
- f_is_defect: "",
2263
- f_item_name: "剩余金额",
2264
- f_item_value: null,
2265
- f_path: "",
2266
- type: "number"
2267
- },
2268
- {
2269
- f_defect_level: null,
2270
- f_device_id: "",
2271
- f_is_defect: "",
2272
- f_item_name: "金额异常差值",
2273
- f_item_value: null,
2274
- f_path: "",
2275
- type: "number"
2276
- }
2277
- )
2278
- //tag)
2279
- }
2190
+ this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
2191
+ delete this.config['燃气表']['items']['累购气量']
2192
+ delete this.config['燃气表']['items']['已用气量']
2193
+ delete this.config['燃气表']['items']['剩余气量']
2194
+ delete this.config['燃气表']['items']['气量异常差值']
2195
+ device.f_items.push(
2196
+ {
2197
+ f_defect_level: null,
2198
+ f_device_id: "",
2199
+ f_is_defect: "",
2200
+ f_item_name: "初始表底",
2201
+ isshow: false,
2202
+ f_item_value: '',
2203
+ f_path: "",
2204
+ type: "number"
2205
+ },
2206
+ {
2207
+ f_defect_level: null,
2208
+ f_device_id: "",
2209
+ f_is_defect: "",
2210
+ f_item_name: "累购金额",
2211
+ f_item_value: this.item.f_plan_meters[i].f_total_fee,
2212
+ f_path: "",
2213
+ type: "number"
2214
+ },
2215
+ {
2216
+ f_defect_level: null,
2217
+ f_device_id: "",
2218
+ f_is_defect: "",
2219
+ f_item_name: "已用金额",
2220
+ f_item_value: null,
2221
+ f_path: "",
2222
+ type: "number"
2223
+ },
2224
+ {
2225
+ f_defect_level: null,
2226
+ f_device_id: "",
2227
+ f_is_defect: "",
2228
+ f_item_name: "剩余金额",
2229
+ f_item_value: null,
2230
+ f_path: "",
2231
+ type: "number"
2232
+ },
2233
+ {
2234
+ f_defect_level: null,
2235
+ f_device_id: "",
2236
+ f_is_defect: "",
2237
+ f_item_name: "金额异常差值",
2238
+ f_item_value: null,
2239
+ f_path: "",
2240
+ type: "number"
2241
+ }
2242
+ )
2243
+ //tag)
2244
+ }
2280
2245
  }
2281
2246
  }
2282
2247
  else if (this.item.f_plan_meters[i].f_collection_type == '按气量') {
2283
- if (!this.data.f_collection_type) {
2248
+ if (!this.data.f_collection_type) {
2284
2249
  this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
2285
2250
  delete this.config['燃气表']['items']['累购金额']
2286
2251
  delete this.config['燃气表']['items']['已用金额']
@@ -0,0 +1,59 @@
1
+ <template>
2
+ <div id="unit" class="flex-row" :class="{'binary':showItem}">
3
+ <!-- <section>-->
4
+
5
+ <div :class="{'basic-main':!showItem,'binary-left':showItem}" >
6
+ <select-check-plan @select-changed="selected" :style="style" :style2="style2" @checkstatus-changed="checkstatusChange" v-ref:check></select-check-plan>
7
+ </div>
8
+ <div class="binary-right" v-show="showItem">
9
+ <div class="flex">
10
+ <check-detail v-if='$refs.check && $refs.check.selected' :check='$refs.check.selected' :checkstatus="checkstatus" :checkstart="$refs.check.f_check_start" :checkend="$refs.check.f_check_end"
11
+ v-ref:detail></check-detail>
12
+ </div>
13
+ </div>
14
+
15
+ <!-- </section>-->
16
+ </div>
17
+ </template>
18
+
19
+ <script>
20
+ import SelectCheckPlan from './SelectCheckPlan'
21
+ import CheckDetail from './../../../components/checkplan/CheckDetail'
22
+
23
+ export default {
24
+ title: '安检员考核',
25
+ props: ['f'],
26
+ components: {SelectCheckPlan, CheckDetail},
27
+ data() {
28
+ return {
29
+ showItem: false,
30
+ checkstatus: null,
31
+ style:'col-sm-2 form-group',
32
+ style2:'col-sm-4 form-group'
33
+ }
34
+ },
35
+ methods: {
36
+ selected(row) {
37
+ // //tag
38
+ this.showItem = true
39
+ },
40
+ checkstatusChange(val){
41
+ this.checkstatus = val
42
+ }
43
+ }
44
+ }
45
+ </script>
46
+ <style>
47
+ .form-input-group label {
48
+ text-align: right;
49
+ width: auto;
50
+ }
51
+
52
+ .datapanel {
53
+ color: #333;
54
+ background-color: white;
55
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
56
+ padding: 5px 7px 5px 7px;
57
+ border-radius: 10px;
58
+ }
59
+ </style>