safecheck-client 3.0.34-gongyi → 3.0.35-gongyi-2

Sign up to get free protection for your applications and to get access to all the features.
@@ -180,7 +180,7 @@
180
180
  v-model="model.f_user_type" condition="ti.f_user_type='{}'" close-on-select clear-button></v-select>
181
181
  </div>
182
182
  </div>
183
- <div class="row app-row" v-show="$parent.$parent.criteriaShow">
183
+ <!--<div class="row app-row" v-show="$parent.$parent.criteriaShow">
184
184
  <div class="col-xs-4">
185
185
  <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
186
186
  <label class="font text-left">挂表方式:</label>
@@ -191,7 +191,7 @@
191
191
  :options='$parent.$parent.flow_direction' placeholder='请选择挂表方式'
192
192
  v-model="model.f_flow_direction" condition="tm.f_flow_direction='{}'" close-on-select clear-button></v-select>
193
193
  </div>
194
- </div>
194
+ </div>-->
195
195
  <div class="row app-row" v-show="$parent.$parent.criteriaShow">
196
196
  <div class="col-xs-4">
197
197
  <img src="../../assets/有无计划.png" style="width: 20px;margin-bottom: 5px" alt="">
@@ -281,7 +281,7 @@
281
281
  </div>
282
282
  <div class="col-xs-6">
283
283
  <p class="panel-title col-xs-5 text-left font"><b>安检状态:</b></p>
284
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_state }}</p>
284
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_last_check_state }}</p>
285
285
  </div>
286
286
  <div class="col-xs-6">
287
287
  <p class="panel-title col-xs-5 text-left font"><b>上传状态:</b></p>
@@ -890,10 +890,12 @@
890
890
  this.tempSaveCount = 0
891
891
  this.doneCount = 0
892
892
  this.allPlanCount = 0
893
+ if(this.$refs.paged.$refs.cri.model.f_plan_name)
894
+ condition += " and f_plan_name like '%"+this.$refs.paged.$refs.cri.model.f_plan_name +"%'"
893
895
  let criteria = {
894
896
  items: 'count(id) count',
895
- tablename: 't_check_plan_item',
896
- condition: `f_state = '未检'`,
897
+ tablename: 't_check_plan_item it left join t_check_plan cp on it.f_plan_id=cp.id',
898
+ condition: `f_state = '未检'`+this.$refs.paged.$refs.cri.model.f_plan_name?` and f_plan_name='${this.$refs.paged.$refs.cri.model.f_plan_name}'`:'',
897
899
  groupitem: 'f_state'
898
900
  }
899
901
  let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
@@ -904,8 +906,8 @@
904
906
  }
905
907
  criteria = {
906
908
  items: 'count(id) count',
907
- tablename: 't_check_plan_item',
908
- condition: `(f_complete = '' or f_complete = null or f_complete = '未完成') AND f_state = '已检'`,
909
+ tablename: 't_check_plan_item it left join t_check_plan cp on it.f_plan_id=cp.id',
910
+ condition: `(f_complete = '' or f_complete = null or f_complete = '未完成') AND f_state = '已检'`+this.$refs.paged.$refs.cri.model.f_plan_name?` and f_plan_name='${this.$refs.paged.$refs.cri.model.f_plan_name}'`:'',
909
911
  groupitem: 'f_state'
910
912
  }
911
913
  result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
@@ -916,8 +918,8 @@
916
918
  }
917
919
  criteria = {
918
920
  items: 'count(id) count',
919
- tablename: 't_check_plan_item',
920
- condition: `f_complete = '已完成' AND f_state = '已检'`,
921
+ tablename: 't_check_plan_item it left join t_check_plan cp on it.f_plan_id=cp.id',
922
+ condition: `f_complete = '已完成' AND f_state = '已检'`+this.$refs.paged.$refs.cri.model.f_plan_name?` and f_plan_name='${this.$refs.paged.$refs.cri.model.f_plan_name}'`:'',
921
923
  groupitem: 'f_state'
922
924
  }
923
925
  result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})