safecheck-client 3.0.30-9 → 3.0.30-90

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 (102) hide show
  1. package/examples/SafePlan-liaoyuan/App.vue +3 -1
  2. package/package.json +4 -3
  3. package/src/App.vue +2 -2
  4. package/src/components/DefectDealMain/DefectListNew.vue +5 -5
  5. package/src/components/Util.js +15 -0
  6. package/src/components/android/AddPlanItem.vue +5 -2
  7. package/src/components/android/AreaPlan.vue +2 -2
  8. package/src/components/android/CurrentCreate.vue +3 -2
  9. package/src/components/android/CurrentCreate_new.vue +563 -559
  10. package/src/components/android/PaperFeedback.vue +4 -2
  11. package/src/components/android/SafecheckOrderV.vue +2 -2
  12. package/src/components/android/UploadPage.vue +13 -123
  13. package/src/components/paper/PaperList.vue +9 -2
  14. package/src/components/paper/PlanChooser.vue +8 -6
  15. package/src/components/pc/Edit.vue +126 -0
  16. package/src/components/pc/LodopFuncs.js +159 -0
  17. package/src/components/pc/NewCheckpaper.vue +9 -5
  18. package/src/components/pc/PaperEdit.vue +151 -0
  19. package/src/components/pc/PrintData.vue +243 -0
  20. package/src/components/pc/PrintTable.vue +241 -0
  21. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +3 -0
  22. package/src/components/report/NoCheckplanSafecheck.vue +0 -2
  23. package/src/components/rongcheng/CheckCurrentCreate.vue +8 -0
  24. package/src/components/rongcheng/PaperStatem.vue +42 -1
  25. package/src/components/rongcheng/PhoneUpUserinfo.vue +149 -199
  26. package/src/components/rongcheng/SafecheckOrderV.vue +8 -0
  27. package/src/components/rongcheng/SafecheckUserInfo.vue +419 -0
  28. package/src/components/rongcheng/report/CheckPlanAreaList.vue +21 -3
  29. package/src/filiale/ankangyihua/pc/checkUserList.vue +1 -0
  30. package/src/filiale/bayan/android/CurrentCreate.vue +1 -1
  31. package/src/filiale/bayan/android/Edit.vue +132 -0
  32. package/src/filiale/bayan/android/SafecheckOrderV.vue +2 -2
  33. package/src/filiale/bayan/android/SafecheckUserInfo.vue +6 -1
  34. package/src/filiale/bayan/android.js +2 -1
  35. package/src/filiale/fugou/android/AddPlanItem.vue +413 -0
  36. package/src/filiale/fugou/android.js +10 -0
  37. package/src/filiale/fugou/pc/DefectMainNew.vue +63 -0
  38. package/src/filiale/fugou/pc/DefectPaperNew.vue +1081 -0
  39. package/src/filiale/fugou/pc/PaperDefectMain.vue +890 -0
  40. package/src/filiale/fugou/pc/PaperList.vue +46 -0
  41. package/src/filiale/fugou/pc/checkUserList.vue +824 -0
  42. package/src/filiale/fugou/pc.js +5 -1
  43. package/src/filiale/hanzhong/android/SafecheckDevices.vue +24 -24
  44. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2 -2
  45. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +1 -1
  46. package/src/filiale/hanzhong/pc/NewCheckpaper.vue +1923 -0
  47. package/src/filiale/hanzhong/pc.js +4 -1
  48. package/src/filiale/huatong/android/CurrentCreate.vue +564 -564
  49. package/src/filiale/huatong/android/SafecheckOrderV.vue +8 -0
  50. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -0
  51. package/src/filiale/jingyang/android/CurrentCreate.vue +1080 -0
  52. package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +34 -34
  53. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -0
  54. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +780 -0
  55. package/src/filiale/kelai/android/AddPlanItem.vue +488 -0
  56. package/src/filiale/kelai/android.js +1 -0
  57. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -0
  58. package/src/filiale/liaoyuan/android.js +1 -0
  59. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1 -1
  60. package/src/filiale/qianneng/android/PaperFeedback.vue +40 -0
  61. package/src/filiale/qianneng/pc/PaperList.vue +6 -0
  62. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +6 -0
  63. package/src/filiale/tianke/pc/checkScreen.vue +4 -4
  64. package/src/filiale/tianke/pc/cq.jpg +0 -0
  65. package/src/filiale/tianke/pc/qy.jpg +0 -0
  66. package/src/filiale/tongchuan/android/SafecheckDevices.vue +1 -0
  67. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +371 -401
  68. package/src/filiale/wensu/android/AndroidDefectDeal.vue +321 -366
  69. package/src/filiale/wensu/android/AndroidDefectDealItems.vue +480 -0
  70. package/src/filiale/wensu/android.js +1 -0
  71. package/src/filiale/wensu/pc/CheckSearchUser.vue +64 -0
  72. package/src/filiale/wensu/pc/DefectPaperNew.vue +16 -10
  73. package/src/filiale/wensu/pc/NewCheckpaper.vue +1936 -0
  74. package/src/filiale/wensu/pc/RoleSelector.vue +4 -1
  75. package/src/filiale/wensu/pc/checkUserList.vue +50 -0
  76. package/src/filiale/wensu/pc.js +2 -1
  77. package/src/filiale/wenxi/pc/DefectPaper.vue +1 -1
  78. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2069 -2041
  79. package/src/filiale/wuhai/pc/NewCheckpaper.vue +26 -24
  80. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +20 -0
  81. package/src/filiale/yangchunboneng/pc/CheckBookDetails.vue +19 -0
  82. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -0
  83. package/src/filiale/yongzhou/pc/LodopFuncs.js +159 -0
  84. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +252 -0
  85. package/src/filiale/yongzhou/pc/PaperList.vue +798 -0
  86. package/src/filiale/yongzhou/pc/PrintData.vue +243 -0
  87. package/src/filiale/yongzhou/pc/PrintTable.vue +241 -0
  88. package/src/filiale/yongzhou/pc/communityDetail.vue +35 -12
  89. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +28 -14
  90. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +28 -14
  91. package/src/filiale/yongzhou/pc/safeDetail.vue +43 -15
  92. package/src/filiale/yongzhou/pc/safeStatistics.vue +16 -6
  93. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +81 -27
  94. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +56 -26
  95. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +16 -6
  96. package/src/filiale/yongzhou/pc/safeTable.vue +10 -2
  97. package/src/filiale/yongzhou/pc.js +17 -12
  98. package/src/filiale/zhongsheng/android/CurrentCreate.vue +540 -536
  99. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +151 -53
  100. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +14 -0
  101. package/src/main.js +1 -1
  102. package/src/safecheck.js +12 -0
@@ -1197,9 +1197,11 @@ export default {
1197
1197
  ////tag
1198
1198
  let limit_times=1
1199
1199
  let limit_value=3
1200
- if(Vue.config.safecheck && Vue.config.safecheck.ApproveConfig.limit_times && Vue.config.safecheck.ApproveConfig.limit_value){
1200
+ let limit_amount=3
1201
+ if(Vue.config.safecheck && Vue.config.safecheck.ApproveConfig.limit_times && Vue.config.safecheck.ApproveConfig.limit_value && Vue.config.safecheck.ApproveConfig.limit_amount){
1201
1202
  limit_times = Vue.config.safecheck.ApproveConfig.limit_times
1202
1203
  limit_value = Vue.config.safecheck.ApproveConfig.limit_value
1204
+ limit_amount = Vue.config.safecheck.ApproveConfig.limit_amount
1203
1205
  }
1204
1206
  let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/backlistOperate`, {
1205
1207
  data: {
@@ -1222,7 +1224,7 @@ export default {
1222
1224
  },
1223
1225
  "f_limit_times":limit_times,
1224
1226
  "f_limit_value":limit_value,
1225
- "f_limit_amount":'',
1227
+ "f_limit_amount":limit_amount,
1226
1228
  'f_limit_type':'气量'
1227
1229
  }
1228
1230
  }, {resolveMsg: null, rejectMsg: null})
@@ -691,8 +691,8 @@
691
691
  }
692
692
  // if(Util.required(this.data.f_residential_area))
693
693
  // return prefix + '小区名称必须输入'
694
- if(Util.required(this.data.f_address))
695
- return prefix + '地址必须输入'
694
+ // if(Util.required(this.data.f_address))
695
+ // return prefix + '地址必须输入'
696
696
  },
697
697
  verifyDevices() {
698
698
  for (let dev in this.config) {
@@ -1,32 +1,4 @@
1
1
  <template>
2
- <!--<div class="app-bg auto">-->
3
- <!--&lt;!&ndash;<tools-page :need-back='true' title="安检计划" @back="back()"></tools-page>&ndash;&gt;-->
4
- <!--<div class="row app-input">-->
5
- <!--<label class="col-xs-12 control-label text-left">{{context}}</label>-->
6
- <!--</div>-->
7
- <!--<div class="row app-btn" style="margin-bottom: -5px;">-->
8
- <!--&lt;!&ndash; <button class="btn btn-primary col-xs-6" @click= "planinfomation()"><span class="glyphicon glyphicon-zoom-in" style="margin-right: 20px;"></span>查询</button> &ndash;&gt;-->
9
-
10
- <!--</div>-->
11
- <!--</div>-->
12
-
13
- <!--<div v-for='row in resultdata' class="app-list auto" @click = "inputMeter(row)">-->
14
- <!--<div class="row" style="color: #00B9F1;">-->
15
- <!--<span class="col-xs-3">户号:</span><span class="col-xs-3">{{row.f_userid}}</span>-->
16
- <!--<span class="col-xs-3">姓名:</span><span class="col-xs-3">{{row.f_username}}</span>-->
17
- <!--</div>-->
18
- <!--<div class="row">-->
19
- <!--<span class="col-xs-3">表号:</span><span class="col-xs-3">{{row.f_meternumber}}</span>-->
20
- <!--<span class="col-xs-3">用户类型:</span><span class="col-xs-3">{{row.f_usertype}}</span>-->
21
- <!--</div>-->
22
- <!--<div class="row">-->
23
- <!--<span class="col-xs-3">地址:</span><span class="col-xs-8">{{row.f_address}}</span>-->
24
- <!--</div>-->
25
- <!--<back-page :need-back='true' @flag="$back()"></back-page>-->
26
- <!--</div>-->
27
- <!--</div>-->
28
-
29
-
30
2
  <div class="auto">
31
3
  <div class="row text-center" style="margin-top: 20px;">
32
4
  <button class="btn btn-primary" style="width: 15%; border-radius: 5px ;" @click= "upload()">上传</button>
@@ -49,17 +21,12 @@
49
21
  <p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_type }}
50
22
  </p>
51
23
  </div>
52
- <!-- <div class="col-xs-6">-->
53
- <!-- <p class="panel-title col-xs-5 text-left font"><b>计划名称:</b></p>-->
54
- <!-- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_plan_name }}</p>-->
55
- <!-- </div>-->
56
24
  <div class="col-xs-12">
57
25
  <p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
58
26
  <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone }}
59
27
  <img src="../../assets/phone.png" style="width: 6%" v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone)'></img>
60
28
  </p>
61
29
  </div>
62
-
63
30
  <div class="col-xs-12">
64
31
  <p class="panel-title text-left font" style="width: 23%;float: left"><b>用户地址:</b></p>
65
32
  <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_address }}</p>
@@ -76,11 +43,6 @@
76
43
  <p class="panel-title col-xs-4 text-left font">有无安检计划</p>
77
44
  <p class="panel-title col-xs-8 text-left input-font">{{ row.f_no_checkplan }}</p>
78
45
  </div>
79
- <!--<div class="row text-right" v-show="row.f_upload_state != '已传'" >-->
80
- <!--<button type="button" class="btn btn-primary yybtn-color" v-on:click.stop.prevent='$parent.$parent.$parent.reserve($index)'>预约</button>&nbsp;-->
81
- <!--<button type="button" class="btn btn-primary qxbtn-color" v-if ='row.f_prearranged_date'-->
82
- <!--v-on:click.stop.prevent='$parent.$parent.$parent.cancelReserve($index, row.id)'>取消预约</button>-->
83
- <!--</div>-->
84
46
  </div>
85
47
  </div>
86
48
  </div>
@@ -88,29 +50,25 @@
88
50
  <div v-if="model.length == 0">
89
51
  暂无数据
90
52
  </div>
91
- <!-- <back-page :need-back='true' @flag="$back()"></back-page>-->
53
+ <work-busy :is-busy="isSend"></work-busy>
92
54
  </div>
93
55
  </template>
94
56
 
95
57
  <script>
96
- import co from 'co'
97
- import Vue from 'vue'
98
- import LocalPathList from './LocalPathList'
99
- import { PagedList } from 'vue-client'
58
+ import $ from "jquery";
100
59
 
101
60
  export default {
102
61
  title:'抄表用户信息',
103
62
  data () {
104
63
  return {
105
64
  model:[],
65
+ isSend:false,
106
66
  context: '',
107
67
  enableButton:false,
108
68
  // 测试用数组
109
69
  result: [{"f_check_item_id":"441e7ecc05bd418494011c1524437a70","f_checker_id":"18518","row":{"f_devices":[{"f_device_type":"热水器","f_items":[{"f_item_value":"正常","f_is_defect":"","f_item_name":"热水器烟道","f_path":"","id":"0dac97b7715c4177a656b00d1995da24","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""},{"f_item_value":"","f_is_defect":"","f_item_name":"热水器品牌","f_path":"","id":"b00231992fac40aa9a8e7d33b9eefbb7","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"string"},{"f_item_value":"卫生间","f_is_defect":"","f_item_name":"安装位置","f_path":"","id":"f5c5ea59791a4bb5b76a58272e776b56","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""},{"f_item_value":"正常","f_is_defect":"","f_item_name":"工作状态","f_path":"","id":"fabaf277bb9c4858948db63b7c55a365","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""}]},{"f_device_type":"燃气表","f_items":[{"f_item_value":null,"f_is_defect":"","f_item_name":"表号","f_path":"","id":"56cb352415de406783c304ca25ed9be7","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":null,"f_is_defect":"","f_item_name":"表封号","f_path":"","id":"6bc8d49e473b43cb92a8bfc15c5a57bf","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":"0","f_is_defect":"","f_item_name":"累计购气量","f_path":"","id":"a213f5f4092c4d5a96f0d856a13fd0af","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":"安然中海油","f_is_defect":"","f_item_name":"表品牌","f_path":"","id":"acc505d987304d689a9801b199527cf8","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"string"},{"f_item_value":"G2.5","f_is_defect":"","f_item_name":"表型号","f_path":"","id":"ceb6c96ca39e4fcf89b26bfc6fa42a45","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"selector","selected":""},{"f_item_value":"厨房","f_is_defect":"","f_item_name":"位置","f_path":"","id":"dffeb7d1d4dc4a989a5d333f092416bf","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"selector","selected":""}]}],"device0":[{"f_device_type":"热水器","f_items":[{"f_item_value":"正常","f_is_defect":"","f_item_name":"热水器烟道","f_path":"","id":"0dac97b7715c4177a656b00d1995da24","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""},{"f_item_value":"","f_is_defect":"","f_item_name":"热水器品牌","f_path":"","id":"b00231992fac40aa9a8e7d33b9eefbb7","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"string"},{"f_item_value":"卫生间","f_is_defect":"","f_item_name":"安装位置","f_path":"","id":"f5c5ea59791a4bb5b76a58272e776b56","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""},{"f_item_value":"正常","f_is_defect":"","f_item_name":"工作状态","f_path":"","id":"fabaf277bb9c4858948db63b7c55a365","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""}]}],"device1":[],"device2":[],"device3":[],"device4":[],"device5":[{"f_device_type":"燃气表","f_items":[{"f_item_value":null,"f_is_defect":"","f_item_name":"表号","f_path":"","id":"56cb352415de406783c304ca25ed9be7","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":null,"f_is_defect":"","f_item_name":"表封号","f_path":"","id":"6bc8d49e473b43cb92a8bfc15c5a57bf","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":"0","f_is_defect":"","f_item_name":"累计购气量","f_path":"","id":"a213f5f4092c4d5a96f0d856a13fd0af","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":"安然中海油","f_is_defect":"","f_item_name":"表品牌","f_path":"","id":"acc505d987304d689a9801b199527cf8","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"string"},{"f_item_value":"G2.5","f_is_defect":"","f_item_name":"表型号","f_path":"","id":"ceb6c96ca39e4fcf89b26bfc6fa42a45","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"selector","selected":""},{"f_item_value":"厨房","f_is_defect":"","f_item_name":"位置","f_path":"","id":"dffeb7d1d4dc4a989a5d333f092416bf","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"selector","selected":""}]}],"f_approved_time":null,"f_street":null,"f_client_evaluation":null,"f_defect_urgency":null,"f_repair_approved_time":null,"f_notified_path":null,"f_longitude":null,"f_cutoff_gas":null,"f_approved_by":null,"f_check_item_id":"441e7ecc05bd418494011c1524437a70","f_card_id":null,"f_pic3_path":null,"f_recording1_path":null,"f_remark":null,"f_building":"2号楼","f_room_style":"多层","f_client_suggestion":null,"f_close_valve_path":null,"f_state":"未检","f_defect_registered":null,"f_repaired_uploaded":null,"id":"15eb6a232bd4495485b2a6352a83045d","f_heating_style_":null,"f_heating_style":"热力公司集中供暖","f_complete":null,"f_recording2_path":null,"f_overall_path":null,"f_defect_expand":null,"f_zero_meter":null,"f_defect_notified":null,"f_recording3_path":null,"f_pic1_path":null,"f_SafeToRepair_id":null,"f_residential_area":null,"f_overall2_path":null,"f_cutoff_gas_path":null,"f_usegas":null,"f_stop_service":null,"f_user_phone":"","f_nongasuser_path":"file:///android_asset/nopic.png","f_approved":"未审核","f_unit":"2单元","f_signname":null,"f_sign_imgid":null,"f_no_gas_device":false,"f_check_plan_id":"7b892a031f2f40e99e944e8969d7329c","f_checker_id":"18518","f_prearranged_date":null,"f_noncivil_style":null,"f_check_type":"民用","f_defect_dorm":null,"f_defect_other":null,"f_amr_path":null,"f_orgstr":"1531.1535.18506.18518.","f_close_valve":false,"f_repaired":null,"f_repair_date":null,"f_approved_note":null,"f_orgid":"1531.1535.","f_empty_pipe":null,"f_floor":"1层","f_entry_status":"入户","f_close_adjuster":null,"f_repair_approved_note":null,"f_onsite_time":"2019-04-13 15:18:29","f_repair_approved":"未审核","f_stop_devices":null,"f_ratification_des":null,"f_no_checkplan":"有计划安检","f_repair_approved_by":null,"f_room":"20101号","f_address":"77高新区-怕踢街道-zqxiaoqu2号楼号楼2单元单元1层层20101号室","f_sign_path":null,"f_userinfoid":"548","f_offsite_time":"2019-04-13 15:18:34","f_defect_notfixed":null,"f_subcompany":"中海油.海南分公司","f_notfixed_path":null,"f_close_adjuster_path":null,"f_pic2_path":null,"f_noanswer_path":"file:///android_asset/nopic.png","f_unload_battery":false,"f_latitude":null,"f_usage":null,"f_repairman":null,"f_plan_id":null,"f_user_name":"111","f_checker_name":"测试1","style__":"","style_view_":"","f_entry_class":"success"}}
110
- // {"f_check_item_id":"1d93ee9383c2409f8b16b96c3abdb567","f_checker_id":"18518","row":{"f_devices":[{"f_device_type":"热水器","f_items":[{"f_item_value":"正常","f_is_defect":"","f_item_name":"热水器烟道","f_path":"","id":"0dac97b7715c4177a656b00d1995da24","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""},{"f_item_value":"","f_is_defect":"","f_item_name":"热水器品牌","f_path":"","id":"b00231992fac40aa9a8e7d33b9eefbb7","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"string"},{"f_item_value":"卫生间","f_is_defect":"","f_item_name":"安装位置","f_path":"","id":"f5c5ea59791a4bb5b76a58272e776b56","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""},{"f_item_value":"正常","f_is_defect":"","f_item_name":"工作状态","f_path":"","id":"fabaf277bb9c4858948db63b7c55a365","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""}]},{"f_device_type":"燃气表","f_items":[{"f_item_value":null,"f_is_defect":"","f_item_name":"表号","f_path":"","id":"56cb352415de406783c304ca25ed9be7","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":null,"f_is_defect":"","f_item_name":"表封号","f_path":"","id":"6bc8d49e473b43cb92a8bfc15c5a57bf","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":"0","f_is_defect":"","f_item_name":"累计购气量","f_path":"","id":"a213f5f4092c4d5a96f0d856a13fd0af","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":"安然中海油","f_is_defect":"","f_item_name":"表品牌","f_path":"","id":"acc505d987304d689a9801b199527cf8","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"string"},{"f_item_value":"G2.5","f_is_defect":"","f_item_name":"表型号","f_path":"","id":"ceb6c96ca39e4fcf89b26bfc6fa42a45","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"selector","selected":""},{"f_item_value":"厨房","f_is_defect":"","f_item_name":"位置","f_path":"","id":"dffeb7d1d4dc4a989a5d333f092416bf","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"selector","selected":""}]}],"device0":[{"f_device_type":"热水器","f_items":[{"f_item_value":"正常","f_is_defect":"","f_item_name":"热水器烟道","f_path":"","id":"0dac97b7715c4177a656b00d1995da24","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""},{"f_item_value":"","f_is_defect":"","f_item_name":"热水器品牌","f_path":"","id":"b00231992fac40aa9a8e7d33b9eefbb7","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"string"},{"f_item_value":"卫生间","f_is_defect":"","f_item_name":"安装位置","f_path":"","id":"f5c5ea59791a4bb5b76a58272e776b56","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""},{"f_item_value":"正常","f_is_defect":"","f_item_name":"工作状态","f_path":"","id":"fabaf277bb9c4858948db63b7c55a365","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""}]}],"device1":[],"device2":[],"device3":[],"device4":[],"device5":[{"f_device_type":"燃气表","f_items":[{"f_item_value":null,"f_is_defect":"","f_item_name":"表号","f_path":"","id":"56cb352415de406783c304ca25ed9be7","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":null,"f_is_defect":"","f_item_name":"表封号","f_path":"","id":"6bc8d49e473b43cb92a8bfc15c5a57bf","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":"0","f_is_defect":"","f_item_name":"累计购气量","f_path":"","id":"a213f5f4092c4d5a96f0d856a13fd0af","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":"安然中海油","f_is_defect":"","f_item_name":"表品牌","f_path":"","id":"acc505d987304d689a9801b199527cf8","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"string"},{"f_item_value":"G2.5","f_is_defect":"","f_item_name":"表型号","f_path":"","id":"ceb6c96ca39e4fcf89b26bfc6fa42a45","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"selector","selected":""},{"f_item_value":"厨房","f_is_defect":"","f_item_name":"位置","f_path":"","id":"dffeb7d1d4dc4a989a5d333f092416bf","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"selector","selected":""}]}],"f_approved_time":null,"f_street":null,"f_client_evaluation":null,"f_defect_urgency":null,"f_repair_approved_time":null,"f_notified_path":null,"f_longitude":null,"f_cutoff_gas":null,"f_approved_by":null,"f_check_item_id":"441e7ecc05bd418494011c1524437a70","f_card_id":null,"f_pic3_path":null,"f_recording1_path":null,"f_remark":null,"f_building":"2号楼","f_room_style":"多层","f_client_suggestion":null,"f_close_valve_path":null,"f_state":"未检","f_defect_registered":null,"f_repaired_uploaded":null,"id":"15eb6a232bd4495485b2a6352a83045d","f_heating_style_":null,"f_heating_style":"热力公司集中供暖","f_complete":null,"f_recording2_path":null,"f_overall_path":null,"f_defect_expand":null,"f_zero_meter":null,"f_defect_notified":null,"f_recording3_path":null,"f_pic1_path":null,"f_SafeToRepair_id":null,"f_residential_area":null,"f_overall2_path":null,"f_cutoff_gas_path":null,"f_usegas":null,"f_stop_service":null,"f_user_phone":"","f_nongasuser_path":"file:///android_asset/nopic.png","f_approved":"未审核","f_unit":"2单元","f_signname":null,"f_sign_imgid":null,"f_no_gas_device":false,"f_check_plan_id":"7b892a031f2f40e99e944e8969d7329c","f_checker_id":"18518","f_prearranged_date":null,"f_noncivil_style":null,"f_check_type":"民用","f_defect_dorm":null,"f_defect_other":null,"f_amr_path":null,"f_orgstr":"1531.1535.18506.18518.","f_close_valve":false,"f_repaired":null,"f_repair_date":null,"f_approved_note":null,"f_orgid":"1531.1535.","f_empty_pipe":null,"f_floor":"1层","f_entry_status":"入户","f_close_adjuster":null,"f_repair_approved_note":null,"f_onsite_time":"2019-04-13 15:18:29","f_repair_approved":"未审核","f_stop_devices":null,"f_ratification_des":null,"f_no_checkplan":"有计划安检","f_repair_approved_by":null,"f_room":"20101号","f_address":"77高新区-怕踢街道-zqxiaoqu2号楼号楼2单元单元1层层20101号室","f_sign_path":null,"f_userinfoid":"548","f_offsite_time":"2019-04-13 15:18:34","f_defect_notfixed":null,"f_subcompany":"中海油.海南分公司","f_notfixed_path":null,"f_close_adjuster_path":null,"f_pic2_path":null,"f_noanswer_path":"file:///android_asset/nopic.png","f_unload_battery":false,"f_latitude":null,"f_usage":null,"f_repairman":null,"f_plan_id":null,"f_user_name":"111","f_checker_name":"测试1","style__":"","style_view_":"","f_entry_class":"success"}}
111
70
  ]
112
71
  // 获取用户信息数组
113
- // resultdata:[{"f_check_item_id":"441e7ecc05bd418494011c1524437a70","f_checker_id":"18518","row":{"f_devices":[{"f_device_type":"热水器","f_items":[{"f_item_value":"正常","f_is_defect":"","f_item_name":"热水器烟道","f_path":"","id":"0dac97b7715c4177a656b00d1995da24","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""},{"f_item_value":"","f_is_defect":"","f_item_name":"热水器品牌","f_path":"","id":"b00231992fac40aa9a8e7d33b9eefbb7","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"string"},{"f_item_value":"卫生间","f_is_defect":"","f_item_name":"安装位置","f_path":"","id":"f5c5ea59791a4bb5b76a58272e776b56","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""},{"f_item_value":"正常","f_is_defect":"","f_item_name":"工作状态","f_path":"","id":"fabaf277bb9c4858948db63b7c55a365","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""}]},{"f_device_type":"燃气表","f_items":[{"f_item_value":null,"f_is_defect":"","f_item_name":"表号","f_path":"","id":"56cb352415de406783c304ca25ed9be7","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":null,"f_is_defect":"","f_item_name":"表封号","f_path":"","id":"6bc8d49e473b43cb92a8bfc15c5a57bf","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":"0","f_is_defect":"","f_item_name":"累计购气量","f_path":"","id":"a213f5f4092c4d5a96f0d856a13fd0af","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":"安然中海油","f_is_defect":"","f_item_name":"表品牌","f_path":"","id":"acc505d987304d689a9801b199527cf8","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"string"},{"f_item_value":"G2.5","f_is_defect":"","f_item_name":"表型号","f_path":"","id":"ceb6c96ca39e4fcf89b26bfc6fa42a45","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"selector","selected":""},{"f_item_value":"厨房","f_is_defect":"","f_item_name":"位置","f_path":"","id":"dffeb7d1d4dc4a989a5d333f092416bf","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"selector","selected":""}]}],"device0":[{"f_device_type":"热水器","f_items":[{"f_item_value":"正常","f_is_defect":"","f_item_name":"热水器烟道","f_path":"","id":"0dac97b7715c4177a656b00d1995da24","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""},{"f_item_value":"","f_is_defect":"","f_item_name":"热水器品牌","f_path":"","id":"b00231992fac40aa9a8e7d33b9eefbb7","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"string"},{"f_item_value":"卫生间","f_is_defect":"","f_item_name":"安装位置","f_path":"","id":"f5c5ea59791a4bb5b76a58272e776b56","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""},{"f_item_value":"正常","f_is_defect":"","f_item_name":"工作状态","f_path":"","id":"fabaf277bb9c4858948db63b7c55a365","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""}]}],"device1":[],"device2":[],"device3":[],"device4":[],"device5":[{"f_device_type":"燃气表","f_items":[{"f_item_value":null,"f_is_defect":"","f_item_name":"表号","f_path":"","id":"56cb352415de406783c304ca25ed9be7","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":null,"f_is_defect":"","f_item_name":"表封号","f_path":"","id":"6bc8d49e473b43cb92a8bfc15c5a57bf","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":"0","f_is_defect":"","f_item_name":"累计购气量","f_path":"","id":"a213f5f4092c4d5a96f0d856a13fd0af","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":"安然中海油","f_is_defect":"","f_item_name":"表品牌","f_path":"","id":"acc505d987304d689a9801b199527cf8","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"string"},{"f_item_value":"G2.5","f_is_defect":"","f_item_name":"表型号","f_path":"","id":"ceb6c96ca39e4fcf89b26bfc6fa42a45","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"selector","selected":""},{"f_item_value":"厨房","f_is_defect":"","f_item_name":"位置","f_path":"","id":"dffeb7d1d4dc4a989a5d333f092416bf","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"selector","selected":""}]}],"f_approved_time":null,"f_street":null,"f_client_evaluation":null,"f_defect_urgency":null,"f_repair_approved_time":null,"f_notified_path":null,"f_longitude":null,"f_cutoff_gas":null,"f_approved_by":null,"f_check_item_id":"441e7ecc05bd418494011c1524437a70","f_card_id":null,"f_pic3_path":null,"f_recording1_path":null,"f_remark":null,"f_building":"2号楼","f_room_style":"多层","f_client_suggestion":null,"f_close_valve_path":null,"f_state":"未检","f_defect_registered":null,"f_repaired_uploaded":null,"id":"15eb6a232bd4495485b2a6352a83045d","f_heating_style_":null,"f_heating_style":"热力公司集中供暖","f_complete":null,"f_recording2_path":null,"f_overall_path":null,"f_defect_expand":null,"f_zero_meter":null,"f_defect_notified":null,"f_recording3_path":null,"f_pic1_path":null,"f_SafeToRepair_id":null,"f_residential_area":null,"f_overall2_path":null,"f_cutoff_gas_path":null,"f_usegas":null,"f_stop_service":null,"f_user_phone":"","f_nongasuser_path":"file:///android_asset/nopic.png","f_approved":"未审核","f_unit":"2单元","f_signname":null,"f_sign_imgid":null,"f_no_gas_device":false,"f_check_plan_id":"7b892a031f2f40e99e944e8969d7329c","f_checker_id":"18518","f_prearranged_date":null,"f_noncivil_style":null,"f_check_type":"民用","f_defect_dorm":null,"f_defect_other":null,"f_amr_path":null,"f_orgstr":"1531.1535.18506.18518.","f_close_valve":false,"f_repaired":null,"f_repair_date":null,"f_approved_note":null,"f_orgid":"1531.1535.","f_empty_pipe":null,"f_floor":"1层","f_entry_status":"入户","f_close_adjuster":null,"f_repair_approved_note":null,"f_onsite_time":"2019-04-13 15:18:29","f_repair_approved":"未审核","f_stop_devices":null,"f_ratification_des":null,"f_no_checkplan":"有计划安检","f_repair_approved_by":null,"f_room":"20101号","f_address":"77高新区-怕踢街道-zqxiaoqu2号楼号楼2单元单元1层层20101号室","f_sign_path":null,"f_userinfoid":"548","f_offsite_time":"2019-04-13 15:18:34","f_defect_notfixed":null,"f_subcompany":"中海油.海南分公司","f_notfixed_path":null,"f_close_adjuster_path":null,"f_pic2_path":null,"f_noanswer_path":"file:///android_asset/nopic.png","f_unload_battery":false,"f_latitude":null,"f_usage":null,"f_repairman":null,"f_plan_id":null,"f_user_name":"111","f_checker_name":"测试1","style__":"","style_view_":"","f_entry_class":"success"}}]
114
72
  }
115
73
  },
116
74
  methods: {
@@ -121,7 +79,6 @@ export default {
121
79
  this.enableButton=true
122
80
  if (row.f_upload_state == '未传' || (row.f_upload_state == '已传' && row.f_state == '未检')) {
123
81
  this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`, {data: {f_userid: row.f_userinfoid}},{resolveMsg: null,rejectMsg: null}).then((response) => {
124
- //tag)
125
82
  row['f_plan_meters'] = response.data
126
83
  let pardate = {
127
84
  _this:this,
@@ -131,15 +88,8 @@ export default {
131
88
  this.$dispatch('gotoson',pardate)
132
89
  this.enableButton=false
133
90
  this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',buttonState:false}, 'self', this.refresh)
134
- /*if (row.f_user_type == '民用') {
135
- this.$goto('paper-set', {f_plan_id: row.f_plan_id, item: row, role: 'inspect'}, 'self', this.refresh)
136
- } else {
137
- this.$goto('paper-set-noncivil', {f_plan_id: row.f_plan_id, item: row, role: 'inspect'}, 'self', this.refresh)
138
- }*/
139
91
  }).catch((msg)=>{
140
- //this.$showMessage("网络故障,请稍候再试!")
141
92
  this.enableButton=false
142
- //网络异常调用本地数据
143
93
  let criteria = {
144
94
  items: '*',
145
95
  tablename: 't_plan_item_meter',
@@ -147,9 +97,7 @@ export default {
147
97
  groupitem: 'f_plan_item_id'
148
98
  }
149
99
  let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
150
- //tag)
151
100
  if(result.code == 200){
152
- //tag)
153
101
  row['f_plan_meters'] = result.data.rows
154
102
  let pardate = {
155
103
  _this:this,
@@ -166,121 +114,63 @@ export default {
166
114
  this.enableButton=false
167
115
  }
168
116
  },
169
- // 上传所有未成功上传的数据
170
117
  async uploadAll() {
171
- //tag
172
- //tag
173
- // if(this.model.rows.length <= 0){
174
- // this.model.rows = this.result
175
- // }
176
- //安卓
177
118
  if(this.model.length>0){
178
-
179
-
180
119
  let param = {
181
120
  rows:this.model
182
121
  }
183
122
  let paramStr = JSON.stringify(param)
184
- // 多长截断一次
185
123
  let subLength = 800
186
124
  for (let i = 0; i < paramStr.length; i += subLength) {
187
125
  HostApp.param_cache(paramStr.substr(i, subLength))
188
126
  }
189
127
  HostApp.__this__ = this
190
128
  HostApp.syncLogic({
191
- // logic别名,key必须为logic
192
129
  'logic': 'UploadAll',
193
- // 回调执行方法名,key必须为callback
194
130
  'callback': 'javascript:HostApp.__this__.uploadCallBack()',
195
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
196
- // 执行回调方法传入key为backresult
197
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
198
131
  'backresult': 1
199
132
  })
200
- // if(this.resultdata.length>0){
201
- // let ret = this.$androidUtil.bzLogic('UploadAll', {data: this.resultdata})
202
- // let ret = this.$androidUtil.bzLogic('UploadAll', {rows:this.model})
203
- // HostApp.__this__ = this
204
- // HostApp.logicWithHint({
205
- // // logic别名,key必须为logic
206
- // 'logic': 'UploadAll',
207
- // // 回调执行方法名,key必须为callback
208
- // 'callback': 'javascript:HostApp.__this__.uploadCallBack()',
209
- // // logic执行需要的业务参数
210
- // 'data': {rows:this.model},
211
- // // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
212
- // // 执行回调方法传入key为backresult
213
- // // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
214
- // 'backresult': 1
215
- // })
216
133
  }else{
217
134
  this.$showMessage('暂无可上传数据')
135
+ this.isSend = false
218
136
  return false
219
137
  }
220
138
  },
221
139
  upload(){
140
+ this.saveNoclick()
141
+ this.isSend = true
222
142
  this.uploadAll().then((res)=>{
223
- //tag)
224
143
  this.refresh()
225
144
  })
226
-
145
+ },
146
+ saveNoclick() {
147
+ $("#savebut").addClass("noclickbut");
148
+ setTimeout(function(){
149
+ $("#savebut").removeClass("noclickbut");
150
+ },5000);
227
151
  },
228
152
  uploadCallBack(jo){
229
- //tag)
230
- //tag)
153
+ this.isSend = false
231
154
  if(jo.state == 'ok'){
232
155
  let ret = JSON.parse(jo.result)
233
- //tag)
234
156
  if(ret.state == 0){
235
157
  HostApp.alert(`${ret.successcount}条安检单上传成功,${ret.invalidcount}条安检单已作废,${ret.nocheckcount}条安检单由于网络异常上传失败!,${ret.nocheckcount}条安检单由于pc端计划被调整上传失败!,${ret.imgcount}条安检单由于图片上传失败!`)
236
158
  this.refresh()
237
159
  return true
238
160
  }
239
161
  }
240
-
241
162
  },
242
- // 查询所有未上传斌保存在手机上的数据
243
- // download() {
244
- // //tag
245
- // let res = this.$androidUtil.bzLogic('getCheckPlanInfo',{condition:this.condition})
246
- // //tag
247
- // //tag
248
- //
249
- // if (res.data && res.data.code === 200) {
250
- // //tag
251
- // if (res.data.data.length > 0) {
252
- // this.context = `有${res.data.data.length}条数据未上传,请点击上传按钮,自动上传`
253
- // this.resultdata = [...res.data.data]
254
- // } else {
255
- // // this.resultdata = []
256
- // this.context = '没有未上传数据'
257
- // }
258
- // }
259
- // },
260
163
  refresh() {
261
- //tag
262
- // hard code relationship
263
- //安卓
264
164
  let value = this.$androidUtil.path({alias: 'getCheckPlan', data:{}})
265
165
  if(value.data.length > 0){
266
166
  this.model = value.data
267
167
  }else{
268
168
  this.model = []
269
169
  }
270
- // //PC模拟安卓
271
- // this.$androidUtil.path({alias: 'getCheckPlan', data:{}}).then((value)=>{
272
- // //tag
273
- // if(value.data.length > 0){
274
- // this.model = value.data
275
- // }
276
- // })
277
-
278
170
  },
279
171
  },
280
172
 
281
173
  ready () {
282
- //组件初始化时获取本地未上传用户信息
283
- // this.download()
284
174
  this.refresh()
285
175
  }
286
176
  }
@@ -347,6 +347,9 @@
347
347
  <th v-if="$parent.$parent.$parent.safeAudit">
348
348
  <nobr>审核状态</nobr>
349
349
  </th>
350
+ <th v-if="$parent.$parent.$parent.safeAudit">
351
+ <nobr>审核未通过原因</nobr>
352
+ </th>
350
353
  <th>
351
354
  <nobr>操作</nobr>
352
355
  </th>
@@ -378,6 +381,9 @@
378
381
  <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">
379
382
  {{ row.f_approved ? row.f_approved : '未审核' }}
380
383
  </td>
384
+ <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">
385
+ {{row.f_approved_note}}
386
+ </td>
381
387
  <td style="text-align: center">
382
388
  <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
383
389
 
@@ -496,7 +502,7 @@ export default {
496
502
  'f_safecheck_type':'安检类型',
497
503
  'f_repair_approved_note': '备注',
498
504
  'f_gas_date': '开户时间',
499
- 'f_plan_name': '计划名称',
505
+ 'f_plan_name': '计划名称'
500
506
  },
501
507
  fun: this.$login.f,
502
508
  pcds:[],
@@ -731,7 +737,8 @@ export default {
731
737
  'f_approved_by':'审核人',
732
738
  'f_approvedstart_time':'审核开始时间',
733
739
  'f_approved_time':'审核结束时间',
734
- 'f_approved':'审核状态'
740
+ 'f_approved':'审核状态',
741
+ 'f_approved_note': '审核备注'
735
742
  }
736
743
  this.excelHeaders = Object.assign({}, this.excelHeaders, oa)
737
744
  }
@@ -76,16 +76,18 @@
76
76
  import co from 'co'
77
77
  import { HttpResetClass } from 'vue-client'
78
78
 
79
- let select = function * (self) {
79
+ let selectnew = function * (self) {
80
80
  let http = new HttpResetClass()
81
81
  http.load('POST', '/rs/search', {
82
- source: 'tool.getChildrenOfResName($安检员$)',
83
- userid: self.$login.f.id
82
+ source: `root.getResourceById($${self.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
83
+ userid: self.$login.f.id
84
84
  }, {resolveMsg: null, rejectMsg: null}).then((res) => {
85
85
  self.checkers = []
86
+ let arr = []
86
87
  //tag
87
88
  res.data.forEach((resRow) => {
88
- if(resRow.orgid == self.$login.f.orgid && resRow.state == '在职'){
89
+ if(!arr.includes(resRow.name) && resRow.state == '在职'){
90
+ arr.push(resRow.name)
89
91
  self.checkers.push({label:resRow.name,value:resRow.id})
90
92
  }
91
93
  })
@@ -109,7 +111,7 @@
109
111
  {f_subcompany:'this.f_subcompany',f_plan_name:'this.f_plan_name',f_checker_id: 'this.f_checker_id', f_plan_year: 'this.f_plan_year', f_plan_month: 'this.f_plan_month', f_is_share: 'this.f_is_share',f_filialeid:'this.f_filialeid'})
110
112
  model.f_checker_id = ''
111
113
  model.f_plan_name=''
112
- model.f_filialeid = this.f.orgid
114
+ model.f_filialeid = this.$login.f.orgid
113
115
  return {
114
116
  checker:'',
115
117
  checkers:[],
@@ -130,7 +132,7 @@
130
132
  //tag
131
133
  //tag
132
134
  this.model.f_plan_name=''
133
- let gen = select(this)
135
+ let gen = selectnew(this)
134
136
  return co(gen)
135
137
  },
136
138
  watch: {
@@ -0,0 +1,126 @@
1
+ <template>
2
+ <div>
3
+ <button @click="handleClick">渲染</button>
4
+ <button @click="savePaper">保存</button>
5
+ <iframe v-if="showSketchPage" :src="sketchPageSrc" id="aaaa2" style="width: 100%; height: 600px;"></iframe>
6
+ </div>
7
+ </template>
8
+
9
+ <script>
10
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
11
+ import * as util from "../Util"
12
+
13
+ export default {
14
+ title: 'App',
15
+ data() {
16
+ return {
17
+ inputText: '',
18
+ showSketchPage: false,
19
+ sketchPageSrc: '/sketch',
20
+ sketchId: '',
21
+ title: '',
22
+ paperMessage: ''
23
+ };
24
+ },
25
+ props: {
26
+ row: {
27
+ type: Object
28
+ }
29
+ },
30
+ ready() {
31
+ if (this.row) {
32
+ try {
33
+ let hex = Buffer.from(this.row.blob, 'hex').toString('utf8');
34
+ if (!hex.includes('{')) {
35
+ this.inputText = Buffer.from(hex, 'hex').toString('utf8');
36
+ } else {
37
+ this.inputText = hex;
38
+ }
39
+ } catch (e) {
40
+ this.$showMessage('网络异常请联系管理员')
41
+ }
42
+ }
43
+ this.handleClick()
44
+ },
45
+ methods: {
46
+ handleClick() {
47
+ this.showSketchPage = true;
48
+ this.$nextTick(() => {
49
+ const sketchIframe = document.getElementById('aaaa2');
50
+
51
+ window.addEventListener('message', (event) => {
52
+ if (JSON.parse(event.data.param).gadgets.length > 0) {
53
+ this.paperMessage = event.data.param;
54
+ }
55
+ });
56
+
57
+ sketchIframe.contentWindow.postMessage(this.inputText, '*');
58
+ })
59
+ },
60
+ savePaper() {
61
+ if (!this.paperMessage) {
62
+ this.$showMessage('请先点击左上角保存图标')
63
+ return
64
+ }
65
+ let param = JSON.parse(this.paperMessage)
66
+ if (!param.title) {
67
+ this.$showMessage('请填写示意图标题')
68
+ return
69
+ }
70
+ param.sketchId = param.sketchId ? param.sketchId : util.generateUUID()
71
+ let gadgets = param.gadgets
72
+ if (gadgets.length > 0) {
73
+ var jsonString = JSON.stringify(param);
74
+ var reqdata = {
75
+ blob: Buffer.from(jsonString,'utf8').toString('hex'),
76
+ orgid: this.$login.f.orgid,
77
+ orgname: this.$login.f.orgs,
78
+ title: param.title,
79
+ sketchId: param.sketchId
80
+ }
81
+ new HttpResetClass().load('POST', 'rs/logic/savePaperEdit', {data: reqdata}).then(res => {
82
+ if (res.data.code === 200) {
83
+ this.$showMessage('保存成功')
84
+ } else {
85
+ this.$showMessage('保存失败')
86
+ }
87
+ })
88
+ }
89
+ },
90
+ hexToBytes(hex) {
91
+ for (var bytes = [], c = 0; c < hex.length; c += 2)
92
+ bytes.push(parseInt(hex.substring(c, 2), 16));
93
+ return new Uint8Array(bytes);
94
+ },
95
+ decodeHexStringToJSON(hexString) {
96
+ // 去除前缀 "0x"
97
+ var cleanHexString = hexString.slice(2);
98
+
99
+ // 将十六进制字符串转换为字节数组
100
+ var byteArray = this.hexToBytes(cleanHexString);
101
+
102
+ // 创建 Blob 对象
103
+ var blob = new Blob([byteArray], {type: 'application/json'});
104
+
105
+ // 读取 Blob 为文本
106
+ return new Promise(function(resolve, reject) {
107
+ var reader = new FileReader();
108
+ reader.onloadend = function() {
109
+ resolve(reader.result);
110
+ };
111
+ reader.onerror = function() {
112
+ reject(reader.error);
113
+ };
114
+ reader.readAsText(blob, 'UTF-8');
115
+ });
116
+ }
117
+ },
118
+ // beforeDestroy() {
119
+ // this.savePaper()
120
+ // }
121
+ }
122
+ </script>
123
+
124
+ <style>
125
+ /* 这里可以添加样式 */
126
+ </style>