safecheck-client 3.0.34-4 → 3.0.34-43
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/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/android/AddGas.vue +147 -147
- package/src/components/android/AndroidDefectDeal.vue +1 -0
- package/src/components/android/AreaPlan.vue +566 -572
- package/src/components/android/CheckerMonthly.vue +84 -84
- package/src/components/android/LcheckUnplan.vue +108 -108
- package/src/components/android/PaperFeedback.vue +1 -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 +1 -1
- package/src/components/android/SafecheckDevicesTemp.vue +1 -1
- package/src/components/android/SafecheckOrderV.vue +2809 -2809
- package/src/components/android/SwitchValve.vue +323 -323
- package/src/components/android/examples/SafeListExamples.vue +96 -0
- package/src/components/android/examples/UserExamples.vue +126 -0
- package/src/components/android/userinfo/SafecheckUserInfo.vue +1 -1
- 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/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/SafecheckOrderV.vue +2798 -0
- package/src/filiale/baiyin/android.js +1 -0
- package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
- package/src/filiale/baiyin/pc.js +21 -21
- package/src/filiale/bayan/android/PaperFeedback.vue +1 -1
- package/src/filiale/bayan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/bayan/android/SafecheckOrderV.vue +52 -29
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +1 -1
- 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 +4 -4
- package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2811 -0
- package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
- package/src/filiale/jiaxian/android.js +4 -0
- 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/qingjian/android/SafecheckDevices.vue +1 -1
- package/src/filiale/qingjian/android/SafecheckUserInfo.vue +1 -1
- 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/shiquan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/siyang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/tongchuan/android/Select.vue +421 -0
- package/src/filiale/tongchuan/android.js +1 -0
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
- 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 +57 -59
- 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 +34 -113
- package/src/filiale/weinan/pc.js +47 -46
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1192 -1200
- package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +472 -480
- package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1 -1
- package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +2 -2
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +473 -481
- package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +9 -7
- 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/safecheck-android.js +4 -0
@@ -1,277 +1,277 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="flex">
|
3
|
-
<validator name='v'>
|
4
|
-
<form novalidate class="form-horizontal">
|
5
|
-
<div class="form-group">
|
6
|
-
<label for="f_user_name" class="col-sm-2 control-label ">用户姓名:</label>
|
7
|
-
<div class="col-sm-2">
|
8
|
-
<input type="text" v-model="model.f_username" class="form-control" id="f_user_name" v-validate:f_user_name='{ required: true }'>
|
9
|
-
</div>
|
10
|
-
|
11
|
-
<label for="f_user_phone" class="col-sm-2 control-label">用户电话</label>
|
12
|
-
<div class="col-sm-2">
|
13
|
-
<input type="text" v-model="model.f_phone" class="form-control" id="f_user_phone" v-validate:f_user_name='{ required: true }'>
|
14
|
-
</div>
|
15
|
-
|
16
|
-
<label for="f_subcompany" class="col-sm-2 control-label">所属分公司:</label>
|
17
|
-
<div class="col-sm-2">
|
18
|
-
<v-select id="f_subcompany"
|
19
|
-
placeholder='请选择分公司'
|
20
|
-
:value.sync="f_division"
|
21
|
-
:options='f_divisions'
|
22
|
-
close-on-select clear-button></v-select>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
|
26
|
-
<div class="form-group">
|
27
|
-
<label for="f_last_check_date" class="col-sm-2 control-label ">最后安检日期:</label>
|
28
|
-
<div class="col-sm-2">
|
29
|
-
<datepicker id="startdate"
|
30
|
-
:value.sync="f_last_check_date"
|
31
|
-
:disabled-days-of-Week="[]"
|
32
|
-
:format="'yyyy-MM-dd'" >
|
33
|
-
</datepicker>
|
34
|
-
</div>
|
35
|
-
|
36
|
-
<label for="f_last_check_state" class="col-sm-2 control-label">最后安检状态:</label>
|
37
|
-
<div class="col-sm-2">
|
38
|
-
<v-select id="f_last_check_state"
|
39
|
-
placeholder='请选择'
|
40
|
-
:value.sync="f_last_check_state"
|
41
|
-
:options='f_last_check_state_opt'
|
42
|
-
close-on-select clear-button></v-select>
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<label for="f_checker" class="col-sm-2 control-label">安检负责人:</label>
|
46
|
-
<div class="col-sm-2">
|
47
|
-
<v-select id="f_checker"
|
48
|
-
placeholder='请选择'
|
49
|
-
:value.sync="f_checker_selected"
|
50
|
-
:options='f_checkers'
|
51
|
-
close-on-select clear-button></v-select>
|
52
|
-
</div>
|
53
|
-
</div>
|
54
|
-
|
55
|
-
<div class="form-group">
|
56
|
-
|
57
|
-
<label for="f_archive_date" class="col-sm-2 control-label">建档日期:</label>
|
58
|
-
<div class="col-sm-2">
|
59
|
-
<datepicker id="startdate"
|
60
|
-
:value.sync="f_archive_date"
|
61
|
-
:disabled-days-of-Week="[]"
|
62
|
-
:format="'yyyy-MM-dd'">
|
63
|
-
</datepicker>
|
64
|
-
</div>
|
65
|
-
|
66
|
-
<label for="f_user_type" class="col-sm-2 control-label">用户类型:</label>
|
67
|
-
<div class="col-sm-2">
|
68
|
-
<v-select id="f_user_type"
|
69
|
-
placeholder='请选择'
|
70
|
-
:value.sync="f_user_type"
|
71
|
-
:options='f_user_type_opt'
|
72
|
-
close-on-select clear-button></v-select>
|
73
|
-
</div>
|
74
|
-
|
75
|
-
<label for="f_street" class="col-sm-2 control-label">街道:</label>
|
76
|
-
<div class="col-sm-2">
|
77
|
-
<input type="text" class="form-control " id="f_street"
|
78
|
-
v-model="model.f_street" v-validate:f_street='{ required: true }'/>
|
79
|
-
</div>
|
80
|
-
</div>
|
81
|
-
<div class="form-group">
|
82
|
-
<label for="f_residential_area" class="col-sm-2 control-label" >小区:</label>
|
83
|
-
<div class="col-sm-2">
|
84
|
-
<input type="text" class="form-control " id="f_residential_area"
|
85
|
-
v-model="model.f_districtname" v-validate:f_residential_area='{ required: true }'>
|
86
|
-
</div>
|
87
|
-
|
88
|
-
<label for="f_building" class="col-sm-2 control-label" >楼号:</label>
|
89
|
-
<div class="col-sm-2">
|
90
|
-
<input type="text" class="form-control " id="f_building"
|
91
|
-
v-model="model.f_building" v-validate:f_building='{ required: true }'>
|
92
|
-
</div>
|
93
|
-
|
94
|
-
<label for="f_unit" class="col-sm-2 control-label">单元:</label>
|
95
|
-
<div class="col-sm-2">
|
96
|
-
<input type="text" class="form-control " id="f_unit"
|
97
|
-
v-model="model.f_unit" v-validate:f_unit='{ required: true }'/>
|
98
|
-
</div>
|
99
|
-
</div>
|
100
|
-
<div class="form-group">
|
101
|
-
|
102
|
-
<label for="f_floor" class="col-sm-2 control-label" >楼层:</label>
|
103
|
-
<div class="col-sm-2">
|
104
|
-
<input type="text" class="form-control " id="f_floor"
|
105
|
-
v-model="model.f_floor" v-validate:f_floor='{ required: true }'>
|
106
|
-
</div>
|
107
|
-
<label for="f_room" class="col-sm-2 control-label" >门牌号:</label>
|
108
|
-
<div class="col-sm-2">
|
109
|
-
<input type="text" class="form-control " id="f_room"
|
110
|
-
v-model="model.f_room" v-validate:f_room='{ required: true }'>
|
111
|
-
</div>
|
112
|
-
|
113
|
-
<label for="f_address" class="col-sm-2 control-label">详细地址:</label>
|
114
|
-
<div class="col-sm-2">
|
115
|
-
<input type="text" class="form-control " id="f_address"
|
116
|
-
v-model="model.f_address" v-validate:f_address='{ required: true }'/>
|
117
|
-
</div>
|
118
|
-
|
119
|
-
</div>
|
120
|
-
|
121
|
-
<div class="form-group">
|
122
|
-
<label for="f_modifier" class="col-sm-2 control-label " v-if="false">修改提交人:</label>
|
123
|
-
<div class="col-sm-2" v-if="false">
|
124
|
-
<input type="text" class="form-control " id="f_modifier" v-model="model.f_modifier" >
|
125
|
-
</div>
|
126
|
-
<label for="f_remark" class="col-sm-2 control-label">备注:</label>
|
127
|
-
<div class="col-sm-10">
|
128
|
-
<input type="text" class="form-control" id="f_remark"
|
129
|
-
v-model="model.f_remark">
|
130
|
-
</div>
|
131
|
-
</div>
|
132
|
-
<hr>
|
133
|
-
气表档案:<span class="glyphicon glyphicon-plus" @click="addMeter"></span>
|
134
|
-
</form>
|
135
|
-
<div class="span">
|
136
|
-
<data-grid :model="model" partial='list' v-ref:grid>
|
137
|
-
<template partial='head'>
|
138
|
-
<tr>
|
139
|
-
<th>表号</th>
|
140
|
-
<th>卡号</th>
|
141
|
-
<th>生产厂家</th>
|
142
|
-
<th>计量类型</th>
|
143
|
-
<th>操作</th>
|
144
|
-
</tr>
|
145
|
-
</template>
|
146
|
-
<template partial='body'>
|
147
|
-
<td>{{row.f_meter_no}}</td>
|
148
|
-
<td>{{row.f_card_id}}</td>
|
149
|
-
<td>{{row.f_meter_brand}}</td>
|
150
|
-
<td>{{row.f_meter_measurement }}</td>
|
151
|
-
<td>
|
152
|
-
<span class="glyphicon glyphicon-remove" @click="$parent.$parent.deleteRow(row)"></span>
|
153
|
-
<span class="glyphicon glyphicon-edit" @click="$parent.$parent.editRow(row)"></span>
|
154
|
-
</td>
|
155
|
-
</template>
|
156
|
-
</data-grid>
|
157
|
-
</div>
|
158
|
-
<div class="auto">
|
159
|
-
<button :disabled='!($v.valid) || model.rows.length==0' @click="confirm()" type="button" class="btn btn-success">提 交</button>
|
160
|
-
<button @click="$back()" type="button" class="btn btn-success">返 回</button>
|
161
|
-
</div>
|
162
|
-
</validator>
|
163
|
-
</div>
|
164
|
-
</template>
|
165
|
-
|
166
|
-
<script>
|
167
|
-
import co from 'co'
|
168
|
-
import MessageBox from 'vue-client'
|
169
|
-
import Vue from 'vue'
|
170
|
-
import * as Util from '../Util'
|
171
|
-
import AppData from '../../stores/AppData'
|
172
|
-
|
173
|
-
let saveGen = function * (self) {
|
174
|
-
self.model.f_approved = '未审核'
|
175
|
-
self.model.f_modifier = self.f.name
|
176
|
-
self.model.f_modifier_id = self.f.id
|
177
|
-
self.model.f_subcompany = self.f_division[0]
|
178
|
-
self.model.f_last_check_date = self.f_last_check_date
|
179
|
-
self.model.f_archive_date = self.f_archive_date
|
180
|
-
self.model.f_residential_area = self.model.f_districtname
|
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_checker = self.f_checker_selected[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 = self.f_checker_selected[0].substring(p+1)
|
187
|
-
yield self.$resetpost('rs/logic/提交档案修改', { data: self.model })
|
188
|
-
// 通知项目保存成功。
|
189
|
-
self.$back()
|
190
|
-
}
|
191
|
-
|
192
|
-
|
193
|
-
export default {
|
194
|
-
props: ['f', 'model'],
|
195
|
-
title: '修改用户档案',
|
196
|
-
data () {
|
197
|
-
return {
|
198
|
-
//transient
|
199
|
-
f_division: [''],
|
200
|
-
f_divisions: Vue.f_subcompany != '' ? [{label: Vue.f_subcompany, value: Vue.f_subcompany}]: this.$appdata.getParam('安检系统用子公司'),
|
201
|
-
f_last_check_date: '',
|
202
|
-
f_archive_date: '',
|
203
|
-
row: {},
|
204
|
-
f_last_check_state: [''],
|
205
|
-
f_checker_selected: [''],
|
206
|
-
f_last_check_state_opt: this.$appdata.getParam('安检状态'),
|
207
|
-
f_user_type: [''],
|
208
|
-
f_user_type_opt: this.$appdata.getParam('用户类型'),
|
209
|
-
f_checkers: this.$appdata.getParam(Vue.f_subcompany + '安检员'),
|
210
|
-
}
|
211
|
-
},
|
212
|
-
ready () {
|
213
|
-
this.f_last_check_state = [this.model.f_last_check_state]
|
214
|
-
this.f_checker_selected = [this.model.f_checker + '-' + this.model.f_checker_id]
|
215
|
-
this.f_user_type = [this.model.f_user_type]
|
216
|
-
let that = this
|
217
|
-
this.$resetpost('rs/sql/提取表档案', {data:{f_userfile_id: this.model.id}}, {resolveMsg: null, rejectMsg: '提取表档案失败'}).then(
|
218
|
-
(response) => {
|
219
|
-
response.data.forEach ((item) => {
|
220
|
-
item.f_oldmeter_no = item.f_meter_no
|
221
|
-
item.f_meter_flag = '修改'
|
222
|
-
})
|
223
|
-
that.$set('model.rows', response.data)
|
224
|
-
}
|
225
|
-
)
|
226
|
-
},
|
227
|
-
methods: {
|
228
|
-
confirm () {
|
229
|
-
if(!this.f_checker_selected[0]) {
|
230
|
-
window.alert('请选择安检员!')
|
231
|
-
return
|
232
|
-
}
|
233
|
-
if (!this.f_division[0]) {
|
234
|
-
window.alert('请选择分公司!')
|
235
|
-
return
|
236
|
-
}
|
237
|
-
if (!this.f_last_check_state[0]) {
|
238
|
-
window.alert('请选择最后安检状态!')
|
239
|
-
return
|
240
|
-
}
|
241
|
-
if (!this.f_user_type[0]) {
|
242
|
-
window.alert('请选择用户类型!')
|
243
|
-
return
|
244
|
-
}
|
245
|
-
let gen = saveGen(this)
|
246
|
-
return co(gen)
|
247
|
-
},
|
248
|
-
editRow (row) {
|
249
|
-
this.$goto('meter-file', {model: row})
|
250
|
-
},
|
251
|
-
deleteRow (row) {
|
252
|
-
this.model.rows.splice(this.model.rows.indexOf(row), 1)
|
253
|
-
},
|
254
|
-
addMeter () {
|
255
|
-
this.row = {}
|
256
|
-
this.$goto('meter-file', {model:this.row}, 'self', this.addRow)
|
257
|
-
},
|
258
|
-
addRow () {
|
259
|
-
if (this.row.id) {
|
260
|
-
this.model.rows.push(this.row)
|
261
|
-
this.row.f_userfile_id = this.id
|
262
|
-
this.row.f_meter_flag = '新增'
|
263
|
-
}
|
264
|
-
}
|
265
|
-
},
|
266
|
-
watch: {
|
267
|
-
'model' (val) {
|
268
|
-
this.f_division = [val.f_subcompany]
|
269
|
-
this.f_checker = val.f_checker
|
270
|
-
this.f_last_check_date = val.f_last_check_date
|
271
|
-
this.f_archive_date = val.f_archive_date
|
272
|
-
}
|
273
|
-
},
|
274
|
-
components: { MessageBox }
|
275
|
-
}
|
276
|
-
|
277
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div class="flex">
|
3
|
+
<validator name='v'>
|
4
|
+
<form novalidate class="form-horizontal">
|
5
|
+
<div class="form-group">
|
6
|
+
<label for="f_user_name" class="col-sm-2 control-label ">用户姓名:</label>
|
7
|
+
<div class="col-sm-2">
|
8
|
+
<input type="text" v-model="model.f_username" class="form-control" id="f_user_name" v-validate:f_user_name='{ required: true }'>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<label for="f_user_phone" class="col-sm-2 control-label">用户电话</label>
|
12
|
+
<div class="col-sm-2">
|
13
|
+
<input type="text" v-model="model.f_phone" class="form-control" id="f_user_phone" v-validate:f_user_name='{ required: true }'>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<label for="f_subcompany" class="col-sm-2 control-label">所属分公司:</label>
|
17
|
+
<div class="col-sm-2">
|
18
|
+
<v-select id="f_subcompany"
|
19
|
+
placeholder='请选择分公司'
|
20
|
+
:value.sync="f_division"
|
21
|
+
:options='f_divisions'
|
22
|
+
close-on-select clear-button></v-select>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div class="form-group">
|
27
|
+
<label for="f_last_check_date" class="col-sm-2 control-label ">最后安检日期:</label>
|
28
|
+
<div class="col-sm-2">
|
29
|
+
<datepicker id="startdate"
|
30
|
+
:value.sync="f_last_check_date"
|
31
|
+
:disabled-days-of-Week="[]"
|
32
|
+
:format="'yyyy-MM-dd'" >
|
33
|
+
</datepicker>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<label for="f_last_check_state" class="col-sm-2 control-label">最后安检状态:</label>
|
37
|
+
<div class="col-sm-2">
|
38
|
+
<v-select id="f_last_check_state"
|
39
|
+
placeholder='请选择'
|
40
|
+
:value.sync="f_last_check_state"
|
41
|
+
:options='f_last_check_state_opt'
|
42
|
+
close-on-select clear-button></v-select>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<label for="f_checker" class="col-sm-2 control-label">安检负责人:</label>
|
46
|
+
<div class="col-sm-2">
|
47
|
+
<v-select id="f_checker"
|
48
|
+
placeholder='请选择'
|
49
|
+
:value.sync="f_checker_selected"
|
50
|
+
:options='f_checkers'
|
51
|
+
close-on-select clear-button></v-select>
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
|
55
|
+
<div class="form-group">
|
56
|
+
|
57
|
+
<label for="f_archive_date" class="col-sm-2 control-label">建档日期:</label>
|
58
|
+
<div class="col-sm-2">
|
59
|
+
<datepicker id="startdate"
|
60
|
+
:value.sync="f_archive_date"
|
61
|
+
:disabled-days-of-Week="[]"
|
62
|
+
:format="'yyyy-MM-dd'">
|
63
|
+
</datepicker>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
<label for="f_user_type" class="col-sm-2 control-label">用户类型:</label>
|
67
|
+
<div class="col-sm-2">
|
68
|
+
<v-select id="f_user_type"
|
69
|
+
placeholder='请选择'
|
70
|
+
:value.sync="f_user_type"
|
71
|
+
:options='f_user_type_opt'
|
72
|
+
close-on-select clear-button></v-select>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
<label for="f_street" class="col-sm-2 control-label">街道:</label>
|
76
|
+
<div class="col-sm-2">
|
77
|
+
<input type="text" class="form-control " id="f_street"
|
78
|
+
v-model="model.f_street" v-validate:f_street='{ required: true }'/>
|
79
|
+
</div>
|
80
|
+
</div>
|
81
|
+
<div class="form-group">
|
82
|
+
<label for="f_residential_area" class="col-sm-2 control-label" >小区:</label>
|
83
|
+
<div class="col-sm-2">
|
84
|
+
<input type="text" class="form-control " id="f_residential_area"
|
85
|
+
v-model="model.f_districtname" v-validate:f_residential_area='{ required: true }'>
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<label for="f_building" class="col-sm-2 control-label" >楼号:</label>
|
89
|
+
<div class="col-sm-2">
|
90
|
+
<input type="text" class="form-control " id="f_building"
|
91
|
+
v-model="model.f_building" v-validate:f_building='{ required: true }'>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
<label for="f_unit" class="col-sm-2 control-label">单元:</label>
|
95
|
+
<div class="col-sm-2">
|
96
|
+
<input type="text" class="form-control " id="f_unit"
|
97
|
+
v-model="model.f_unit" v-validate:f_unit='{ required: true }'/>
|
98
|
+
</div>
|
99
|
+
</div>
|
100
|
+
<div class="form-group">
|
101
|
+
|
102
|
+
<label for="f_floor" class="col-sm-2 control-label" >楼层:</label>
|
103
|
+
<div class="col-sm-2">
|
104
|
+
<input type="text" class="form-control " id="f_floor"
|
105
|
+
v-model="model.f_floor" v-validate:f_floor='{ required: true }'>
|
106
|
+
</div>
|
107
|
+
<label for="f_room" class="col-sm-2 control-label" >门牌号:</label>
|
108
|
+
<div class="col-sm-2">
|
109
|
+
<input type="text" class="form-control " id="f_room"
|
110
|
+
v-model="model.f_room" v-validate:f_room='{ required: true }'>
|
111
|
+
</div>
|
112
|
+
|
113
|
+
<label for="f_address" class="col-sm-2 control-label">详细地址:</label>
|
114
|
+
<div class="col-sm-2">
|
115
|
+
<input type="text" class="form-control " id="f_address"
|
116
|
+
v-model="model.f_address" v-validate:f_address='{ required: true }'/>
|
117
|
+
</div>
|
118
|
+
|
119
|
+
</div>
|
120
|
+
|
121
|
+
<div class="form-group">
|
122
|
+
<label for="f_modifier" class="col-sm-2 control-label " v-if="false">修改提交人:</label>
|
123
|
+
<div class="col-sm-2" v-if="false">
|
124
|
+
<input type="text" class="form-control " id="f_modifier" v-model="model.f_modifier" >
|
125
|
+
</div>
|
126
|
+
<label for="f_remark" class="col-sm-2 control-label">备注:</label>
|
127
|
+
<div class="col-sm-10">
|
128
|
+
<input type="text" class="form-control" id="f_remark"
|
129
|
+
v-model="model.f_remark">
|
130
|
+
</div>
|
131
|
+
</div>
|
132
|
+
<hr>
|
133
|
+
气表档案:<span class="glyphicon glyphicon-plus" @click="addMeter"></span>
|
134
|
+
</form>
|
135
|
+
<div class="span">
|
136
|
+
<data-grid :model="model" partial='list' v-ref:grid>
|
137
|
+
<template partial='head'>
|
138
|
+
<tr>
|
139
|
+
<th>表号</th>
|
140
|
+
<th>卡号</th>
|
141
|
+
<th>生产厂家</th>
|
142
|
+
<th>计量类型</th>
|
143
|
+
<th>操作</th>
|
144
|
+
</tr>
|
145
|
+
</template>
|
146
|
+
<template partial='body'>
|
147
|
+
<td>{{row.f_meter_no}}</td>
|
148
|
+
<td>{{row.f_card_id}}</td>
|
149
|
+
<td>{{row.f_meter_brand}}</td>
|
150
|
+
<td>{{row.f_meter_measurement }}</td>
|
151
|
+
<td>
|
152
|
+
<span class="glyphicon glyphicon-remove" @click="$parent.$parent.deleteRow(row)"></span>
|
153
|
+
<span class="glyphicon glyphicon-edit" @click="$parent.$parent.editRow(row)"></span>
|
154
|
+
</td>
|
155
|
+
</template>
|
156
|
+
</data-grid>
|
157
|
+
</div>
|
158
|
+
<div class="auto">
|
159
|
+
<button :disabled='!($v.valid) || model.rows.length==0' @click="confirm()" type="button" class="btn btn-success">提 交</button>
|
160
|
+
<button @click="$back()" type="button" class="btn btn-success">返 回</button>
|
161
|
+
</div>
|
162
|
+
</validator>
|
163
|
+
</div>
|
164
|
+
</template>
|
165
|
+
|
166
|
+
<script>
|
167
|
+
import co from 'co'
|
168
|
+
import MessageBox from 'vue-client'
|
169
|
+
import Vue from 'vue'
|
170
|
+
import * as Util from '../Util'
|
171
|
+
import AppData from '../../stores/AppData'
|
172
|
+
|
173
|
+
let saveGen = function * (self) {
|
174
|
+
self.model.f_approved = '未审核'
|
175
|
+
self.model.f_modifier = self.f.name
|
176
|
+
self.model.f_modifier_id = self.f.id
|
177
|
+
self.model.f_subcompany = self.f_division[0]
|
178
|
+
self.model.f_last_check_date = self.f_last_check_date
|
179
|
+
self.model.f_archive_date = self.f_archive_date
|
180
|
+
self.model.f_residential_area = self.model.f_districtname
|
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_checker = self.f_checker_selected[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 = self.f_checker_selected[0].substring(p+1)
|
187
|
+
yield self.$resetpost('rs/logic/提交档案修改', { data: self.model })
|
188
|
+
// 通知项目保存成功。
|
189
|
+
self.$back()
|
190
|
+
}
|
191
|
+
|
192
|
+
|
193
|
+
export default {
|
194
|
+
props: ['f', 'model'],
|
195
|
+
title: '修改用户档案',
|
196
|
+
data () {
|
197
|
+
return {
|
198
|
+
//transient
|
199
|
+
f_division: [''],
|
200
|
+
f_divisions: Vue.f_subcompany != '' ? [{label: Vue.f_subcompany, value: Vue.f_subcompany}]: this.$appdata.getParam('安检系统用子公司'),
|
201
|
+
f_last_check_date: '',
|
202
|
+
f_archive_date: '',
|
203
|
+
row: {},
|
204
|
+
f_last_check_state: [''],
|
205
|
+
f_checker_selected: [''],
|
206
|
+
f_last_check_state_opt: this.$appdata.getParam('安检状态'),
|
207
|
+
f_user_type: [''],
|
208
|
+
f_user_type_opt: this.$appdata.getParam('用户类型'),
|
209
|
+
f_checkers: this.$appdata.getParam(Vue.f_subcompany + '安检员'),
|
210
|
+
}
|
211
|
+
},
|
212
|
+
ready () {
|
213
|
+
this.f_last_check_state = [this.model.f_last_check_state]
|
214
|
+
this.f_checker_selected = [this.model.f_checker + '-' + this.model.f_checker_id]
|
215
|
+
this.f_user_type = [this.model.f_user_type]
|
216
|
+
let that = this
|
217
|
+
this.$resetpost('rs/sql/提取表档案', {data:{f_userfile_id: this.model.id}}, {resolveMsg: null, rejectMsg: '提取表档案失败'}).then(
|
218
|
+
(response) => {
|
219
|
+
response.data.forEach ((item) => {
|
220
|
+
item.f_oldmeter_no = item.f_meter_no
|
221
|
+
item.f_meter_flag = '修改'
|
222
|
+
})
|
223
|
+
that.$set('model.rows', response.data)
|
224
|
+
}
|
225
|
+
)
|
226
|
+
},
|
227
|
+
methods: {
|
228
|
+
confirm () {
|
229
|
+
if(!this.f_checker_selected[0]) {
|
230
|
+
window.alert('请选择安检员!')
|
231
|
+
return
|
232
|
+
}
|
233
|
+
if (!this.f_division[0]) {
|
234
|
+
window.alert('请选择分公司!')
|
235
|
+
return
|
236
|
+
}
|
237
|
+
if (!this.f_last_check_state[0]) {
|
238
|
+
window.alert('请选择最后安检状态!')
|
239
|
+
return
|
240
|
+
}
|
241
|
+
if (!this.f_user_type[0]) {
|
242
|
+
window.alert('请选择用户类型!')
|
243
|
+
return
|
244
|
+
}
|
245
|
+
let gen = saveGen(this)
|
246
|
+
return co(gen)
|
247
|
+
},
|
248
|
+
editRow (row) {
|
249
|
+
this.$goto('meter-file', {model: row})
|
250
|
+
},
|
251
|
+
deleteRow (row) {
|
252
|
+
this.model.rows.splice(this.model.rows.indexOf(row), 1)
|
253
|
+
},
|
254
|
+
addMeter () {
|
255
|
+
this.row = {}
|
256
|
+
this.$goto('meter-file', {model:this.row}, 'self', this.addRow)
|
257
|
+
},
|
258
|
+
addRow () {
|
259
|
+
if (this.row.id) {
|
260
|
+
this.model.rows.push(this.row)
|
261
|
+
this.row.f_userfile_id = this.id
|
262
|
+
this.row.f_meter_flag = '新增'
|
263
|
+
}
|
264
|
+
}
|
265
|
+
},
|
266
|
+
watch: {
|
267
|
+
'model' (val) {
|
268
|
+
this.f_division = [val.f_subcompany]
|
269
|
+
this.f_checker = val.f_checker
|
270
|
+
this.f_last_check_date = val.f_last_check_date
|
271
|
+
this.f_archive_date = val.f_archive_date
|
272
|
+
}
|
273
|
+
},
|
274
|
+
components: { MessageBox }
|
275
|
+
}
|
276
|
+
|
277
|
+
</script>
|