safecheck-client 3.0.33-8 → 3.0.33-80
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/index.html +6 -2
- package/package.json +3 -3
- package/src/App.vue +31 -31
- package/src/components/Util/ImgSelfSafePlus.vue +12 -10
- package/src/components/android/CurrentCreate.vue +1 -1
- package/src/components/android/SafecheckOrderV.vue +3 -3
- package/src/components/paper/PaperList.vue +5 -4
- package/src/components/planmanage/PlanManage.vue +3 -2
- package/src/components/planmanage/checkPlanList.vue +2 -1
- package/src/components/planmanage/checkUserList.vue +34 -2
- package/src/components/report/CheckPlanCountChartArea.vue +5 -0
- package/src/components/report/HiddenSituation.vue +3 -3
- package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +28 -1
- package/src/components/rongcheng/AspiratedPaperMessage.vue +1 -1
- package/src/components/rongcheng/DefectPaper.vue +1 -1
- package/src/components/rongcheng/PaperListNPSQ.vue +35 -1
- package/src/components/rongcheng/PaperListSQ.vue +32 -11
- package/src/components/rongcheng/PhoneUpUserinfo.vue +939 -802
- package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
- package/src/components/rongcheng/report/CheckPlanAreaList.vue +1 -3
- package/src/filiale/Util.js +5 -0
- package/src/filiale/bayan/android/AddPlanItem.vue +12 -3
- package/src/filiale/bayan/android/SafecheckOrderV.vue +9 -5
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +532 -508
- package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
- package/src/filiale/dexin/android/WebMeterOpen.vue +1 -1
- package/src/filiale/dexin/android/WebMeterOpenEdit.vue +25 -37
- package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -0
- package/src/filiale/fugou/android.js +2 -1
- package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
- package/src/filiale/fugou/pc/CheckBook.vue +2 -0
- package/src/filiale/fugou/pc/CheckBookEntry.vue +47 -19
- package/src/filiale/fugou/pc/CheckBookList.vue +2 -2
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +733 -574
- package/src/filiale/fugou/pc/CheckBookUser.vue +102 -45
- package/src/filiale/fugou/pc/DefectPaperNew.vue +10 -6
- package/src/filiale/fugou/pc/PaperDefectMain.vue +12 -6
- package/src/filiale/fugou/pc/PaperList.vue +14 -6
- package/src/filiale/fugou/pc/PlanManage.vue +62 -8
- package/src/filiale/fugou/pc/checkUserList.vue +222 -42
- package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +15 -5
- package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +12 -2
- package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +12 -3
- package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
- package/src/filiale/hanzhong/pc/CheckUserList.vue +30 -11
- package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +11 -2
- package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -0
- package/src/filiale/jingyang/pc.js +1 -0
- package/src/filiale/rongchuang/android/SafecheckDevices.vue +468 -748
- package/src/filiale/rongchuang/android/SafecheckOrderV.vue +984 -1234
- package/src/filiale/rongchuang/android.js +1 -0
- package/src/filiale/rongchuang/pc/NewCheckpaper.vue +294 -305
- package/src/filiale/rongchuang/pc/PaperList.vue +812 -0
- package/src/filiale/rongchuang/pc.js +1 -0
- package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
- package/src/filiale/weinan/android/PaperFeedback.vue +8 -8
- package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/weinan/android/SafecheckOrderV.vue +75 -26
- package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -0
- package/src/filiale/weinan/pc/DefectPaperNew.vue +7 -1
- package/src/filiale/weinan/pc.js +1 -0
- package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -0
- package/src/filiale/wensu/pc/PrintMaterialBill.vue +172 -172
- package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
- package/src/filiale/wenxi/android/SafecheckUserInfo.vue +651 -651
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1 -1
- package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1230 -0
- package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2832 -2832
- package/src/filiale/yangchunboneng/android.js +1 -0
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +28 -1
- package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1168 -1018
- package/src/filiale/yongzhou/android/SafecheckOrderV.vue +221 -256
- package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
- package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1 -1
- package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
- package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +412 -107
- package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -0
- package/src/filiale/yongzhou/pc/PaperList.vue +1 -1
- package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
- package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +55 -125
- package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
- package/src/filiale/yongzhou/pc/safeDetail.vue +311 -20
- package/src/filiale/yongzhou/pc/safeStatistics.vue +74 -24
- package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +2 -2
- package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +2 -2
- package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +47 -23
- package/src/filiale/yongzhou/pc/safeTable.vue +3 -3
- package/src/filiale/yongzhou/pc.js +4 -0
- package/src/filiale/yunchengminsheng/pc/checkUserList.vue +753 -753
- package/src/main.js +2 -2
- package/src/rongcheng.js +3 -1
@@ -4,36 +4,59 @@
|
|
4
4
|
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
5
5
|
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
6
|
<div class="row">
|
7
|
-
<div class="form-group col-sm-3"
|
7
|
+
<div class="form-group col-sm-3">
|
8
8
|
<label class="font_normal_body">客户编号</label>
|
9
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
|
9
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
|
10
|
+
placeholder='客户编号'
|
10
11
|
condition="f_userinfo_code = '{}'" @keyup.enter="search()">
|
11
12
|
</div>
|
12
|
-
<div class="form-group col-sm-2 button-range"
|
13
|
-
<button class="button_search" style="margin-right: 10px"
|
13
|
+
<div class="form-group col-sm-2 button-range">
|
14
|
+
<button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
|
15
|
+
|
16
|
+
</div>
|
17
|
+
<div class="form-group col-sm-2 button-range">
|
18
|
+
<button class="button_search" style="margin-right: 10px" @click="$parent.$parent.delOfCheckBook()" v-el:cba>移出</button>
|
14
19
|
|
15
20
|
</div>
|
16
21
|
</div>
|
17
22
|
</div>
|
18
23
|
</criteria>
|
19
|
-
<data-grid :model="model" class="table_sy"
|
20
|
-
<template partial='head'
|
24
|
+
<data-grid :model="model" class="table_sy" partial='list' v-ref:grid>
|
25
|
+
<template partial='head'>
|
21
26
|
<tr>
|
22
|
-
<th
|
23
|
-
|
24
|
-
|
25
|
-
<th
|
26
|
-
|
27
|
+
<th>
|
28
|
+
<nobr><input type="checkbox" v-model="$parent.$parent.$parent.bookAll"></input>全选</nobr>
|
29
|
+
</th>
|
30
|
+
<th>
|
31
|
+
<nobr>序号</nobr>
|
32
|
+
</th>
|
33
|
+
<th>
|
34
|
+
<nobr>用户编号</nobr>
|
35
|
+
</th>
|
36
|
+
<th>
|
37
|
+
<nobr>用户姓名</nobr>
|
38
|
+
</th>
|
39
|
+
<th>
|
40
|
+
<nobr>用户电话</nobr>
|
41
|
+
</th>
|
42
|
+
<th>
|
43
|
+
<nobr>用户地址</nobr>
|
44
|
+
</th>
|
27
45
|
|
28
46
|
</tr>
|
29
47
|
</template>
|
30
|
-
<template partial='body'
|
31
|
-
<tr
|
32
|
-
<td style="text-align:center
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
48
|
+
<template partial='body'>
|
49
|
+
<tr>
|
50
|
+
<td style="text-align: center">
|
51
|
+
<nobr><input type="checkbox" :checked="$parent.$parent.$parent.checkModel(row)"
|
52
|
+
@change="$parent.$parent.$parent.checkChange(row, $event)"></input>
|
53
|
+
</nobr>
|
54
|
+
</td>
|
55
|
+
<td style="text-align:center;">{{ $index + 1 }}</td>
|
56
|
+
<td style="text-align:center">{{ row.f_userinfo_code }}</td>
|
57
|
+
<td style="text-align:center">{{ row.f_user_name }}</td>
|
58
|
+
<td style="text-align:center">{{ row.f_user_phone }}</td>
|
59
|
+
<td style="text-align:center">{{ row.f_address }}</td>
|
37
60
|
</tr>
|
38
61
|
</template>
|
39
62
|
<template partial='foot'></template>
|
@@ -43,58 +66,92 @@
|
|
43
66
|
</template>
|
44
67
|
|
45
68
|
<script>
|
46
|
-
import {PagedList} from 'vue-client'
|
69
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
47
70
|
|
48
71
|
export default {
|
49
72
|
title: '安检记录列表',
|
50
73
|
props: ['row'],
|
51
|
-
data
|
74
|
+
data() {
|
52
75
|
return {
|
53
76
|
rowdata: this.row,
|
54
|
-
|
77
|
+
bookAll: false,
|
78
|
+
bookList:[],
|
79
|
+
model: new PagedList('rs/sql/safe_singleTable_OrderBy', 50,
|
80
|
+
{
|
81
|
+
items: '"tua.f_address,tui.f_userinfo_code,tui.f_user_name,tui.f_user_phone,tui.f_userinfo_id"',
|
82
|
+
tablename: '"t_user_address tua left join t_userinfo tui on tua.f_userinfo_id = tui.f_userinfo_id"',
|
83
|
+
orderitem: '"tua.id desc"'
|
84
|
+
}
|
85
|
+
)
|
55
86
|
}
|
56
87
|
},
|
57
|
-
ready(){
|
58
|
-
if(this.row){
|
59
|
-
let condition=''
|
60
|
-
|
61
|
-
this.model.url = 'rs/sql/getUserByCheckBook'
|
62
|
-
condition = `ta.f_check_book_id =${this.row.f_check_book_id} and ta.id=${this.row.id}`
|
63
|
-
}else{
|
64
|
-
this.model.url = 'rs/sql/getUserByCheckBookCompany'
|
65
|
-
condition = `tc.f_check_book_id =${this.row.f_check_book_id} and tc.id=${this.row.id}`
|
66
|
-
}
|
88
|
+
ready() {
|
89
|
+
if (this.row) {
|
90
|
+
let condition = ''
|
91
|
+
condition = `tua.f_check_book_id =${this.row.id}`
|
67
92
|
this.model.search(condition)
|
68
93
|
//只显示用户页面
|
69
|
-
this.row.f_check_book_type='用户'
|
94
|
+
this.row.f_check_book_type = '用户'
|
70
95
|
}
|
71
96
|
},
|
72
97
|
watch: {
|
73
|
-
'row'
|
98
|
+
'row'(val) {
|
74
99
|
if (val) {
|
75
100
|
this.rowdata = val
|
76
|
-
let condition=''
|
77
|
-
|
78
|
-
condition = `ta.f_check_book_id =${val.f_check_book_id} and ta.id=${val.id}`
|
79
|
-
}else{
|
80
|
-
condition = `tc.f_check_book_id =${val.f_check_book_id} and tc.id=${val.id}`
|
81
|
-
}
|
101
|
+
let condition = ''
|
102
|
+
condition = `tua.f_check_book_id =${val.id} `
|
82
103
|
this.model.search(condition)
|
83
104
|
}
|
84
105
|
}
|
85
106
|
},
|
86
107
|
methods: {
|
87
|
-
selfSearch
|
108
|
+
selfSearch(args) {
|
88
109
|
if (this.rowdata.id) {
|
89
|
-
|
90
|
-
args.condition += `and ta.f_check_book_id =${this.rowdata.f_check_book_id} and ta.id=${this.rowdata.id}`
|
91
|
-
}else{
|
92
|
-
args.condition += `and tc.f_check_book_id =${this.rowdata.f_check_book_id} and tc.id=${this.rowdata.id}`
|
93
|
-
}
|
110
|
+
args.condition += `and tua.f_check_book_id =${this.rowdata.id}`
|
94
111
|
this.model.search(args.condition)
|
95
112
|
} else {
|
96
113
|
this.$showMessage('请选择片区')
|
97
114
|
}
|
115
|
+
},
|
116
|
+
checkModel (row) {
|
117
|
+
if (this.bookAll) {
|
118
|
+
return true
|
119
|
+
} else {
|
120
|
+
return this.bookList.findIndex(res => res === row.f_userinfo_id) !== -1;
|
121
|
+
}
|
122
|
+
},
|
123
|
+
checkChange (row, e) {
|
124
|
+
if (e.target.checked) {
|
125
|
+
this.bookList.push(row.f_userinfo_id)
|
126
|
+
} else {
|
127
|
+
this.bookList.splice(this.bookList.findIndex(res => res === row.f_userinfo_id), 1)
|
128
|
+
}
|
129
|
+
},
|
130
|
+
delOfCheckBook(){
|
131
|
+
try {
|
132
|
+
let upAddress = `update t_user_address set f_check_book_id = null where 1 = 2 `
|
133
|
+
if (this.bookAll){
|
134
|
+
upAddress = `update t_user_address set f_check_book_id = null where f_check_book_id = '${this.row.id}'`
|
135
|
+
}else if (this.bookList.length > 0){
|
136
|
+
let codes = this.bookList.map( item => { return `'${item}'` } ).join()
|
137
|
+
upAddress = `update t_user_address set f_check_book_id = null where f_userinfo_id in (${codes})`
|
138
|
+
}
|
139
|
+
this.$showMessage('确认移出安检册', ['confirm', 'cancel']).then((res) => {
|
140
|
+
if (res === 'confirm') {
|
141
|
+
let http = new HttpResetClass()
|
142
|
+
http.load('POST', 'rs/logic/runSQL', {data: {sql: upAddress}},
|
143
|
+
{resolveMsg: null, rejectMsg: '移出安检册失败'}).then(resp=>{
|
144
|
+
this.$showMessage('移出成功')
|
145
|
+
this.$refs.paged.$refs.criteria.search()
|
146
|
+
}).catch(error=>{
|
147
|
+
this.$showMessage('移出失败',error)
|
148
|
+
|
149
|
+
})
|
150
|
+
}
|
151
|
+
})
|
152
|
+
}catch (e) {
|
153
|
+
this.$showMessage('移出失败',e)
|
154
|
+
}
|
98
155
|
}
|
99
156
|
}
|
100
157
|
}
|
@@ -199,9 +199,9 @@
|
|
199
199
|
v-model="model.f_user_tags"
|
200
200
|
:options='$parent.$parent.userTags'
|
201
201
|
filer-key="name"
|
202
|
-
|
203
|
-
condition="f_user_tags
|
204
|
-
|
202
|
+
:multiple="true"
|
203
|
+
condition="f_user_tags in {}"
|
204
|
+
>
|
205
205
|
</v-select>
|
206
206
|
</div>
|
207
207
|
<div :class="$parent.$parent.style">
|
@@ -212,9 +212,9 @@
|
|
212
212
|
v-model="model.f_user_gas_type"
|
213
213
|
:options='$parent.$parent.userGasType'
|
214
214
|
filer-key="name"
|
215
|
-
|
216
|
-
condition="f_user_gas_type
|
217
|
-
|
215
|
+
:multiple="true"
|
216
|
+
condition="f_user_gas_type in {}"
|
217
|
+
>
|
218
218
|
</v-select>
|
219
219
|
</div>
|
220
220
|
</div>
|
@@ -414,6 +414,8 @@
|
|
414
414
|
<th><nobr>用户电话</nobr></th>
|
415
415
|
<th><nobr>用户小区</nobr></th>
|
416
416
|
<th><nobr>用户地址</nobr></th>
|
417
|
+
<th><nobr>用户标签</nobr></th>
|
418
|
+
<th><nobr>用气类型</nobr></th>
|
417
419
|
<th><nobr>开户时间</nobr></th>
|
418
420
|
<th><nobr>安检时间</nobr></th>
|
419
421
|
<th><nobr>安检员</nobr></th>
|
@@ -436,6 +438,8 @@
|
|
436
438
|
<td style="text-align: center;white-space:nowrap;">{{row.f_user_phone}}</td>
|
437
439
|
<td style="text-align: center;white-space:nowrap;">{{row.f_residential_area}}</td>
|
438
440
|
<td style="text-align: center;white-space:nowrap;">{{row.f_address}}</td>
|
441
|
+
<td style="text-align: center">{{ row.f_user_tags }}</td>
|
442
|
+
<td style="text-align: center">{{ row.f_user_gas_type }}</td>
|
439
443
|
<td style="text-align: center;white-space:nowrap;">{{row.f_gas_date}}</td>
|
440
444
|
<td style="text-align: center;white-space:nowrap;">{{row.f_offsite_time}}</td>
|
441
445
|
<td style="text-align: center;white-space:nowrap;">{{row.f_checker_name}}</td>
|
@@ -193,9 +193,8 @@
|
|
193
193
|
v-model="model.f_user_tags"
|
194
194
|
:options='$parent.$parent.userTags'
|
195
195
|
filer-key="name"
|
196
|
-
|
197
|
-
|
198
|
-
:value-single="true">
|
196
|
+
condition="f_user_tags in {}"
|
197
|
+
:multiple="true">
|
199
198
|
</v-select>
|
200
199
|
</div>
|
201
200
|
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
|
@@ -206,9 +205,8 @@
|
|
206
205
|
v-model="model.f_user_gas_type"
|
207
206
|
:options='$parent.$parent.userGasType'
|
208
207
|
filer-key="name"
|
209
|
-
|
210
|
-
|
211
|
-
:value-single="true">
|
208
|
+
condition="f_user_gas_type in {}"
|
209
|
+
:multiple="true">
|
212
210
|
</v-select>
|
213
211
|
</div>
|
214
212
|
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
|
@@ -267,6 +265,12 @@
|
|
267
265
|
<th>
|
268
266
|
<nobr>客户小区</nobr>
|
269
267
|
</th>
|
268
|
+
<th>
|
269
|
+
<nobr>用户标签</nobr>
|
270
|
+
</th>
|
271
|
+
<th>
|
272
|
+
<nobr>用气类型</nobr>
|
273
|
+
</th>
|
270
274
|
<th>
|
271
275
|
<data-order field="f_address" name="客户地址"></data-order>
|
272
276
|
</th>
|
@@ -312,6 +316,8 @@
|
|
312
316
|
<td style="text-align: center">{{row.f_user_name}}</td>
|
313
317
|
<td style="text-align: center">{{row.f_user_phone}}</td>
|
314
318
|
<td style="text-align: center">{{row.f_residential_area}}</td>
|
319
|
+
<td style="text-align: center">{{ row.f_user_tags }}</td>
|
320
|
+
<td style="text-align: center">{{ row.f_user_gas_type }}</td>
|
315
321
|
<td style="text-align: center">{{row.f_address}}</td>
|
316
322
|
<td style="text-align: center">{{row.f_offsite_time}}</td>
|
317
323
|
<td style="text-align: center">{{row.f_checker_name}}</td>
|
@@ -295,9 +295,9 @@
|
|
295
295
|
:value.sync="model.f_user_tags" v-model="model.f_user_tags"
|
296
296
|
:options='$parent.$parent.userTags'
|
297
297
|
filer-key="name"
|
298
|
-
|
299
|
-
condition="f_user_tags
|
300
|
-
|
298
|
+
:multiple="true"
|
299
|
+
condition="f_user_tags in {}"
|
300
|
+
>
|
301
301
|
</v-select>
|
302
302
|
</div>
|
303
303
|
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
|
@@ -307,9 +307,9 @@
|
|
307
307
|
:value.sync="model.f_user_gas_type" v-model="model.f_user_gas_type"
|
308
308
|
:options='$parent.$parent.userGasType'
|
309
309
|
filer-key="name"
|
310
|
-
|
311
|
-
condition="f_user_gas_type
|
312
|
-
|
310
|
+
:multiple="true"
|
311
|
+
condition="f_user_gas_type in {}"
|
312
|
+
>
|
313
313
|
</v-select>
|
314
314
|
</div>
|
315
315
|
</div>
|
@@ -362,6 +362,12 @@
|
|
362
362
|
<th>
|
363
363
|
<nobr>用气状态</nobr>
|
364
364
|
</th>
|
365
|
+
<th>
|
366
|
+
<nobr>用户标签</nobr>
|
367
|
+
</th>
|
368
|
+
<th>
|
369
|
+
<nobr>用气类型</nobr>
|
370
|
+
</th>
|
365
371
|
<th>
|
366
372
|
<data-order field="f_offsite_time" name="安检时间"></data-order>
|
367
373
|
</th>
|
@@ -407,6 +413,8 @@
|
|
407
413
|
<td style="text-align: center">{{ row.f_entry_status }}</td>
|
408
414
|
<td style="text-align: center">{{ row.f_plan_name }}</td>
|
409
415
|
<td style="text-align: center">{{ row.f_usegas }}</td>
|
416
|
+
<td style="text-align: center">{{ row.f_user_tags }}</td>
|
417
|
+
<td style="text-align: center">{{ row.f_user_gas_type }}</td>
|
410
418
|
<td style="text-align: center">{{ row.f_offsite_time }}</td>
|
411
419
|
<td style="text-align: center">{{ row.f_checker_name }}</td>
|
412
420
|
<td style="text-align: center">{{ row.f_repair_approved_note }}</td>
|
@@ -27,7 +27,7 @@
|
|
27
27
|
v-for="row in checkplan.list.data" @click="selectPlanChange(row)">
|
28
28
|
<table style="width:100%;table-layout:fixed">
|
29
29
|
<tr class="safe-planfont">
|
30
|
-
<td rowspan="
|
30
|
+
<td rowspan="7"><input type="checkbox" style="pointer-events:auto"
|
31
31
|
v-show="row.plan_count==0 || row.f_issued=='未下发'"
|
32
32
|
onClick="event.cancelBubble = true"
|
33
33
|
:checked="checkplan.check.isChecked(row.f_check_item_id)"
|
@@ -59,6 +59,18 @@
|
|
59
59
|
:title="row.f_create_time">{{ row.f_create_time }}
|
60
60
|
</td>
|
61
61
|
</tr>
|
62
|
+
<tr class="safe-bodyfont" v-if="row.f_end_time">
|
63
|
+
<td colspan="3">结束时间 :</td>
|
64
|
+
<td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
|
65
|
+
:title="row.f_end_time">{{ row.f_end_time }}
|
66
|
+
</td>
|
67
|
+
</tr>
|
68
|
+
<tr class="safe-bodyfont" >
|
69
|
+
<td colspan="3">计划状态:</td>
|
70
|
+
<td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
|
71
|
+
>{{ checkState(row.f_end_time,row.unchecked)}}
|
72
|
+
</td>
|
73
|
+
</tr>
|
62
74
|
<tr class="safe-bodyfont" v-if="row.f_safecheck_type">
|
63
75
|
<td colspan="3">安检类型 :</td>
|
64
76
|
<td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
|
@@ -66,7 +78,7 @@
|
|
66
78
|
</td>
|
67
79
|
</tr>
|
68
80
|
<tr class="safe-bodyfont" v-if="row.f_safecheck_type">
|
69
|
-
<td >
|
81
|
+
<td colspan="8">
|
70
82
|
<input type="button" style="pointer-events:auto"
|
71
83
|
@click="showPlanHistory(row)"
|
72
84
|
onClick="event.cancelBubble = true"/>变更记录
|
@@ -139,18 +151,20 @@
|
|
139
151
|
<label class="font_normal_body">开始时间</label>
|
140
152
|
<datepicker
|
141
153
|
:value.sync="planCondition.f_start_time"
|
154
|
+
style="width: 60%;margin-bottom: 8px"
|
142
155
|
:format="'yyyy-MM-dd HH:mm:ss'"
|
143
156
|
v-model="planCondition.f_start_time"
|
144
|
-
:show-reset-button="reset" placeholder="请输入开始时间"
|
157
|
+
:show-reset-button="reset" placeholder="请输入开始时间">
|
145
158
|
</datepicker>
|
146
159
|
</div>
|
147
160
|
<div class="form-group col-sm-4">
|
148
161
|
<label class="font_normal_body">结束时间:</label>
|
149
162
|
<datepicker
|
150
163
|
:value.sync="planCondition.f_end_time"
|
164
|
+
style="width: 60%;margin-bottom: 8px"
|
151
165
|
:format="'yyyy-MM-dd HH:mm:ss'"
|
152
166
|
v-model="planCondition.f_end_time"
|
153
|
-
:show-reset-button="reset" placeholder="请输入结束时间"
|
167
|
+
:show-reset-button="reset" placeholder="请输入结束时间">
|
154
168
|
</datepicker>
|
155
169
|
</div>
|
156
170
|
<div class="form-group col-sm-4">
|
@@ -231,6 +245,21 @@
|
|
231
245
|
>
|
232
246
|
</v-select>
|
233
247
|
</div>
|
248
|
+
<div class="form-group col-sm-4">
|
249
|
+
<label class="font_normal_body">计划类型:</label>
|
250
|
+
<v-select
|
251
|
+
class="select select_list"
|
252
|
+
:value.sync="planCondition.f_plan_type"
|
253
|
+
v-model="planCondition.f_plan_type"
|
254
|
+
@change="setProperty('checkplan','f_plan_type',planCondition.f_plan_type)"
|
255
|
+
:search="false"
|
256
|
+
:options='planType'
|
257
|
+
placeholder='请选择'
|
258
|
+
close-on-select
|
259
|
+
value-single
|
260
|
+
>
|
261
|
+
</v-select>
|
262
|
+
</div>
|
234
263
|
</div>
|
235
264
|
</div>
|
236
265
|
<div slot="modal-footer" class="modal-footer" style="text-align: center">
|
@@ -397,7 +426,7 @@
|
|
397
426
|
value-single>
|
398
427
|
</v-select>
|
399
428
|
</div>
|
400
|
-
<div class="form-group col-sm-4"
|
429
|
+
<div class="form-group col-sm-4" >
|
401
430
|
<label class="font_normal_body">结束时间:</label>
|
402
431
|
<datepicker
|
403
432
|
:value.sync="upCheckPlan.f_end_time"
|
@@ -602,6 +631,29 @@ export default {
|
|
602
631
|
|
603
632
|
},
|
604
633
|
methods: {
|
634
|
+
//判断计划状态
|
635
|
+
checkState(time,unchecked) {
|
636
|
+
//判断当前时间与time的大小,time格式为 yyyy-MM-dd HH:mm:ss
|
637
|
+
let now = new Date()
|
638
|
+
let last = new Date(time)
|
639
|
+
if(time==undefined || time==''){
|
640
|
+
return '无'
|
641
|
+
}else{
|
642
|
+
if(last.getTime() >now.getTime() ){
|
643
|
+
return '安检中'
|
644
|
+
}else if(last.getTime() <now.getTime()){
|
645
|
+
//结束时间小于当前时间,
|
646
|
+
//判断未检数,未检大于0,则逾期
|
647
|
+
if(unchecked>0){
|
648
|
+
return '逾期'
|
649
|
+
}
|
650
|
+
if(unchecked<=0){
|
651
|
+
return '已完成'
|
652
|
+
}
|
653
|
+
}
|
654
|
+
}
|
655
|
+
|
656
|
+
},
|
605
657
|
showPlanHistory(row){
|
606
658
|
this.showPlanHistoryButton = true
|
607
659
|
this.planHistory = JSON.parse(row.f_update_check_plan)
|
@@ -776,7 +828,8 @@ export default {
|
|
776
828
|
"isAndNot": "f_checker {}",
|
777
829
|
"safechecktype": "f_safecheck_type='{}'",
|
778
830
|
"issude": "f_issued = '{}'",
|
779
|
-
"f_create_operator": "f_create_operator like '%{}%'"
|
831
|
+
"f_create_operator": "f_create_operator like '%{}%'",
|
832
|
+
"f_plan_type": "f_plan_type = '{}'"
|
780
833
|
},
|
781
834
|
{
|
782
835
|
orderitem: fieldValue,
|
@@ -807,10 +860,10 @@ export default {
|
|
807
860
|
this.showUpPlan = true
|
808
861
|
},
|
809
862
|
async upPlan() {
|
810
|
-
if (this.upCheckPlan.f_issued == '已下发') {
|
863
|
+
/*if (this.upCheckPlan.f_issued == '已下发') {
|
811
864
|
this.$showMessage("该计划已下发,无法进行修改!")
|
812
865
|
return
|
813
|
-
}
|
866
|
+
}*/
|
814
867
|
if (!this.upCheckPlan.f_plan_name) {
|
815
868
|
Vue.showMessage("请输入安检计划名称!")
|
816
869
|
return false
|
@@ -849,6 +902,7 @@ export default {
|
|
849
902
|
f_end_time: this.upCheckPlan.f_end_time,
|
850
903
|
f_operetiom_name:this.upCheckPlan.f_operetiom_name,
|
851
904
|
f_update_message:this.upCheckPlan.f_update_message,
|
905
|
+
issued: '是' // 修改已下发计划
|
852
906
|
}
|
853
907
|
}, {resolveMsg: null, rejectMsg: null})
|
854
908
|
if (res.data.code == 200) {
|