safecheck-client 4.0.2-7 → 4.0.2-71

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 (78) hide show
  1. package/build/reports/problems/problems-report.html +663 -0
  2. package/package.json +132 -132
  3. package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1184
  4. package/src/components/android/AndroidNotifiedDeal.vue +417 -0
  5. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  6. package/src/components/android/SafeRightTree.vue +218 -218
  7. package/src/components/android/SafecheckDevices.vue +1340 -1340
  8. package/src/components/android/week/CheckResultSimple.vue +258 -0
  9. package/src/components/android/week/FirstWeekCheck.vue +301 -0
  10. package/src/components/android/week/StepHeaderBar.vue +485 -0
  11. package/src/components/android/week/WeekCheck.vue +267 -0
  12. package/src/components/android/week/WeekCheckPaper.vue +274 -0
  13. package/src/components/android/week/WeekCheckPlan.vue +145 -0
  14. package/src/components/android/week/WeekCheckUserInfo.vue +99 -0
  15. package/src/components/checkplan/CheckDetail.vue +1 -1
  16. package/src/components/checkplan/SelectCheckPlan.vue +39 -0
  17. package/src/components/paper/safetyledger.vue +198 -0
  18. package/src/components/pc/CheckBook.vue +303 -303
  19. package/src/components/pc/CheckBookArea.vue +146 -146
  20. package/src/components/pc/CheckBookCompany.vue +144 -144
  21. package/src/components/pc/CheckBookDetails.vue +161 -161
  22. package/src/components/pc/CheckBookEntry.vue +60 -60
  23. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  24. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  25. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  26. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  27. package/src/components/pc/DefectDeal.vue +22 -7
  28. package/src/components/pc/PaperDefectMain.vue +22 -0
  29. package/src/components/planmanage/checkUserList.vue +1 -1
  30. package/src/components/querycheckpaper/CheckSearchUser.vue +2 -1
  31. package/src/components/report/CheckPlanAreaList.vue +53 -7
  32. package/src/components/report/CheckPlanUserList.vue +12 -2
  33. package/src/filiale/jinhong/android/AddPlanItem.vue +481 -0
  34. package/src/filiale/jinhong/android/AndroidDefectDeal.vue +748 -0
  35. package/src/filiale/jinhong/android/AndroidNotifiedDeal.vue +569 -0
  36. package/src/filiale/jinhong/android/CurrentCreate.vue +63 -21
  37. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +28 -3
  38. package/src/filiale/jinhong/android/SafecheckOrderV.vue +2300 -0
  39. package/src/filiale/jinhong/android.js +5 -1
  40. package/src/filiale/jinhong/pc/CheckBookList.vue +28 -18
  41. package/src/filiale/jinhong/pc/CheckSearchUser.vue +45 -2
  42. package/src/filiale/jinhong/pc/NewCheckpaper.vue +1958 -0
  43. package/src/filiale/jinhong/pc/PaperList.vue +8 -1
  44. package/src/filiale/jinhong/pc/PlanManage.vue +9 -3
  45. package/src/filiale/jinhong/pc/checkPlanList.vue +73 -24
  46. package/src/filiale/jinhong/pc/checkUserList.vue +36 -0
  47. package/src/filiale/jinhong/pc.js +1 -0
  48. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  49. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  50. package/src/filiale/meihekou/android/CurrentCreate.vue +16 -0
  51. package/src/filiale/meihekou/android/PaperFeedback.vue +1545 -1542
  52. package/src/filiale/meihekou/android/SafecheckDevices.vue +1343 -1340
  53. package/src/filiale/meihekou/android/SafecheckOrderV.vue +70 -54
  54. package/src/filiale/meihekou/android.js +22 -22
  55. package/src/filiale/meihekou/pc/CheckDetail.vue +217 -0
  56. package/src/filiale/meihekou/pc/CheckPlan.vue +52 -0
  57. package/src/filiale/meihekou/pc/CheckPlanAreaList.vue +505 -0
  58. package/src/filiale/meihekou/pc/NewCheckpaper.vue +249 -280
  59. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2051 -2050
  60. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1 -0
  61. package/src/filiale/meihekou/pc/PaperList.vue +9 -23
  62. package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -0
  63. package/src/filiale/meihekou/pc/checkUserList.vue +790 -0
  64. package/src/filiale/meihekou/pc.js +19 -15
  65. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +2 -2
  66. package/src/filiale/taiyuan/android/AddPlanItem.vue +1 -0
  67. package/src/filiale/taiyuan/android/SafecheckDevices.vue +1343 -0
  68. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +17 -17
  69. package/src/filiale/taiyuan/android.js +1 -0
  70. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +22 -0
  71. package/src/filiale/xinkang/android/SafecheckDevices.vue +2 -2
  72. package/src/filiale/xinkang/android/SafecheckOrderV.vue +9 -2
  73. package/src/filiale/xinkang/pc/NewCheckpaper.vue +17 -46
  74. package/src/filiale/xinliansihui/pc/PaperList.vue +814 -0
  75. package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -0
  76. package/src/filiale/xinliansihui/pc.js +13 -0
  77. package/src/safecheck-android.js +12 -0
  78. package/src/safecheck.js +3 -0
@@ -204,7 +204,7 @@
204
204
  <v-select id="f_plan_name" :value.sync="model.f_plan_name" class="input-font"
205
205
  :options='$parent.$parent.planNameOptions' placeholder='计划名称' :width="'60%'" v-model="model.f_plan_name"
206
206
  @change="$parent.$parent.planNameChange"
207
- condition="f_plan_name like '%{}%'" close-on-select clear-button>
207
+ condition="f_plan_name = '{}'" close-on-select clear-button>
208
208
  </v-select>
209
209
  </div>
210
210
 
@@ -271,6 +271,15 @@
271
271
  :options='$parent.$parent.user_types' placeholder='请选择用户类型' v-model="model.f_user_type"
272
272
  condition="f_user_type='{}'" close-on-select clear-button></v-select>
273
273
  </div>
274
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
275
+ <div class="col-xs-4">
276
+ <img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
277
+ <label for="f_civill_name" class="font text-left">单位名称:</label>
278
+ </div>
279
+ <v-select id="f_civill_name" :value.sync="model.f_civill_name" class="input-font" :width="'60%'"
280
+ :options='$parent.$parent.civill_names' placeholder='请选择单位名称' v-model="model.f_civill_name"
281
+ condition="f_civill_name = '{}'" close-on-select clear-button></v-select>
282
+ </div>
274
283
  <div class="row app-row" v-if="$parent.$parent.criteriaShow">
275
284
  <div class="col-xs-6">
276
285
  <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
@@ -442,7 +451,7 @@
442
451
  <div class="col-xs-12">
443
452
  <button type="button" name="button" class="btn btn-primary"
444
453
  style="background-color:#499edf;float: right"
445
- @click="$parent.$parent.$parent.inspect(row)">处理</button>
454
+ @click="$parent.$parent.$parent.inspect(row,$index)">处理</button>
446
455
  <button type="button" name="button" class="btn btn-primary"
447
456
  style="background-color:#499edf;float: right;margin-right:10px;"
448
457
  @click="$parent.$parent.$parent.queryplan(row.id)">转发</button>
@@ -608,11 +617,13 @@ export default {
608
617
  f_filialeids: '(' + Vue.user.orgid + ')',
609
618
  //f_filialeids:'(305)',
610
619
  planparam: [],
620
+ civill_names:[{label:"全部",value:""}],
611
621
  check: '',
612
622
  plan: '',
613
623
  planid: '',
614
624
  model: Vue.android ? new LocalPagedList('androidGetuserinfo', 20, { condition: 'this.condition' }) : new PagedList('AndroidRest/api/af-safecheck/sql/androidGetuserinfo', 20, { condition: 'this.condition' }),
615
625
  showModal: false,
626
+ index:0,
616
627
  showModal2: false,
617
628
  showModal3: false,
618
629
  needid: '',
@@ -667,11 +678,14 @@ export default {
667
678
  notVisited: 0,
668
679
  checked: 0,
669
680
  notChecked: 0,
670
- enterRate: 0
681
+ enterRate: 0,
682
+ ruhunum:0
683
+
671
684
  }
672
685
  },
673
686
  ready() {
674
687
  this.getCheckBook()
688
+ this.getCivillNames()
675
689
  this.getAllArea()
676
690
  this.getAllPlanName()
677
691
  this.selfSearch()
@@ -690,6 +704,21 @@ export default {
690
704
  window.removeEventListener('popstate', this.fun, false);//false阻止默认事件
691
705
  },
692
706
  methods: {
707
+ getCivillNames(){
708
+ let criteria = {
709
+ items: 'f_civill_name',
710
+ tablename: 't_check_plan_item',
711
+ condition: `f_civill_name IS NOT NULL`,
712
+ groupitem: 'f_civill_name'
713
+ }
714
+ let result = HostApp._executeTask({
715
+ 'type': 'sql',
716
+ 'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria }
717
+ })
718
+ if (result.code == 200) {
719
+ result.data.rows.forEach(item => this.civill_names.push({ label: item.f_civill_name, value: item.f_civill_name }))
720
+ }
721
+ },
693
722
  async planNameChange(val){
694
723
  if (val.length > 0 && val[0]){
695
724
  this.checkBooks=[]
@@ -866,7 +895,7 @@ export default {
866
895
  condition += ` and f_checker_id= '${this.check}'`
867
896
  }
868
897
  if (this.plan) {
869
- condition += ` and f_plan_name like '%${this.plan}%'`
898
+ condition += ` and f_plan_name = '${this.plan}'`
870
899
  }
871
900
  let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/预约计划下发`, {
872
901
  data: {
@@ -951,7 +980,8 @@ export default {
951
980
  })
952
981
  }
953
982
  },
954
- inspect(row) {
983
+ inspect(row,index) {
984
+ this.index = index
955
985
  var _this = this
956
986
  try {
957
987
  let http = new HttpResetClass()
@@ -975,7 +1005,7 @@ export default {
975
1005
  }
976
1006
  _this.$dispatch('gotoson', pardate)
977
1007
  //tag
978
- _this.$goto('safecheck-order-v', { f_plan_id: row.f_plan_id, item: row, role: 'inspect', parentPage: 'CurrentCreate' }, 'self', _this.reload)
1008
+ _this.$goto('safecheck-order-v', { f_plan_id: row.f_plan_id, item: row, role: 'inspect', parentPage: 'CurrentCreate' }, 'self', _this.goNext)
979
1009
  }).catch((msg) => {
980
1010
  this.noLineInspect(row)
981
1011
  })
@@ -992,6 +1022,23 @@ export default {
992
1022
  this.noLineInspect(row)
993
1023
  }
994
1024
  },
1025
+ goNext(){
1026
+ if (this.index+1 == this.model.rows.length){
1027
+ this.reload()
1028
+ return
1029
+ }
1030
+ console.log(this.index)
1031
+ this.$showMessage(`开始安检之前,请核对用户信息`, ['cancel', 'confirm']).then(
1032
+ (response) => {
1033
+ if (response === 'confirm') {
1034
+ this.inspect(this.model.rows[this.index+1],this.index+1)
1035
+ }else {
1036
+ this.reload()
1037
+ this.index = 0
1038
+ }
1039
+ }
1040
+ )
1041
+ },
995
1042
  noLineInspect(row){
996
1043
  let _this = this
997
1044
  let criteria = {
@@ -1009,7 +1056,7 @@ export default {
1009
1056
  safe:true
1010
1057
  }
1011
1058
  _this.$dispatch('gotoson',pardate)
1012
- _this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',parentPage:'CurrentCreate'}, 'self', _this.reload)
1059
+ _this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',parentPage:'CurrentCreate'}, 'self', _this.goNext)
1013
1060
  }
1014
1061
  },
1015
1062
  makeAPhoneCall(phoneNumber) {
@@ -1036,15 +1083,11 @@ export default {
1036
1083
  if (this.$refs.paged.$refs.cri.model.f_unit)
1037
1084
  condition += ` and ti.f_unit = '${this.$refs.paged.$refs.cri.model.f_unit}'`
1038
1085
  if (this.planName) {
1039
- condition += " and f_plan_name like '%" + this.planName + "%'"
1086
+ condition += " and f_plan_name = '" + this.planName + "'"
1040
1087
  } else {
1041
1088
  if (this.$refs.paged.$refs.cri.model.f_plan_name.length > 0)
1042
- condition += " and f_plan_name like '%" + this.$refs.paged.$refs.cri.model.f_plan_name + "%'"
1089
+ condition += " and f_plan_name = '" + this.$refs.paged.$refs.cri.model.f_plan_name + "'"
1043
1090
  }
1044
- // if(this.$refs.paged.$refs.cri.model.f_plan_year)
1045
- // condition += " and f_plan_year = '"+this.$refs.paged.$refs.cri.model.f_plan_year +"'"
1046
- // if(this.$refs.paged.$refs.cri.model.f_plan_month)
1047
- // condition += " and f_plan_month = '"+this.$refs.paged.$refs.cri.model.f_plan_month +"'"
1048
1091
  if (this.$refs.paged.$refs.cri.model.f_userinfo_code)
1049
1092
  condition += " and ti.f_userinfo_code like '%" + this.$refs.paged.$refs.cri.model.f_userinfo_code + "%'"
1050
1093
  if (this.$refs.paged.$refs.cri.model.f_keyword)
@@ -1053,14 +1096,12 @@ export default {
1053
1096
  condition += " and ti.f_user_name like '%" + this.$refs.paged.$refs.cri.model.f_user_name + "%'"
1054
1097
  if (this.$refs.paged.$refs.cri.model.f_state[0])
1055
1098
  condition += " and ti.f_state='" + this.$refs.paged.$refs.cri.model.f_state[0] + "'"
1056
- // if(this.$refs.paged.$refs.cri.model.f_last_state[0])
1057
- // condition += " and ti.f_last_check_state='"+this.$refs.paged.$refs.cri.model.f_last_state[0]+"'"
1058
1099
  if (this.$refs.paged.$refs.cri.model.f_user_type[0])
1059
1100
  condition += " and ti.f_user_type='" + this.$refs.paged.$refs.cri.model.f_user_type[0] + "'"
1101
+ if (this.$refs.paged.$refs.cri.model.f_civill_name[0])
1102
+ condition += " and ti.f_civill_name='" + this.$refs.paged.$refs.cri.model.f_civill_name[0] + "'"
1060
1103
  if (this.$refs.paged.$refs.cri.model.f_meter_no)
1061
1104
  condition += " and tm.f_meter_no like '%" + this.$refs.paged.$refs.cri.model.f_meter_no + "%'"
1062
- // if(this.$refs.paged.$refs.cri.model.f_flow_direction[0])
1063
- // condition += " and tm.f_flow_direction = '"+this.$refs.paged.$refs.cri.model.f_flow_direction[0]+"'"
1064
1105
  if (this.$refs.paged.$refs.cri.model.f_user_phone) {
1065
1106
  condition += `and ti.f_user_phone like '%${this.$refs.paged.$refs.cri.model.f_user_phone}%'`
1066
1107
  }
@@ -1068,7 +1109,7 @@ export default {
1068
1109
  condition += " and ti.f_enter_number like '%" + this.$refs.paged.$refs.cri.model.f_enter_number + "%'"
1069
1110
  if (this.$refs.paged.$refs.cri.model.f_check_book.length > 0){
1070
1111
  if (this.$refs.paged.$refs.cri.model.f_plan_name.length > 0 || this.planName){
1071
- condition += " and ti.f_check_book_id like '%" + this.$refs.paged.$refs.cri.model.f_check_book + "%'"
1112
+ condition += " and ti.f_check_book_id = '" + this.$refs.paged.$refs.cri.model.f_check_book + "'"
1072
1113
  }else {
1073
1114
  this.$showMessage("使用安检册筛选项必须选择计划名称")
1074
1115
  return
@@ -1076,7 +1117,7 @@ export default {
1076
1117
  }
1077
1118
  if (this.$refs.paged.$refs.cri.model.f_check_version)
1078
1119
  condition += " and ti.f_check_version = " + this.$refs.paged.$refs.cri.model.f_check_version
1079
- this.model.search("((f_complete = '' or f_complete = null or f_complete = '未完成') or (f_state = '未检') or (f_last_check_state = '到访不遇' )) and ti.f_no_checkplan = '有计划安检'" + condition)
1120
+ this.model.search("((ti.f_complete = '' or ti.f_complete = null or ti.f_complete = '未完成') or (ti.f_state = '未检') or (ti.f_last_check_state = '到访不遇' )) and ti.f_no_checkplan = '有计划安检'" + condition)
1080
1121
 
1081
1122
  },
1082
1123
  getNewOrder() {
@@ -1210,8 +1251,8 @@ export default {
1210
1251
  }
1211
1252
  }
1212
1253
  let tjData = {
1213
- items: " COUNT(*) AS total_items, SUM(CASE WHEN tcpi.f_last_check_state= '到访不遇' THEN 1 ELSE 0 END) AS no_answer_count, SUM(CASE WHEN tcpi.f_state='已检' THEN 1 ELSE 0 END) AS yj_count, SUM(CASE WHEN tcpi.f_state='未检' THEN 1 ELSE 0 END) AS wj_count, ROUND(SUM(CASE WHEN tcp.f_entry_status='入户' THEN 1 ELSE 0 END)*100.0/COUNT(*),2) AS entry_rate_percent ",
1214
- tablename: " t_check_plan tcpl LEFT JOIN t_check_plan_item tcpi ON tcpl.id=tcpi.f_plan_id LEFT JOIN t_check_paper tcp ON tcp.f_check_item_id= tcpi.id ",
1254
+ items: " COUNT(*) AS total_items,SUM ( CASE WHEN tcpi.f_state= '已检' and tcpi.f_last_check_state= '到访不遇' THEN 1 ELSE 0 END ) AS no_answer_count,SUM ( CASE WHEN tcpi.f_state= '已检' and tcpi.f_last_check_state= '入户' THEN 1 ELSE 0 END ) AS ruhunum,SUM ( CASE WHEN tcpi.f_state= '已检' AND f_last_check_state != '到访不遇' THEN 1 ELSE 0 END ) AS yj_count,SUM ( CASE WHEN tcpi.f_state= '未检' THEN 1 ELSE 0 END ) AS wj_count,ROUND( SUM ( CASE WHEN tcpi.f_state= '已检' and tcpi.f_last_check_state= '入户' THEN 1 ELSE 0 END ) * 100.0 / COUNT ( * ), 2 ) AS entry_rate_percent ",
1255
+ tablename: " t_check_plan_item tcpi LEFT JOIN t_check_plan tcpl ON tcpi.f_plan_id = tcpl.id ",
1215
1256
  condition: condition,
1216
1257
  orderitem: '1'
1217
1258
  }
@@ -1226,6 +1267,7 @@ export default {
1226
1267
  this.checked = stat.yj_count || 0;
1227
1268
  this.notChecked = stat.wj_count || 0;
1228
1269
  this.enterRate = stat.entry_rate_percent || 0;
1270
+ this.ruhunum = stat.ruhunum || 0;
1229
1271
  }
1230
1272
 
1231
1273
  let criteria = {
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <div class="auto clearfix">
3
+ <work-busy :is-busy="isbusy"></work-busy>
3
4
  <div class="row app-row col-xs-12 col-sm-6 col-md-6">
4
5
  <div class="col-xs-4 col-sm-4 col-md-4">
5
6
  <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
@@ -190,7 +191,7 @@
190
191
  </div>
191
192
  </div>
192
193
  <div class="col-xs-12 text-center app-row">
193
- <button class="btn btn-lg btn-font btn-color" style="width: 22%;" type="button" @click="commit()">提交</button>
194
+ <button class="btn btn-lg btn-font btn-color" style="width: 22%;" type="button" @click="check()">提交</button>
194
195
  </div>
195
196
  </div>
196
197
  </template>
@@ -204,7 +205,7 @@ export default {
204
205
  data() {
205
206
  return {
206
207
  create_date: Util.getNowDate(),
207
- isCommit: false,
208
+ isbusy: false,
208
209
  insurance_types: [{label: '请选择', value: ''}, ...this.$appdata.getParam('险种')],
209
210
  insurance_companys: [{label: '请选择', value: ''}, ...this.$appdata.getParam('保险公司')],
210
211
  payTypes: [{label: '请选择', value: ''}, ...this.$appdata.getParam('付款方式')],
@@ -269,6 +270,27 @@ export default {
269
270
  this.model.f_id_type = '身份证'
270
271
  },
271
272
  methods: {
273
+ //查询是否在今天已经操作过了
274
+ async check() {
275
+ let http = new HttpResetClass()
276
+ // 获取今天的开始和结束时间
277
+ let startOfDay =Util.toStartDateString() + ' 00:00:00'
278
+ let endOfDay =Util.toEndDateString() + ' 23:59:59'
279
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
280
+ data: {
281
+ items: 'id',
282
+ tablename: 't_userfees',
283
+ condition: `f_userinfo_id= '${this.model.f_userinfo_id}' and f_state='有效' and f_fee_type='保险收费' and f_operate_date >= '${startOfDay}' and f_operate_date <= '${endOfDay}'`,
284
+ orderitem: 'id'
285
+ }
286
+ }, { resolveMsg: null, rejectMsg: null }).then((res) => {
287
+ if (res.data.length > 0) {
288
+ this.$showMessage('今天已经进行了保险收费,请勿重复操作。')
289
+ } else {
290
+ this.commit()
291
+ }
292
+ })
293
+ },
272
294
  async commit() {
273
295
  if (!this.model.f_payment) {
274
296
  this.$showMessage('收款方式未选择,请选择后重新尝试。')
@@ -353,6 +375,7 @@ export default {
353
375
  return
354
376
  }
355
377
  }
378
+ this.isbusy= true
356
379
  commit_data.f_receivable = this.model.f_money
357
380
  commit_data.f_operate_date = Util.toStandardTimeString()
358
381
  commit_data.f_state = '有效'
@@ -360,12 +383,14 @@ export default {
360
383
  commit_data.f_orgname = Vue.user.orgs
361
384
  commit_data.f_depid = Vue.user.depids
362
385
  commit_data.f_depname = Vue.user.deps
386
+ commit_data.f_fee_type='保险收费'
363
387
  await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/saveInsInfo`, {data: commit_data})
364
388
  this.$showMessage('提交成功')
389
+ this.isbusy= false
365
390
  this.$back()
366
391
  } catch (error) {
367
392
  this.$showMessage('提交失败')
368
- this.isCommit = false
393
+ this.isbusy= false
369
394
  }
370
395
  },
371
396
  changeExpirationDate() {