safecheck-client 4.0.2-3 → 4.0.2-30
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.
- package/package.json +2 -2
- package/src/components/android/week/CheckResultSimple.vue +222 -0
- package/src/components/android/week/FirstWeekCheck.vue +236 -0
- package/src/components/android/week/StepHeaderBar.vue +323 -0
- package/src/components/android/week/WeekCheck.vue +151 -0
- package/src/components/android/week/WeekCheckPaper.vue +151 -0
- package/src/components/checkplan/SelectCheckPlan.vue +39 -0
- package/src/components/paper/safetyledger.vue +194 -0
- package/src/components/pc/CheckBook.vue +1 -1
- package/src/components/planmanage/PlanManage.vue +902 -902
- package/src/components/planmanage/checkUserList.vue +1 -1
- package/src/components/querycheckpaper/CheckSearchUser.vue +2 -1
- package/src/components/report/CheckByPlan.vue +1 -1
- package/src/components/report/CheckPlanAreaList.vue +45 -2
- package/src/filiale/jinhong/android/CurrentCreate.vue +6 -3
- package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +28 -3
- package/src/filiale/jinhong/pc/CheckBookList.vue +28 -18
- package/src/filiale/jinhong/pc/PaperList.vue +1 -1
- package/src/filiale/jinhong/pc/checkPlanList.vue +73 -24
- package/src/filiale/meihekou/android/CurrentCreate.vue +1038 -1038
- package/src/filiale/meihekou/android/SafecheckDevices.vue +6 -3
- package/src/filiale/meihekou/android/SafecheckOrderV.vue +9 -8
- package/src/filiale/meihekou/pc/CheckDetail.vue +208 -0
- package/src/filiale/meihekou/pc/CheckPlan.vue +52 -0
- package/src/filiale/meihekou/pc/CheckPlanAreaList.vue +504 -0
- package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -0
- package/src/filiale/meihekou/pc.js +3 -0
- package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +2 -2
- package/src/filiale/xinkang/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/xinliansihui/pc/PaperList.vue +814 -0
- package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -0
- package/src/filiale/xinliansihui/pc.js +13 -0
- package/src/main.js +33 -33
- package/src/safecheck-android.js +10 -0
- package/src/safecheck.js +3 -0
|
@@ -406,7 +406,7 @@ export default {
|
|
|
406
406
|
data() {
|
|
407
407
|
return {
|
|
408
408
|
model:new PagedList('/api/af-safecheck/sql/FetchUserFileByOrgNoRuHuSXQ', 100, {
|
|
409
|
-
"orderitem": "'
|
|
409
|
+
"orderitem": "'f_address desc'",
|
|
410
410
|
"f_usertype": "''",
|
|
411
411
|
"month": "''",
|
|
412
412
|
"SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
|
|
@@ -787,7 +787,8 @@ export default {
|
|
|
787
787
|
con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ' and 1=1'
|
|
788
788
|
let condition = {
|
|
789
789
|
condition1: args.condition,
|
|
790
|
-
condition2: con
|
|
790
|
+
condition2: con,
|
|
791
|
+
condition3: '1 = 1'
|
|
791
792
|
}
|
|
792
793
|
this.searchData.condition = condition
|
|
793
794
|
return this.model.search(condition, args.model)
|
|
@@ -41,6 +41,18 @@
|
|
|
41
41
|
close-on-select clear-button></v-select>
|
|
42
42
|
|
|
43
43
|
</div>
|
|
44
|
+
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
|
|
45
|
+
<label class="font_normal_body">片  区</label>
|
|
46
|
+
<v-select class="select_list select"
|
|
47
|
+
placeholder='片区/管理站' style="width: 60%"
|
|
48
|
+
:value.sync="model.f_slice_area" v-model="model.f_slice_area"
|
|
49
|
+
:options='$parent.$parent.sliceArea'
|
|
50
|
+
filer-key="name"
|
|
51
|
+
close-on-select clear-button
|
|
52
|
+
condition="f_slice_area='{}'"
|
|
53
|
+
:value-single="true">
|
|
54
|
+
</v-select>
|
|
55
|
+
</div>
|
|
44
56
|
<!--<div :class="{
|
|
45
57
|
'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
|
|
46
58
|
<label class="font_normal_body">安 检 员</label>
|
|
@@ -108,6 +120,8 @@
|
|
|
108
120
|
<label for="f_checker_name">安检员</label>
|
|
109
121
|
<input type="checkbox" id="f_user_number" value="f_user_number" v-model="$parent.$parent.nameForSql"/>
|
|
110
122
|
<label for="f_checker_name">档案数量</label>
|
|
123
|
+
<input type="checkbox" id="f_safecheck_type" value="f_safecheck_type" v-model="$parent.$parent.nameForSql"/>
|
|
124
|
+
<label for="f_checker_name">安检类型</label>
|
|
111
125
|
</div>
|
|
112
126
|
</div>
|
|
113
127
|
</div>
|
|
@@ -125,6 +139,7 @@
|
|
|
125
139
|
<th v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_name')"><nobr>计划名称</nobr></th>
|
|
126
140
|
<th v-if="$parent.$parent.$parent.nameForSql.includes('f_checker_name')"><nobr>安检员</nobr></th>
|
|
127
141
|
<th v-if="$parent.$parent.$parent.nameForSql.includes('f_user_number')"><nobr>档案数量</nobr></th>
|
|
142
|
+
<th v-if="$parent.$parent.$parent.nameForSql.includes('f_safecheck_type')"><nobr>安检类型</nobr></th>
|
|
128
143
|
<th>
|
|
129
144
|
<nobr>计划总数</nobr>
|
|
130
145
|
</th>
|
|
@@ -165,6 +180,7 @@
|
|
|
165
180
|
<td style="text-align:center" :class="{'td-0':row.f_plan_name==undefined,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_plan_name.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_plan_name.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_plan_name.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_plan_name.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_name')">{{row.f_plan_name.indexOf('*&')!=-1?'':row.f_plan_name}}</td>
|
|
166
181
|
<td style="text-align:center" :class="{'td-0':row && !row.f_checker_name,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_checker_name && row.f_checker_name.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_checker_name &&row.f_checker_name.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_checker_name &&row.f_checker_name.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_checker_name &&row.f_checker_name.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql && $parent.$parent.$parent.nameForSql.includes('f_checker_name')">{{row.f_checker_name && row.f_checker_name.indexOf('*&')!=-1?'':row.f_checker_name}}</td>
|
|
167
182
|
<td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_user_number')">{{row.f_user_number}}</td>
|
|
183
|
+
<td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_safecheck_type')">{{row.f_safecheck_type}}</td>
|
|
168
184
|
<td style="text-align:center">{{row.f_plan_total}}</td>
|
|
169
185
|
<td style="text-align:center">{{row.f_weijian}}</td>
|
|
170
186
|
<td style="text-align:center"><nobr>{{row.f_yijian}}</nobr></td>
|
|
@@ -209,6 +225,7 @@ export default {
|
|
|
209
225
|
row: {},
|
|
210
226
|
f_orgid: '',
|
|
211
227
|
nameForSql: [],
|
|
228
|
+
sliceArea: [],
|
|
212
229
|
groupNameForSql: '',
|
|
213
230
|
listflag:false,
|
|
214
231
|
nameflag:false,
|
|
@@ -239,9 +256,32 @@ export default {
|
|
|
239
256
|
this.groupNameForSql = 'f_plan_month', 'f_plan_name','f_checker_name'
|
|
240
257
|
this.pl()
|
|
241
258
|
// this.search()
|
|
259
|
+
this.Mreadibook(this.$login.f.orgid)
|
|
242
260
|
|
|
243
261
|
},
|
|
244
262
|
methods: {
|
|
263
|
+
Mreadibook(val){
|
|
264
|
+
if (val){
|
|
265
|
+
new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
|
|
266
|
+
items: 'name',
|
|
267
|
+
tablename: 't_zone',
|
|
268
|
+
condition: `parentid = '${val}'`,
|
|
269
|
+
orderitem: 'id'
|
|
270
|
+
}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
271
|
+
this.sliceArea=[]
|
|
272
|
+
this.sliceArea.push({
|
|
273
|
+
label:'全部',
|
|
274
|
+
value:''
|
|
275
|
+
})
|
|
276
|
+
res.data.forEach(ress=>{
|
|
277
|
+
this.sliceArea.push({
|
|
278
|
+
label:ress.name,
|
|
279
|
+
value:ress.name
|
|
280
|
+
})
|
|
281
|
+
})
|
|
282
|
+
})
|
|
283
|
+
}
|
|
284
|
+
},
|
|
245
285
|
exportexcel(){
|
|
246
286
|
//tag
|
|
247
287
|
// 以上四行也可以直接一行搞定,如果不需要对表格数据进行修改的话
|
|
@@ -284,6 +324,9 @@ export default {
|
|
|
284
324
|
}if (ff==='f_user_number') {
|
|
285
325
|
this.exportExcelField.f_user_number='档案数量'
|
|
286
326
|
}
|
|
327
|
+
if (ff==='f_safecheck_type') {
|
|
328
|
+
this.exportExcelField.f_safecheck_type='安检类型'
|
|
329
|
+
}
|
|
287
330
|
}
|
|
288
331
|
},
|
|
289
332
|
pl() {
|
|
@@ -359,7 +402,7 @@ export default {
|
|
|
359
402
|
|
|
360
403
|
// 拼接groupName1
|
|
361
404
|
getGroupName1 () {
|
|
362
|
-
var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number']
|
|
405
|
+
var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number','f_safecheck_type']
|
|
363
406
|
var newtemp=[]
|
|
364
407
|
|
|
365
408
|
for (var i=0;i<temp.length;i++){
|
|
@@ -396,7 +439,7 @@ export default {
|
|
|
396
439
|
}
|
|
397
440
|
this.listflag=true
|
|
398
441
|
//tag
|
|
399
|
-
var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number']
|
|
442
|
+
var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number','f_safecheck_type']
|
|
400
443
|
var newtemp=[]
|
|
401
444
|
for (var i=0;i<temp.length;i++){
|
|
402
445
|
for (var j=0;j<this.nameForSql.length;j++){
|
|
@@ -667,7 +667,9 @@ export default {
|
|
|
667
667
|
notVisited: 0,
|
|
668
668
|
checked: 0,
|
|
669
669
|
notChecked: 0,
|
|
670
|
-
enterRate: 0
|
|
670
|
+
enterRate: 0,
|
|
671
|
+
ruhunum:0
|
|
672
|
+
|
|
671
673
|
}
|
|
672
674
|
},
|
|
673
675
|
ready() {
|
|
@@ -1210,8 +1212,8 @@ export default {
|
|
|
1210
1212
|
}
|
|
1211
1213
|
}
|
|
1212
1214
|
let tjData = {
|
|
1213
|
-
items: " COUNT(*) AS total_items,
|
|
1214
|
-
tablename: " t_check_plan tcpl LEFT JOIN t_check_plan_item tcpi ON tcpl.id=tcpi.f_plan_id
|
|
1215
|
+
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 ",
|
|
1216
|
+
tablename: " t_check_plan tcpl LEFT JOIN t_check_plan_item tcpi ON tcpl.id=tcpi.f_plan_id ",
|
|
1215
1217
|
condition: condition,
|
|
1216
1218
|
orderitem: '1'
|
|
1217
1219
|
}
|
|
@@ -1226,6 +1228,7 @@ export default {
|
|
|
1226
1228
|
this.checked = stat.yj_count || 0;
|
|
1227
1229
|
this.notChecked = stat.wj_count || 0;
|
|
1228
1230
|
this.enterRate = stat.entry_rate_percent || 0;
|
|
1231
|
+
this.ruhunum = stat.ruhunum || 0;
|
|
1229
1232
|
}
|
|
1230
1233
|
|
|
1231
1234
|
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="
|
|
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
|
-
|
|
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.
|
|
393
|
+
this.isbusy= false
|
|
369
394
|
}
|
|
370
395
|
},
|
|
371
396
|
changeExpirationDate() {
|
|
@@ -26,24 +26,30 @@
|
|
|
26
26
|
:options='$parent.$parent.checkBooks' placeholder='安检册名称'
|
|
27
27
|
condition="tcb.id in {}"></v-select>
|
|
28
28
|
</div>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
29
|
+
<div :class="$parent.$parent.style">
|
|
30
|
+
<label class="font_normal_body">开始时间</label>
|
|
31
|
+
<datepicker
|
|
32
|
+
:value.sync="model.f_check_start"
|
|
33
|
+
placeholder='最后一次下发开始时间'
|
|
34
|
+
style="width: 60%"
|
|
35
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
36
|
+
:show-rest-button="reset"
|
|
37
|
+
v-model="model.f_check_start"
|
|
38
|
+
condition="lasttime.last_check_time > '{}'">
|
|
39
|
+
</datepicker>
|
|
40
|
+
</div>
|
|
41
|
+
<div :class="$parent.$parent.style" >
|
|
42
|
+
<label class="font_normal_body">结束时间</label>
|
|
43
|
+
<datepicker
|
|
44
|
+
:value.sync="model.f_check_end"
|
|
45
|
+
placeholder='最后一次下发截止时间'
|
|
46
|
+
style="width: 60%"
|
|
47
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
48
|
+
:show-rest-button="reset"
|
|
49
|
+
v-model="model.f_check_end"
|
|
50
|
+
condition="lasttime.last_check_time < '{}'">
|
|
51
|
+
</datepicker>
|
|
52
|
+
</div>
|
|
47
53
|
<div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
|
|
48
54
|
<button type="button" class="button_search button_spacing" @click="search()">查询</button>
|
|
49
55
|
<button type="button" class="button_search button_spacing" @click="$parent.$parent.clean()">重置</button>
|
|
@@ -129,6 +135,9 @@
|
|
|
129
135
|
<th>
|
|
130
136
|
<nobr>未下发</nobr>
|
|
131
137
|
</th>
|
|
138
|
+
<th>
|
|
139
|
+
<nobr>最后下发时间</nobr>
|
|
140
|
+
</th>
|
|
132
141
|
<!-- <th>
|
|
133
142
|
<nobr>已检</nobr>
|
|
134
143
|
</th>
|
|
@@ -150,6 +159,7 @@
|
|
|
150
159
|
<td style="text-align: center;"><button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link"><b>{{row.num}}</b></button></td>
|
|
151
160
|
<td style="text-align: center;">{{ row.xiafa }}</td>
|
|
152
161
|
<td style="text-align: center;">{{ row.f_user_type =='民用'?row.num-row.xiafa:row.num4-row.xiafa }}</td>
|
|
162
|
+
<td style="text-align: center;">{{ row.last_check_time }}</td>
|
|
153
163
|
<!-- <td style="text-align: center;">{{ row.yijian }}</td>
|
|
154
164
|
<td style="text-align: center;">{{ row.weijian }}</td>-->
|
|
155
165
|
<!-- <td v-show="row.f_check_book_type!='小区'" style="text-align: center;"><button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.send(row)'>下发</button></td>-->
|
|
@@ -22,29 +22,18 @@
|
|
|
22
22
|
<input type="text" class="input_search" v-model="model.f_address"
|
|
23
23
|
style="width: 95%" placeholder="客户地址" condition="i.f_address like '%{}%'">
|
|
24
24
|
</div>
|
|
25
|
-
<div class="form-group col-sm-1" >
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
</
|
|
36
|
-
|
|
37
|
-
<div class="form-group col-sm-1" style="margin-left: 6px;margin-right: 6px;">
|
|
38
|
-
<datepicker
|
|
39
|
-
placeholder='创建结束'
|
|
40
|
-
:disabled-days-of-week="[]"
|
|
41
|
-
style="width:100%"
|
|
42
|
-
:format="'yyyy-MM-dd'"
|
|
43
|
-
:show-rest-button="reset"
|
|
44
|
-
:value.sync="model.f_endcreate_time"
|
|
45
|
-
v-model="model.f_endcreate_time"
|
|
46
|
-
condition="i.f_create_time <='{} 00:00:00'">
|
|
47
|
-
</datepicker>
|
|
25
|
+
<div class="form-group col-sm-1 upuserinfo_sel" >
|
|
26
|
+
<v-select v-model="model.f_meter_book_num"
|
|
27
|
+
:multiple="true" :options='$parent.$parent.checkBooks'
|
|
28
|
+
:value.sync="model.f_meter_book_num"
|
|
29
|
+
class="select select_list"
|
|
30
|
+
@select-search="$parent.$parent.select_book"
|
|
31
|
+
:width="'95%'"
|
|
32
|
+
:timeout="500"
|
|
33
|
+
placeholder='安检册选择'
|
|
34
|
+
condition="i.f_check_book_id in {}" >
|
|
35
|
+
</v-select>
|
|
36
|
+
|
|
48
37
|
</div>
|
|
49
38
|
<!--<div class="form-group col-sm-1" >
|
|
50
39
|
<v-select :width="'95%'"
|
|
@@ -137,6 +126,33 @@
|
|
|
137
126
|
condition="i.f_last_check_date <='{} 00:00:00'">
|
|
138
127
|
</datepicker>
|
|
139
128
|
</div>
|
|
129
|
+
<div class="form-group col-sm-4" >
|
|
130
|
+
<label class="font_normal_body">创建起始:</label>
|
|
131
|
+
<datepicker
|
|
132
|
+
placeholder='创建起始'
|
|
133
|
+
style="width:60%"
|
|
134
|
+
:disabled-days-of-week="[]"
|
|
135
|
+
:format="'yyyy-MM-dd'"
|
|
136
|
+
:show-rest-button="reset"
|
|
137
|
+
:value.sync="model.f_starcreate_time"
|
|
138
|
+
v-model="model.f_starcreate_time"
|
|
139
|
+
condition="i.f_create_time >='{} 00:00:00'">
|
|
140
|
+
</datepicker>
|
|
141
|
+
</div>
|
|
142
|
+
<div class="form-group col-sm-4" >
|
|
143
|
+
<label class="font_normal_body">创建起始:</label>
|
|
144
|
+
<datepicker
|
|
145
|
+
placeholder='创建起始'
|
|
146
|
+
:disabled-days-of-week="[]"
|
|
147
|
+
style="width:60%"
|
|
148
|
+
:format="'yyyy-MM-dd'"
|
|
149
|
+
:show-rest-button="reset"
|
|
150
|
+
:value.sync="model.f_endcreate_time"
|
|
151
|
+
v-model="model.f_endcreate_time"
|
|
152
|
+
condition="i.f_create_time <='{} 00:00:00'">
|
|
153
|
+
</datepicker>
|
|
154
|
+
</div>
|
|
155
|
+
|
|
140
156
|
<!-- <div class="form-group col-sm-4" >-->
|
|
141
157
|
<!-- <label class="font_normal_body">创建起始:</label>-->
|
|
142
158
|
<!-- <datepicker-->
|
|
@@ -235,6 +251,7 @@
|
|
|
235
251
|
opt:[{label:"测试",value:"测试"}],
|
|
236
252
|
showCondtion:false,
|
|
237
253
|
checkAll:false,
|
|
254
|
+
checkBooks:[],
|
|
238
255
|
checkes:[],
|
|
239
256
|
checkResults:[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}],
|
|
240
257
|
checkState:[{label:'全部',value:''},{label:'未检',value:'未检'},{label:'已检',value:'已检'}],
|
|
@@ -253,7 +270,7 @@
|
|
|
253
270
|
},
|
|
254
271
|
props:["selectplan","userlogin"],
|
|
255
272
|
ready(){
|
|
256
|
-
|
|
273
|
+
this.getCheckBook()
|
|
257
274
|
},
|
|
258
275
|
computed:{
|
|
259
276
|
exportParameter(){
|
|
@@ -265,6 +282,38 @@
|
|
|
265
282
|
}
|
|
266
283
|
},
|
|
267
284
|
methods:{
|
|
285
|
+
select_book(text){
|
|
286
|
+
//tag
|
|
287
|
+
let pcdText=text?` and f_check_book_name like '%${text}%'`:''
|
|
288
|
+
new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_check_book",orderitem:"id",condition:`f_orgid = '${this.userlogin.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
|
|
289
|
+
//tag)
|
|
290
|
+
if(res.data.length>0){
|
|
291
|
+
this.checkBooks = []
|
|
292
|
+
res.data.forEach((result)=>{
|
|
293
|
+
this.checkBooks.push({label:result.f_check_book_name,value:result.id})
|
|
294
|
+
})
|
|
295
|
+
}
|
|
296
|
+
//tag)
|
|
297
|
+
})
|
|
298
|
+
},
|
|
299
|
+
getCheckBook(){
|
|
300
|
+
this.checkBooks=[]
|
|
301
|
+
new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy?pageNo=1&pageSize=1000`, {
|
|
302
|
+
data: {
|
|
303
|
+
items: 'id,f_check_book_name,f_check_book_type',
|
|
304
|
+
tablename: 't_check_book',
|
|
305
|
+
condition: `f_orgid = '${this.userlogin.orgid}'`,
|
|
306
|
+
orderitem: 'id desc'
|
|
307
|
+
}
|
|
308
|
+
}, {resolveMsg: null, rejectMsg: null}).then(res => {
|
|
309
|
+
res.data.forEach(ress => {
|
|
310
|
+
this.checkBooks.push({
|
|
311
|
+
label: ress.f_check_book_name,
|
|
312
|
+
value: ress.id
|
|
313
|
+
})
|
|
314
|
+
})
|
|
315
|
+
})
|
|
316
|
+
},
|
|
268
317
|
clear(){
|
|
269
318
|
this.model.f_plan_id = '';
|
|
270
319
|
this.model.f_userinfo_code = '';
|