safecheck-client 3.0.34-86 → 3.0.34-88

Sign up to get free protection for your applications and to get access to all the features.
@@ -99,7 +99,7 @@
99
99
  <template partial='head'>
100
100
  <tr>
101
101
  <th>
102
- <nobr>所属安检员11</nobr>
102
+ <nobr>所属安检员</nobr>
103
103
  </th>
104
104
  <th>
105
105
  <nobr>片区名称</nobr>
@@ -135,6 +135,40 @@
135
135
  <input style="width: 60%" type="text" class="input_search" v-model="model.anjiancishu" placeholder="安检次数"
136
136
  condition="anjiancishu = '{}'">
137
137
  </div>
138
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
139
+ <label class="font_normal_body">连续安检</label>
140
+ <datepicker
141
+ :value.sync="model.f_check_start_continuity"
142
+ placeholder='连续安检时间起始'
143
+ style="width: 60%"
144
+ :format="'yyyy-MM-dd 00:00:00'"
145
+ :show-rest-button="reset"
146
+ v-model="model.f_check_start_continuity">
147
+ </datepicker>
148
+ </div>
149
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
150
+ <label class="font_normal_body">连续安检</label>
151
+ <datepicker
152
+ :value.sync="model.f_check_end_continuity"
153
+ placeholder='连续安检时间结束'
154
+ style="width: 60%"
155
+ :format="'yyyy-MM-dd 23:59:59'"
156
+ :show-rest-button="reset"
157
+ v-model="model.f_check_end_continuity">
158
+ </datepicker>
159
+ </div>
160
+
161
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
162
+ <label class="font_normal_body">连续安检状态</label>
163
+ <v-select placeholder='安检状态'
164
+ :value.sync="model.f_entry_status_continuity"
165
+ v-model="model.f_entry_status_continuity"
166
+ class="select select_list"
167
+ :value-single="true"
168
+ close-on-select
169
+ :options='$parent.$parent.entry_status'
170
+ ></v-select>
171
+ </div>
138
172
  </div>
139
173
  <div class="row" v-show="$parent.$parent.$parent.showItem">
140
174
  <div :class="$parent.$parent.style">
@@ -408,6 +442,7 @@ export default {
408
442
  SafeCheckXZ: '',
409
443
  civil: '', //民用安检周期
410
444
  civilian: '', //非民用安检周期
445
+ entry_status:[{label: '入户', value: '入户'}, {label: '拒检', value: '拒检'}, {label: '到访不遇', value: '到访不遇'}],
411
446
  SafeCheckXZs: [{ label: '全部', value: '' }, { label: '未安检', value: '未安检' }, { label: '已安检', value: '已安检' }], // 安检筛选选项
412
447
  SafeCheckSXs: [{ label: '是', value: '是' }, { label: '否', value: '否' }, { label: '全部', value: '' }],
413
448
  // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
@@ -693,9 +728,27 @@ export default {
693
728
  con += ` and f_check_version = '${args.model.f_check_version}'`
694
729
  }
695
730
  con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ' and 1=1'
731
+
732
+ let cn = ' 1=1 '
733
+ if (args.model.f_check_start_continuity || args.model.f_check_end_continuity || args.model.f_entry_status_continuity){
734
+ if (args.model.f_check_start_continuity && args.model.f_check_end_continuity && args.model.f_entry_status_continuity){
735
+ cn += ` and f_offsite_time >= '${args.model.f_check_start_continuity}' and f_offsite_time <= '${args.model.f_check_end_continuity}'`
736
+ switch (args.model.f_entry_status_continuity) {
737
+ case '到访不遇' : args.condition += ` and f_ruhu = 0 and f_jujian = 0 and f_buyu > 0`
738
+ break
739
+ case '入户' : args.condition += ` and f_ruhu > 0 and f_jujian = 0 and f_buyu = 0`
740
+ break
741
+ case '拒检' : args.condition += ` and f_ruhu = 0 and f_jujian > 0 and f_buyu = 0`
742
+ break
743
+ }
744
+ }else {
745
+ this.$showMessage('请选择连续安检时间起始、连续安检时间结束以及连续安检状态条件!')
746
+ }
747
+ }
696
748
  let condition = {
697
749
  condition1: args.condition,
698
- condition2: con
750
+ condition2: con,
751
+ condition3: cn
699
752
  }
700
753
  this.searchData.condition = condition
701
754
  return this.model.search(condition, args.model)