safecheck-client 4.0.2-63 → 4.0.2-64
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/components/android/PhoneUpUserinfo.vue +1249 -1249
- package/src/components/android/SafeRightTree.vue +218 -218
- package/src/components/android/SafecheckDevices.vue +1340 -1340
- package/src/components/android/week/CheckResultSimple.vue +258 -251
- package/src/components/android/week/FirstWeekCheck.vue +301 -275
- package/src/components/android/week/StepHeaderBar.vue +485 -457
- package/src/components/android/week/WeekCheck.vue +267 -209
- package/src/components/android/week/WeekCheckPaper.vue +274 -219
- package/src/components/android/week/WeekCheckPlan.vue +145 -145
- package/src/components/android/week/WeekCheckUserInfo.vue +99 -0
- package/src/components/pc/CheckBookArea.vue +146 -146
- package/src/components/pc/CheckBookCompany.vue +144 -144
- package/src/components/pc/CheckBookDetails.vue +161 -161
- package/src/components/pc/CheckBookEntry.vue +60 -60
- package/src/components/pc/CheckBookSearchArea.vue +560 -560
- package/src/components/pc/CheckBookSearchUnit.vue +229 -229
- package/src/components/pc/CheckBookSearchUser.vue +659 -659
- package/src/components/pc/CheckBookSearchUserList.vue +674 -674
- package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
- package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
- package/src/filiale/meihekou/android/SafecheckDevices.vue +1343 -1343
- package/src/filiale/meihekou/android.js +22 -22
- package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1998 -1998
- package/src/main.js +33 -33
|
@@ -1,275 +1,301 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<work-busy :is-busy="loading"></work-busy>
|
|
3
|
-
<div class="auto">
|
|
4
|
-
<div v-show="!showcheck">
|
|
5
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
-
<criteria partial='criteria' @condition-changed='$parent.selfsearch' v-ref:cri>
|
|
7
|
-
<div partial>
|
|
8
|
-
<form>
|
|
9
|
-
<div class="row app-row">
|
|
10
|
-
<div class="col-xs-4">
|
|
11
|
-
<img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
12
|
-
<label class="font text-left">表 号:</label>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="col-xs-8" >
|
|
15
|
-
<input class="search_input input-font"
|
|
16
|
-
v-model=model.f_meternumber condition="f_meternumber = '{}'" style="width: 70%" placeholder="请输入表号" />
|
|
17
|
-
<button type="button" name="button" class="btn btn-primary" style="width: 25%" @click="$parent.$parent.scan">扫码</button>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="row text-center" style="margin-top: 20px;">
|
|
21
|
-
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
|
|
22
|
-
<button v-if="$parent.$parent.showbutton && $parent.$parent.model.rows.length == 0" type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="$parent.$parent.showModal">执行首检</button>
|
|
23
|
-
</div>
|
|
24
|
-
</form>
|
|
25
|
-
</div>
|
|
26
|
-
</criteria>
|
|
27
|
-
|
|
28
|
-
<list :model="model" partial='list'>
|
|
29
|
-
<div partial>
|
|
30
|
-
<div @click="$parent.$parent.$parent.inspect(row)" class="auto app-text" style="margin-top: 5px;">
|
|
31
|
-
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
|
32
|
-
<div class="panel-body panel-self">
|
|
33
|
-
<div class="row">
|
|
34
|
-
<p class="panel-title col-xs-4 text-left font">表号</p>
|
|
35
|
-
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
|
|
36
|
-
</div>
|
|
37
|
-
<div class="row">
|
|
38
|
-
<p class="panel-title col-xs-4 text-left font">首检日期</p>
|
|
39
|
-
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_first_inspection_date }}</p>
|
|
40
|
-
</div>
|
|
41
|
-
<div class="row">
|
|
42
|
-
<p class="panel-title col-xs-4 text-left font">首检机构</p>
|
|
43
|
-
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_inspection_agency }}</p>
|
|
44
|
-
</div>
|
|
45
|
-
<div class="row">
|
|
46
|
-
<p class="panel-title col-xs-4 text-left font">气表品牌</p>
|
|
47
|
-
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_meter_brand }}</p>
|
|
48
|
-
</div>
|
|
49
|
-
<div class="row">
|
|
50
|
-
<p class="panel-title col-xs-4 text-left font">气表型号</p>
|
|
51
|
-
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_meter_style }}</p>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
</list>
|
|
59
|
-
</criteria-paged>
|
|
60
|
-
</div>
|
|
61
|
-
<div v-show="showcheck">
|
|
62
|
-
<check-rsult-simple :items="weekCheck" :itemname="itemname"></check-rsult-simple>
|
|
63
|
-
<div class="row text-center" style="margin-top: 20px;">
|
|
64
|
-
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="colse">取消</button>
|
|
65
|
-
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="uploadCheckPaper">提交</button>
|
|
66
|
-
</div>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
</template>
|
|
70
|
-
|
|
71
|
-
<script>
|
|
72
|
-
import {HttpResetClass, PagedList} from 'vue-client'
|
|
73
|
-
import Vue from 'vue'
|
|
74
|
-
import * as Util from '../../Util'
|
|
75
|
-
|
|
76
|
-
export default {
|
|
77
|
-
title: '首检',
|
|
78
|
-
data () {
|
|
79
|
-
let model = new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/getFirstWeekTable`, 20,
|
|
80
|
-
{
|
|
81
|
-
f_orgids:'this.f_orgids'
|
|
82
|
-
})
|
|
83
|
-
model.f_orgids = Vue.user.orgid
|
|
84
|
-
return {
|
|
85
|
-
model: model,
|
|
86
|
-
weekCheck:[],
|
|
87
|
-
useritem:{},
|
|
88
|
-
weekConfig:{},
|
|
89
|
-
showcheck:false,
|
|
90
|
-
loading: false,
|
|
91
|
-
showbutton:false,
|
|
92
|
-
itemname:''
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
ready () {
|
|
96
|
-
this.getweekconfig()
|
|
97
|
-
},
|
|
98
|
-
computed: {
|
|
99
|
-
},
|
|
100
|
-
methods:{
|
|
101
|
-
getweekconfig(){
|
|
102
|
-
const http = new HttpResetClass()
|
|
103
|
-
http.load('post',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getWeekCheckTypeByType`, {f_safecheck_type: '首检' }).then(res=>{
|
|
104
|
-
if (res.data && res.data.length > 0 ){
|
|
105
|
-
this.weekConfig = res.data[0]
|
|
106
|
-
}
|
|
107
|
-
})
|
|
108
|
-
},
|
|
109
|
-
getdetails(){
|
|
110
|
-
const json = JSON.parse(this.weekConfig.f_json)
|
|
111
|
-
this.weekCheck = []
|
|
112
|
-
if (json && json.length > 0){
|
|
113
|
-
for (let i = 0; i < json.length; i++){
|
|
114
|
-
if (json[i].itemname === '首检'){
|
|
115
|
-
json[i].items.forEach(row => {
|
|
116
|
-
this.weekCheck.push({
|
|
117
|
-
f_item_name: row.itemname,
|
|
118
|
-
f_item_value: row.f_item_value || '',
|
|
119
|
-
options:row.options,
|
|
120
|
-
type: row.type,
|
|
121
|
-
isshow:true,
|
|
122
|
-
images: row.images|| [],
|
|
123
|
-
multiple: row.multiple?row.multiple:false,
|
|
124
|
-
readonly:false,
|
|
125
|
-
state:'未检'
|
|
126
|
-
})
|
|
127
|
-
})
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
scan(){
|
|
133
|
-
HostApp.__this__=this,
|
|
134
|
-
HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
|
|
135
|
-
},
|
|
136
|
-
getCode(){
|
|
137
|
-
let datapa = HostApp.getCode().data;
|
|
138
|
-
this.$refs.paged.$refs.cri.model.f_meternumber=datapa
|
|
139
|
-
},
|
|
140
|
-
inspect (row) {
|
|
141
|
-
this.getdetails()
|
|
142
|
-
this.useritem = row
|
|
143
|
-
this.weekCheck.forEach(item=>{
|
|
144
|
-
if (item.f_item_name === '表号' && !Util.isEmpty(row.f_meternumber)){
|
|
145
|
-
item.f_item_value = row.f_meternumber
|
|
146
|
-
item.readonly = true
|
|
147
|
-
}
|
|
148
|
-
if (item.f_item_name === '气表品牌' && !Util.isEmpty(row.f_meter_brand)){
|
|
149
|
-
item.f_item_value = row.f_meter_brand
|
|
150
|
-
item.readonly = true
|
|
151
|
-
}
|
|
152
|
-
if (item.f_item_name === '气表型号' && !Util.isEmpty(row.f_meter_style)){
|
|
153
|
-
item.f_item_value = row.f_meter_style
|
|
154
|
-
item.readonly = true
|
|
155
|
-
}
|
|
156
|
-
})
|
|
157
|
-
this.itemname = '首检'
|
|
158
|
-
this.showcheck = true
|
|
159
|
-
},
|
|
160
|
-
showModal(){
|
|
161
|
-
this.getdetails()
|
|
162
|
-
this.itemname = '首检'
|
|
163
|
-
this.showcheck = true
|
|
164
|
-
},
|
|
165
|
-
colse(){
|
|
166
|
-
this.getdetails()
|
|
167
|
-
this.itemname = ''
|
|
168
|
-
this.$refs.paged.$refs.cri.search()
|
|
169
|
-
this.showcheck = false
|
|
170
|
-
this.loading = false
|
|
171
|
-
this.showbutton = false
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
.
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
.app-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
.
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<work-busy :is-busy="loading"></work-busy>
|
|
3
|
+
<div class="auto">
|
|
4
|
+
<div v-show="!showcheck">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.selfsearch' v-ref:cri>
|
|
7
|
+
<div partial>
|
|
8
|
+
<form>
|
|
9
|
+
<div class="row app-row">
|
|
10
|
+
<div class="col-xs-4">
|
|
11
|
+
<img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
12
|
+
<label class="font text-left">表 号:</label>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="col-xs-8" >
|
|
15
|
+
<input class="search_input input-font"
|
|
16
|
+
v-model=model.f_meternumber condition="f_meternumber = '{}'" style="width: 70%" placeholder="请输入表号" />
|
|
17
|
+
<button type="button" name="button" class="btn btn-primary" style="width: 25%" @click="$parent.$parent.scan">扫码</button>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="row text-center" style="margin-top: 20px;">
|
|
21
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
|
|
22
|
+
<button v-if="$parent.$parent.showbutton && $parent.$parent.model.rows.length == 0" type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="$parent.$parent.showModal">执行首检</button>
|
|
23
|
+
</div>
|
|
24
|
+
</form>
|
|
25
|
+
</div>
|
|
26
|
+
</criteria>
|
|
27
|
+
|
|
28
|
+
<list :model="model" partial='list'>
|
|
29
|
+
<div partial>
|
|
30
|
+
<div @click="$parent.$parent.$parent.inspect(row)" class="auto app-text" style="margin-top: 5px;">
|
|
31
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
|
32
|
+
<div class="panel-body panel-self">
|
|
33
|
+
<div class="row">
|
|
34
|
+
<p class="panel-title col-xs-4 text-left font">表号</p>
|
|
35
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="row">
|
|
38
|
+
<p class="panel-title col-xs-4 text-left font">首检日期</p>
|
|
39
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_first_inspection_date }}</p>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="row">
|
|
42
|
+
<p class="panel-title col-xs-4 text-left font">首检机构</p>
|
|
43
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_inspection_agency }}</p>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="row">
|
|
46
|
+
<p class="panel-title col-xs-4 text-left font">气表品牌</p>
|
|
47
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_meter_brand }}</p>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="row">
|
|
50
|
+
<p class="panel-title col-xs-4 text-left font">气表型号</p>
|
|
51
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_meter_style }}</p>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</list>
|
|
59
|
+
</criteria-paged>
|
|
60
|
+
</div>
|
|
61
|
+
<div v-show="showcheck">
|
|
62
|
+
<check-rsult-simple :items="weekCheck" :itemname="itemname"></check-rsult-simple>
|
|
63
|
+
<div class="row text-center" style="margin-top: 20px;">
|
|
64
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="colse">取消</button>
|
|
65
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="uploadCheckPaper">提交</button>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
</template>
|
|
70
|
+
|
|
71
|
+
<script>
|
|
72
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
73
|
+
import Vue from 'vue'
|
|
74
|
+
import * as Util from '../../Util'
|
|
75
|
+
|
|
76
|
+
export default {
|
|
77
|
+
title: '首检',
|
|
78
|
+
data () {
|
|
79
|
+
let model = new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/getFirstWeekTable`, 20,
|
|
80
|
+
{
|
|
81
|
+
f_orgids:'this.f_orgids'
|
|
82
|
+
})
|
|
83
|
+
model.f_orgids = Vue.user.orgid
|
|
84
|
+
return {
|
|
85
|
+
model: model,
|
|
86
|
+
weekCheck:[],
|
|
87
|
+
useritem:{},
|
|
88
|
+
weekConfig:{},
|
|
89
|
+
showcheck:false,
|
|
90
|
+
loading: false,
|
|
91
|
+
showbutton:false,
|
|
92
|
+
itemname:''
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
ready () {
|
|
96
|
+
this.getweekconfig()
|
|
97
|
+
},
|
|
98
|
+
computed: {
|
|
99
|
+
},
|
|
100
|
+
methods:{
|
|
101
|
+
getweekconfig(){
|
|
102
|
+
const http = new HttpResetClass()
|
|
103
|
+
http.load('post',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getWeekCheckTypeByType`, {f_safecheck_type: '首检' }).then(res=>{
|
|
104
|
+
if (res.data && res.data.length > 0 ){
|
|
105
|
+
this.weekConfig = res.data[0]
|
|
106
|
+
}
|
|
107
|
+
})
|
|
108
|
+
},
|
|
109
|
+
getdetails(){
|
|
110
|
+
const json = JSON.parse(this.weekConfig.f_json)
|
|
111
|
+
this.weekCheck = []
|
|
112
|
+
if (json && json.length > 0){
|
|
113
|
+
for (let i = 0; i < json.length; i++){
|
|
114
|
+
if (json[i].itemname === '首检'){
|
|
115
|
+
json[i].items.forEach(row => {
|
|
116
|
+
this.weekCheck.push({
|
|
117
|
+
f_item_name: row.itemname,
|
|
118
|
+
f_item_value: row.f_item_value || '',
|
|
119
|
+
options:row.options,
|
|
120
|
+
type: row.type,
|
|
121
|
+
isshow:true,
|
|
122
|
+
images: row.images|| [],
|
|
123
|
+
multiple: row.multiple?row.multiple:false,
|
|
124
|
+
readonly:false,
|
|
125
|
+
state:'未检'
|
|
126
|
+
})
|
|
127
|
+
})
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
scan(){
|
|
133
|
+
HostApp.__this__=this,
|
|
134
|
+
HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
|
|
135
|
+
},
|
|
136
|
+
getCode(){
|
|
137
|
+
let datapa = HostApp.getCode().data;
|
|
138
|
+
this.$refs.paged.$refs.cri.model.f_meternumber=datapa
|
|
139
|
+
},
|
|
140
|
+
inspect (row) {
|
|
141
|
+
this.getdetails()
|
|
142
|
+
this.useritem = row
|
|
143
|
+
this.weekCheck.forEach(item=>{
|
|
144
|
+
if (item.f_item_name === '表号' && !Util.isEmpty(row.f_meternumber)){
|
|
145
|
+
item.f_item_value = row.f_meternumber
|
|
146
|
+
item.readonly = true
|
|
147
|
+
}
|
|
148
|
+
if (item.f_item_name === '气表品牌' && !Util.isEmpty(row.f_meter_brand)){
|
|
149
|
+
item.f_item_value = row.f_meter_brand
|
|
150
|
+
item.readonly = true
|
|
151
|
+
}
|
|
152
|
+
if (item.f_item_name === '气表型号' && !Util.isEmpty(row.f_meter_style)){
|
|
153
|
+
item.f_item_value = row.f_meter_style
|
|
154
|
+
item.readonly = true
|
|
155
|
+
}
|
|
156
|
+
})
|
|
157
|
+
this.itemname = '首检'
|
|
158
|
+
this.showcheck = true
|
|
159
|
+
},
|
|
160
|
+
showModal(){
|
|
161
|
+
this.getdetails()
|
|
162
|
+
this.itemname = '首检'
|
|
163
|
+
this.showcheck = true
|
|
164
|
+
},
|
|
165
|
+
colse(){
|
|
166
|
+
this.getdetails()
|
|
167
|
+
this.itemname = ''
|
|
168
|
+
this.$refs.paged.$refs.cri.search()
|
|
169
|
+
this.showcheck = false
|
|
170
|
+
this.loading = false
|
|
171
|
+
this.showbutton = false
|
|
172
|
+
},
|
|
173
|
+
async uploadCheckPaperPics () {
|
|
174
|
+
let tableImages = []
|
|
175
|
+
this.weekCheck.forEach((item) => {
|
|
176
|
+
if (item.type == 'picture'){
|
|
177
|
+
item.images.forEach(image=>{
|
|
178
|
+
image.filename = image.f_path.substring(image.f_path.lastIndexOf('/')+1)
|
|
179
|
+
tableImages.push({
|
|
180
|
+
path: image.f_path,
|
|
181
|
+
})
|
|
182
|
+
})
|
|
183
|
+
}
|
|
184
|
+
})
|
|
185
|
+
HostApp.__this__ = this
|
|
186
|
+
HostApp.logicWithHint({
|
|
187
|
+
'logic': 'imagesUploadAndroid', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
|
|
188
|
+
'data': {tableImages:tableImages}, 'backresult': 1
|
|
189
|
+
})
|
|
190
|
+
},
|
|
191
|
+
async uploadCheckPaper(){
|
|
192
|
+
this.loading = true
|
|
193
|
+
await this.uploadCheckPaperPics()
|
|
194
|
+
const json = JSON.parse(this.weekConfig.f_json)
|
|
195
|
+
json.forEach(res=>{
|
|
196
|
+
if (res.itemname === '首检'){
|
|
197
|
+
res.items = this.weekCheck
|
|
198
|
+
}
|
|
199
|
+
})
|
|
200
|
+
const http = new HttpResetClass()
|
|
201
|
+
const weekCheckpaper = {
|
|
202
|
+
f_meter_brand: this.useritem.f_meter_brand,
|
|
203
|
+
f_meter_style: this.useritem.f_meter_style,
|
|
204
|
+
f_meternumber: this.useritem.f_meternumber,
|
|
205
|
+
f_device_address: this.useritem.f_device_address,
|
|
206
|
+
f_address: this.useritem.f_device_address,
|
|
207
|
+
f_operatorid: Vue.user.id,
|
|
208
|
+
f_operator: Vue.user.name,
|
|
209
|
+
f_complete: '已完成',
|
|
210
|
+
f_entry_status: '正常',
|
|
211
|
+
f_safe_type: '首检',
|
|
212
|
+
f_state: '已检',
|
|
213
|
+
f_safe_content: json,
|
|
214
|
+
f_safecheck_type_id: this.weekConfig.f_security_check_type_id,
|
|
215
|
+
f_safe_type_version: this.weekConfig.version,
|
|
216
|
+
f_upload_date: Util.toStandardTimeString(),
|
|
217
|
+
f_checker_id: Vue.user.id,
|
|
218
|
+
f_checker_name: Vue.user.name,
|
|
219
|
+
f_filialeid: Vue.user.orgid,
|
|
220
|
+
f_orgid: Vue.user.orgid,
|
|
221
|
+
f_orgname: Vue.user.orgs,
|
|
222
|
+
}
|
|
223
|
+
this.weekCheck.forEach(item => {
|
|
224
|
+
if (item.f_item_name === '表号'){
|
|
225
|
+
weekCheckpaper.f_meternumber = item.f_item_value
|
|
226
|
+
}
|
|
227
|
+
if (item.f_item_name === '气表品牌'){
|
|
228
|
+
weekCheckpaper.f_meter_brand = item.f_item_value
|
|
229
|
+
}
|
|
230
|
+
if (item.f_item_name === '气表型号'){
|
|
231
|
+
weekCheckpaper.f_meter_style = item.f_item_value
|
|
232
|
+
}
|
|
233
|
+
if (item.f_item_name === '检定机构'){
|
|
234
|
+
weekCheckpaper.f_last_inspection_agency = item.f_item_value
|
|
235
|
+
}
|
|
236
|
+
if (item.f_item_name === '检定时间'){
|
|
237
|
+
if (item.f_item_value && item.f_item_value > Util.toStandardTimeString()){
|
|
238
|
+
this.$showMessage('只能选择当前或者之前的时间!')
|
|
239
|
+
throw '只能选择当前或者之前的时间!'
|
|
240
|
+
return
|
|
241
|
+
}
|
|
242
|
+
weekCheckpaper.f_complete_date = item.f_item_value
|
|
243
|
+
}
|
|
244
|
+
if (item.f_item_name === '检定结果'){
|
|
245
|
+
weekCheckpaper.f_last_inspection_result = item.f_item_value
|
|
246
|
+
}
|
|
247
|
+
})
|
|
248
|
+
http.load('post',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/saveWeekPaper`, weekCheckpaper, {resolveMsg: '首检成功!', rejectMsg: '首检失败,请联系管理员检查!'}).then(res=>{
|
|
249
|
+
if (res.data){
|
|
250
|
+
this.colse()
|
|
251
|
+
}
|
|
252
|
+
})
|
|
253
|
+
this.loading = false
|
|
254
|
+
},
|
|
255
|
+
selfsearch(args){
|
|
256
|
+
if (Util.isEmpty(args.model.f_meternumber)){
|
|
257
|
+
this.$showMessage("请输入表号查询!")
|
|
258
|
+
return
|
|
259
|
+
}
|
|
260
|
+
this.showbutton = true
|
|
261
|
+
this.model.search(args.condition, args.model)
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
</script>
|
|
266
|
+
<style scoped>
|
|
267
|
+
.app-row {
|
|
268
|
+
background-color: white;
|
|
269
|
+
padding: 10px 10px 0 10px;
|
|
270
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
271
|
+
}
|
|
272
|
+
.search_input {
|
|
273
|
+
border: 0;
|
|
274
|
+
outline: none;
|
|
275
|
+
}
|
|
276
|
+
.font{
|
|
277
|
+
font: 15px PingFang-SC-Medium;
|
|
278
|
+
color: #666666;
|
|
279
|
+
}
|
|
280
|
+
.input-font{
|
|
281
|
+
font: 15px PingFang-SC-Medium;
|
|
282
|
+
color: #333333;
|
|
283
|
+
}
|
|
284
|
+
.btn-font{
|
|
285
|
+
font:600 16px PingFang-SC-Bold;
|
|
286
|
+
color: #499EDF;
|
|
287
|
+
}
|
|
288
|
+
.btn-color{
|
|
289
|
+
background-color: #FFFFFF;
|
|
290
|
+
border-radius: 10px ;
|
|
291
|
+
border: 1px solid #499EDF;
|
|
292
|
+
}
|
|
293
|
+
.app-text {
|
|
294
|
+
font-size: 12px;
|
|
295
|
+
}
|
|
296
|
+
.panel-self{
|
|
297
|
+
border-radius: 10px;
|
|
298
|
+
border:1px solid #499EDF;
|
|
299
|
+
background-color: #F8F8F8;
|
|
300
|
+
}
|
|
301
|
+
</style>
|