safecheck-client 4.0.0-73 → 4.0.0-75

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.
@@ -161,8 +161,9 @@
161
161
  class="select select_list"
162
162
  :value.sync="planCondition.f_checker"
163
163
  v-model="planCondition.f_checker"
164
- @change="setProperty('checkplan','checkerid',planCondition.f_checker.id)"
164
+ @change="setProperty('checkplan','checkerid',planCondition.f_checker ? planCondition.f_checker.id : '')"
165
165
  :options='getConList("checker")'
166
+ :search="false"
166
167
  placeholder='请选择'
167
168
  close-on-select
168
169
  value-single
@@ -561,8 +562,14 @@ export default {
561
562
  this.createPlan.f_checker_id=null
562
563
  this.createPlan.f_checker=null
563
564
  }else{
564
- this.createPlan.f_checker_id=this.createPlan.checker.id
565
- this.createPlan.f_checker=this.createPlan.checker.name
565
+ if(this.createPlan.checker && this.createPlan.checker.id){
566
+ this.createPlan.f_checker_id=this.createPlan.checker.id
567
+ this.createPlan.f_checker=this.createPlan.checker.name
568
+ }else{
569
+ Vue.showMessage("请选择安检人员!")
570
+ this.isSend=false
571
+ return
572
+ }
566
573
  }
567
574
  console.log("this.createPlan.f_checker:"+this.createPlan.f_checker)
568
575
  this.createPlan.f_plan_type='预约计划'
@@ -620,7 +627,6 @@ export default {
620
627
  //查询安检员selectChanged
621
628
  async searchChecker(){
622
629
  console.log(this.$login.f.orgid)
623
- debugger
624
630
  let res=await new HttpResetClass().load('POST', '/rs/search', {
625
631
  data:{
626
632
  source: `root.getResourceById($${this.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
@@ -958,7 +958,7 @@ export default {
958
958
  if (this.$refs.paged.$refs.cri.model.f_check_version)
959
959
  condition += " and ti.f_check_version <= " + this.$refs.paged.$refs.cri.model.f_check_version
960
960
  //tag
961
- this.model.search("((f_complete = '' or f_complete = null or f_complete = '未完成') or (f_state = '未检') or (f_last_check_state = '到访不遇' or f_last_check_state = '拒检')) and ti.f_no_checkplan = '有计划安检'" + condition)
961
+ this.model.search("((f_complete = '' or f_complete = null or f_complete = '未完成') or (f_state = '未检') or (f_last_check_state = '到访不遇' or f_last_check_state = '拒检')) and f_no_checkplan = '有计划安检'" + condition)
962
962
 
963
963
  },
964
964
  getNewOrder() {
@@ -1087,8 +1087,8 @@ export default {
1087
1087
  } else {
1088
1088
  if (this.$refs.paged.$refs.cri.model.f_plan_name){
1089
1089
  condition += " and f_plan_name = '" + this.$refs.paged.$refs.cri.model.f_plan_name + "'"
1090
- }else {
1091
- condition = ' 1 != 1'
1090
+ } else {
1091
+ condition = ' 1 != 1 '
1092
1092
  }
1093
1093
  }
1094
1094
  let tjData = {
@@ -1097,8 +1097,11 @@ export default {
1097
1097
  condition: condition,
1098
1098
  orderitem: '1'
1099
1099
  }
1100
- let resultTj = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_OrderBy', 'criteria': tjData}})
1101
- if (resultTj.code==200){
1100
+ let resultTj = HostApp._executeTask({
1101
+ 'type': 'sql',
1102
+ 'data': {'alias': 'safe_singleTable_OrderBy', 'criteria': tjData}
1103
+ })
1104
+ if (resultTj.code == 200) {
1102
1105
  const stat = resultTj.data.rows[0];
1103
1106
  this.planTotal = stat.total_items || 0;
1104
1107
  this.notVisited = stat.no_answer_count || 0;