safecheck-client 3.0.34-6 → 3.0.34-61
Sign up to get free protection for your applications and to get access to all the features.
- package/docs/FormPrint.md +18 -18
- package/docs/GridTree.md +47 -47
- package/docs/PrintFile.md +38 -38
- package/docs/tree.md +40 -40
- 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 +617 -616
- package/src/components/android/AddGas.vue +147 -147
- package/src/components/android/AndroidDefectDeal.vue +1 -0
- package/src/components/android/AreaPlan.vue +566 -566
- package/src/components/android/AreaSelect.vue +208 -0
- package/src/components/android/BuildingSelect.vue +217 -0
- package/src/components/android/CheckPlanSelect.vue +248 -0
- package/src/components/android/CheckerMonthly.vue +84 -84
- package/src/components/android/LcheckUnplan.vue +108 -108
- package/src/components/android/PaperFeedback.vue +33 -0
- package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
- package/src/components/android/QRCode/QRCodePage.vue +212 -0
- package/src/components/android/SafecheckDevices.vue +2 -2
- package/src/components/android/SafecheckOrderV.vue +8 -12
- package/src/components/android/SwitchValve.vue +323 -323
- package/src/components/android/examples/SafeListExamples.vue +96 -0
- package/src/components/android/examples/UserExamples.vue +130 -0
- package/src/components/checkerphonestate/Checker.vue +32 -32
- package/src/components/checkerphonestate/CheckerState.vue +97 -97
- package/src/components/defects/AddDefectModal.vue +120 -120
- package/src/components/defects/AddDevice.vue +95 -95
- package/src/components/defects/DevicesSeting.vue +106 -106
- package/src/components/metterfiles/AddUserfiles.vue +246 -246
- package/src/components/metterfiles/MetterFiles.vue +104 -104
- package/src/components/notice/NoticeQuery.vue +76 -76
- package/src/components/paper/RepairVerifyForm.vue +76 -76
- package/src/components/phonestate/DailyTraffic.vue +57 -57
- package/src/components/phonestate/LastKnownState.vue +74 -74
- package/src/components/rongcheng/AddPlanItem.vue +4 -0
- package/src/components/rongcheng/AspiratedUserInfo.vue +1 -1
- package/src/components/rongcheng/CheckSearchUser.vue +40 -14
- package/src/components/rongcheng/PaperStatem.vue +6 -1
- package/src/components/rongcheng/PhoneDevicesInfo.vue +16 -1
- package/src/components/rongcheng/PhoneUpUserinfo.vue +0 -92
- package/src/components/rongcheng/SafecheckOrderV.vue +12 -3
- package/src/components/rongcheng/SafecheckOrderVCli.vue +9 -0
- package/src/components/task/RepairAnnual.vue +79 -79
- package/src/components/task/RepairAnnualDetail.vue +49 -49
- package/src/components/task/RepairMonthly.vue +91 -91
- package/src/components/task/TaskAnnual.vue +77 -77
- package/src/components/task/TaskAnnualDetail.vue +47 -47
- package/src/components/task/TaskMonthly.vue +89 -89
- package/src/components/userfile/UserfileChange.vue +277 -277
- package/src/filiale/baiyin/android/AndroidDefectDeal.vue +4 -4
- package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -0
- package/src/filiale/baiyin/android.js +1 -0
- package/src/filiale/baiyin/pc/CheckSearchUser.vue +2 -2
- package/src/filiale/baiyin/pc/DefectListNew.vue +3 -3
- package/src/filiale/baiyin/pc/PaperList.vue +7 -7
- package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
- package/src/filiale/baiyin/pc.js +21 -21
- package/src/filiale/bayan/android/SafecheckOrderV.vue +52 -29
- package/src/filiale/bayan/pc/PaperList.vue +1 -0
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
- 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 +6 -6
- package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -0
- package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
- package/src/filiale/jiaxian/android.js +4 -0
- package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
- 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/pc/checkUserList.vue +700 -700
- package/src/filiale/siyang/pc/CheckBookSearchArea.vue +645 -0
- package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -0
- package/src/filiale/siyang/pc/CheckSearchUser.vue +982 -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 +5 -0
- 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 +1060 -1060
- package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +5 -2
- 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 +1 -1
- package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -722
- package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
- package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
- package/src/filiale/weinan/pc/DefectMainNew.vue +63 -63
- 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 +712 -776
- package/src/filiale/weinan/pc.js +47 -46
- package/src/filiale/wuan/android/SafecheckOrderV.vue +1 -0
- package/src/filiale/wuan/android/SafecheckUserInfo.vue +4 -0
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1192 -1192
- package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +472 -472
- package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +473 -473
- package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +13 -11
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +6 -6
- package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +10 -10
- package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +10 -10
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +6 -6
- package/src/filiale/yangchunboneng/pc/PaperList.vue +6 -6
- package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
- package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
- 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/safecheck-android.js +7 -0
- package/src/safecheck-page.js +10 -0
@@ -1,246 +1,246 @@
|
|
1
|
-
<template>
|
2
|
-
<div style="overflow-x: hidden;">
|
3
|
-
<validator name='v'>
|
4
|
-
<form novalidate class="form-horizontal">
|
5
|
-
<div class="form-group">
|
6
|
-
<label for="f_userinfoid" class="col-sm-offset-1 col-sm-1 control-label">用户编号:</label>
|
7
|
-
<div class="col-sm-2">
|
8
|
-
<input class="form-control" type="text" v-model="model.f_userinfoid"
|
9
|
-
v-validate:f_userinfoid='{ required: true }' placeholder="用户编号不能为空" >
|
10
|
-
</div>
|
11
|
-
|
12
|
-
<label for="f_user_name" class="col-sm-1 control-label">用户姓名:</label>
|
13
|
-
<div class="col-sm-2">
|
14
|
-
<input class="form-control" type="text" v-model="model.f_user_name"
|
15
|
-
v-validate:f_user_name='{ required: true }' placeholder="用户姓名不能为空" placeholder='用户姓名' >
|
16
|
-
</div>
|
17
|
-
<label for="f_user_phone" class="col-sm-1 control-label">用户电话:</label>
|
18
|
-
<div class="col-sm-2">
|
19
|
-
<input class="form-control" type="text" v-model="model.f_user_phone"
|
20
|
-
v-validate:f_user_phone='{ required: true }' placeholder="用户电话不能为空" >
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
|
24
|
-
<div class="form-group">
|
25
|
-
<label for="f_subcompany" class="col-sm-offset-1 col-sm-1 control-label">所属分公司:</label>
|
26
|
-
<div class="col-sm-2">
|
27
|
-
<v-select id="f_subcompany"
|
28
|
-
placeholder='请选择分公司'
|
29
|
-
:value.sync="f_subcompany"
|
30
|
-
:options='f_divisions'
|
31
|
-
close-on-select clear-button></v-select>
|
32
|
-
</div>
|
33
|
-
|
34
|
-
<label for="f_archive_date" class="col-sm-1 control-label">建档日期:</label>
|
35
|
-
<div class="col-sm-2">
|
36
|
-
<datepicker id="startdate"
|
37
|
-
:value.sync="model.f_archive_date"
|
38
|
-
:disabled-days-of-Week="[]"
|
39
|
-
:format="'yyyy-MM-dd'"
|
40
|
-
width = "171px"
|
41
|
-
placeholder='建档日期'>
|
42
|
-
</datepicker>
|
43
|
-
</div>
|
44
|
-
<label for="f_user_type" class="col-sm-1 control-label">用户类型:</label>
|
45
|
-
<div class="col-sm-2">
|
46
|
-
<v-select id="f_user_type"
|
47
|
-
placeholder='请选择'
|
48
|
-
:value.sync="f_user_type"
|
49
|
-
:options='f_usertype'
|
50
|
-
close-on-select clear-button></v-select>
|
51
|
-
</div>
|
52
|
-
</div>
|
53
|
-
|
54
|
-
<div class="form-group">
|
55
|
-
<label for="f_street" class="col-sm-offset-1 col-sm-1 control-label">街道:</label>
|
56
|
-
<div class="col-sm-2">
|
57
|
-
<input class="form-control" type="text" v-model="model.f_street"
|
58
|
-
v-validate:f_street='{ required: true }' placeholder='街道'>
|
59
|
-
</div>
|
60
|
-
<label for="f_residential_area" class="col-sm-1 control-label">小区:</label>
|
61
|
-
<div class="col-sm-2">
|
62
|
-
<input class="form-control" type="text" v-model="model.f_residential_area"
|
63
|
-
v-validate:f_residential_area='{ required: true }' placeholder='小区'>
|
64
|
-
</div>
|
65
|
-
|
66
|
-
<label for="f_building" class="col-sm-1 control-label">楼号:</label>
|
67
|
-
<div class="col-sm-2">
|
68
|
-
<input class="form-control" type="text" v-model="model.f_building"
|
69
|
-
v-validate:f_building='{ required: true }' placeholder='楼号'>
|
70
|
-
</div>
|
71
|
-
</div>
|
72
|
-
|
73
|
-
<div class="form-group">
|
74
|
-
<label for="f_unit" class="col-sm-offset-1 col-sm-1 control-label">单元:</label>
|
75
|
-
<div class="col-sm-2">
|
76
|
-
<input class="form-control" type="text" v-model="model.f_unit"
|
77
|
-
v-validate:f_unit='{ required: true }'
|
78
|
-
placeholder='单元'>
|
79
|
-
</div>
|
80
|
-
|
81
|
-
<label for="f_floor" class="col-sm-1 control-label">楼层:</label>
|
82
|
-
<div class="col-sm-2">
|
83
|
-
<input class="form-control" type="text" v-model="model.f_floor"
|
84
|
-
v-validate:f_floor='{ required: true }' placeholder='楼层'>
|
85
|
-
</div>
|
86
|
-
|
87
|
-
<label for="f_room" class="col-sm-1 control-label">门牌号:</label>
|
88
|
-
<div class="col-sm-2">
|
89
|
-
<input class="form-control" type="text" v-model="model.f_room"
|
90
|
-
v-validate:f_room='{ required: true }' placeholder='门牌号'>
|
91
|
-
</div>
|
92
|
-
</div>
|
93
|
-
|
94
|
-
<div class="form-group">
|
95
|
-
<label for="f_address" class="col-sm-offset-1 col-sm-1 control-label">详细地址:</label>
|
96
|
-
<div class="col-sm-2">
|
97
|
-
<input class="form-control" type="text" v-model="model.f_address"
|
98
|
-
v-validate:f_address='{ required: true }' placeholder='详细地址'>
|
99
|
-
</div>
|
100
|
-
|
101
|
-
|
102
|
-
<label for="f_last_check_date" class="col-sm-1 control-label">最后安检日期:</label>
|
103
|
-
<div class="col-sm-2">
|
104
|
-
<datepicker id="f_last_check_date"
|
105
|
-
:value.sync="model.f_last_check_date"
|
106
|
-
:disabled-days-of-Week="[]"
|
107
|
-
:format="'yyyy-MM-dd'"
|
108
|
-
width = "171px"
|
109
|
-
placeholder='最后安检日期'>
|
110
|
-
</datepicker>
|
111
|
-
</div>
|
112
|
-
<label for="f_last_check_state" class="col-sm-1 control-label">最后安检状态:</label>
|
113
|
-
<div class="col-sm-2">
|
114
|
-
<v-select id="f_last_check_state"
|
115
|
-
placeholder='请选择'
|
116
|
-
:value.sync="f_last_check_state"
|
117
|
-
:options='last_checkstate'
|
118
|
-
close-on-select clear-button></v-select>
|
119
|
-
</div>
|
120
|
-
|
121
|
-
</div>
|
122
|
-
<div class="form-group">
|
123
|
-
|
124
|
-
<label for="f_checker" class="col-sm-offset-1 col-sm-1 control-label">安检负责人:</label>
|
125
|
-
<div class="col-sm-2">
|
126
|
-
<v-select id="f_checker"
|
127
|
-
placeholder='请选择'
|
128
|
-
:value.sync="f_checker_selected"
|
129
|
-
:options='f_checkers'
|
130
|
-
close-on-select clear-button></v-select>
|
131
|
-
</div>
|
132
|
-
|
133
|
-
<label for="f_state" class=" col-sm-1 control-label">档案状态:</label>
|
134
|
-
<div class="col-sm-2">
|
135
|
-
<v-select id="f_state"
|
136
|
-
placeholder='请选择'
|
137
|
-
:value.sync="f_state"
|
138
|
-
:options='fstate'
|
139
|
-
close-on-select clear-button
|
140
|
-
placeholder='档案状态'></v-select>
|
141
|
-
</div>
|
142
|
-
|
143
|
-
<label for="f_inputdate" class=" col-sm-1 control-label">录入时间:</label>
|
144
|
-
<div class="col-sm-2">
|
145
|
-
<datepicker id="f_inputdate"
|
146
|
-
:value.sync="model.f_inputdate"
|
147
|
-
:disabled-days-of-Week="[]"
|
148
|
-
:format="'yyyy-MM-dd HH:mm:ss'"
|
149
|
-
width = "171px"
|
150
|
-
placeholder='录入时间'>
|
151
|
-
</datepicker>
|
152
|
-
</div>
|
153
|
-
</div>
|
154
|
-
|
155
|
-
<div class="form-group">
|
156
|
-
<label for="f_remark" class=" col-sm-offset-1 col-sm-1 control-label">备注:</label>
|
157
|
-
<div class="col-sm-6">
|
158
|
-
<input class="form-control" type="text" v-model="model.f_remark" placeholder='备注'>
|
159
|
-
</div>
|
160
|
-
</div>
|
161
|
-
</form>
|
162
|
-
<div style="text-align:center;height:auto;">
|
163
|
-
<button class="btn btn-primary" :disabled="!($v.valid&&open)" @click="confirm()" style="width:100px;margin-left:20px;">
|
164
|
-
<span class="glyphicon glyphicon-floppy-disk"></span>保存
|
165
|
-
</button>
|
166
|
-
<button class="btn btn-default" @click='$back()' style="width:100px;margin-left:20px;">
|
167
|
-
<span class="glyphicon glyphicon-log-out"></span>返回
|
168
|
-
</button>
|
169
|
-
</div>
|
170
|
-
</validator>
|
171
|
-
</div>
|
172
|
-
</template>
|
173
|
-
|
174
|
-
<script>
|
175
|
-
import co from 'co'
|
176
|
-
import Vue from 'vue'
|
177
|
-
import AppData from '../../stores/AppData'
|
178
|
-
let saveGen = function * (self) {
|
179
|
-
self.model.f_sign = '1'
|
180
|
-
self.model.f_subcompany = self.f_subcompany[0]
|
181
|
-
self.model.f_user_type = self.f_user_type[0]
|
182
|
-
self.model.f_last_check_state = self.f_last_check_state[0]
|
183
|
-
self.model.f_state = self.f_state[0]
|
184
|
-
let p = self.f_checker_selected[0].indexOf('-')
|
185
|
-
self.model.f_checker = self.f_checker_selected[0].substring(0, p)
|
186
|
-
self.model.f_checker_id = self.f_checker_selected[0].substring(p+1)
|
187
|
-
yield self.$post('rs/logic/人工录入', { data: self.model })
|
188
|
-
// 通知项目保存成功。
|
189
|
-
self.$back()
|
190
|
-
}
|
191
|
-
|
192
|
-
export default {
|
193
|
-
title: '添加档案',
|
194
|
-
props: [ 'f' ],
|
195
|
-
data () {
|
196
|
-
return {
|
197
|
-
model: {
|
198
|
-
f_last_check_date: '',
|
199
|
-
f_archive_date: '',
|
200
|
-
f_checker: '',
|
201
|
-
f_inputdate: ''
|
202
|
-
},
|
203
|
-
f_userinfoid: '',
|
204
|
-
f_user_name: '',
|
205
|
-
f_user_phone: '',
|
206
|
-
f_archive_date: '',
|
207
|
-
f_street: '',
|
208
|
-
f_residential_area: '',
|
209
|
-
f_building: '',
|
210
|
-
f_unit: '',
|
211
|
-
f_floor: '',
|
212
|
-
f_room: '',
|
213
|
-
f_address: '',
|
214
|
-
f_remark: '',
|
215
|
-
f_last_check_date: '',
|
216
|
-
f_subcompany: [''],
|
217
|
-
f_divisions: this.$appdata.getParam('安检系统用子公司'),
|
218
|
-
f_user_type: [''],
|
219
|
-
f_usertype: this.$appdata.getParam('用户类型'),
|
220
|
-
f_last_check_state: [''],
|
221
|
-
last_checkstate: this.$appdata.getParam('安检状态'),
|
222
|
-
f_state: ['点火'],
|
223
|
-
fstate: this.$appdata.getParam('用户档案状态'),
|
224
|
-
f_checker_selected: [''],
|
225
|
-
f_checkers: this.$appdata.getParam(Vue.f_subcompany + '安检员'),
|
226
|
-
}
|
227
|
-
},
|
228
|
-
methods: {
|
229
|
-
confirm () {
|
230
|
-
let gen = saveGen(this)
|
231
|
-
return co(gen)
|
232
|
-
}
|
233
|
-
},
|
234
|
-
computed: {
|
235
|
-
open () {
|
236
|
-
if (this.f_subcompany[0] !== '' && this.model.f_archive_date !== '' && this.f_user_type[0] !== '' && this.model.f_last_check_date !== '' &&
|
237
|
-
this.f_last_check_state[0] !== '' && this.f_state[0] !== '' && this.model.f_inputdate !== '' && this.f_checker_selected[0]) {
|
238
|
-
return true
|
239
|
-
} else {
|
240
|
-
return false
|
241
|
-
}
|
242
|
-
}
|
243
|
-
}
|
244
|
-
}
|
245
|
-
|
246
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div style="overflow-x: hidden;">
|
3
|
+
<validator name='v'>
|
4
|
+
<form novalidate class="form-horizontal">
|
5
|
+
<div class="form-group">
|
6
|
+
<label for="f_userinfoid" class="col-sm-offset-1 col-sm-1 control-label">用户编号:</label>
|
7
|
+
<div class="col-sm-2">
|
8
|
+
<input class="form-control" type="text" v-model="model.f_userinfoid"
|
9
|
+
v-validate:f_userinfoid='{ required: true }' placeholder="用户编号不能为空" >
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<label for="f_user_name" class="col-sm-1 control-label">用户姓名:</label>
|
13
|
+
<div class="col-sm-2">
|
14
|
+
<input class="form-control" type="text" v-model="model.f_user_name"
|
15
|
+
v-validate:f_user_name='{ required: true }' placeholder="用户姓名不能为空" placeholder='用户姓名' >
|
16
|
+
</div>
|
17
|
+
<label for="f_user_phone" class="col-sm-1 control-label">用户电话:</label>
|
18
|
+
<div class="col-sm-2">
|
19
|
+
<input class="form-control" type="text" v-model="model.f_user_phone"
|
20
|
+
v-validate:f_user_phone='{ required: true }' placeholder="用户电话不能为空" >
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div class="form-group">
|
25
|
+
<label for="f_subcompany" class="col-sm-offset-1 col-sm-1 control-label">所属分公司:</label>
|
26
|
+
<div class="col-sm-2">
|
27
|
+
<v-select id="f_subcompany"
|
28
|
+
placeholder='请选择分公司'
|
29
|
+
:value.sync="f_subcompany"
|
30
|
+
:options='f_divisions'
|
31
|
+
close-on-select clear-button></v-select>
|
32
|
+
</div>
|
33
|
+
|
34
|
+
<label for="f_archive_date" class="col-sm-1 control-label">建档日期:</label>
|
35
|
+
<div class="col-sm-2">
|
36
|
+
<datepicker id="startdate"
|
37
|
+
:value.sync="model.f_archive_date"
|
38
|
+
:disabled-days-of-Week="[]"
|
39
|
+
:format="'yyyy-MM-dd'"
|
40
|
+
width = "171px"
|
41
|
+
placeholder='建档日期'>
|
42
|
+
</datepicker>
|
43
|
+
</div>
|
44
|
+
<label for="f_user_type" class="col-sm-1 control-label">用户类型:</label>
|
45
|
+
<div class="col-sm-2">
|
46
|
+
<v-select id="f_user_type"
|
47
|
+
placeholder='请选择'
|
48
|
+
:value.sync="f_user_type"
|
49
|
+
:options='f_usertype'
|
50
|
+
close-on-select clear-button></v-select>
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
<div class="form-group">
|
55
|
+
<label for="f_street" class="col-sm-offset-1 col-sm-1 control-label">街道:</label>
|
56
|
+
<div class="col-sm-2">
|
57
|
+
<input class="form-control" type="text" v-model="model.f_street"
|
58
|
+
v-validate:f_street='{ required: true }' placeholder='街道'>
|
59
|
+
</div>
|
60
|
+
<label for="f_residential_area" class="col-sm-1 control-label">小区:</label>
|
61
|
+
<div class="col-sm-2">
|
62
|
+
<input class="form-control" type="text" v-model="model.f_residential_area"
|
63
|
+
v-validate:f_residential_area='{ required: true }' placeholder='小区'>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
<label for="f_building" class="col-sm-1 control-label">楼号:</label>
|
67
|
+
<div class="col-sm-2">
|
68
|
+
<input class="form-control" type="text" v-model="model.f_building"
|
69
|
+
v-validate:f_building='{ required: true }' placeholder='楼号'>
|
70
|
+
</div>
|
71
|
+
</div>
|
72
|
+
|
73
|
+
<div class="form-group">
|
74
|
+
<label for="f_unit" class="col-sm-offset-1 col-sm-1 control-label">单元:</label>
|
75
|
+
<div class="col-sm-2">
|
76
|
+
<input class="form-control" type="text" v-model="model.f_unit"
|
77
|
+
v-validate:f_unit='{ required: true }'
|
78
|
+
placeholder='单元'>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
<label for="f_floor" class="col-sm-1 control-label">楼层:</label>
|
82
|
+
<div class="col-sm-2">
|
83
|
+
<input class="form-control" type="text" v-model="model.f_floor"
|
84
|
+
v-validate:f_floor='{ required: true }' placeholder='楼层'>
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<label for="f_room" class="col-sm-1 control-label">门牌号:</label>
|
88
|
+
<div class="col-sm-2">
|
89
|
+
<input class="form-control" type="text" v-model="model.f_room"
|
90
|
+
v-validate:f_room='{ required: true }' placeholder='门牌号'>
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
<div class="form-group">
|
95
|
+
<label for="f_address" class="col-sm-offset-1 col-sm-1 control-label">详细地址:</label>
|
96
|
+
<div class="col-sm-2">
|
97
|
+
<input class="form-control" type="text" v-model="model.f_address"
|
98
|
+
v-validate:f_address='{ required: true }' placeholder='详细地址'>
|
99
|
+
</div>
|
100
|
+
|
101
|
+
|
102
|
+
<label for="f_last_check_date" class="col-sm-1 control-label">最后安检日期:</label>
|
103
|
+
<div class="col-sm-2">
|
104
|
+
<datepicker id="f_last_check_date"
|
105
|
+
:value.sync="model.f_last_check_date"
|
106
|
+
:disabled-days-of-Week="[]"
|
107
|
+
:format="'yyyy-MM-dd'"
|
108
|
+
width = "171px"
|
109
|
+
placeholder='最后安检日期'>
|
110
|
+
</datepicker>
|
111
|
+
</div>
|
112
|
+
<label for="f_last_check_state" class="col-sm-1 control-label">最后安检状态:</label>
|
113
|
+
<div class="col-sm-2">
|
114
|
+
<v-select id="f_last_check_state"
|
115
|
+
placeholder='请选择'
|
116
|
+
:value.sync="f_last_check_state"
|
117
|
+
:options='last_checkstate'
|
118
|
+
close-on-select clear-button></v-select>
|
119
|
+
</div>
|
120
|
+
|
121
|
+
</div>
|
122
|
+
<div class="form-group">
|
123
|
+
|
124
|
+
<label for="f_checker" class="col-sm-offset-1 col-sm-1 control-label">安检负责人:</label>
|
125
|
+
<div class="col-sm-2">
|
126
|
+
<v-select id="f_checker"
|
127
|
+
placeholder='请选择'
|
128
|
+
:value.sync="f_checker_selected"
|
129
|
+
:options='f_checkers'
|
130
|
+
close-on-select clear-button></v-select>
|
131
|
+
</div>
|
132
|
+
|
133
|
+
<label for="f_state" class=" col-sm-1 control-label">档案状态:</label>
|
134
|
+
<div class="col-sm-2">
|
135
|
+
<v-select id="f_state"
|
136
|
+
placeholder='请选择'
|
137
|
+
:value.sync="f_state"
|
138
|
+
:options='fstate'
|
139
|
+
close-on-select clear-button
|
140
|
+
placeholder='档案状态'></v-select>
|
141
|
+
</div>
|
142
|
+
|
143
|
+
<label for="f_inputdate" class=" col-sm-1 control-label">录入时间:</label>
|
144
|
+
<div class="col-sm-2">
|
145
|
+
<datepicker id="f_inputdate"
|
146
|
+
:value.sync="model.f_inputdate"
|
147
|
+
:disabled-days-of-Week="[]"
|
148
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
149
|
+
width = "171px"
|
150
|
+
placeholder='录入时间'>
|
151
|
+
</datepicker>
|
152
|
+
</div>
|
153
|
+
</div>
|
154
|
+
|
155
|
+
<div class="form-group">
|
156
|
+
<label for="f_remark" class=" col-sm-offset-1 col-sm-1 control-label">备注:</label>
|
157
|
+
<div class="col-sm-6">
|
158
|
+
<input class="form-control" type="text" v-model="model.f_remark" placeholder='备注'>
|
159
|
+
</div>
|
160
|
+
</div>
|
161
|
+
</form>
|
162
|
+
<div style="text-align:center;height:auto;">
|
163
|
+
<button class="btn btn-primary" :disabled="!($v.valid&&open)" @click="confirm()" style="width:100px;margin-left:20px;">
|
164
|
+
<span class="glyphicon glyphicon-floppy-disk"></span>保存
|
165
|
+
</button>
|
166
|
+
<button class="btn btn-default" @click='$back()' style="width:100px;margin-left:20px;">
|
167
|
+
<span class="glyphicon glyphicon-log-out"></span>返回
|
168
|
+
</button>
|
169
|
+
</div>
|
170
|
+
</validator>
|
171
|
+
</div>
|
172
|
+
</template>
|
173
|
+
|
174
|
+
<script>
|
175
|
+
import co from 'co'
|
176
|
+
import Vue from 'vue'
|
177
|
+
import AppData from '../../stores/AppData'
|
178
|
+
let saveGen = function * (self) {
|
179
|
+
self.model.f_sign = '1'
|
180
|
+
self.model.f_subcompany = self.f_subcompany[0]
|
181
|
+
self.model.f_user_type = self.f_user_type[0]
|
182
|
+
self.model.f_last_check_state = self.f_last_check_state[0]
|
183
|
+
self.model.f_state = self.f_state[0]
|
184
|
+
let p = self.f_checker_selected[0].indexOf('-')
|
185
|
+
self.model.f_checker = self.f_checker_selected[0].substring(0, p)
|
186
|
+
self.model.f_checker_id = self.f_checker_selected[0].substring(p+1)
|
187
|
+
yield self.$post('rs/logic/人工录入', { data: self.model })
|
188
|
+
// 通知项目保存成功。
|
189
|
+
self.$back()
|
190
|
+
}
|
191
|
+
|
192
|
+
export default {
|
193
|
+
title: '添加档案',
|
194
|
+
props: [ 'f' ],
|
195
|
+
data () {
|
196
|
+
return {
|
197
|
+
model: {
|
198
|
+
f_last_check_date: '',
|
199
|
+
f_archive_date: '',
|
200
|
+
f_checker: '',
|
201
|
+
f_inputdate: ''
|
202
|
+
},
|
203
|
+
f_userinfoid: '',
|
204
|
+
f_user_name: '',
|
205
|
+
f_user_phone: '',
|
206
|
+
f_archive_date: '',
|
207
|
+
f_street: '',
|
208
|
+
f_residential_area: '',
|
209
|
+
f_building: '',
|
210
|
+
f_unit: '',
|
211
|
+
f_floor: '',
|
212
|
+
f_room: '',
|
213
|
+
f_address: '',
|
214
|
+
f_remark: '',
|
215
|
+
f_last_check_date: '',
|
216
|
+
f_subcompany: [''],
|
217
|
+
f_divisions: this.$appdata.getParam('安检系统用子公司'),
|
218
|
+
f_user_type: [''],
|
219
|
+
f_usertype: this.$appdata.getParam('用户类型'),
|
220
|
+
f_last_check_state: [''],
|
221
|
+
last_checkstate: this.$appdata.getParam('安检状态'),
|
222
|
+
f_state: ['点火'],
|
223
|
+
fstate: this.$appdata.getParam('用户档案状态'),
|
224
|
+
f_checker_selected: [''],
|
225
|
+
f_checkers: this.$appdata.getParam(Vue.f_subcompany + '安检员'),
|
226
|
+
}
|
227
|
+
},
|
228
|
+
methods: {
|
229
|
+
confirm () {
|
230
|
+
let gen = saveGen(this)
|
231
|
+
return co(gen)
|
232
|
+
}
|
233
|
+
},
|
234
|
+
computed: {
|
235
|
+
open () {
|
236
|
+
if (this.f_subcompany[0] !== '' && this.model.f_archive_date !== '' && this.f_user_type[0] !== '' && this.model.f_last_check_date !== '' &&
|
237
|
+
this.f_last_check_state[0] !== '' && this.f_state[0] !== '' && this.model.f_inputdate !== '' && this.f_checker_selected[0]) {
|
238
|
+
return true
|
239
|
+
} else {
|
240
|
+
return false
|
241
|
+
}
|
242
|
+
}
|
243
|
+
}
|
244
|
+
}
|
245
|
+
|
246
|
+
</script>
|