safecheck-client 3.0.34-1 → 3.0.34-100
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 +1 -1
- package/src/App-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.vue +55 -0
- package/src/assets/123.png +0 -0
- package/src/assets/f8632d3c8c4c1cb68e99da754cab1a7.png +0 -0
- package/src/components/LoadData.vue +62 -0
- package/src/components/NewDefectList/DefectListNew.vue +1 -0
- package/src/components/android/AddPlanItemYy.vue +451 -0
- package/src/components/android/AndroidDefectDeal.vue +1 -0
- package/src/components/android/AndroidDefectDealBeforeSafe.vue +502 -0
- package/src/components/android/AreaPlan.vue +1 -7
- package/src/components/android/AreaSelect.vue +198 -0
- package/src/components/android/BuildingSelect.vue +192 -0
- package/src/components/android/CheckPlanSelect.vue +229 -0
- package/src/components/android/CurrentCreateYy.vue +1051 -0
- package/src/components/android/ImgSelfAndroid.vue +181 -181
- package/src/components/android/PaperFeedback.vue +34 -1
- package/src/components/android/PaperFeedbackTemp.vue +1 -1
- package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
- package/src/components/android/QRCode/QRCodePage.vue +212 -0
- package/src/components/android/SafecheckDevices.vue +4 -4
- package/src/components/android/SafecheckDevicesTemp.vue +1 -1
- package/src/components/android/SafecheckOrderV.vue +8 -12
- package/src/components/android/UserinfoSelect.vue +714 -0
- package/src/components/android/examples/410.png +0 -0
- package/src/components/android/examples/SafeListExamples.vue +296 -0
- package/src/components/android/examples/UserExamples.vue +137 -0
- package/src/components/android/examples/ViewDetailsExamples.vue +1235 -0
- package/src/components/android/examples/touxiang.png +0 -0
- package/src/components/android/userinfo/SafecheckUserInfo.vue +1 -1
- package/src/components/pc/SafeVisitInfo.vue +261 -0
- package/src/components/rongcheng/AddPlanItem.vue +8 -0
- package/src/components/rongcheng/AspiratedAreaPlan.vue +574 -464
- package/src/components/rongcheng/AspiratedUserInfo.vue +1 -1
- package/src/components/rongcheng/CheckSearchUser.vue +46 -16
- package/src/components/rongcheng/PaperStatem.vue +6 -1
- package/src/components/rongcheng/PhoneDevicesInfo.vue +16 -1
- package/src/components/rongcheng/PhoneUpUserinfo.vue +1236 -1328
- package/src/components/rongcheng/SafecheckOrderV.vue +12 -3
- package/src/components/rongcheng/SafecheckOrderVCli.vue +9 -0
- package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -633
- package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -0
- package/src/filiale/baiyin/android.js +11 -10
- package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -485
- package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -1067
- package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
- package/src/filiale/baiyin/pc/DefectMainNew.vue +63 -63
- package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -1052
- package/src/filiale/baiyin/pc/PaperList.vue +790 -790
- package/src/filiale/baiyin/pc/PlanChooser.vue +167 -167
- package/src/filiale/baiyin/pc/PlanManage.vue +834 -834
- package/src/filiale/baiyin/pc/RightTreeSafe.vue +348 -348
- package/src/filiale/baiyin/pc/RoleSelector.vue +160 -160
- package/src/filiale/bayan/android/AddPlanItem.vue +8 -0
- package/src/filiale/bayan/android/PaperFeedback.vue +68 -50
- package/src/filiale/bayan/android/PhoneUpUserinfo.vue +40 -40
- package/src/filiale/bayan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/bayan/android/SafecheckOrderV.vue +58 -58
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +6 -1
- package/src/filiale/bayan/pc/NewCheckpaper.vue +50 -46
- package/src/filiale/bayan/pc/PaperList.vue +1 -0
- package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
- package/src/filiale/hanzhong/android/PaperFeedback.vue +1 -1
- package/src/filiale/hanzhong/android/SafecheckDevices.vue +1 -1
- package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
- package/src/filiale/huaran/android.js +12 -0
- package/src/filiale/huaran/pc/CheckBook.vue +313 -0
- package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
- package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
- package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
- package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
- package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
- package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
- package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
- package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
- package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
- package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
- package/src/filiale/huaran/pc/PaperList.vue +822 -0
- package/src/filiale/huaran/pc/PlanManage.vue +887 -0
- package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
- package/src/filiale/huaran/pc/checkUserList.vue +867 -0
- package/src/filiale/huaran/pc.js +27 -0
- package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
- package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
- package/src/filiale/jiaxian/android/SafecheckDevices.vue +1298 -1298
- package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -0
- package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
- package/src/filiale/jiaxian/android.js +14 -10
- package/src/filiale/jiaxian/pc.js +12 -12
- package/src/filiale/jingyang/android/PaperFeedback.vue +1 -1
- package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
- package/src/filiale/pingxiang/android/PaperFeedback.vue +1 -1
- package/src/filiale/qianneng/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1270 -1270
- package/src/filiale/qingjian/android/SafecheckDevices.vue +1 -1
- package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
- package/src/filiale/qingjian/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -0
- package/src/filiale/qingtongxia/android/CurrentCreate.vue +1053 -0
- package/src/filiale/qingtongxia/android/PhoneUpUserinfo.vue +1230 -0
- package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -0
- package/src/filiale/qingtongxia/android.js +4 -0
- package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
- package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
- package/src/filiale/ruihua/android.js +11 -0
- package/src/filiale/shanxian/android/AddPlanItem.vue +447 -0
- package/src/filiale/shanxian/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/shanxian/android.js +1 -0
- package/src/filiale/shanxian/pc/PaperList.vue +785 -0
- package/src/filiale/shanxian/pc/checkUserList.vue +4 -4
- package/src/filiale/shanxian/pc.js +2 -2
- package/src/filiale/shiquan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/siyang/android/AddPlanItem.vue +450 -0
- package/src/filiale/siyang/android/AppCheckPlan.vue +246 -0
- package/src/filiale/siyang/android/CurrentCreate.vue +1051 -0
- package/src/filiale/siyang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/siyang/android.js +4 -0
- package/src/filiale/siyang/pc/CheckBookList.vue +396 -0
- package/src/filiale/siyang/pc/CheckBookSearchArea.vue +667 -0
- package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -0
- package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -0
- package/src/filiale/siyang/pc/HiddenSituation.vue +167 -0
- package/src/filiale/siyang/pc/checkPlanList.vue +367 -0
- package/src/filiale/siyang/pc/checkUserList.vue +22 -18
- package/src/filiale/siyang/pc.js +6 -0
- package/src/filiale/tongchuan/android/SafecheckDevices.vue +2 -2
- package/src/filiale/tongchuan/android/Select.vue +421 -0
- package/src/filiale/tongchuan/android.js +1 -0
- package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +3 -1
- package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +6 -2
- package/src/filiale/tongchuan/pc/HiddenSituation.vue +3 -1
- package/src/filiale/tongchuan/pc/NewCheckpaper.vue +13 -22
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1 -1
- package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +5 -2
- package/src/filiale/tongchuan/pc/checkUserList.vue +30 -0
- package/src/filiale/tongchuan/utils/EventListener.js +29 -0
- package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
- package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/weinan/android/SafecheckOrderV.vue +6 -2
- package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +75 -62
- package/src/filiale/weinan/pc/CheckDetail.vue +11 -11
- package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
- package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
- package/src/filiale/weinan/pc/checkUserList.vue +49 -113
- package/src/filiale/weinan/pc.js +1 -0
- package/src/filiale/wuan/android/SafecheckOrderV.vue +5 -1
- package/src/filiale/wuan/android/SafecheckUserInfo.vue +10 -5
- package/src/filiale/xilan/android/AddPlanItem.vue +457 -0
- package/src/filiale/xilan/android/CurrentCreate.vue +1063 -0
- package/src/filiale/xilan/android.js +11 -0
- package/src/filiale/xilan/pc/checkUserList.vue +772 -0
- package/src/filiale/xilan/pc.js +12 -0
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +8 -11
- package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +8 -13
- package/src/filiale/yangchunboneng/android/NewCheckpaperAndroid.vue +1362 -1362
- package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1731 -1731
- package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -1235
- package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +1336 -1332
- package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2845
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
- package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +8 -13
- package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +23 -11
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +9 -9
- package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +96 -30
- package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
- package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +54 -3
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1046 -944
- package/src/filiale/yangchunboneng/pc/PaperList.vue +29 -0
- package/src/filiale/yongzhou/android/PaperFeedback.vue +1 -1
- package/src/filiale/yongzhou/android/SafecheckDevices.vue +1 -1
- package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
- package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
- package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1 -1
- package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1 -1
- package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +1 -1
- package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
- package/src/main.js +33 -33
- package/src/safecheck-android.js +307 -296
- package/src/safecheck-page.js +12 -0
- package/src/safecheck.js +3 -0
@@ -1,167 +1,167 @@
|
|
1
|
-
<template>
|
2
|
-
<div>
|
3
|
-
<form class="form-inline">
|
4
|
-
<div class="row form-group">
|
5
|
-
<div class="col-sm-4">
|
6
|
-
<label class="font_normal_body" for="c_plan_year">计划年份:</label>
|
7
|
-
<v-select id="c_plan_year" :value.sync="c_plan_year"
|
8
|
-
class="select_list select"
|
9
|
-
:width="'55%'"
|
10
|
-
style="width: 55%"
|
11
|
-
:options='c_year_list' close-on-select clear-button></v-select>
|
12
|
-
</div>
|
13
|
-
<div class="col-sm-4">
|
14
|
-
<label class="font_normal_body" for="c_plan_month">计划月份:</label>
|
15
|
-
<v-select id="c_plan_month" :value.sync="c_plan_month"
|
16
|
-
class="select_list select"
|
17
|
-
:width="'55%'"
|
18
|
-
style="width: 55%"
|
19
|
-
:options='c_month_list' close-on-select clear-button></v-select>
|
20
|
-
</div>
|
21
|
-
<div class="col-sm-4">
|
22
|
-
<label class="font_normal_body">安检人员:</label>
|
23
|
-
<v-select id="checker" :value.sync="model.f_checker_id" placeholder='安检员'
|
24
|
-
:value-single="true"
|
25
|
-
class="select_list select"
|
26
|
-
:width="'55%'"
|
27
|
-
style="width: 55%"
|
28
|
-
:options='checkers' close-on-select clear-button> </v-select>
|
29
|
-
</div>
|
30
|
-
</div>
|
31
|
-
<div class="row form-group">
|
32
|
-
<!--<div style="width: 65%;height:100%; display: inline-block">-->
|
33
|
-
<div class="col-sm-4">
|
34
|
-
<label class="font_normal_body">是否共享:</label>
|
35
|
-
<v-select id="share" :value.sync="model.f_is_share" placeholder='是否共享'
|
36
|
-
:value-single="true"
|
37
|
-
class="select_list select"
|
38
|
-
:width="'55%'"
|
39
|
-
style="width: 55%"
|
40
|
-
:options='shares' close-on-select clear-button> </v-select>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
<div class="col-sm-4">
|
44
|
-
<label class="font_normal_body">计划名称:</label>
|
45
|
-
<input type="text" class="input_search" v-model="model.f_plan_name"
|
46
|
-
style="width: 60%" placeholder="计划名称" condition="f_plan_name like '%{}%'">
|
47
|
-
</div>
|
48
|
-
<div class="col-sm-4">
|
49
|
-
<button type="button" class="button_search" @click="search()">查询</button>
|
50
|
-
</div>
|
51
|
-
</div>
|
52
|
-
</form>
|
53
|
-
<hr>
|
54
|
-
<table class="table table_sy">
|
55
|
-
<thead>
|
56
|
-
<tr>
|
57
|
-
<th></th>
|
58
|
-
<th>计划名称</th>
|
59
|
-
<th>计划类型</th>
|
60
|
-
</tr>
|
61
|
-
</thead>
|
62
|
-
<tbody>
|
63
|
-
<tr v-for="row in model.rows">
|
64
|
-
<td @click="select(row, $index)">{{row.selected ? '☆' : ''}}</td>
|
65
|
-
<td @click="select(row, $index)">{{row.f_plan_name}}</td>
|
66
|
-
<td @click="select(row, $index)">{{row.f_plan_type}}</td>
|
67
|
-
</tr>
|
68
|
-
</tbody>
|
69
|
-
</table>
|
70
|
-
</div>
|
71
|
-
</template>
|
72
|
-
|
73
|
-
<script>
|
74
|
-
import { PagedList } from 'vue-client'
|
75
|
-
import Vue from 'vue'
|
76
|
-
import co from 'co'
|
77
|
-
import { HttpResetClass } from 'vue-client'
|
78
|
-
|
79
|
-
let selectnew = function * (self) {
|
80
|
-
let http = new HttpResetClass()
|
81
|
-
http.load('POST', '/rs/search', {
|
82
|
-
data:{
|
83
|
-
source: `this.getSpecialResByType($user$).where(row.getAttributes().get($rolesnames$)!=null ).where(row.getAttributes().get($rolesnames$).indexOf($安检员$) != -1)`,
|
84
|
-
userid: self.$login.f.f_orgids.substring(0,this.$login.f.f_orgids.length-1)
|
85
|
-
}
|
86
|
-
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
87
|
-
self.checkers = []
|
88
|
-
let arr = []
|
89
|
-
//tag
|
90
|
-
res.data.forEach((resRow) => {
|
91
|
-
if(!arr.includes(resRow.name) && resRow.state == '在职'){
|
92
|
-
arr.push(resRow.name)
|
93
|
-
self.checkers.push({label:resRow.name,value:resRow.id})
|
94
|
-
}
|
95
|
-
})
|
96
|
-
self.checkers.push({label:'全部',value:''})
|
97
|
-
})
|
98
|
-
}
|
99
|
-
|
100
|
-
|
101
|
-
export default {
|
102
|
-
title: '选择安检计划',
|
103
|
-
props: ['f'],
|
104
|
-
data() {
|
105
|
-
let options = []
|
106
|
-
let year = (new Date()).getFullYear()
|
107
|
-
for(let i = year - 8; i <= year +1; i++ )
|
108
|
-
options.push({label: i+'', value: i+''})
|
109
|
-
let moptions = []
|
110
|
-
for(let i=1; i<=12; i++)
|
111
|
-
moptions.push({label: i + '', value: i + ''})
|
112
|
-
let model = new PagedList('rs/sql/按年月人员提取安检计划', 20,
|
113
|
-
{f_subcompany:'this.f_subcompany',f_plan_name:'this.f_plan_name',f_checker_id: 'this.f_checker_id', f_plan_year: 'this.f_plan_year', f_plan_month: 'this.f_plan_month', f_is_share: 'this.f_is_share',f_filialeid:'this.f_filialeid'})
|
114
|
-
model.f_checker_id = ''
|
115
|
-
model.f_plan_name=''
|
116
|
-
model.f_filialeid = this.$login.f.f_orgids.substring(0,this.$login.f.f_orgids.length-1)
|
117
|
-
return {
|
118
|
-
checker:'',
|
119
|
-
checkers:[],
|
120
|
-
shares: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}],
|
121
|
-
c_plan_year: [year + ''],
|
122
|
-
c_year_list: options,
|
123
|
-
c_month_list: moptions,
|
124
|
-
c_plan_month: [moptions[new Date().getMonth()].value],
|
125
|
-
model: model,
|
126
|
-
selectedRow: {}
|
127
|
-
}
|
128
|
-
},
|
129
|
-
ready () {
|
130
|
-
this.model.f_plan_year = this.c_plan_year[0]
|
131
|
-
this.model.f_plan_month = this.c_plan_month[0]
|
132
|
-
this.model.f_subcompany = this.$login.f.f_orgids.substring(0,this.$login.f.f_orgids.length-1)
|
133
|
-
//tag
|
134
|
-
//tag
|
135
|
-
//tag
|
136
|
-
this.model.f_plan_name=''
|
137
|
-
let gen = selectnew(this)
|
138
|
-
return co(gen)
|
139
|
-
},
|
140
|
-
watch: {
|
141
|
-
'c_plan_year' (val) {
|
142
|
-
this.model.f_plan_year = val[0]
|
143
|
-
},
|
144
|
-
'c_plan_month' (val) {
|
145
|
-
this.model.f_plan_month = val[0]
|
146
|
-
},
|
147
|
-
'checker'(){
|
148
|
-
//tag
|
149
|
-
this.selectedRow = {}
|
150
|
-
}
|
151
|
-
},
|
152
|
-
methods: {
|
153
|
-
search () {
|
154
|
-
//this.model.rows = []
|
155
|
-
this.model.rows = []
|
156
|
-
this.model.search()
|
157
|
-
},
|
158
|
-
select(row, idx) {
|
159
|
-
if(this.selectedRow)
|
160
|
-
this.$set('model.rows[' + this.selectedRow.idx + '].selected', false)
|
161
|
-
this.selectedRow = row
|
162
|
-
this.selectedRow.idx = idx
|
163
|
-
this.$set('model.rows[' + idx + '].selected', true)
|
164
|
-
}
|
165
|
-
}
|
166
|
-
}
|
167
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<form class="form-inline">
|
4
|
+
<div class="row form-group">
|
5
|
+
<div class="col-sm-4">
|
6
|
+
<label class="font_normal_body" for="c_plan_year">计划年份:</label>
|
7
|
+
<v-select id="c_plan_year" :value.sync="c_plan_year"
|
8
|
+
class="select_list select"
|
9
|
+
:width="'55%'"
|
10
|
+
style="width: 55%"
|
11
|
+
:options='c_year_list' close-on-select clear-button></v-select>
|
12
|
+
</div>
|
13
|
+
<div class="col-sm-4">
|
14
|
+
<label class="font_normal_body" for="c_plan_month">计划月份:</label>
|
15
|
+
<v-select id="c_plan_month" :value.sync="c_plan_month"
|
16
|
+
class="select_list select"
|
17
|
+
:width="'55%'"
|
18
|
+
style="width: 55%"
|
19
|
+
:options='c_month_list' close-on-select clear-button></v-select>
|
20
|
+
</div>
|
21
|
+
<div class="col-sm-4">
|
22
|
+
<label class="font_normal_body">安检人员:</label>
|
23
|
+
<v-select id="checker" :value.sync="model.f_checker_id" placeholder='安检员'
|
24
|
+
:value-single="true"
|
25
|
+
class="select_list select"
|
26
|
+
:width="'55%'"
|
27
|
+
style="width: 55%"
|
28
|
+
:options='checkers' close-on-select clear-button> </v-select>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
<div class="row form-group">
|
32
|
+
<!--<div style="width: 65%;height:100%; display: inline-block">-->
|
33
|
+
<div class="col-sm-4">
|
34
|
+
<label class="font_normal_body">是否共享:</label>
|
35
|
+
<v-select id="share" :value.sync="model.f_is_share" placeholder='是否共享'
|
36
|
+
:value-single="true"
|
37
|
+
class="select_list select"
|
38
|
+
:width="'55%'"
|
39
|
+
style="width: 55%"
|
40
|
+
:options='shares' close-on-select clear-button> </v-select>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div class="col-sm-4">
|
44
|
+
<label class="font_normal_body">计划名称:</label>
|
45
|
+
<input type="text" class="input_search" v-model="model.f_plan_name"
|
46
|
+
style="width: 60%" placeholder="计划名称" condition="f_plan_name like '%{}%'">
|
47
|
+
</div>
|
48
|
+
<div class="col-sm-4">
|
49
|
+
<button type="button" class="button_search" @click="search()">查询</button>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
</form>
|
53
|
+
<hr>
|
54
|
+
<table class="table table_sy">
|
55
|
+
<thead>
|
56
|
+
<tr>
|
57
|
+
<th></th>
|
58
|
+
<th>计划名称</th>
|
59
|
+
<th>计划类型</th>
|
60
|
+
</tr>
|
61
|
+
</thead>
|
62
|
+
<tbody>
|
63
|
+
<tr v-for="row in model.rows">
|
64
|
+
<td @click="select(row, $index)">{{row.selected ? '☆' : ''}}</td>
|
65
|
+
<td @click="select(row, $index)">{{row.f_plan_name}}</td>
|
66
|
+
<td @click="select(row, $index)">{{row.f_plan_type}}</td>
|
67
|
+
</tr>
|
68
|
+
</tbody>
|
69
|
+
</table>
|
70
|
+
</div>
|
71
|
+
</template>
|
72
|
+
|
73
|
+
<script>
|
74
|
+
import { PagedList } from 'vue-client'
|
75
|
+
import Vue from 'vue'
|
76
|
+
import co from 'co'
|
77
|
+
import { HttpResetClass } from 'vue-client'
|
78
|
+
|
79
|
+
let selectnew = function * (self) {
|
80
|
+
let http = new HttpResetClass()
|
81
|
+
http.load('POST', '/rs/search', {
|
82
|
+
data:{
|
83
|
+
source: `this.getSpecialResByType($user$).where(row.getAttributes().get($rolesnames$)!=null ).where(row.getAttributes().get($rolesnames$).indexOf($安检员$) != -1)`,
|
84
|
+
userid: self.$login.f.f_orgids.substring(0,this.$login.f.f_orgids.length-1)
|
85
|
+
}
|
86
|
+
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
87
|
+
self.checkers = []
|
88
|
+
let arr = []
|
89
|
+
//tag
|
90
|
+
res.data.forEach((resRow) => {
|
91
|
+
if(!arr.includes(resRow.name) && resRow.state == '在职'){
|
92
|
+
arr.push(resRow.name)
|
93
|
+
self.checkers.push({label:resRow.name,value:resRow.id})
|
94
|
+
}
|
95
|
+
})
|
96
|
+
self.checkers.push({label:'全部',value:''})
|
97
|
+
})
|
98
|
+
}
|
99
|
+
|
100
|
+
|
101
|
+
export default {
|
102
|
+
title: '选择安检计划',
|
103
|
+
props: ['f'],
|
104
|
+
data() {
|
105
|
+
let options = []
|
106
|
+
let year = (new Date()).getFullYear()
|
107
|
+
for(let i = year - 8; i <= year +1; i++ )
|
108
|
+
options.push({label: i+'', value: i+''})
|
109
|
+
let moptions = []
|
110
|
+
for(let i=1; i<=12; i++)
|
111
|
+
moptions.push({label: i + '', value: i + ''})
|
112
|
+
let model = new PagedList('rs/sql/按年月人员提取安检计划', 20,
|
113
|
+
{f_subcompany:'this.f_subcompany',f_plan_name:'this.f_plan_name',f_checker_id: 'this.f_checker_id', f_plan_year: 'this.f_plan_year', f_plan_month: 'this.f_plan_month', f_is_share: 'this.f_is_share',f_filialeid:'this.f_filialeid'})
|
114
|
+
model.f_checker_id = ''
|
115
|
+
model.f_plan_name=''
|
116
|
+
model.f_filialeid = this.$login.f.f_orgids.substring(0,this.$login.f.f_orgids.length-1)
|
117
|
+
return {
|
118
|
+
checker:'',
|
119
|
+
checkers:[],
|
120
|
+
shares: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}],
|
121
|
+
c_plan_year: [year + ''],
|
122
|
+
c_year_list: options,
|
123
|
+
c_month_list: moptions,
|
124
|
+
c_plan_month: [moptions[new Date().getMonth()].value],
|
125
|
+
model: model,
|
126
|
+
selectedRow: {}
|
127
|
+
}
|
128
|
+
},
|
129
|
+
ready () {
|
130
|
+
this.model.f_plan_year = this.c_plan_year[0]
|
131
|
+
this.model.f_plan_month = this.c_plan_month[0]
|
132
|
+
this.model.f_subcompany = this.$login.f.f_orgids.substring(0,this.$login.f.f_orgids.length-1)
|
133
|
+
//tag
|
134
|
+
//tag
|
135
|
+
//tag
|
136
|
+
this.model.f_plan_name=''
|
137
|
+
let gen = selectnew(this)
|
138
|
+
return co(gen)
|
139
|
+
},
|
140
|
+
watch: {
|
141
|
+
'c_plan_year' (val) {
|
142
|
+
this.model.f_plan_year = val[0]
|
143
|
+
},
|
144
|
+
'c_plan_month' (val) {
|
145
|
+
this.model.f_plan_month = val[0]
|
146
|
+
},
|
147
|
+
'checker'(){
|
148
|
+
//tag
|
149
|
+
this.selectedRow = {}
|
150
|
+
}
|
151
|
+
},
|
152
|
+
methods: {
|
153
|
+
search () {
|
154
|
+
//this.model.rows = []
|
155
|
+
this.model.rows = []
|
156
|
+
this.model.search()
|
157
|
+
},
|
158
|
+
select(row, idx) {
|
159
|
+
if(this.selectedRow)
|
160
|
+
this.$set('model.rows[' + this.selectedRow.idx + '].selected', false)
|
161
|
+
this.selectedRow = row
|
162
|
+
this.selectedRow.idx = idx
|
163
|
+
this.$set('model.rows[' + idx + '].selected', true)
|
164
|
+
}
|
165
|
+
}
|
166
|
+
}
|
167
|
+
</script>
|