safecheck-client 3.0.39-8 → 3.0.39-81
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 +5 -5
- package/src/App.vue +31 -26
- package/src/assets//345/256/232/344/275/215.png +0 -0
- package/src/components/Util/ImgSelfSafePlus.vue +2 -2
- package/src/components/android/AndroidDefectDeal.vue +2 -2
- package/src/components/android/NewCheckpaperAndroid.vue +2 -2
- package/src/components/android/PhoneUpUserinfo.vue +11 -0
- package/src/components/android/rejectInspecCheck.vue +322 -0
- package/src/components/pc/AddPlanItemYyChange.vue +5 -1
- package/src/components/pc/NewCheckpaper.vue +108 -14
- package/src/components/pc/NewCheckpaperTemp.vue +1308 -1295
- package/src/components/pc/PaperDefectMain.vue +1 -1
- package/src/components/pc/RoleSelector.vue +172 -172
- package/src/components/pc/SafeCheckOrder/SafeCheckOrderList.vue +34 -0
- package/src/components/rongcheng/AddPlanItem.vue +344 -344
- package/src/components/rongcheng/CheckCurrentCreate.vue +1081 -1081
- package/src/components/rongcheng/PaperDefectMain.vue +828 -828
- package/src/components/rongcheng/PaperStatem.vue +6 -6
- package/src/components/rongcheng/PhoneUpUserinfo.vue +1 -0
- package/src/filiale/BFshiye/android/AndroidDefectDeal.vue +652 -0
- package/src/filiale/BFshiye/android/PhoneUpUserinfo.vue +3 -1
- package/src/filiale/BFshiye/android/SafecheckUserInfo.vue +2 -2
- package/src/filiale/BFshiye/pc/DefectListNew.vue +637 -0
- package/src/filiale/BFshiye/pc/NewCheckpaper.vue +18 -56
- package/src/filiale/BFshiye/pc/checkUserList.vue +772 -772
- package/src/filiale/BFshiye/pc.js +17 -16
- package/src/filiale/baiyin/android/SafecheckUserInfo.vue +775 -0
- package/src/filiale/baiyin/android.js +12 -11
- package/src/filiale/bayan/pc/NewCheckpaper.vue +2 -2
- package/src/filiale/bayan/pc/SelectAreaReport.vue +1 -0
- package/src/filiale/bayan/pc/SummaryOfSecurityInspectionProgress.vue +7 -7
- package/src/filiale/dexin/android/SafecheckDevicesTemp.vue +1419 -1360
- package/src/filiale/dexin/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/dexin/android/SafecheckOrderVTemp.vue +4 -1
- package/src/filiale/dexin/pc/PaperList.vue +840 -840
- package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +2 -2
- package/src/filiale/hanzhong/pc/CheckNumberStatistics.vue +1 -1
- package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +6 -1
- package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +1 -1
- package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +1 -1
- package/src/filiale/huatong/android/SafecheckOrderV.vue +2 -2
- package/src/filiale/jiaocheng/android/AddPlanItem.vue +20 -0
- package/src/filiale/jiaocheng/android/CurrentCreate.vue +1083 -0
- package/src/filiale/jiaocheng/android.js +1 -0
- package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +18 -1
- package/src/filiale/jiaocheng/pc/NewCheckpaper.vue +64 -4
- package/src/filiale/jiaocheng/pc/PaperList.vue +803 -0
- package/src/filiale/jiaocheng/pc.js +1 -0
- package/src/filiale/jinhuang/android/AddPlanItem.vue +430 -0
- package/src/filiale/jinhuang/android/PhoneUpUserinfo.vue +183 -145
- package/src/filiale/jinhuang/android.js +2 -1
- package/src/filiale/kelai/android/PaperFeedback.vue +1553 -1550
- package/src/filiale/kelai/android/PhoneUpUserinfo.vue +1 -1
- package/src/filiale/kelai/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/kelai/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/kelai/pc/PaperList.vue +13 -0
- package/src/filiale/kelai/pc/UserInfoAudit.vue +126 -90
- package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +4 -6
- package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +7 -7
- package/src/filiale/liaoyuan/pc/checkPlanList.vue +2 -3
- package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1357 -1270
- package/src/filiale/qingjian/android/SafecheckDevices.vue +1 -1
- package/src/filiale/qingjian/android/SafecheckOrderV.vue +3 -0
- package/src/filiale/qingjian/android/SafecheckUserInfo.vue +823 -800
- package/src/filiale/qingjian/pc/NewCheckpaper.vue +1919 -1919
- package/src/filiale/rongchuang/android/AddPlanItemVisitingWithoutMeeting.vue +454 -0
- package/src/filiale/rongchuang/android/AddPlanItemYy.vue +498 -0
- package/src/filiale/rongchuang/android/PhoneUpUserinfo.vue +1262 -0
- package/src/filiale/rongchuang/android/SafecheckDevices.vue +1 -1
- package/src/filiale/rongchuang/android/SafecheckOrderV.vue +3 -2
- package/src/filiale/rongchuang/android.js +3 -0
- package/src/filiale/rongchuang/pc/NewCheckpaper.vue +13 -1
- package/src/filiale/rongchuang/pc/checkPlanList.vue +398 -0
- package/src/filiale/rongchuang/pc.js +18 -17
- package/src/filiale/shanxian/pc/NewCheckpaper.vue +4 -4
- package/src/filiale/siyang/android/PhoneInsurancePurchaseDetail.vue +532 -498
- package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +888 -889
- package/src/filiale/tongchuan/android/SafecheckDevices.vue +909 -885
- package/src/filiale/tongchuan/pc/AMapTrailShowZk.vue +226 -0
- package/src/filiale/tongchuan/pc/CheckPlanCountChartAreaByWangGeYuan.vue +137 -0
- package/src/filiale/tongchuan/pc/CheckSearchUser.vue +47 -1
- package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +46 -0
- package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +34 -0
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +34 -0
- package/src/filiale/tongchuan/pc/PaperList.vue +44 -10
- package/src/filiale/tongchuan/pc/PersonTrack.vue +269 -0
- package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +42 -2
- package/src/filiale/tongchuan/pc.js +3 -0
- package/src/filiale/wensu/android/SafecheckOrderV.vue +2444 -2444
- package/src/filiale/wensu/android/SafecheckUserInfo.vue +712 -712
- package/src/filiale/wensu/pc/CheckSearchUser.vue +1251 -1251
- package/src/filiale/wenxi/pc/PaperList.vue +9 -3
- package/src/filiale/wuan/android/SafecheckOrderV.vue +2242 -2242
- package/src/filiale/wuan/android/SafecheckUserInfo.vue +659 -659
- package/src/filiale/yangchunboneng/android/AndiroidSecurityAudit.vue +2 -1
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1191 -1191
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +913 -913
- package/src/filiale/yangchunboneng/android.js +21 -21
- package/src/filiale/yangchunboneng/pc/CheckBookList.vue +353 -353
- package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +3 -3
- package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1197 -1197
- package/src/filiale/yangchunboneng/pc/HiddenSituation.vue +171 -171
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1112 -1112
- package/src/filiale/yangchunboneng/pc/PaperList.vue +757 -757
- package/src/filiale/yangchunboneng/pc/SelectCheckPlan.vue +331 -331
- package/src/filiale/yangchunboneng/pc.js +29 -29
- package/src/main.js +33 -33
- package/src/rongcheng.js +319 -319
- package/src/safecheck-android.js +316 -315
- package/yarn-error.log +0 -140
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
<div style="float: left;width:60%" class="form-group col-sm-12" v-if="row.type == 'date'"
|
|
63
63
|
v-show="row.isshow">
|
|
64
|
-
<datepicker id="
|
|
64
|
+
<datepicker :id="'f_making_date_' + idxs" :placeholder=row.f_item_name :value.sync="row.f_item_value"
|
|
65
65
|
v-if="row.type == 'date'" v-show="row.isshow" :disabled-days-of-Week="[]"
|
|
66
66
|
:format="row.format" :show-reset-button="reset" readonly="readonly">
|
|
67
67
|
</datepicker>
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
<div class="form-group" style="display: flex;flex-wrap: wrap"
|
|
112
112
|
v-if="(row.type == 'selector' || row.type == 'radio' || row.type == 'checkbox') && (row.f_path != '' || row.f_is_defect != '') && (dealdispose == 'true' || dealdispose == true)">
|
|
113
113
|
<label class="fivelabel">截止时间</label>
|
|
114
|
-
<datepicker id="
|
|
114
|
+
<datepicker :id="'f_handle_date_' + idxs" :value.sync="row.f_handle_date"
|
|
115
115
|
:disabled-days-of-Week="[]"
|
|
116
116
|
:format="'yyyy-MM-dd 00:00:00'" :show-reset-button="reset" readonly="readonly">
|
|
117
117
|
</datepicker>
|
|
@@ -197,1013 +197,1037 @@
|
|
|
197
197
|
</div>
|
|
198
198
|
</template>
|
|
199
199
|
<script>
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
import Vue from 'vue'
|
|
201
|
+
import * as Util from '../../Util'
|
|
202
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
|
-
|
|
203
|
+
export default {
|
|
204
|
+
title: '维修列表信息',
|
|
205
|
+
data() {
|
|
206
|
+
return {
|
|
207
|
+
// telphoneValid: '/^((0\\d{2,3}-\\d{7,8})|(1[3584]\\d{9}))$/',
|
|
208
|
+
// meterstyle:[],
|
|
209
|
+
hiddenDangerImgNumber: 0,//隐患图片数
|
|
210
|
+
shuclass: 'col-xs-12 col-sm-12 col-md-12 form-input-group mg8',
|
|
211
|
+
shuclass1: 'col-xs-12 col-sm-12 col-md-12 mg8',
|
|
212
|
+
// labels:[],
|
|
213
|
+
meternum: '',
|
|
214
|
+
ischecked: '有',
|
|
215
|
+
dealdispose: true,
|
|
216
|
+
gasmodel: '',
|
|
217
|
+
textstyle: 'color: red',
|
|
218
|
+
paper: this.$parent.$parent.data,
|
|
219
|
+
deals: [
|
|
220
|
+
{ label: '自行整改', value: '自行整改' },
|
|
221
|
+
{ label: '现场整改', value: '现场整改' },
|
|
222
|
+
{ label: '转维修', value: '报修' }
|
|
223
|
+
],
|
|
224
|
+
f_items: [],
|
|
225
|
+
page: {},
|
|
226
|
+
selectindex: null,
|
|
227
|
+
lives: [{ label: '是', value: '是' }, { label: '否', value: '否' }],
|
|
228
|
+
f_live_dispose: '否',
|
|
229
|
+
// 初始表底
|
|
230
|
+
f_initial_base: {},
|
|
231
|
+
// 气量异常差值 计算公式 => 气量异常差值 = 累计购气量 - (已用气量 - 初始表底) - 剩余气量
|
|
232
|
+
f_gas_aberrant_number: {},
|
|
233
|
+
// 金额异常差值 计算公式 => 金额异常差值 = 累计购金额 - 已用金额 - 剩余金额
|
|
234
|
+
f_fee_aberrant_number: {},
|
|
235
|
+
// 表底数异常差值 计算公式 => 表底数异常差值 = 系统表底数 - 当前表底数
|
|
236
|
+
f_aberrant_number: {},//物联网 表底数异常差值
|
|
237
|
+
// 累购气量
|
|
238
|
+
f_total_gas: {},
|
|
239
|
+
// 累购金额
|
|
240
|
+
f_total_fee: {},
|
|
241
|
+
// 已用气量
|
|
242
|
+
f_table_base: {},
|
|
243
|
+
// 已用金额,系统剩余金额
|
|
244
|
+
f_fee_base: {},
|
|
245
|
+
//剩余金额
|
|
246
|
+
f_fee_balance: {},
|
|
247
|
+
// 剩余气量
|
|
248
|
+
f_gas_balance: {},
|
|
249
|
+
// 系统表底数
|
|
250
|
+
f_system_balance: {},
|
|
251
|
+
// 当前表底数
|
|
252
|
+
f_table_balance: {},
|
|
253
|
+
// 气量异常差值允许误差
|
|
254
254
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}
|
|
255
|
+
//物联网表数据存储
|
|
256
|
+
f_balance_amount: {},//物联网表剩余金额
|
|
257
|
+
f_meter_base: {},//物联网表读数
|
|
258
|
+
f_balance_amount1: {},//物联网表现场录入的表上剩余金额
|
|
259
|
+
f_meter_base1: {},//物联网表现场录入的表字轮数
|
|
260
|
+
f_meter_aberrant_number1: {},//物联网表 表数异常差值
|
|
261
|
+
f_fee_aberrant_number1: {},//物联网 表金额异常差值
|
|
262
|
+
gasDeviation: (
|
|
263
|
+
function (_this) {
|
|
264
|
+
let deviation = _this.$appdata.getSingleValue('气量异常差值允许误差')
|
|
265
|
+
if (deviation && !isNaN(deviation)) {
|
|
266
|
+
return deviation
|
|
267
|
+
} else {
|
|
268
|
+
return 0
|
|
270
269
|
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
270
|
+
}
|
|
271
|
+
)(this),
|
|
272
|
+
// 金额异常差值允许误差
|
|
273
|
+
feeDeviation: (
|
|
274
|
+
function (_this) {
|
|
275
|
+
let deviation = _this.$appdata.getSingleValue('金额异常差值允许误差')
|
|
276
|
+
if (deviation && !isNaN(deviation)) {
|
|
277
|
+
return deviation
|
|
278
|
+
} else {
|
|
279
|
+
return 0
|
|
281
280
|
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
281
|
+
}
|
|
282
|
+
)(this),
|
|
283
|
+
// 字轮异常差值允许误差
|
|
284
|
+
meterbase: (
|
|
285
|
+
function (_this) {
|
|
286
|
+
let deviation = _this.$appdata.getSingleValue('字轮异常差值允许误差')
|
|
287
|
+
if (deviation && !isNaN(deviation)) {
|
|
288
|
+
return deviation
|
|
289
|
+
} else {
|
|
290
|
+
return 0
|
|
292
291
|
}
|
|
293
|
-
|
|
294
|
-
|
|
292
|
+
}
|
|
293
|
+
)(this),
|
|
294
|
+
showElse: false, //控制其他选项是否显示
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
props: ['config', 'device', 'idx', 'operation', 'role'],
|
|
298
|
+
// props: {
|
|
299
|
+
// // 维修对应的用户数据收集
|
|
300
|
+
// model: {
|
|
301
|
+
// type: Object
|
|
302
|
+
// },
|
|
303
|
+
// service:{
|
|
304
|
+
// type: Object
|
|
305
|
+
// },
|
|
306
|
+
// show: {
|
|
307
|
+
// type: Boolean,
|
|
308
|
+
// default: false
|
|
309
|
+
// },
|
|
310
|
+
// repairitem:{
|
|
311
|
+
// type: Object
|
|
312
|
+
// },
|
|
313
|
+
// shutype:'heng',
|
|
314
|
+
// tabs:{
|
|
315
|
+
// type: Object
|
|
316
|
+
// },
|
|
317
|
+
// repairdetails:{
|
|
318
|
+
// type: Object
|
|
319
|
+
// },
|
|
320
|
+
// faultshow:{
|
|
321
|
+
// type: Object
|
|
322
|
+
// },
|
|
323
|
+
// issee:''
|
|
324
|
+
// },
|
|
325
|
+
methods: {
|
|
326
|
+
changdeal(val) {
|
|
327
|
+
if (val == undefined) {
|
|
328
|
+
return
|
|
329
|
+
}
|
|
330
|
+
if (this.selectindex != null) {
|
|
331
|
+
this.f_items[this.selectindex].f_deal_dispose = val
|
|
295
332
|
}
|
|
296
333
|
},
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
// show: {
|
|
307
|
-
// type: Boolean,
|
|
308
|
-
// default: false
|
|
309
|
-
// },
|
|
310
|
-
// repairitem:{
|
|
311
|
-
// type: Object
|
|
312
|
-
// },
|
|
313
|
-
// shutype:'heng',
|
|
314
|
-
// tabs:{
|
|
315
|
-
// type: Object
|
|
316
|
-
// },
|
|
317
|
-
// repairdetails:{
|
|
318
|
-
// type: Object
|
|
319
|
-
// },
|
|
320
|
-
// faultshow:{
|
|
321
|
-
// type: Object
|
|
322
|
-
// },
|
|
323
|
-
// issee:''
|
|
324
|
-
// },
|
|
325
|
-
methods: {
|
|
326
|
-
changdeal(val) {
|
|
327
|
-
if (val == undefined) {
|
|
328
|
-
return
|
|
329
|
-
}
|
|
330
|
-
if (this.selectindex != null) {
|
|
331
|
-
this.f_items[this.selectindex].f_deal_dispose = val
|
|
332
|
-
}
|
|
333
|
-
},
|
|
334
|
-
changse(val) {
|
|
335
|
-
if (val == undefined) {
|
|
336
|
-
return
|
|
334
|
+
changse(val) {
|
|
335
|
+
if (val == undefined) {
|
|
336
|
+
return
|
|
337
|
+
}
|
|
338
|
+
if (this.selectindex != null) {
|
|
339
|
+
if (this.f_items[this.selectindex].type == 'selector') {
|
|
340
|
+
this.f_items[this.selectindex].f_item_value = val
|
|
341
|
+
} else if (this.f_items[this.selectindex].type == 'inputSelector') {
|
|
342
|
+
this.f_items[this.selectindex].f_item_value = val.target.value
|
|
337
343
|
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
changlive(val) {
|
|
347
|
+
if (val == undefined) {
|
|
348
|
+
return
|
|
349
|
+
}
|
|
350
|
+
if (this.selectindex != null) {
|
|
351
|
+
this.f_items[this.selectindex].f_live_dispose = val
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
switchDetails(detailsType, event) {
|
|
355
|
+
if (event.srcElement.checked) {
|
|
356
|
+
for (var i = 0; i < this.Detail.details.length; i++) {
|
|
357
|
+
if (this.Detail.details[i].f_project == detailsType) {
|
|
358
|
+
this.Detail.details[i].f_content = '有'
|
|
359
|
+
this.ischecked = '有'
|
|
360
|
+
return
|
|
343
361
|
}
|
|
344
362
|
}
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
},
|
|
354
|
-
switchDetails(detailsType, event) {
|
|
355
|
-
if (event.srcElement.checked) {
|
|
356
|
-
for (var i = 0; i < this.Detail.details.length; i++) {
|
|
357
|
-
if (this.Detail.details[i].f_project == detailsType) {
|
|
358
|
-
this.Detail.details[i].f_content = '有'
|
|
359
|
-
this.ischecked = '有'
|
|
360
|
-
return
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
} else {
|
|
364
|
-
this.Detail.imgs = []
|
|
365
|
-
for (var i = 0; i < this.Detail.details.length; i++) {
|
|
366
|
-
if (this.Detail.details[i].f_project == detailsType) {
|
|
367
|
-
this.Detail.details[i].f_content = '无'
|
|
368
|
-
this.ischecked = '无'
|
|
369
|
-
} else {
|
|
370
|
-
this.Detail.details[i].f_content = ''
|
|
371
|
-
}
|
|
363
|
+
} else {
|
|
364
|
+
this.Detail.imgs = []
|
|
365
|
+
for (var i = 0; i < this.Detail.details.length; i++) {
|
|
366
|
+
if (this.Detail.details[i].f_project == detailsType) {
|
|
367
|
+
this.Detail.details[i].f_content = '无'
|
|
368
|
+
this.ischecked = '无'
|
|
369
|
+
} else {
|
|
370
|
+
this.Detail.details[i].f_content = ''
|
|
372
371
|
}
|
|
373
372
|
}
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
getgasmodel(val) {
|
|
376
|
+
this.gasmodel = val
|
|
377
|
+
},
|
|
378
|
+
getradios(val, flag) {
|
|
379
|
+
let Reoptions = []
|
|
380
|
+
for (let i = 0; i < this.repairdetails.length; i++) {
|
|
381
|
+
var t = false
|
|
382
|
+
if (this.repairdetails[i].f_type == this.repairitem.header) {
|
|
383
|
+
for (var j = 0; j < this.repairdetails[i].details.length; j++) {
|
|
384
|
+
if (this.repairdetails[i].details[j].f_project == val) {
|
|
385
|
+
Reoptions = this.repairdetails[i].details[j].options
|
|
386
|
+
t = true
|
|
387
|
+
break
|
|
389
388
|
}
|
|
390
389
|
}
|
|
391
|
-
if (t) {
|
|
392
|
-
break
|
|
393
|
-
}
|
|
394
390
|
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
391
|
+
if (t) {
|
|
392
|
+
break
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
for (let j = 0; j < Reoptions.length; j++) {
|
|
396
|
+
if (Reoptions[j].data == flag) {
|
|
397
|
+
for (var e = 0; e < this.Detail.details.length; e++) {
|
|
398
|
+
if (this.Detail.details[e].f_project == val) {
|
|
399
|
+
this.Detail.details[e].f_status = Reoptions[j].f_status
|
|
400
|
+
return
|
|
402
401
|
}
|
|
403
|
-
break
|
|
404
402
|
}
|
|
403
|
+
break
|
|
405
404
|
}
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
return
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
deletedetails() {
|
|
408
|
+
this.$showMessage('该操作会删除所填信息,是否继续!', ['confirm', 'cancel']).then((res) => {
|
|
409
|
+
if (res === 'confirm') {
|
|
410
|
+
for (var i = 0; i < this.tabs.length; i++) {
|
|
411
|
+
if (this.tabs[i].number == this.repairitem.number) {
|
|
412
|
+
this.tabs.splice(i, 1)
|
|
413
|
+
this.model.servicerepair.splice(this.repairitem.number, 1)
|
|
414
|
+
for (let t = i; t < this.tabs.length; t++) {
|
|
415
|
+
this.tabs[t].number -= 1
|
|
418
416
|
}
|
|
417
|
+
return
|
|
419
418
|
}
|
|
420
419
|
}
|
|
421
|
-
})
|
|
422
|
-
},
|
|
423
|
-
takePic(prop, title, pathname = 'null') {
|
|
424
|
-
if (this.role == 'androidview') {
|
|
425
|
-
return
|
|
426
420
|
}
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
421
|
+
})
|
|
422
|
+
},
|
|
423
|
+
takePic(prop, title, pathname = 'null') {
|
|
424
|
+
if (this.role == 'androidview') {
|
|
425
|
+
return
|
|
426
|
+
}
|
|
427
|
+
HostApp.__callback__ = this.cameraCallBack
|
|
428
|
+
HostApp.__this__ = this
|
|
429
|
+
//tag
|
|
430
|
+
let fileName
|
|
431
|
+
if (pathname == 'null') {
|
|
432
|
+
if (!this.f_items[prop].f_path || this.f_items[prop].f_path.includes("nopic.png")) {
|
|
433
|
+
fileName = Util.guid() + '-' + 'device' + this.device.n + '-' + this.idx + '-' + 'f_items' + prop + '.jpg'
|
|
437
434
|
} else {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
435
|
+
fileName = Util.getFileName(this.f_items[prop].f_path)
|
|
436
|
+
}
|
|
437
|
+
} else {
|
|
438
|
+
if (!this.f_items[prop][pathname] || this.f_items[prop][pathname].includes("nopic.png")) {
|
|
439
|
+
fileName = Util.guid() + '-' + 'device' + this.device.n + '-' + this.idx + '-' + 'f_items' + prop + '.jpg'
|
|
440
|
+
} else {
|
|
441
|
+
fileName = Util.getFileName(this.f_items[prop][pathname])
|
|
443
442
|
}
|
|
443
|
+
}
|
|
444
|
+
//tag
|
|
445
|
+
//tag
|
|
446
|
+
const obj = HostApp.getGpsDetailAddress()
|
|
447
|
+
const jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
|
|
448
|
+
HostApp._open_a_page({
|
|
449
|
+
type: 'boomerang',
|
|
450
|
+
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
|
451
|
+
param: {
|
|
452
|
+
file: fileName, requestCode: 111, callback: 'javascript:HostApp.__callback__("' + prop + '", "%s","' + pathname + '");',
|
|
453
|
+
watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name + '\t' + this.paper.f_userinfo_code+'\t' + this.paper.f_user_name+ '\t' + this.paper.f_address+jingweidu
|
|
454
|
+
}
|
|
455
|
+
})
|
|
456
|
+
},
|
|
457
|
+
cameraCallBack(prop, fileName, pathname) {
|
|
458
|
+
//tag
|
|
459
|
+
if (pathname == 'null') {
|
|
444
460
|
//tag
|
|
461
|
+
HostApp.__this__.$set('f_items[' + prop + '].f_path', fileName + '?' + Math.random())
|
|
445
462
|
//tag
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
type: 'boomerang',
|
|
450
|
-
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
|
451
|
-
param: {
|
|
452
|
-
file: fileName, requestCode: 111, callback: 'javascript:HostApp.__callback__("' + prop + '", "%s","' + pathname + '");',
|
|
453
|
-
watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name + '\t' + this.paper.f_userinfo_code+'\t' + this.paper.f_user_name+ '\t' + this.paper.f_address+jingweidu
|
|
454
|
-
}
|
|
455
|
-
})
|
|
456
|
-
},
|
|
457
|
-
cameraCallBack(prop, fileName, pathname) {
|
|
463
|
+
HostApp.__callback__ = null
|
|
464
|
+
HostApp.__this__ = null
|
|
465
|
+
} else {
|
|
458
466
|
//tag
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
467
|
+
//tag)
|
|
468
|
+
HostApp.__this__.$set('f_items[' + prop + '].' + pathname + '', fileName + '?' + Math.random())
|
|
469
|
+
HostApp.__callback__ = null
|
|
470
|
+
HostApp.__this__ = null
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
delfile(prop, fileName, pathname = 'null') {
|
|
474
|
+
if (pathname == 'null') {
|
|
475
|
+
//tag
|
|
476
|
+
//tag)
|
|
477
|
+
if (fileName == Vue.nopic) {
|
|
478
|
+
return
|
|
465
479
|
} else {
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
HostApp.__this__.$set('f_items[' + prop + '].' + pathname + '', fileName + '?' + Math.random())
|
|
469
|
-
HostApp.__callback__ = null
|
|
470
|
-
HostApp.__this__ = null
|
|
480
|
+
HostApp.delfile(fileName)
|
|
481
|
+
this.f_items[prop].f_path = Vue.nopic
|
|
471
482
|
}
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
if (fileName == Vue.nopic) {
|
|
478
|
-
return
|
|
479
|
-
} else {
|
|
480
|
-
HostApp.delfile(fileName)
|
|
481
|
-
this.f_items[prop].f_path = Vue.nopic
|
|
482
|
-
}
|
|
483
|
+
} else {
|
|
484
|
+
//tag
|
|
485
|
+
//tag)
|
|
486
|
+
if (fileName == Vue.nopic) {
|
|
487
|
+
return
|
|
483
488
|
} else {
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
if (fileName == Vue.nopic) {
|
|
487
|
-
return
|
|
488
|
-
} else {
|
|
489
|
-
HostApp.delfile(fileName)
|
|
490
|
-
this.f_items[prop][pathname] = Vue.nopic
|
|
491
|
-
}
|
|
489
|
+
HostApp.delfile(fileName)
|
|
490
|
+
this.f_items[prop][pathname] = Vue.nopic
|
|
492
491
|
}
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
this.faultshow.number += this.faultshow.number + 1
|
|
508
|
-
return
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
adddetails() {
|
|
495
|
+
// 下标作为序号,取值用。 增加 序号得依次增加
|
|
496
|
+
if (this.tabs.length > 0) {
|
|
497
|
+
for (let i = this.tabs.length - 1; i > 0; i--) {
|
|
498
|
+
if (this.tabs[i].header == this.repairitem.header) {
|
|
499
|
+
if (this.model.servicerepair.length > 0) {
|
|
500
|
+
for (let j = this.model.servicerepair.length - 1; j > -1; j--) {
|
|
501
|
+
if (this.model.servicerepair[j].f_type == this.repairitem.header) {
|
|
502
|
+
this.model.servicerepair.splice(j + 1, 0, Object.assign({}, JSON.parse(JSON.stringify(this.tabs[i].details))))
|
|
503
|
+
this.tabs.splice(i + 1, 0, { header: `${this.repairitem.header}`, details: this.tabs[i].details, complete: 'repair-details', class: 'repair-details-class', number: j + 1, items: this.tabs[i].items })
|
|
504
|
+
for (let t = i + 2; t < this.tabs.length; t++) {
|
|
505
|
+
this.tabs[t].number += 1
|
|
509
506
|
}
|
|
507
|
+
this.faultshow.number += this.faultshow.number + 1
|
|
508
|
+
return
|
|
510
509
|
}
|
|
511
510
|
}
|
|
512
511
|
}
|
|
513
512
|
}
|
|
514
513
|
}
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
transelation(val) {
|
|
517
|
+
this.selectindex = val
|
|
518
|
+
},
|
|
519
|
+
towatch() {
|
|
520
|
+
for (let n in this.f_items) {
|
|
521
|
+
if (typeof this.f_items[n] == 'function') {
|
|
522
|
+
continue
|
|
523
|
+
}
|
|
524
|
+
if (this.f_items[n].type == 'selector' || this.f_items[n].type == 'inputSelector') {
|
|
525
|
+
// 监听下拉框,如果有隐患,需要拍照
|
|
526
|
+
this.$watch('f_items[' + n + '].selected', function (val) {
|
|
527
|
+
// 下拉框值
|
|
528
|
+
//tag)
|
|
529
|
+
// 下拉框所属设备
|
|
530
|
+
//tag
|
|
531
|
+
// 下拉框所属项
|
|
532
|
+
//tag
|
|
533
|
+
let shImage = false
|
|
534
|
+
if (val.indexOf('其他') == -1) {
|
|
535
|
+
this.f_items[n].f_else = ''
|
|
536
|
+
}
|
|
537
|
+
// if(this.config[this.device.device].items[item].type == 'selector'){
|
|
538
|
+
// this.f_items[n].f_item_value = val
|
|
539
|
+
// }else if(this.config[this.device.device].items[item].type == 'inputSelector'){
|
|
540
|
+
// this.f_items[n].f_item_value = val[0]
|
|
541
|
+
// }
|
|
542
|
+
// 在配置中查找该项
|
|
543
|
+
for (let item in this.config[this.device.device].items) {
|
|
544
|
+
if (typeof this.config[this.device.device].items[item] == 'function') {
|
|
545
|
+
continue
|
|
536
546
|
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
547
|
+
let type = this.config[this.device.device].items[item].type
|
|
548
|
+
let multiple = this.config[this.device.device].items[item].multiple
|
|
549
|
+
let options = this.config[this.device.device].items[item].options
|
|
550
|
+
if ((this.config[this.device.device].items[item].type == 'selector' || this.config[this.device.device].items[item].type == 'inputSelector') && item == this.f_items[n].f_item_name) {
|
|
551
|
+
for (let i in options) {
|
|
552
|
+
if (typeof options[i] == 'function') {
|
|
553
|
+
continue
|
|
554
|
+
}
|
|
555
|
+
let value
|
|
556
|
+
if (this.config[this.device.device].items[item].type == 'selector' && this.config[this.device.device].items[item].multiple == false) {
|
|
557
|
+
value = val[0]
|
|
558
|
+
} else if (this.config[this.device.device].items[item].type == 'inputSelector') {
|
|
559
|
+
value = val
|
|
560
|
+
}
|
|
561
|
+
//tag)
|
|
562
|
+
// 如果未选择,清空图片、隐患信息等
|
|
563
|
+
if ((type == 'selector' && val.length == 0) || (type == 'inputSelector' && val == '')) {
|
|
564
|
+
// 只有在没有已上传照片的情况下才清空
|
|
565
|
+
if (!this.f_items[n].f_path || this.f_items[n].f_path === Vue.nopic) {
|
|
566
|
+
this.f_items[n].f_path = ''
|
|
554
567
|
}
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
568
|
+
this.f_items[n].f_is_defect = ''
|
|
569
|
+
this.f_items[n].f_defect_level = ''
|
|
570
|
+
this.f_items[n].f_live_dispose = ''
|
|
571
|
+
this.f_items[n].tooltip = ''
|
|
572
|
+
}
|
|
573
|
+
if ((type == 'selector' && multiple == false && options[i].data == val[0]) || (type == 'inputSelector' && options[i].data == val) || (type == 'selector' && multiple == true && val.indexOf(options[i].data) > -1)) {
|
|
574
|
+
// 找到选中的项了
|
|
575
|
+
//tag
|
|
576
|
+
if (options[i].isdefect == true) {
|
|
577
|
+
shImage = true
|
|
560
578
|
}
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
if ((type == 'selector' && val.length == 0) || (type == 'inputSelector' && val == '')) {
|
|
564
|
-
this.f_items[n].f_path = ''
|
|
565
|
-
this.f_items[n].f_is_defect = ''
|
|
566
|
-
this.f_items[n].f_defect_level = ''
|
|
567
|
-
this.f_items[n].f_live_dispose = ''
|
|
568
|
-
this.f_items[n].tooltip = ''
|
|
579
|
+
if (options[i].isdefect == false || this.f_items[n].f_item_value == '') {
|
|
580
|
+
shImage = false
|
|
569
581
|
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
if (options[i].isdefect == false || this.f_items[n].f_item_value == '') {
|
|
577
|
-
shImage = false
|
|
578
|
-
}
|
|
579
|
-
//tag
|
|
580
|
-
if (shImage) {
|
|
581
|
-
this.f_items[n].f_is_defect = true
|
|
582
|
-
this.f_items[n].f_defect_level = options[i].level
|
|
582
|
+
//tag
|
|
583
|
+
if (shImage) {
|
|
584
|
+
this.f_items[n].f_is_defect = true
|
|
585
|
+
this.f_items[n].f_defect_level = options[i].level
|
|
586
|
+
// 只有在没有已上传照片的情况下才设置为默认图片
|
|
587
|
+
if (!this.f_items[n].f_path || this.f_items[n].f_path === '') {
|
|
583
588
|
this.f_items[n].f_path = Vue.nopic
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
589
|
+
}
|
|
590
|
+
this.f_items[n].f_live_dispose = '否'
|
|
591
|
+
this.f_items[n].tooltip = options[i].tooltip
|
|
592
|
+
} else {
|
|
593
|
+
// 只有在没有已上传照片的情况下才清空
|
|
594
|
+
if (!this.f_items[n].f_path || this.f_items[n].f_path === Vue.nopic) {
|
|
587
595
|
this.f_items[n].f_path = ''
|
|
588
|
-
this.f_items[n].f_is_defect = ''
|
|
589
|
-
this.f_items[n].f_defect_level = ''
|
|
590
|
-
this.f_items[n].f_live_dispose = ''
|
|
591
|
-
this.f_items[n].tooltip = ''
|
|
592
596
|
}
|
|
597
|
+
this.f_items[n].f_is_defect = ''
|
|
598
|
+
this.f_items[n].f_defect_level = ''
|
|
599
|
+
this.f_items[n].f_live_dispose = ''
|
|
600
|
+
this.f_items[n].tooltip = ''
|
|
593
601
|
}
|
|
594
602
|
}
|
|
595
603
|
}
|
|
596
604
|
}
|
|
597
605
|
}
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
606
|
+
}
|
|
607
|
+
)
|
|
608
|
+
// this.$watch('other',function(val){
|
|
609
|
+
// //tag
|
|
610
|
+
// if(this.selectindex != null) {
|
|
611
|
+
// let index = this.f_items[this.selectindex].f_item_value.indexOf('其他')
|
|
612
|
+
// if(index > -1){
|
|
613
|
+
// this.f_items[this.selectindex].f_item_value.splice(index,1,this.other)
|
|
614
|
+
// }
|
|
615
|
+
// }
|
|
616
|
+
//
|
|
617
|
+
// })
|
|
618
|
+
} else if (this.f_items[n].type == 'radio') {
|
|
619
|
+
// 监听单选框,如果有隐患,需要拍照
|
|
620
|
+
this.$watch('f_items[' + n + '].f_item_value', function (val) {
|
|
621
|
+
//tag)
|
|
622
|
+
let options = this.f_items[n].options
|
|
623
|
+
//tag)
|
|
624
|
+
for (let i = 0; i < options.length; i++) {
|
|
614
625
|
//tag)
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
//
|
|
618
|
-
if (options[i].
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
626
|
+
// 找到选中的项了
|
|
627
|
+
if (options[i].value == val) {
|
|
628
|
+
// 如果有隐患,拍图片
|
|
629
|
+
if (options[i].isdefect) {
|
|
630
|
+
this.f_items[n].f_is_defect = true
|
|
631
|
+
this.f_items[n].f_defect_level = options[i].level
|
|
632
|
+
// 只有在没有已上传照片的情况下才设置为默认图片
|
|
633
|
+
if (!this.f_items[n].f_path || this.f_items[n].f_path === '') {
|
|
623
634
|
this.f_items[n].f_path = Vue.nopic
|
|
624
|
-
this.f_items[n].f_live_dispose = '否'
|
|
625
|
-
this.f_items[n].tooltip = options[i].tooltip
|
|
626
|
-
//tag)
|
|
627
|
-
return
|
|
628
635
|
}
|
|
636
|
+
this.f_items[n].f_live_dispose = '否'
|
|
637
|
+
this.f_items[n].tooltip = options[i].tooltip
|
|
638
|
+
//tag)
|
|
639
|
+
return
|
|
629
640
|
}
|
|
630
641
|
}
|
|
642
|
+
}
|
|
643
|
+
// 只有在没有已上传照片的情况下才清空
|
|
644
|
+
if (!this.f_items[n].f_path || this.f_items[n].f_path === Vue.nopic) {
|
|
631
645
|
this.f_items[n].f_path = ''
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
646
|
+
}
|
|
647
|
+
this.f_items[n].f_is_defect = ''
|
|
648
|
+
this.f_items[n].f_defect_level = ''
|
|
649
|
+
this.f_items[n].f_live_dispose = ''
|
|
650
|
+
this.f_items[n].tooltip = ''
|
|
651
|
+
})
|
|
652
|
+
} else if (this.f_items[n].type == 'checkbox') {
|
|
653
|
+
// 监听单选框,如果有隐患,需要拍照
|
|
654
|
+
this.$watch('f_items[' + n + '].f_item_value', function (val) {
|
|
655
|
+
//tag)
|
|
656
|
+
// 如果是手动赋值,不执行下面逻辑
|
|
657
|
+
if (this.f_items[n].isReSet) {
|
|
658
|
+
this.f_items[n].isReSet = false
|
|
659
|
+
return
|
|
660
|
+
}
|
|
661
|
+
let options = this.f_items[n].options
|
|
662
|
+
//tag)
|
|
663
|
+
// 取出选中项中有隐患的详细信息
|
|
664
|
+
let selected = options.filter(item => { return val.indexOf(item.value) != -1 && item.isdefect })
|
|
650
665
|
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
666
|
+
if (selected.length > 0) {
|
|
667
|
+
// 防止赋值无限调用
|
|
668
|
+
this.f_items[n].isReSet = true
|
|
669
|
+
let selectList = selected.map(item => { return item.value })
|
|
670
|
+
// 如果选中的是非隐患项,取消选中isdefect为true的
|
|
671
|
+
if (selectList.indexOf(val[val.length - 1]) == -1) {
|
|
672
|
+
this.f_items[n].f_item_value = val.filter(item => { return selectList.indexOf(item) == -1 })
|
|
673
|
+
// 只有在没有已上传照片的情况下才清空
|
|
674
|
+
if (!this.f_items[n].f_path || this.f_items[n].f_path === Vue.nopic) {
|
|
658
675
|
this.f_items[n].f_path = ''
|
|
659
|
-
this.f_items[n].f_is_defect = ''
|
|
660
|
-
this.f_items[n].f_defect_level = ''
|
|
661
|
-
this.f_items[n].f_live_dispose = ''
|
|
662
|
-
this.f_items[n].tooltip = ''
|
|
663
|
-
return
|
|
664
676
|
}
|
|
665
|
-
|
|
666
|
-
this.f_items[n].
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
677
|
+
this.f_items[n].f_is_defect = ''
|
|
678
|
+
this.f_items[n].f_defect_level = ''
|
|
679
|
+
this.f_items[n].f_live_dispose = ''
|
|
680
|
+
this.f_items[n].tooltip = ''
|
|
681
|
+
return
|
|
682
|
+
}
|
|
683
|
+
// 如果选中的是隐患项,取消选中isdefect为false的
|
|
684
|
+
this.f_items[n].f_item_value = selectList
|
|
685
|
+
// 如果第一次选择隐患项,初始化
|
|
686
|
+
if (!this.f_items[n].f_is_defect) {
|
|
687
|
+
this.f_items[n].f_is_defect = true
|
|
688
|
+
this.f_items[n].f_defect_level = selected[0].level
|
|
689
|
+
// 只有在没有已上传照片的情况下才设置为默认图片
|
|
690
|
+
if (!this.f_items[n].f_path || this.f_items[n].f_path === '') {
|
|
671
691
|
this.f_items[n].f_path = Vue.nopic
|
|
672
|
-
this.f_items[n].f_live_dispose = '否'
|
|
673
|
-
this.f_items[n].tooltip = selected[0].tooltip
|
|
674
692
|
}
|
|
675
|
-
|
|
676
|
-
|
|
693
|
+
this.f_items[n].f_live_dispose = '否'
|
|
694
|
+
this.f_items[n].tooltip = selected[0].tooltip
|
|
677
695
|
}
|
|
696
|
+
//tag)
|
|
697
|
+
return
|
|
698
|
+
}
|
|
699
|
+
// 只有在没有已上传照片的情况下才清空
|
|
700
|
+
if (!this.f_items[n].f_path || this.f_items[n].f_path === Vue.nopic) {
|
|
678
701
|
this.f_items[n].f_path = ''
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
//tag)
|
|
687
|
-
},
|
|
688
|
-
getGasAberrantNumber(val) {
|
|
689
|
-
//tag
|
|
690
|
-
|
|
691
|
-
// 先清空
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
if (val == '已用气量') {
|
|
695
|
-
//剩余气量 = 累购-已用
|
|
696
|
-
this.f_items[this.f_gas_balance.index].f_item_value = this.f_items[this.f_total_gas.index].f_item_value - this.f_items[this.f_table_base.index].f_item_value
|
|
697
|
-
if (isNaN(this.f_items[this.f_gas_balance.index].f_item_value)) {
|
|
698
|
-
this.f_items[this.f_gas_balance.index].f_item_value = null
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
// 只有两个值都填了才会计算
|
|
702
|
-
if (!this.f_items[this.f_table_base.index].f_item_value || !this.f_items[this.f_gas_balance.index].f_item_value) {
|
|
703
|
-
return
|
|
704
|
-
}
|
|
705
|
-
if (this.f_gas_aberrant_number.index) {
|
|
706
|
-
this.f_items[this.f_gas_aberrant_number.index].f_item_value = null
|
|
707
|
-
this.f_items[this.f_gas_aberrant_number.index].f_is_defect = false
|
|
708
|
-
} else {
|
|
709
|
-
return
|
|
702
|
+
}
|
|
703
|
+
this.f_items[n].f_is_defect = ''
|
|
704
|
+
this.f_items[n].f_defect_level = ''
|
|
705
|
+
this.f_items[n].f_live_dispose = ''
|
|
706
|
+
this.f_items[n].tooltip = ''
|
|
707
|
+
})
|
|
710
708
|
}
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
709
|
+
}
|
|
710
|
+
//tag)
|
|
711
|
+
},
|
|
712
|
+
getGasAberrantNumber(val) {
|
|
713
|
+
//tag
|
|
714
714
|
|
|
715
|
-
|
|
716
|
-
this.f_items[this.f_gas_aberrant_number.index].f_item_value = this.f_items[this.f_total_gas.index].f_item_value - this.f_items[this.f_gas_balance.index].f_item_value - (this.f_items[this.f_table_base.index].f_item_value - this.f_items[this.f_initial_base.index].f_item_value)
|
|
717
|
-
this.f_items[this.f_gas_aberrant_number.index].f_item_value = this.f_items[this.f_gas_aberrant_number.index].f_item_value.toFixed(3)
|
|
718
|
-
// 如果数值有误,清空结果s
|
|
719
|
-
if (isNaN(this.f_items[this.f_gas_aberrant_number.index].f_item_value)) {
|
|
720
|
-
this.f_items[this.f_gas_aberrant_number.index].f_item_value = null
|
|
721
|
-
}
|
|
722
|
-
//tag ===> ' + Math.abs(this.f_items[this.f_gas_aberrant_number.index].f_item_value))
|
|
723
|
-
//tag ===> ' + JSON.stringify(Number(this.gasDeviation)))
|
|
724
|
-
// 计算差值是否在范围内
|
|
725
|
-
if (Math.abs(this.f_items[this.f_gas_aberrant_number.index].f_item_value) > Number(this.gasDeviation)) {
|
|
726
|
-
this.f_items[this.f_gas_aberrant_number.index].f_is_defect = false
|
|
727
|
-
//this.f_items[this.f_gas_aberrant_number.index].f_defect_level = 'C'
|
|
728
|
-
}
|
|
715
|
+
// 先清空
|
|
729
716
|
|
|
730
|
-
//tag)
|
|
731
|
-
},
|
|
732
|
-
getFeeAberrantNumber(val) {
|
|
733
|
-
//tag
|
|
734
717
|
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
if (this.f_fee_aberrant_number.index) {
|
|
743
|
-
this.f_items[this.f_fee_aberrant_number.index].f_item_value = null
|
|
744
|
-
this.f_items[this.f_fee_aberrant_number.index].f_is_defect = false
|
|
745
|
-
} else {
|
|
746
|
-
return
|
|
747
|
-
}
|
|
748
|
-
// 只有两个值都填了才会计算
|
|
749
|
-
if (!this.f_items[this.f_fee_base.index].f_item_value || !this.f_items[this.f_fee_balance.index].f_item_value) {
|
|
750
|
-
return
|
|
751
|
-
}
|
|
752
|
-
if (this.$parent.$parent.item.f_plan_meters.length > 0 && this.$parent.$parent.item.f_plan_meters[0].f_meter_classify.indexOf('物联网表') !== -1) {
|
|
753
|
-
// 计算公式 => 金额异常差值 = 系统剩余金额 - 剩余金额
|
|
754
|
-
this.f_items[this.f_fee_aberrant_number.index].f_item_value = this.f_items[this.f_fee_base.index].f_item_value - this.f_items[this.f_fee_balance.index].f_item_value
|
|
755
|
-
} else {
|
|
756
|
-
// 计算公式 => 金额异常差值 = 累计购金额 - 已用金额 - 剩余金额
|
|
757
|
-
this.f_items[this.f_fee_aberrant_number.index].f_item_value = this.f_items[this.f_total_fee.index].f_item_value - this.f_items[this.f_fee_balance.index].f_item_value - this.f_items[this.f_fee_base.index].f_item_value
|
|
758
|
-
}
|
|
759
|
-
this.f_items[this.f_fee_aberrant_number.index].f_item_value = this.f_items[this.f_fee_aberrant_number.index].f_item_value.toFixed(3)
|
|
760
|
-
if (isNaN(this.f_items[this.f_fee_aberrant_number.index].f_item_value)) {
|
|
761
|
-
this.f_items[this.f_fee_aberrant_number.index].f_item_value = null
|
|
762
|
-
}
|
|
763
|
-
//tag ===> ' + Math.abs(this.f_items[this.f_fee_aberrant_number.index].f_item_value))
|
|
764
|
-
//tag ===> ' + JSON.stringify(Number(this.feeDeviation)))
|
|
765
|
-
// 计算差值是否在范围内
|
|
766
|
-
if (Math.abs(this.f_items[this.f_fee_aberrant_number.index].f_item_value) > Number(this.feeDeviation)) {
|
|
767
|
-
this.f_items[this.f_fee_aberrant_number.index].f_is_defect = true
|
|
768
|
-
this.f_items[this.f_fee_aberrant_number.index].f_defect_level = 'C'
|
|
718
|
+
if (val == '已用气量') {
|
|
719
|
+
//剩余气量 = 累购-已用
|
|
720
|
+
this.f_items[this.f_gas_balance.index].f_item_value = this.f_items[this.f_total_gas.index].f_item_value - this.f_items[this.f_table_base.index].f_item_value
|
|
721
|
+
if (isNaN(this.f_items[this.f_gas_balance.index].f_item_value)) {
|
|
722
|
+
this.f_items[this.f_gas_balance.index].f_item_value = null
|
|
769
723
|
}
|
|
724
|
+
}
|
|
725
|
+
// 只有两个值都填了才会计算
|
|
726
|
+
if (!this.f_items[this.f_table_base.index].f_item_value || !this.f_items[this.f_gas_balance.index].f_item_value) {
|
|
727
|
+
return
|
|
728
|
+
}
|
|
729
|
+
if (this.f_gas_aberrant_number.index) {
|
|
730
|
+
this.f_items[this.f_gas_aberrant_number.index].f_item_value = null
|
|
731
|
+
this.f_items[this.f_gas_aberrant_number.index].f_is_defect = false
|
|
732
|
+
} else {
|
|
733
|
+
return
|
|
734
|
+
}
|
|
735
|
+
//tag)
|
|
736
|
+
//tag
|
|
737
|
+
//tag
|
|
770
738
|
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
this.f_items[this.
|
|
777
|
-
|
|
739
|
+
// 计算公式 => 气量异常差值 = 累计购气量 - (已用气量 - 初始表底) - 剩余气量
|
|
740
|
+
this.f_items[this.f_gas_aberrant_number.index].f_item_value = this.f_items[this.f_total_gas.index].f_item_value - this.f_items[this.f_gas_balance.index].f_item_value - (this.f_items[this.f_table_base.index].f_item_value - this.f_items[this.f_initial_base.index].f_item_value)
|
|
741
|
+
this.f_items[this.f_gas_aberrant_number.index].f_item_value = this.f_items[this.f_gas_aberrant_number.index].f_item_value.toFixed(3)
|
|
742
|
+
// 如果数值有误,清空结果s
|
|
743
|
+
if (isNaN(this.f_items[this.f_gas_aberrant_number.index].f_item_value)) {
|
|
744
|
+
this.f_items[this.f_gas_aberrant_number.index].f_item_value = null
|
|
745
|
+
}
|
|
746
|
+
//tag ===> ' + Math.abs(this.f_items[this.f_gas_aberrant_number.index].f_item_value))
|
|
747
|
+
//tag ===> ' + JSON.stringify(Number(this.gasDeviation)))
|
|
748
|
+
// 计算差值是否在范围内
|
|
749
|
+
if (Math.abs(this.f_items[this.f_gas_aberrant_number.index].f_item_value) > Number(this.gasDeviation)) {
|
|
750
|
+
this.f_items[this.f_gas_aberrant_number.index].f_is_defect = false
|
|
751
|
+
//this.f_items[this.f_gas_aberrant_number.index].f_defect_level = 'C'
|
|
752
|
+
}
|
|
778
753
|
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
},
|
|
784
|
-
//物联网表字轮数改变触发
|
|
785
|
-
getmeteraberrantnumber() {
|
|
786
|
-
//tag
|
|
754
|
+
//tag)
|
|
755
|
+
},
|
|
756
|
+
getFeeAberrantNumber(val) {
|
|
757
|
+
//tag
|
|
787
758
|
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
this.f_items[this.
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
if (!this.f_items[this.f_meter_base.index].f_item_value || !this.f_items[this.f_meter_base1.index].f_item_value) {
|
|
794
|
-
return
|
|
795
|
-
}
|
|
796
|
-
//tag
|
|
797
|
-
// 计算公式 => 表数异常差值= - 字轮数 - 后台表读数
|
|
798
|
-
this.f_items[this.f_meter_aberrant_number1.index].f_item_value = this.f_items[this.f_meter_base1.index].f_item_value - this.f_items[this.f_meter_base.index].f_item_value
|
|
799
|
-
this.f_items[this.f_meter_aberrant_number1.index].f_item_value = this.f_items[this.f_meter_aberrant_number1.index].f_item_value.toFixed(3)
|
|
800
|
-
if (isNaN(this.f_items[this.f_meter_aberrant_number1.index].f_item_value)) {
|
|
801
|
-
this.f_items[this.f_meter_aberrant_number1.index].f_item_value = null
|
|
802
|
-
}
|
|
803
|
-
//tag ===> ' + Math.abs(this.f_items[this.f_meter_aberrant_number1.index].f_item_value))
|
|
804
|
-
// 计算差值是否在范围内
|
|
805
|
-
//tag)
|
|
806
|
-
if (Math.abs(this.f_items[this.f_meter_aberrant_number1.index].f_item_value) > Number(this.meterbase)) {
|
|
807
|
-
this.f_items[this.f_meter_aberrant_number1.index].f_is_defect = true
|
|
759
|
+
// 先清空
|
|
760
|
+
if (val == '已用金额') {
|
|
761
|
+
this.f_items[this.f_fee_balance.index].f_item_value = this.f_items[this.f_total_fee.index].f_item_value - this.f_items[this.f_fee_base.index].f_item_value
|
|
762
|
+
if (isNaN(this.f_items[this.f_fee_balance.index].f_item_value)) {
|
|
763
|
+
this.f_items[this.f_fee_balance.index].f_item_value = null
|
|
808
764
|
}
|
|
765
|
+
}
|
|
766
|
+
if (this.f_fee_aberrant_number.index) {
|
|
767
|
+
this.f_items[this.f_fee_aberrant_number.index].f_item_value = null
|
|
768
|
+
this.f_items[this.f_fee_aberrant_number.index].f_is_defect = false
|
|
769
|
+
} else {
|
|
770
|
+
return
|
|
771
|
+
}
|
|
772
|
+
// 只有两个值都填了才会计算
|
|
773
|
+
if (!this.f_items[this.f_fee_base.index].f_item_value || !this.f_items[this.f_fee_balance.index].f_item_value) {
|
|
774
|
+
return
|
|
775
|
+
}
|
|
776
|
+
if (this.$parent.$parent.item.f_plan_meters.length > 0 && this.$parent.$parent.item.f_plan_meters[0].f_meter_classify.indexOf('物联网表') !== -1) {
|
|
777
|
+
// 计算公式 => 金额异常差值 = 系统剩余金额 - 剩余金额
|
|
778
|
+
this.f_items[this.f_fee_aberrant_number.index].f_item_value = this.f_items[this.f_fee_base.index].f_item_value - this.f_items[this.f_fee_balance.index].f_item_value
|
|
779
|
+
} else {
|
|
780
|
+
// 计算公式 => 金额异常差值 = 累计购金额 - 已用金额 - 剩余金额
|
|
781
|
+
this.f_items[this.f_fee_aberrant_number.index].f_item_value = this.f_items[this.f_total_fee.index].f_item_value - this.f_items[this.f_fee_balance.index].f_item_value - this.f_items[this.f_fee_base.index].f_item_value
|
|
782
|
+
}
|
|
783
|
+
this.f_items[this.f_fee_aberrant_number.index].f_item_value = this.f_items[this.f_fee_aberrant_number.index].f_item_value.toFixed(3)
|
|
784
|
+
if (isNaN(this.f_items[this.f_fee_aberrant_number.index].f_item_value)) {
|
|
785
|
+
this.f_items[this.f_fee_aberrant_number.index].f_item_value = null
|
|
786
|
+
}
|
|
787
|
+
//tag ===> ' + Math.abs(this.f_items[this.f_fee_aberrant_number.index].f_item_value))
|
|
788
|
+
//tag ===> ' + JSON.stringify(Number(this.feeDeviation)))
|
|
789
|
+
// 计算差值是否在范围内
|
|
790
|
+
if (Math.abs(this.f_items[this.f_fee_aberrant_number.index].f_item_value) > Number(this.feeDeviation)) {
|
|
791
|
+
this.f_items[this.f_fee_aberrant_number.index].f_is_defect = true
|
|
792
|
+
this.f_items[this.f_fee_aberrant_number.index].f_defect_level = 'C'
|
|
793
|
+
}
|
|
809
794
|
|
|
810
|
-
|
|
811
|
-
|
|
795
|
+
//tag)
|
|
796
|
+
},
|
|
797
|
+
//计算表底数异常差值
|
|
798
|
+
getTableBalanceNumber() {
|
|
799
|
+
// 先清空
|
|
800
|
+
this.f_items[this.f_aberrant_number.index].f_item_value = null
|
|
801
|
+
this.f_items[this.f_aberrant_number.index].f_is_defect = false
|
|
812
802
|
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
//tag)
|
|
816
|
-
if (this.f_items[index].f_item_value == itemValue) {
|
|
817
|
-
this.$set(`f_items[${index}].f_item_value`, '')
|
|
818
|
-
}
|
|
803
|
+
if (!this.f_items[this.f_system_balance.index].f_item_value || !this.f_items[this.f_table_balance.index].f_item_value) {
|
|
804
|
+
return
|
|
819
805
|
}
|
|
806
|
+
this.f_items[this.f_aberrant_number.index].f_item_value = this.f_items[this.f_system_balance.index].f_item_value - this.f_items[this.f_table_balance.index].f_item_value
|
|
820
807
|
},
|
|
821
|
-
|
|
808
|
+
//物联网表字轮数改变触发
|
|
809
|
+
getmeteraberrantnumber() {
|
|
822
810
|
//tag
|
|
811
|
+
|
|
812
|
+
// 先清空
|
|
813
|
+
this.f_items[this.f_meter_aberrant_number1.index].f_item_value = null
|
|
814
|
+
this.f_items[this.f_meter_aberrant_number1.index].f_is_defect = false
|
|
823
815
|
//tag
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
|
|
828
|
-
}
|
|
829
|
-
if (Vue.config.safecheck.ApproveConfig.hiddendanger != undefined) {
|
|
830
|
-
if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >= 3) {
|
|
831
|
-
this.hiddenDangerImgNumber = 3
|
|
832
|
-
} else {
|
|
833
|
-
this.hiddenDangerImgNumber = parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger)
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
}
|
|
816
|
+
// 只有两个值都填了才会计算
|
|
817
|
+
if (!this.f_items[this.f_meter_base.index].f_item_value || !this.f_items[this.f_meter_base1.index].f_item_value) {
|
|
818
|
+
return
|
|
837
819
|
}
|
|
838
820
|
//tag
|
|
821
|
+
// 计算公式 => 表数异常差值= - 字轮数 - 后台表读数
|
|
822
|
+
this.f_items[this.f_meter_aberrant_number1.index].f_item_value = this.f_items[this.f_meter_base1.index].f_item_value - this.f_items[this.f_meter_base.index].f_item_value
|
|
823
|
+
this.f_items[this.f_meter_aberrant_number1.index].f_item_value = this.f_items[this.f_meter_aberrant_number1.index].f_item_value.toFixed(3)
|
|
824
|
+
if (isNaN(this.f_items[this.f_meter_aberrant_number1.index].f_item_value)) {
|
|
825
|
+
this.f_items[this.f_meter_aberrant_number1.index].f_item_value = null
|
|
826
|
+
}
|
|
827
|
+
//tag ===> ' + Math.abs(this.f_items[this.f_meter_aberrant_number1.index].f_item_value))
|
|
828
|
+
// 计算差值是否在范围内
|
|
829
|
+
//tag)
|
|
830
|
+
if (Math.abs(this.f_items[this.f_meter_aberrant_number1.index].f_item_value) > Number(this.meterbase)) {
|
|
831
|
+
this.f_items[this.f_meter_aberrant_number1.index].f_is_defect = true
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
//tag)
|
|
835
|
+
},
|
|
836
|
+
|
|
837
|
+
disSelect(index, itemValue) {
|
|
839
838
|
//tag)
|
|
840
839
|
//tag)
|
|
840
|
+
if (this.f_items[index].f_item_value == itemValue) {
|
|
841
|
+
this.$set(`f_items[${index}].f_item_value`, '')
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
ready() {
|
|
846
|
+
//tag
|
|
847
|
+
//tag
|
|
848
|
+
if (Vue.config.safecheck != undefined) {
|
|
849
|
+
if (Vue.config.safecheck.ApproveConfig != undefined) {
|
|
850
|
+
if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
|
|
851
|
+
this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
|
|
852
|
+
}
|
|
853
|
+
if (Vue.config.safecheck.ApproveConfig.hiddendanger != undefined) {
|
|
854
|
+
if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >= 3) {
|
|
855
|
+
this.hiddenDangerImgNumber = 3
|
|
856
|
+
} else {
|
|
857
|
+
this.hiddenDangerImgNumber = parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger)
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
//tag
|
|
863
|
+
//tag)
|
|
864
|
+
//tag)
|
|
865
|
+
//tag)
|
|
866
|
+
//创建页面所需数据
|
|
867
|
+
this.$set('piece', this.paper['device' + this.device.n][this.idx])
|
|
868
|
+
//tag)
|
|
869
|
+
//tag)
|
|
870
|
+
let n = 0
|
|
871
|
+
for (let item in this.config[this.device.device].items) {
|
|
872
|
+
if (typeof this.config[this.device.device].items[item] == 'function') {
|
|
873
|
+
continue
|
|
874
|
+
}
|
|
875
|
+
let index = this.config[this.device.device].items[item].index - 1
|
|
876
|
+
this.$set('page.options' + index, [])
|
|
841
877
|
//tag)
|
|
842
|
-
//创建页面所需数据
|
|
843
|
-
this.$set('piece', this.paper['device' + this.device.n][this.idx])
|
|
844
878
|
//tag)
|
|
845
879
|
//tag)
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
880
|
+
// 先根据配置组接页面
|
|
881
|
+
let f_item_value
|
|
882
|
+
if (this.config[this.device.device].items[item].type == 'selector' || this.config[this.device.device].items[item].type == 'checkbox') {
|
|
883
|
+
f_item_value = []
|
|
884
|
+
// 判断选项的默认值
|
|
885
|
+
for (let defitem in this.config[this.device.device].items[item].options) {
|
|
886
|
+
if (typeof this.config[this.device.device].items[item].options[defitem] == 'function') {
|
|
887
|
+
continue
|
|
888
|
+
}
|
|
889
|
+
let defopt = this.config[this.device.device].items[item].options[defitem]
|
|
890
|
+
if (defopt.isdefault) {
|
|
891
|
+
//tag
|
|
892
|
+
f_item_value[0] = defopt.data
|
|
893
|
+
}
|
|
850
894
|
}
|
|
851
|
-
|
|
852
|
-
this
|
|
853
|
-
//
|
|
854
|
-
|
|
895
|
+
// if(this.config[this.device.device].items[item].data){
|
|
896
|
+
// f_item_value.push(this.config[this.device.device].items[item].data)
|
|
897
|
+
// }
|
|
898
|
+
} else if (this.config[this.device.device].items[item].type == 'radio') {
|
|
899
|
+
//为radio添加默认值
|
|
900
|
+
f_item_value = ''
|
|
855
901
|
//tag)
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
f_item_value = []
|
|
860
|
-
// 判断选项的默认值
|
|
861
|
-
for (let defitem in this.config[this.device.device].items[item].options) {
|
|
862
|
-
if (typeof this.config[this.device.device].items[item].options[defitem] == 'function') {
|
|
863
|
-
continue
|
|
864
|
-
}
|
|
865
|
-
let defopt = this.config[this.device.device].items[item].options[defitem]
|
|
866
|
-
if (defopt.isdefault) {
|
|
867
|
-
//tag
|
|
868
|
-
f_item_value[0] = defopt.data
|
|
869
|
-
}
|
|
902
|
+
for (let defitem in this.config[this.device.device].items[item].options) {
|
|
903
|
+
if (typeof this.config[this.device.device].items[item].options[defitem] == 'function') {
|
|
904
|
+
continue
|
|
870
905
|
}
|
|
871
|
-
// if(this.config[this.device.device].items[item].data){
|
|
872
|
-
// f_item_value.push(this.config[this.device.device].items[item].data)
|
|
873
|
-
// }
|
|
874
|
-
} else if (this.config[this.device.device].items[item].type == 'radio') {
|
|
875
|
-
//为radio添加默认值
|
|
876
|
-
f_item_value = ''
|
|
877
906
|
//tag)
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
continue
|
|
881
|
-
}
|
|
907
|
+
let defopt = this.config[this.device.device].items[item].options[defitem]
|
|
908
|
+
if (defopt.isdefault) {
|
|
882
909
|
//tag)
|
|
883
|
-
|
|
884
|
-
if (defopt.isdefault) {
|
|
885
|
-
//tag)
|
|
886
|
-
f_item_value = defopt.data
|
|
887
|
-
}
|
|
910
|
+
f_item_value = defopt.data
|
|
888
911
|
}
|
|
889
|
-
} else {
|
|
890
|
-
f_item_value = this.config[this.device.device].items[item].data ? this.config[this.device.device].items[item].data : ''
|
|
891
912
|
}
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
913
|
+
} else {
|
|
914
|
+
f_item_value = this.config[this.device.device].items[item].data ? this.config[this.device.device].items[item].data : ''
|
|
915
|
+
}
|
|
916
|
+
//tag)
|
|
917
|
+
let it = {
|
|
918
|
+
type: this.config[this.device.device].items[item].type,
|
|
919
|
+
f_item_name: item,
|
|
920
|
+
f_alias_name: this.config[this.device.device].items[item].alias_name,
|
|
921
|
+
checkmust: this.config[this.device.device].items[item].checkmust,
|
|
922
|
+
f_item_value: f_item_value,
|
|
923
|
+
f_is_defect: '',
|
|
924
|
+
multiple: this.config[this.device.device].items[item].multiple == true ? this.config[this.device.device].items[item].multiple : false,
|
|
925
|
+
isshow: this.config[this.device.device].items[item].isshow == false ? this.config[this.device.device].items[item].isshow : true,
|
|
926
|
+
readonly: this.config[this.device.device].items[item].readonly == true ? true : false,
|
|
927
|
+
remark: this.config[this.device.device].items[item].remark ? this.config[this.device.device].items[item].remark : '',
|
|
928
|
+
format: this.config[this.device.device].items[item].format ? this.config[this.device.device].items[item].format : 'yyyy-MM-dd 00:00:00',
|
|
929
|
+
f_path: '',
|
|
930
|
+
f_describe: this.config[this.device.device].items[item].describe || '',
|
|
931
|
+
f_responsibility: this.config[this.device.device].items[item].responsibility || '',
|
|
932
|
+
tooltip: '',
|
|
933
|
+
f_live_dispose: '',
|
|
934
|
+
f_else: '',
|
|
935
|
+
f_p1_path: '',
|
|
936
|
+
f_p2_path: '',
|
|
937
|
+
f_p3_path: ''
|
|
938
|
+
}
|
|
939
|
+
//tag)
|
|
940
|
+
//tag)
|
|
941
|
+
this.$set('f_items[' + index + ']', it)
|
|
942
|
+
if (this.config[this.device.device].items[item].type == 'selector' || this.config[this.device.device].items[item].type == 'inputSelector') {
|
|
943
|
+
if (this.config[this.device.device].items[item].type == 'selector') {
|
|
944
|
+
this.page['options' + index].push({
|
|
945
|
+
label: "请选择",
|
|
946
|
+
value: ''
|
|
947
|
+
})
|
|
914
948
|
}
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
if (this.config[this.device.device].items[item].type == 'selector' || this.config[this.device.device].items[item].type == 'inputSelector') {
|
|
919
|
-
if (this.config[this.device.device].items[item].type == 'selector') {
|
|
920
|
-
this.page['options' + index].push({
|
|
921
|
-
label: "请选择",
|
|
922
|
-
value: ''
|
|
923
|
-
})
|
|
924
|
-
}
|
|
925
|
-
for (let i in this.config[this.device.device].items[item].options) {
|
|
926
|
-
if (typeof this.config[this.device.device].items[item].options[i] == 'function') {
|
|
927
|
-
continue
|
|
928
|
-
}
|
|
929
|
-
this.page['options' + index].push({
|
|
930
|
-
label: this.config[this.device.device].items[item].options[i].data,
|
|
931
|
-
value: this.config[this.device.device].items[item].options[i].data
|
|
932
|
-
})
|
|
933
|
-
}
|
|
934
|
-
if (this.config[this.device.device].items[item].type == 'selector') {
|
|
935
|
-
this.$set('f_items[' + index + '].selected', f_item_value)
|
|
936
|
-
} else if (this.config[this.device.device].items[item].type == 'inputSelector') {
|
|
937
|
-
this.$set('f_items[' + index + '].selected', f_item_value)
|
|
949
|
+
for (let i in this.config[this.device.device].items[item].options) {
|
|
950
|
+
if (typeof this.config[this.device.device].items[item].options[i] == 'function') {
|
|
951
|
+
continue
|
|
938
952
|
}
|
|
953
|
+
this.page['options' + index].push({
|
|
954
|
+
label: this.config[this.device.device].items[item].options[i].data,
|
|
955
|
+
value: this.config[this.device.device].items[item].options[i].data
|
|
956
|
+
})
|
|
957
|
+
}
|
|
958
|
+
if (this.config[this.device.device].items[item].type == 'selector') {
|
|
959
|
+
this.$set('f_items[' + index + '].selected', f_item_value)
|
|
960
|
+
} else if (this.config[this.device.device].items[item].type == 'inputSelector') {
|
|
961
|
+
this.$set('f_items[' + index + '].selected', f_item_value)
|
|
962
|
+
}
|
|
939
963
|
|
|
940
|
-
|
|
964
|
+
this.$set('f_items[' + index + '].options', this.page['options' + index])
|
|
941
965
|
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
}
|
|
951
|
-
//tag
|
|
952
|
-
this.page['options' + index].push({
|
|
953
|
-
label: this.config[this.device.device].items[item].options[i].data,
|
|
954
|
-
value: this.config[this.device.device].items[item].options[i].data,
|
|
955
|
-
isdefect: this.config[this.device.device].items[item].options[i].isdefect,
|
|
956
|
-
level: this.config[this.device.device].items[item].options[i].level
|
|
957
|
-
})
|
|
958
|
-
//tag)
|
|
966
|
+
//tag)
|
|
967
|
+
} else if (this.config[this.device.device].items[item].type == 'radio' || this.config[this.device.device].items[item].type == 'checkbox') {
|
|
968
|
+
//tag)
|
|
969
|
+
//tag
|
|
970
|
+
//tag)
|
|
971
|
+
for (let i in this.config[this.device.device].items[item].options) {
|
|
972
|
+
if (typeof this.config[this.device.device].items[item].options[i] == 'function') {
|
|
973
|
+
continue
|
|
959
974
|
}
|
|
960
|
-
//tag
|
|
961
|
-
this
|
|
962
|
-
|
|
975
|
+
//tag
|
|
976
|
+
this.page['options' + index].push({
|
|
977
|
+
label: this.config[this.device.device].items[item].options[i].data,
|
|
978
|
+
value: this.config[this.device.device].items[item].options[i].data,
|
|
979
|
+
isdefect: this.config[this.device.device].items[item].options[i].isdefect,
|
|
980
|
+
level: this.config[this.device.device].items[item].options[i].level
|
|
981
|
+
})
|
|
963
982
|
//tag)
|
|
964
983
|
}
|
|
965
|
-
|
|
984
|
+
//tag)
|
|
985
|
+
this.$set('f_items[' + index + '].options', this.page['options' + index])
|
|
986
|
+
this.$set('f_items[' + index + '].f_item_value', f_item_value)
|
|
987
|
+
//tag)
|
|
966
988
|
}
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
989
|
+
n = n + 1
|
|
990
|
+
}
|
|
991
|
+
if (JSON.stringify(this.piece) == '{}') {
|
|
992
|
+
// 如果没有,则新建
|
|
993
|
+
this.$set('piece.f_items', this.f_items)
|
|
994
|
+
this.$set('piece.f_device_type', this.device.device)
|
|
995
|
+
} else {
|
|
996
|
+
// 已经存在,把之前的数据重新填入
|
|
997
|
+
for (let f in this.f_items) {
|
|
998
|
+
if (typeof this.f_items[f] == 'function') {
|
|
999
|
+
continue
|
|
1000
|
+
}
|
|
1001
|
+
for (let p in this.piece.f_items) {
|
|
1002
|
+
if (typeof this.piece.f_items[p] == 'function') {
|
|
975
1003
|
continue
|
|
976
1004
|
}
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
1005
|
+
if (this.f_items[f].f_item_name == this.piece.f_items[p].f_item_name) {
|
|
1006
|
+
//tag)
|
|
1007
|
+
//tag)
|
|
1008
|
+
this.f_items[f] = Object.assign(this.f_items[f], this.piece.f_items[p])
|
|
1009
|
+
//tag)
|
|
1010
|
+
if (this.f_items[f].type == 'selector' || this.f_items[f].type == 'inputSelector') {
|
|
1011
|
+
//tag)
|
|
1012
|
+
//tag)
|
|
1013
|
+
this.f_items[f].selected = this.piece.f_items[p].f_item_value
|
|
1014
|
+
//tag)
|
|
980
1015
|
}
|
|
981
|
-
|
|
1016
|
+
// 取出特殊值
|
|
1017
|
+
if (this.f_items[f].f_item_name == '初始表底') {
|
|
982
1018
|
//tag)
|
|
1019
|
+
this.f_initial_base.index = f
|
|
1020
|
+
} else if (this.f_items[f].f_item_name == '累购气量' || this.f_items[f].f_item_name == '累购气量(非必填)') {
|
|
983
1021
|
//tag)
|
|
984
|
-
this.
|
|
1022
|
+
this.f_total_gas.index = f
|
|
1023
|
+
} else if (this.f_items[f].f_item_name == '已用气量' || this.f_items[f].f_item_name == '已用气量(非必填)') {
|
|
985
1024
|
//tag)
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
this.$watch('f_items[' + f + '].f_item_value', function () {
|
|
1060
|
-
this.getmeteraberrantnumber()
|
|
1061
|
-
})
|
|
1062
|
-
} else if (this.f_items[f].f_item_name == '表余额') {
|
|
1063
|
-
//tag)
|
|
1064
|
-
this.f_balance_amount1.index = f
|
|
1065
|
-
this.$watch('f_items[' + f + '].f_item_value', function () {
|
|
1066
|
-
this.getfeeaberrantnumber1()
|
|
1067
|
-
})
|
|
1068
|
-
} else if (this.f_items[f].f_item_name == '表数异常差值') {
|
|
1069
|
-
//tag)
|
|
1070
|
-
this.f_meter_aberrant_number1.index = f
|
|
1071
|
-
} else if (this.f_items[f].f_item_name == '表金额异常差值') {
|
|
1072
|
-
//tag)
|
|
1073
|
-
this.f_fee_aberrant_number1.index = f
|
|
1074
|
-
}
|
|
1025
|
+
this.f_table_base.index = f
|
|
1026
|
+
this.$watch('f_items[' + f + '].f_item_value', function () {
|
|
1027
|
+
this.getGasAberrantNumber('已用气量')
|
|
1028
|
+
})
|
|
1029
|
+
} else if (this.f_items[f].f_item_name == '剩余气量' || this.f_items[f].f_item_name == '剩余气量(非必填)') {
|
|
1030
|
+
//tag)
|
|
1031
|
+
this.f_gas_balance.index = f
|
|
1032
|
+
this.$watch('f_items[' + f + '].f_item_value', function () {
|
|
1033
|
+
this.getGasAberrantNumber('')
|
|
1034
|
+
})
|
|
1035
|
+
} else if (this.f_items[f].f_item_name == '气量异常差值') {
|
|
1036
|
+
//tag)
|
|
1037
|
+
this.f_gas_aberrant_number.index = f
|
|
1038
|
+
} else if (this.f_items[f].f_item_name == '累购金额' || this.f_items[f].f_item_name == '累购金额(非必填)') {
|
|
1039
|
+
//tag)
|
|
1040
|
+
this.f_total_fee.index = f
|
|
1041
|
+
} else if (this.f_items[f].f_item_name == '已用金额' || this.f_items[f].f_item_name == '已用金额(非必填)') {
|
|
1042
|
+
//tag)
|
|
1043
|
+
this.f_fee_base.index = f
|
|
1044
|
+
this.$watch('f_items[' + f + '].f_item_value', function () {
|
|
1045
|
+
this.getFeeAberrantNumber('已用金额')
|
|
1046
|
+
})
|
|
1047
|
+
} else if (this.f_items[f].f_item_name == '系统剩余金额') {
|
|
1048
|
+
//tag)
|
|
1049
|
+
this.f_fee_base.index = f
|
|
1050
|
+
} else if (this.f_items[f].f_item_name == '剩余金额' || this.f_items[f].f_item_name == '剩余金额(非必填)') {
|
|
1051
|
+
//tag)
|
|
1052
|
+
this.f_fee_balance.index = f
|
|
1053
|
+
this.$watch('f_items[' + f + '].f_item_value', function () {
|
|
1054
|
+
this.getFeeAberrantNumber('')
|
|
1055
|
+
})
|
|
1056
|
+
} else if (this.f_items[f].f_item_name == '系统表底数') {
|
|
1057
|
+
//tag)
|
|
1058
|
+
this.f_system_balance.index = f
|
|
1059
|
+
this.$watch('f_items[' + f + '].f_item_value', function () {
|
|
1060
|
+
this.getTableBalanceNumber('')
|
|
1061
|
+
})
|
|
1062
|
+
} else if (this.f_items[f].f_item_name == '当前表底数') {
|
|
1063
|
+
//tag)
|
|
1064
|
+
this.f_table_balance.index = f
|
|
1065
|
+
this.$watch('f_items[' + f + '].f_item_value', function () {
|
|
1066
|
+
this.getTableBalanceNumber('')
|
|
1067
|
+
})
|
|
1068
|
+
} else if (this.f_items[f].f_item_name == '底数异常差值') {
|
|
1069
|
+
//tag)
|
|
1070
|
+
this.f_aberrant_number.index = f
|
|
1071
|
+
} else if (this.f_items[f].f_item_name == '金额异常差值') {
|
|
1072
|
+
//tag)
|
|
1073
|
+
this.f_fee_aberrant_number.index = f
|
|
1074
|
+
} else if (this.f_items[f].f_item_name == '表读数') {
|
|
1075
|
+
//tag)
|
|
1076
|
+
this.f_meter_base.index = f
|
|
1077
|
+
} else if (this.f_items[f].f_item_name == '表剩余金额') {
|
|
1078
|
+
//tag)
|
|
1079
|
+
this.f_balance_amount.index = f
|
|
1080
|
+
} else if (this.f_items[f].f_item_name == '字轮数') {
|
|
1081
|
+
//tag)
|
|
1082
|
+
this.f_meter_base1.index = f
|
|
1083
|
+
this.$watch('f_items[' + f + '].f_item_value', function () {
|
|
1084
|
+
this.getmeteraberrantnumber()
|
|
1085
|
+
})
|
|
1086
|
+
} else if (this.f_items[f].f_item_name == '表余额') {
|
|
1087
|
+
//tag)
|
|
1088
|
+
this.f_balance_amount1.index = f
|
|
1089
|
+
this.$watch('f_items[' + f + '].f_item_value', function () {
|
|
1090
|
+
this.getfeeaberrantnumber1()
|
|
1091
|
+
})
|
|
1092
|
+
} else if (this.f_items[f].f_item_name == '表数异常差值') {
|
|
1093
|
+
//tag)
|
|
1094
|
+
this.f_meter_aberrant_number1.index = f
|
|
1095
|
+
} else if (this.f_items[f].f_item_name == '表金额异常差值') {
|
|
1096
|
+
//tag)
|
|
1097
|
+
this.f_fee_aberrant_number1.index = f
|
|
1075
1098
|
}
|
|
1076
1099
|
}
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
this.f_items[f].options.push({
|
|
1088
|
-
label: this.config[this.device.device].items[em].options[k].data,
|
|
1089
|
-
value: this.config[this.device.device].items[em].options[k].data
|
|
1090
|
-
})
|
|
1100
|
+
}
|
|
1101
|
+
for (let em in this.config[this.device.device].items) {
|
|
1102
|
+
if (typeof this.config[this.device.device].items[em] == 'function') {
|
|
1103
|
+
continue
|
|
1104
|
+
}
|
|
1105
|
+
if (this.config[this.device.device].items[em].type == 'selector' && em == this.f_items[f].f_item_name) {
|
|
1106
|
+
this.f_items[f].options = []
|
|
1107
|
+
for (let k in this.config[this.device.device].items[em].options) {
|
|
1108
|
+
if (typeof this.config[this.device.device].items[em].options[k] == 'function') {
|
|
1109
|
+
continue
|
|
1091
1110
|
}
|
|
1111
|
+
this.f_items[f].options.push({
|
|
1112
|
+
label: this.config[this.device.device].items[em].options[k].data,
|
|
1113
|
+
value: this.config[this.device.device].items[em].options[k].data
|
|
1114
|
+
})
|
|
1092
1115
|
}
|
|
1093
1116
|
}
|
|
1094
1117
|
}
|
|
1095
|
-
//tag)
|
|
1096
|
-
this.$set('piece.f_items', this.f_items)
|
|
1097
1118
|
}
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
this.f_items[row].f_item_value = this.f_items[row].selected
|
|
1111
|
-
} else if (this.f_items[row].selected && this.f_items[row].selected != '') {
|
|
1112
|
-
//tag
|
|
1113
|
-
this.f_items[row].f_item_value = this.f_items[row].selected
|
|
1114
|
-
}
|
|
1115
|
-
// if(this.f_items[row].f_item_value instanceof Array && this.f_items[row].f_item_value.length != 0 ){
|
|
1116
|
-
// nullCount = nullCount+1
|
|
1117
|
-
// }else if(this.f_items[row].f_item_value != ''){
|
|
1118
|
-
// nullCount = nullCount+1
|
|
1119
|
-
// }
|
|
1119
|
+
//tag)
|
|
1120
|
+
this.$set('piece.f_items', this.f_items)
|
|
1121
|
+
}
|
|
1122
|
+
this.towatch()
|
|
1123
|
+
},
|
|
1124
|
+
destroyed() {
|
|
1125
|
+
let nullCount = 0
|
|
1126
|
+
let metertitles
|
|
1127
|
+
//判断当前是否有选中项
|
|
1128
|
+
for (let row in this.f_items) {
|
|
1129
|
+
if (typeof this.f_items[row] == 'function') {
|
|
1130
|
+
continue
|
|
1120
1131
|
}
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1132
|
+
if (this.f_items[row].selected && this.f_items[row].selected != '' && this.f_items[row].selected instanceof Array) {
|
|
1133
|
+
//tag
|
|
1134
|
+
this.f_items[row].f_item_value = this.f_items[row].selected
|
|
1135
|
+
} else if (this.f_items[row].selected && this.f_items[row].selected != '') {
|
|
1136
|
+
//tag
|
|
1137
|
+
this.f_items[row].f_item_value = this.f_items[row].selected
|
|
1138
|
+
}
|
|
1139
|
+
// if(this.f_items[row].f_item_value instanceof Array && this.f_items[row].f_item_value.length != 0 ){
|
|
1140
|
+
// nullCount = nullCount+1
|
|
1141
|
+
// }else if(this.f_items[row].f_item_value != ''){
|
|
1142
|
+
// nullCount = nullCount+1
|
|
1126
1143
|
// }
|
|
1127
|
-
// picture.push(a)
|
|
1128
|
-
this.$set(`paper['device${this.device.n}'][${this.idx}]`, this.piece)
|
|
1129
|
-
//tag
|
|
1130
|
-
},
|
|
1131
|
-
computed: {
|
|
1132
|
-
|
|
1133
1144
|
}
|
|
1145
|
+
let picture = []
|
|
1146
|
+
// for (let row in this.f_items){
|
|
1147
|
+
// let a={}
|
|
1148
|
+
// a.f_path = this.f_items[row].f_path
|
|
1149
|
+
// a.name = this.f_items[row].f_item_name
|
|
1150
|
+
// }
|
|
1151
|
+
// picture.push(a)
|
|
1152
|
+
this.$set(`paper['device${this.device.n}'][${this.idx}]`, this.piece)
|
|
1153
|
+
//tag
|
|
1154
|
+
},
|
|
1155
|
+
computed: {
|
|
1156
|
+
|
|
1134
1157
|
}
|
|
1158
|
+
}
|
|
1135
1159
|
</script>
|
|
1136
1160
|
<style lang="less" scoped>
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1161
|
+
.class-erro {
|
|
1162
|
+
color: #a94442;
|
|
1163
|
+
}
|
|
1140
1164
|
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1165
|
+
.fivelabel {
|
|
1166
|
+
border: none;
|
|
1167
|
+
border-left: 5px solid #A2C2EB;
|
|
1168
|
+
float: left;
|
|
1169
|
+
width: 35%;
|
|
1170
|
+
margin-bottom: 3px;
|
|
1171
|
+
text-align: left;
|
|
1172
|
+
word-wrap: break-word;
|
|
1173
|
+
white-space: normal;
|
|
1174
|
+
}
|
|
1151
1175
|
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1176
|
+
.radiolabel {
|
|
1177
|
+
border: none;
|
|
1178
|
+
border-left: 5px solid #A2C2EB;
|
|
1179
|
+
float: left;
|
|
1180
|
+
width: 65%;
|
|
1181
|
+
margin-bottom: 3px;
|
|
1182
|
+
text-align: left;
|
|
1183
|
+
word-wrap: break-word;
|
|
1184
|
+
white-space: normal;
|
|
1185
|
+
}
|
|
1162
1186
|
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1187
|
+
.textlabel {
|
|
1188
|
+
border: none;
|
|
1189
|
+
border-left: 5px solid #A2C2EB;
|
|
1190
|
+
width: 100%;
|
|
1191
|
+
margin-bottom: 3px;
|
|
1192
|
+
text-align: left;
|
|
1193
|
+
word-wrap: break-word;
|
|
1194
|
+
white-space: normal;
|
|
1195
|
+
}
|
|
1172
1196
|
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1197
|
+
.textlabel1 {
|
|
1198
|
+
border: none;
|
|
1199
|
+
border-left: 5px solid #f7cb32;
|
|
1200
|
+
width: 100%;
|
|
1201
|
+
margin-bottom: 3px;
|
|
1202
|
+
text-align: left;
|
|
1203
|
+
word-wrap: break-word;
|
|
1204
|
+
white-space: normal;
|
|
1205
|
+
}
|
|
1182
1206
|
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1207
|
+
.spanrodio {
|
|
1208
|
+
margin-right: 10px;
|
|
1209
|
+
}
|
|
1186
1210
|
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1211
|
+
.div-photo {
|
|
1212
|
+
width: auto;
|
|
1213
|
+
height: auto;
|
|
1214
|
+
/* margin-top: 10px; */
|
|
1215
|
+
position: absolute;
|
|
1216
|
+
bottom: 10px;
|
|
1217
|
+
right: 10px;
|
|
1218
|
+
}
|
|
1195
1219
|
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1220
|
+
.panel-self {
|
|
1221
|
+
border-radius: 5px;
|
|
1222
|
+
border: 1px solid #c5e1f7;
|
|
1223
|
+
//background-color: #F2F6FA;
|
|
1224
|
+
}
|
|
1201
1225
|
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1226
|
+
.btn-photo {
|
|
1227
|
+
border: 0;
|
|
1228
|
+
border-radius: 7px;
|
|
1229
|
+
background-color: #7dc1f4;
|
|
1230
|
+
font: 15px PingFang-SC-Bold;
|
|
1231
|
+
height: 20%;
|
|
1232
|
+
}</style>
|
|
1209
1233
|
|