safecheck-client 3.0.33-6 → 3.0.33-61
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 +3 -3
- package/src/App.vue +31 -31
- package/src/components/paper/PaperList.vue +5 -4
- package/src/components/planmanage/checkUserList.vue +34 -2
- package/src/components/report/CheckPlanCountChartArea.vue +5 -0
- package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +28 -1
- package/src/components/rongcheng/AspiratedPaperMessage.vue +1 -1
- package/src/components/rongcheng/DefectPaper.vue +1 -1
- package/src/components/rongcheng/PaperListNPSQ.vue +29 -1
- package/src/components/rongcheng/PaperListSQ.vue +30 -11
- package/src/components/rongcheng/PhoneUpUserinfo.vue +939 -802
- package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
- package/src/components/rongcheng/report/CheckPlanAreaList.vue +1 -3
- package/src/filiale/Util.js +5 -0
- package/src/filiale/bayan/android/AddPlanItem.vue +12 -3
- package/src/filiale/bayan/android/SafecheckOrderV.vue +2854 -2850
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +532 -508
- package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
- package/src/filiale/dexin/android/WebMeterOpen.vue +1 -1
- package/src/filiale/dexin/android/WebMeterOpenEdit.vue +25 -37
- package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
- package/src/filiale/fugou/pc/CheckBook.vue +2 -0
- package/src/filiale/fugou/pc/CheckBookEntry.vue +47 -19
- package/src/filiale/fugou/pc/CheckBookList.vue +2 -2
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +733 -574
- package/src/filiale/fugou/pc/CheckBookUser.vue +102 -45
- package/src/filiale/fugou/pc/PlanManage.vue +62 -8
- package/src/filiale/fugou/pc/checkUserList.vue +222 -42
- package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +15 -5
- package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +12 -2
- package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +12 -3
- package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
- package/src/filiale/hanzhong/pc/CheckUserList.vue +30 -11
- package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +11 -2
- package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -0
- package/src/filiale/jingyang/pc.js +1 -0
- package/src/filiale/rongchuang/android/SafecheckDevices.vue +468 -748
- package/src/filiale/rongchuang/android/SafecheckOrderV.vue +984 -1234
- package/src/filiale/rongchuang/android.js +1 -0
- package/src/filiale/rongchuang/pc/NewCheckpaper.vue +294 -305
- package/src/filiale/rongchuang/pc/PaperList.vue +812 -0
- package/src/filiale/rongchuang/pc.js +1 -0
- package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
- package/src/filiale/weinan/android/PaperFeedback.vue +8 -8
- package/src/filiale/weinan/android/SafecheckDevices.vue +1082 -1025
- package/src/filiale/weinan/android/SafecheckOrderV.vue +3325 -3276
- package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -0
- package/src/filiale/weinan/pc/DefectPaperNew.vue +7 -1
- package/src/filiale/weinan/pc.js +1 -0
- package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -0
- package/src/filiale/wensu/pc/PrintMaterialBill.vue +172 -172
- package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
- package/src/filiale/wenxi/android/SafecheckUserInfo.vue +651 -651
- package/src/filiale/wuhai/pc/PaperList.vue +785 -0
- package/src/filiale/wuhai/pc.js +1 -0
- package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2 -2
- package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
- package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
- package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
- package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
- package/src/filiale/yongzhou/pc/safeDetail.vue +212 -14
- package/src/filiale/yongzhou/pc.js +3 -0
- package/src/filiale/yunchengminsheng/pc/checkUserList.vue +18 -1
- package/src/main.js +2 -2
@@ -2,33 +2,24 @@
|
|
2
2
|
<div class="select-overspread repair-bg auto" style="padding-bottom:5px;">
|
3
3
|
<!--<div class="bq-parent" v-if="shutype == 'heng'">-->
|
4
4
|
<!--<blockquote class="blockquote">-->
|
5
|
-
<!--<p><span>{{repairitem.header}}</span><a @click="mute()" style="float:right" href="#" class="repair-mute-class"><img src="../../../assets/novoice.png" width="25px;" alt=""><span style="margin-left:10px;color: #304A66">关闭声音</span></a></p>-->
|
6
5
|
<!--</blockquote>-->
|
7
6
|
<!--</div>-->
|
8
7
|
<div class="panel panel-default auto repair-info-content">
|
9
8
|
<div class="panel-body" style="padding: 0">
|
10
9
|
<!-- 安检项内容 -->
|
11
|
-
<div
|
10
|
+
<div class="auto repair-info-content compatible" style="padding: 0">
|
12
11
|
<div class="row auto" style="padding: 0">
|
13
|
-
<div v-show="false" class="{{shuclass}}" v-if="device.device != '燃气表'">
|
14
|
-
<button type="button" name="button" class="btn btn-primary" @click='adddetails()'
|
15
|
-
:disabled="issee">增加</button>
|
12
|
+
<div v-show="false" class="{{shuclass}}" v-if=" device.device != '燃气表'">
|
13
|
+
<button type="button" name="button" class="btn btn-primary" @click='adddetails()' :disabled="issee">增加</button>
|
16
14
|
</div>
|
17
15
|
<!--<div class="{{shuclass}}" v-if="device.device != '燃气表' && candelete">-->
|
18
16
|
<!--<button type="button" name="button" class="btn btn-primary" @click='deletedetails()' :disabled="issee">删除</button>-->
|
19
17
|
<!--</div>-->
|
20
|
-
<div class="shuclass1"
|
21
|
-
|
22
|
-
<label v-if="row.type
|
23
|
-
|
24
|
-
|
25
|
-
<label v-if="row.type == 'radio'" v-show="row.isshow" class="radiolabel">{{ row.f_item_name }}<span
|
26
|
-
v-if="row.unit">({{ row.unit }})</span><br />{{ row.remark }}</label>
|
27
|
-
<label v-if="row.type == 'text'" v-show="row.isshow" class="textlabel1">{{ row.f_item_name }}<span
|
28
|
-
v-if="row.unit">({{ row.unit }})</span><br />{{ row.remark }}</label>
|
29
|
-
<label v-if="row.type == 'picture' || row.type == 'checkbox'" v-show="row.isshow"
|
30
|
-
class="textlabel">{{ row.f_item_name }} <br />{{ row.remark }} <span v-show="row.verification_state"
|
31
|
-
:style="{ color: row.verification_state === 'pass' ? 'green' : 'red' }">{{ row.verification_text }}</span></label>
|
18
|
+
<div class="shuclass1" v-show="row.isshow" v-for="(idxs,row) in f_items" style="padding: 4px; border:1px solid #D4D4D4;border-bottom: 0" >
|
19
|
+
<label v-if="row.type != 'radio' && row.type != 'text' && row.type != 'picture' && row.type != 'checkbox'" v-show="row.isshow" class="fivelabel">{{row.f_item_name}}<span v-if="row.unit">({{row.unit}})</span><br/>{{row.remark}}</label>
|
20
|
+
<label v-if="row.type == 'radio'" v-show="row.isshow" class="radiolabel">{{row.f_item_name}}<span v-if="row.unit">({{row.unit}})</span><br/>{{row.remark}}</label>
|
21
|
+
<label v-if="row.type == 'text'" v-show="row.isshow" class="textlabel1">{{row.f_item_name}}<span v-if="row.unit">({{row.unit}})</span><br/>{{row.remark}}</label>
|
22
|
+
<label v-if="row.type == 'picture' || row.type == 'checkbox'" v-show="row.isshow" class="textlabel">{{row.f_item_name}}<br/>{{row.remark}}</label>
|
32
23
|
<!--<span v-if="show" style="font-weight:bold">{{row.f_content}}</span>-->
|
33
24
|
<!--<datepicker placeholder="请选择时间"-->
|
34
25
|
<!--:value.sync="row.f_content"-->
|
@@ -37,122 +28,147 @@
|
|
37
28
|
<!--v-if="!show && row.type == 'date'"-->
|
38
29
|
<!--:readonly="true"-->
|
39
30
|
<!--></datepicker>-->
|
40
|
-
<div style="
|
31
|
+
<div style="display: flex; flex-wrap: wrap" v-if="row.type == 'picture'" class="form-group col-sm-12" >
|
41
32
|
<div class="auto">
|
42
33
|
<div class="panel">
|
43
|
-
<div class="panel-body panel-self"
|
44
|
-
style="background-color: #F8F8F8;width: 160px;height: 160px;position: relative">
|
34
|
+
<div class="panel-body panel-self" style="background-color: #F8F8F8;width: 160px;height: 160px;position: relative">
|
45
35
|
<div class="row" style="height: 160px;width:160px;overflow: scroll;top: 1px">
|
46
36
|
<div class="col-sm-4" v-show="row.f_path">
|
47
|
-
<img-self
|
37
|
+
<img-self :src="row.f_path" :alt="row.f_item_name" width="140" height="140"></img-self>
|
48
38
|
</div>
|
49
39
|
<div class="col-sm-4" v-show="!row.f_path" @click="takePic(idxs, row.f_item_name)">
|
50
|
-
<img src="../../../assets/tackpic.png" :alt="点击拍摄照片"
|
40
|
+
<img src="../../../assets/tackpic.png" :alt="点击拍摄照片" width="140" height="140"></img>
|
51
41
|
</div>
|
52
|
-
<img v-show="row.f_path" src="../../../assets/remove.png" :class="style__"
|
53
|
-
|
54
|
-
|
42
|
+
<img v-show="row.f_path" src="../../../assets/remove.png" :class="style__" @click="delfile(idxs, row.f_path)" v-if="role!='androidview'" style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
<div class="auto" v-if="row.count > 1" v-for="i in row.count - 1">
|
48
|
+
<div class="panel">
|
49
|
+
<div class="panel-body panel-self" style="background-color: #F8F8F8;width: 160px;height: 160px;position: relative">
|
50
|
+
<div class="row" style="height: 160px;width:160px;overflow: scroll;top: 1px">
|
51
|
+
<div class="col-sm-4" v-show="row[`f_p${i + 1}_path`]">
|
52
|
+
<img-self :src="row[`f_p${i + 1}_path`]" :alt="row.f_item_name" width="140" height="140"></img-self>
|
53
|
+
</div>
|
54
|
+
<div class="col-sm-4" v-show="!row[`f_p${i + 1}_path`]" @click="takePic(idxs, row.f_item_name, `f_p${i + 1}_path`)">
|
55
|
+
<img src="../../../assets/tackpic.png" :alt="点击拍摄照片" width="140" height="140"></img>
|
56
|
+
</div>
|
57
|
+
<img v-show="row[`f_p${i + 1}_path`]" src="../../../assets/remove.png" :class="style__" @click="delfile(idxs, row[`f_p${i + 1}_path`])" v-if="role!='androidview'" style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
|
55
58
|
</div>
|
56
59
|
</div>
|
57
60
|
</div>
|
58
61
|
</div>
|
59
62
|
</div>
|
60
63
|
<div style="float: left;width:60%" class="form-group" v-if="row.type == 'string'" v-show="row.isshow">
|
61
|
-
<input type="text" class="form-control" maxlength="100" v-model="row.f_item_value"
|
62
|
-
|
64
|
+
<input type="text" class="form-control" maxlength="100" v-model="row.f_item_value" :readonly="role == 'androidview' || row.readonly">
|
65
|
+
</div>
|
66
|
+
<div style="float: left;width:60%" class="form-group col-sm-12" v-if="row.type == 'date'" v-show="row.isshow">
|
67
|
+
<datepicker id="f_making_date" :placeholder= row.f_item_name
|
68
|
+
:value.sync="row.f_item_value"
|
69
|
+
v-if="row.type == 'date'"
|
70
|
+
v-show="row.isshow"
|
71
|
+
:disabled-days-of-Week="[]"
|
72
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
73
|
+
:show-reset-button="reset" readonly="readonly">
|
74
|
+
</datepicker>
|
63
75
|
</div>
|
64
|
-
<div style="float: left;width:60%" class="form-group col-sm-12" v-if="row.type == '
|
65
|
-
|
66
|
-
|
67
|
-
v-if="row.type == '
|
68
|
-
|
76
|
+
<div style="float: left;width:60%" class="form-group col-sm-12" v-if="row.type == 'year'" v-show="row.isshow">
|
77
|
+
<datepicker id="f_making_year" :placeholder= row.f_item_name
|
78
|
+
:value.sync="row.f_item_value"
|
79
|
+
v-if="row.type == 'year'"
|
80
|
+
v-show="row.isshow"
|
81
|
+
:disabled-days-of-Week="[]"
|
82
|
+
:format="'yyyy'"
|
83
|
+
:select-year="true"
|
84
|
+
:show-reset-button="reset" readonly="readonly">
|
69
85
|
</datepicker>
|
70
86
|
</div>
|
71
87
|
|
72
|
-
<div style="float: left;width:60%" class="form-group" v-if="!show && row.type == 'number'"
|
73
|
-
|
74
|
-
<input type="text" class="form-control" maxlength="100" v-model="row.f_item_value"
|
75
|
-
onkeyup="value=value.replace(/[^\d\.-]/g,'')" :readonly="row.readonly">
|
88
|
+
<div style="float: left;width:60%" class="form-group" v-if="!show && row.type == 'number'" v-show="row.isshow">
|
89
|
+
<input type="text" class="form-control" maxlength="100" v-model="row.f_item_value" onkeyup="value=value.replace(/[^\d\.-]/g,'')" :readonly="row.readonly">
|
76
90
|
</div>
|
77
91
|
<!--<input type="text" class="form-control" v-model="row.f_content" v-if="!show && row.type == 'string' && row.f_project != '表号'" :disabled="(!(ischecked == '有')) || issee" :readonly="issee">-->
|
78
92
|
<!--<input type="text" class="form-control" v-model="meternum" v-if="!show && row.type == 'string' && row.f_project == '表号' " :disabled="(!(ischecked == '有')) || issee" :readonly="issee" >-->
|
79
93
|
<!--<button type="button" name="button" class="btn btn-primary" @click="scan" v-if="!show && row.f_project == '表号' ">扫码</button>-->
|
80
|
-
<input-select
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
94
|
+
<input-select v-if="row.type == 'inputSelector'"
|
95
|
+
v-show="row.isshow"
|
96
|
+
:value.sync="row.selected"
|
97
|
+
v-model="row.selected"
|
98
|
+
:readonly="false"
|
99
|
+
:options="row.options"
|
100
|
+
@change="changse"
|
101
|
+
@click="transelation(idxs)"></input-select>
|
102
|
+
<v-select style="float: left" :value.sync="row.selected"
|
103
|
+
v-model="row.selected"
|
104
|
+
v-if="row.type == 'selector'"
|
105
|
+
:search="false"
|
106
|
+
v-show="row.isshow"
|
107
|
+
placeholder='请选择'
|
108
|
+
:options="row.options"
|
109
|
+
:disabled="role == 'androidview' || row.readonly"
|
110
|
+
@change="changse"
|
111
|
+
@click="transelation(idxs)"
|
112
|
+
:multiple="row.multiple"
|
113
|
+
:close-on-select="!row.multiple" clear-button></v-select>
|
88
114
|
<div style="float: left;width: 30%" class="form-group" v-if="!show && row.type == 'radio'">
|
89
|
-
<div
|
115
|
+
<div class="col-xs-6 col-sm-6 col-md-6" v-for="item in row.options">
|
90
116
|
<!-- <input type="radio" :name="row.f_item_name" @click="disSelect($parent.idxs,item.value)" :value="item.value" :disabled="(!(ischecked == '有')) || issee" v-model="row.f_item_value" >-->
|
91
|
-
<input type="radio" :name="row.f_item_name"
|
92
|
-
|
93
|
-
<span>{{ item.label }}</span>
|
117
|
+
<input type="radio" :name="row.f_item_name" :value="item.value" :disabled="(!(ischecked == '有')) || issee" v-model="row.f_item_value" >
|
118
|
+
<span>{{item.label}}</span>
|
94
119
|
</div>
|
95
120
|
</div>
|
96
|
-
<div v-if="!show && row.type == 'checkbox'" class="col-xs-12 col-sm-12 col-md-12"
|
97
|
-
style="white-space: nowrap">
|
121
|
+
<div v-if="!show && row.type == 'checkbox'" class="col-xs-12 col-sm-12 col-md-12" style="white-space: nowrap" >
|
98
122
|
<div style="float: left" v-for="item in row.options">
|
99
|
-
<input type="checkbox" :name="row.f_item_name" :value="item.value"
|
100
|
-
|
101
|
-
<span>{{ item.label }}</span>
|
123
|
+
<input type="checkbox" :name="row.f_item_name" :value="item.value" :disabled="(!(ischecked == '有')) || issee" v-model="row.f_item_value">
|
124
|
+
<span>{{item.label}}</span>
|
102
125
|
</div>
|
103
126
|
</div>
|
104
127
|
<div style="clear: both">
|
105
|
-
<label v-if="row.f_item_value.indexOf('其他')
|
106
|
-
<div style="float: left;width:60%" class="form-group" v-if="row.f_item_value.indexOf('其他')
|
107
|
-
<input type="text" class="form-control" maxlength="100" v-model="row.f_else"
|
108
|
-
:readonly="role == 'androidview' || row.readonly">
|
128
|
+
<label v-if="row.f_item_value.indexOf('其他') >-1" class="fivelabel">其他</label>
|
129
|
+
<div style="float: left;width:60%" class="form-group" v-if="row.f_item_value.indexOf('其他') >-1">
|
130
|
+
<input type="text" class="form-control" maxlength="100" v-model="row.f_else" :readonly="role == 'androidview' || row.readonly">
|
109
131
|
</div>
|
110
132
|
</div>
|
111
|
-
<div style="clear: both">
|
112
|
-
|
113
|
-
<!-- <label class="fivelabel">现场已处理</label>-->
|
114
|
-
<!-- <v-select :value="row.f_live_dispose"-->
|
115
|
-
<!-- :value-single="true"-->
|
116
|
-
<!-- :options="lives"-->
|
117
|
-
<!-- :disabled="role == 'androidview'"-->
|
118
|
-
<!-- @change="changlive"-->
|
119
|
-
<!-- @click="transelation(idxs)"-->
|
120
|
-
<!-- close-on-select clear-button></v-select>-->
|
121
|
-
<!-- </div>-->
|
122
|
-
<div class="form-group" style="display: flex;flex-wrap: wrap"
|
123
|
-
v-if="(row.type == 'selector' || row.type == 'radio' || row.type == 'checkbox') && (row.f_path != '' || row.f_is_defect != '') && (dealdispose == 'true' || dealdispose == true)">
|
133
|
+
<div style="clear: both" v-if="row.f_is_defect && row.f_is_repaired != '已告知'">
|
134
|
+
<div class="form-group" style="display: flex;flex-wrap: wrap">
|
124
135
|
<label class="fivelabel">处理方式</label>
|
125
|
-
<v-select
|
126
|
-
|
127
|
-
|
136
|
+
<v-select
|
137
|
+
:value.sync="row.f_deal_dispose"
|
138
|
+
v-model="row.f_deal_dispose"
|
139
|
+
:value-single="true"
|
140
|
+
:options="deals"
|
141
|
+
:disabled="role == 'androidview'"
|
142
|
+
@change="changdeal"
|
143
|
+
@click="transelation(idxs)"
|
144
|
+
close-on-select clear-button>
|
128
145
|
</v-select>
|
129
146
|
</div>
|
130
|
-
<div style="display: flex;flex-wrap: wrap"
|
131
|
-
<label class="fivelabel"
|
132
|
-
<datepicker
|
133
|
-
|
147
|
+
<div style="display: flex;flex-wrap: wrap">
|
148
|
+
<label class="fivelabel">截止日期</label>
|
149
|
+
<datepicker
|
150
|
+
:value.sync="row.f_handle_date"
|
151
|
+
v-model="row.f_handle_date"
|
152
|
+
:format="'yyyy-MM-dd'"
|
153
|
+
placeholder="请选择"
|
154
|
+
style="width: 60%">
|
134
155
|
</datepicker>
|
135
156
|
</div>
|
136
|
-
<div style="margin-left: 10px" class="form-group col-sm-10"
|
137
|
-
|
138
|
-
☆{{ row.tooltip }}
|
157
|
+
<div style="margin-left: 10px" class="form-group col-sm-10" v-if="row.tooltip != undefined && row.tooltip != ''">
|
158
|
+
☆{{row.tooltip}}
|
139
159
|
</div>
|
140
|
-
<div class="form-group col-sm-12" style="display: flex;flex-wrap: wrap"
|
141
|
-
v-if="(row.type == 'selector' || row.type == 'radio' || row.type == 'checkbox') && (row.f_path != '' || row.f_is_defect != '')">
|
160
|
+
<div class="form-group col-sm-12" style="display: flex;flex-wrap: wrap">
|
142
161
|
<div class="auto" style="margin:1px;">
|
143
162
|
<div class="panel">
|
144
|
-
<div class="panel-body panel-self"
|
145
|
-
style="background-color: #F8F8F8;width: 160px;height: 160px;position: relative">
|
163
|
+
<div class="panel-body panel-self" style="background-color: #F8F8F8;width: 160px;height: 160px;position: relative">
|
146
164
|
<div class="col-xs-6" style="height: 160px;width:160px;overflow: scroll;top: 1px">
|
147
165
|
<div class="col-sm-4" v-show="row.f_path">
|
148
|
-
<img-self
|
166
|
+
<img-self :src="row.f_path" :alt="row.f_item_name" width="140" height="140"></img-self>
|
149
167
|
</div>
|
150
168
|
<div class="col-sm-4" v-show="!row.f_path" @click="takePic(idxs, row.f_item_name)">
|
151
|
-
<img src="../../../assets/tackpic.png" :alt="点击拍摄照片"
|
169
|
+
<img src="../../../assets/tackpic.png" :alt="点击拍摄照片" width="140" height="140"></img>
|
152
170
|
</div>
|
153
|
-
<img v-show="row.f_path" src="../../../assets/remove.png" :class="style__"
|
154
|
-
@click="delfile(idxs, row.f_path)" v-if="role != 'androidview'"
|
155
|
-
style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
|
171
|
+
<img v-show="row.f_path" src="../../../assets/remove.png" :class="style__" @click="delfile(idxs, row.f_path)" v-if="role!='androidview'" style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
|
156
172
|
</div>
|
157
173
|
</div>
|
158
174
|
</div>
|
@@ -160,45 +176,32 @@
|
|
160
176
|
<!--多张隐患照片-->
|
161
177
|
<div class="auto" v-for="itemIndex in hiddenDangerImgNumber" style="margin: 1px;">
|
162
178
|
<div class="panel">
|
163
|
-
<div class="panel-body panel-self"
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
<img-self :src="row['f_p' + (itemIndex + 1) + '_path']" :alt="row.f_item_name" width="140"
|
168
|
-
height="140"></img-self>
|
179
|
+
<div class="panel-body panel-self" style="background-color: #F8F8F8;width: 160px;height: 160px;position: relative">
|
180
|
+
<div class="col-xs-6" style="height: 160px;width:160px;overflow: scroll;top: 1px">
|
181
|
+
<div class="col-sm-4" v-show="row['f_p' + (itemIndex+1) + '_path']">
|
182
|
+
<img-self :src="row['f_p' + (itemIndex+1) + '_path']" :alt="row.f_item_name" width="140" height="140"></img-self>
|
169
183
|
</div>
|
170
|
-
<div class="col-sm-4" v-show="!row['f_p' + (itemIndex
|
171
|
-
|
172
|
-
<img src="../../../assets/tackpic.png" :alt="点击拍摄照片" width="140" height="140"></img>
|
184
|
+
<div class="col-sm-4" v-show="!row['f_p' + (itemIndex+1) + '_path']" @click="takePic(idxs, row.f_item_name,'f_p' + (itemIndex+1)+ '_path')">
|
185
|
+
<img src="../../../assets/tackpic.png" :alt="点击拍摄照片" width="140" height="140"></img>
|
173
186
|
</div>
|
174
|
-
<img v-show="row['f_p' + (itemIndex
|
175
|
-
|
176
|
-
@click="delfile(idxs, row['f_p' + (itemIndex + 1) + '_path'], 'f_p' + (itemIndex + 1) + '_path')"
|
177
|
-
v-if="role != 'androidview'"
|
178
|
-
style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
|
179
|
-
</div>
|
187
|
+
<img v-show="row['f_p' + (itemIndex+1)+'_path']" src="../../../assets/remove.png" :class="style__" @click="delfile(idxs,row['f_p' + (itemIndex+1)+'_path'],'f_p' + (itemIndex+1)+ '_path')" v-if="role!='androidview'" style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
|
188
|
+
</div >
|
180
189
|
</div>
|
181
190
|
</div>
|
182
191
|
</div>
|
183
|
-
<div style="display: flex;flex-wrap: wrap;margin-top: 10px"
|
184
|
-
v-if="row.f_deal_dispose == '现场整改' && (row.type == 'selector' || row.type == 'radio' || row.type == 'checkbox') && this.showXCImg">
|
192
|
+
<div style="display: flex;flex-wrap: wrap;margin-top: 10px" v-if="row.f_deal_dispose == '现场整改' && (row.type == 'selector' || row.type == 'radio' || row.type =='checkbox' || (row.type == 'string' && ['其他隐患', '其它隐患'].indexOf(row.f_item_name) >= 0)) && this.showXCImg">
|
185
193
|
<label class="fivelabel">整改照片:</label>
|
186
194
|
<div class="auto" style="margin:1px;">
|
187
195
|
<div class="panel">
|
188
|
-
<div class="panel-body panel-self"
|
189
|
-
style="background-color: #F8F8F8;width: 160px;height: 160px;position: relative">
|
196
|
+
<div class="panel-body panel-self" style="background-color: #F8F8F8;width: 160px;height: 160px;position: relative">
|
190
197
|
<div class="col-xs-6" style="height: 160px;width:160px;overflow: scroll;top: 1px">
|
191
198
|
<div class="col-sm-4" v-show="row.f_repair_path">
|
192
|
-
<img-self
|
193
|
-
height="140"></img-self>
|
199
|
+
<img-self :src="row.f_repair_path" :alt="row.f_item_name" width="140" height="140"></img-self>
|
194
200
|
</div>
|
195
|
-
<div class="col-sm-4" v-show="!row.f_repair_path"
|
196
|
-
|
197
|
-
<img src="../../../assets/tackpic.png" alt="点击拍摄照片" width="140" height="140"></img>
|
201
|
+
<div class="col-sm-4" v-show="!row.f_repair_path" @click="takePic(idxs, row.f_item_name,'f_repair_path',row.f_defect_level)">
|
202
|
+
<img src="../../../assets/tackpic.png" alt="点击拍摄照片" width="140" height="140"></img>
|
198
203
|
</div>
|
199
|
-
<img v-show="row.f_repair_path" src="../../../assets/remove.png" :class="style__"
|
200
|
-
@click="delfile(idxs, row.f_repair_path, 'f_repair_path')" v-if="role != 'androidview'"
|
201
|
-
style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
|
204
|
+
<img v-show="row.f_repair_path" src="../../../assets/remove.png" :class="style__" @click="delfile(idxs, row.f_repair_path, 'f_repair_path')" v-if="role!='androidview'" style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
|
202
205
|
</div>
|
203
206
|
</div>
|
204
207
|
</div>
|
@@ -236,22 +239,22 @@ export default {
|
|
236
239
|
return {
|
237
240
|
// telphoneValid: '/^((0\\d{2,3}-\\d{7,8})|(1[3584]\\d{9}))$/',
|
238
241
|
// meterstyle:[],
|
239
|
-
hiddenDangerImgNumber:
|
240
|
-
shuclass:
|
241
|
-
shuclass1:
|
242
|
+
hiddenDangerImgNumber:0,//隐患图片数
|
243
|
+
shuclass:'col-xs-12 col-sm-12 col-md-12 form-input-group mg8',
|
244
|
+
shuclass1:'col-xs-12 col-sm-12 col-md-12 mg8',
|
242
245
|
// labels:[],
|
243
|
-
meternum:
|
244
|
-
ischecked:
|
245
|
-
gasmodel:
|
246
|
-
textstyle:
|
246
|
+
meternum:'',
|
247
|
+
ischecked:'有',
|
248
|
+
gasmodel:'',
|
249
|
+
textstyle:'color: red',
|
247
250
|
paper: this.$parent.$parent.data,
|
248
|
-
f_items:
|
249
|
-
page:
|
250
|
-
selectindex:
|
251
|
-
lives:
|
252
|
-
deals:
|
253
|
-
f_live_dispose:
|
254
|
-
f_deal_dispose:
|
251
|
+
f_items:[],
|
252
|
+
page:{},
|
253
|
+
selectindex:null,
|
254
|
+
lives:[{label: '是', value: '是'},{label: '否', value: '否'}],
|
255
|
+
deals: this.$appdata.getParam('处理方式'),
|
256
|
+
f_live_dispose:'否',
|
257
|
+
f_deal_dispose:'自行处理',
|
255
258
|
// 初始表底
|
256
259
|
f_initial_base: {},
|
257
260
|
// 气量异常差值 计算公式 => 气量异常差值 = 累计购气量 - (已用气量 - 初始表底) - 剩余气量
|
@@ -268,24 +271,31 @@ export default {
|
|
268
271
|
f_fee_base: {},
|
269
272
|
// 剩余气量
|
270
273
|
f_gas_balance: {},
|
271
|
-
f_meter_base2: {},
|
272
274
|
// 剩余金额
|
273
275
|
f_fee_balance: {},
|
274
276
|
// 表端剩余金额
|
275
277
|
f_table_balance: {},
|
278
|
+
// 系统表底数
|
279
|
+
f_meter_base2: {},
|
276
280
|
// 气量异常差值允许误差
|
281
|
+
// 灶具超期隐患
|
282
|
+
f_stove: {},
|
283
|
+
// 壁挂炉超期隐患
|
284
|
+
f_wall: {},
|
285
|
+
// 热水器超期隐患
|
286
|
+
f_water: {},
|
287
|
+
|
277
288
|
//物联网表数据存储
|
289
|
+
f_balance_amount:{},//物联网表剩余金额
|
290
|
+
f_meter_base:{},//物联网表读数
|
291
|
+
f_balance_amount1:{},//物联网表现场录入的表上剩余金额
|
292
|
+
f_meter_base1:{},//物联网表现场录入的表字轮数
|
293
|
+
f_meter_aberrant_number1: {},//物联网表 表数异常差值
|
294
|
+
f_fee_aberrant_number1: {},//物联网 表金额异常差值
|
278
295
|
// 表底异常
|
279
296
|
f_total_biaodi: {},
|
280
297
|
f_table_biaodi: {},
|
281
298
|
f_biaodi_number: {},
|
282
|
-
//物联网表数据存储
|
283
|
-
f_balance_amount: {},//物联网表剩余金额
|
284
|
-
f_meter_base: {},//物联网表读数
|
285
|
-
f_balance_amount1: {},//物联网表现场录入的表上剩余金额
|
286
|
-
f_meter_base1: {},//物联网表现场录入的表字轮数
|
287
|
-
f_meter_aberrant_number1: {},//物联网表 表数异常差值
|
288
|
-
f_fee_aberrant_number1: {},//物联网 表金额异常差值
|
289
299
|
gasDeviation: (
|
290
300
|
function (_this) {
|
291
301
|
let deviation = _this.$appdata.getSingleValue('气量异常差值允许误差')
|
@@ -318,12 +328,12 @@ export default {
|
|
318
328
|
}
|
319
329
|
}
|
320
330
|
)(this),
|
321
|
-
showElse:
|
322
|
-
showXCImg:
|
331
|
+
showElse:false, //控制其他选项是否显示
|
332
|
+
showXCImg: true, // 是否显示现场整改拍照选项
|
323
333
|
showZXTime: false // 是否显示自行整改处理时效
|
324
334
|
}
|
325
335
|
},
|
326
|
-
props: ['config',
|
336
|
+
props: ['config','device','idx','operation','role', 'userinfo'],
|
327
337
|
// props: {
|
328
338
|
// // 维修对应的用户数据收集
|
329
339
|
// model: {
|
@@ -352,79 +362,88 @@ export default {
|
|
352
362
|
// issee:''
|
353
363
|
// },
|
354
364
|
methods: {
|
355
|
-
changse(val)
|
356
|
-
if
|
365
|
+
changse(val){
|
366
|
+
if(val == undefined){
|
357
367
|
return
|
358
368
|
}
|
359
|
-
if
|
360
|
-
if
|
369
|
+
if(this.selectindex != null) {
|
370
|
+
if(this.f_items[this.selectindex].type == 'selector'){
|
361
371
|
this.f_items[this.selectindex].f_item_value = val
|
362
|
-
}
|
372
|
+
}else if(this.f_items[this.selectindex].type == 'inputSelector'){
|
363
373
|
this.f_items[this.selectindex].f_item_value = val.target.value
|
364
374
|
}
|
365
375
|
}
|
366
376
|
},
|
367
|
-
changlive(val)
|
368
|
-
if
|
377
|
+
changlive(val){
|
378
|
+
if(val == undefined){
|
369
379
|
return
|
370
380
|
}
|
371
|
-
if
|
381
|
+
if(this.selectindex != null) {
|
372
382
|
this.f_items[this.selectindex].f_live_dispose = val
|
373
383
|
}
|
374
384
|
},
|
375
|
-
changdeal(val)
|
376
|
-
if
|
385
|
+
changdeal(val){
|
386
|
+
if(val == undefined){
|
377
387
|
return
|
378
388
|
}
|
379
|
-
if
|
389
|
+
if(this.selectindex != null) {
|
380
390
|
this.f_items[this.selectindex].f_deal_dispose = val
|
391
|
+
if (val == '现场整改'){
|
392
|
+
this.f_items[this.selectindex].f_is_repaired = '已处理'
|
393
|
+
this.f_items[this.selectindex].f_repair_date = Util.toStandardTimeString()
|
394
|
+
this.f_items[this.selectindex].f_repairman = Vue.user.name
|
395
|
+
}else {
|
396
|
+
this.f_items[this.selectindex].f_is_repaired = undefined
|
397
|
+
this.f_items[this.selectindex].f_repair_date = undefined
|
398
|
+
this.f_items[this.selectindex].f_repairman = undefined
|
399
|
+
}
|
381
400
|
}
|
382
401
|
},
|
383
|
-
switchDetails(detailsType, event)
|
402
|
+
switchDetails(detailsType, event){
|
384
403
|
if (event.srcElement.checked) {
|
385
|
-
for
|
386
|
-
if
|
387
|
-
this.Detail.details[i].f_content =
|
404
|
+
for(var i = 0;i<this.Detail.details.length;i++){
|
405
|
+
if(this.Detail.details[i].f_project == detailsType){
|
406
|
+
this.Detail.details[i].f_content = '有'
|
388
407
|
this.ischecked = '有'
|
389
408
|
return
|
390
409
|
}
|
391
410
|
}
|
392
411
|
} else {
|
393
412
|
this.Detail.imgs = []
|
394
|
-
for
|
395
|
-
if
|
396
|
-
this.Detail.details[i].f_content =
|
413
|
+
for(var i = 0;i<this.Detail.details.length;i++){
|
414
|
+
if(this.Detail.details[i].f_project == detailsType){
|
415
|
+
this.Detail.details[i].f_content = '无'
|
397
416
|
this.ischecked = '无'
|
398
|
-
}
|
417
|
+
}else{
|
399
418
|
this.Detail.details[i].f_content = ''
|
400
419
|
}
|
401
420
|
}
|
402
421
|
}
|
403
422
|
},
|
404
|
-
getgasmodel(val)
|
423
|
+
getgasmodel(val){
|
405
424
|
this.gasmodel = val
|
406
425
|
},
|
407
|
-
getradios(val,
|
426
|
+
getradios(val,flag){
|
408
427
|
let Reoptions = []
|
409
|
-
for (let i = 0;
|
428
|
+
for (let i = 0;i<this.repairdetails.length;i++) {
|
410
429
|
var t = false
|
411
|
-
if
|
412
|
-
for
|
413
|
-
if
|
430
|
+
if(this.repairdetails[i].f_type == this.repairitem.header ){
|
431
|
+
for(var j =0;j<this.repairdetails[i].details.length;j++){
|
432
|
+
if(this.repairdetails[i].details[j].f_project == val ){
|
414
433
|
Reoptions = this.repairdetails[i].details[j].options
|
415
434
|
t = true
|
416
435
|
break
|
417
436
|
}
|
418
437
|
}
|
419
438
|
}
|
420
|
-
if
|
439
|
+
if(t){
|
421
440
|
break
|
422
441
|
}
|
423
442
|
}
|
424
|
-
for
|
425
|
-
if
|
426
|
-
for
|
427
|
-
if
|
443
|
+
for(let j = 0;j<Reoptions.length;j++){
|
444
|
+
if(Reoptions[j].data == flag){
|
445
|
+
for(var e = 0;e<this.Detail.details.length;e++){
|
446
|
+
if(this.Detail.details[e].f_project == val){
|
428
447
|
this.Detail.details[e].f_status = Reoptions[j].f_status
|
429
448
|
return
|
430
449
|
}
|
@@ -433,14 +452,14 @@ export default {
|
|
433
452
|
}
|
434
453
|
}
|
435
454
|
},
|
436
|
-
deletedetails()
|
455
|
+
deletedetails(){
|
437
456
|
this.$showMessage('该操作会删除所填信息,是否继续!', ['confirm', 'cancel']).then((res) => {
|
438
457
|
if (res === 'confirm') {
|
439
|
-
for
|
440
|
-
if
|
458
|
+
for(var i = 0;i<this.tabs.length;i++){
|
459
|
+
if(this.tabs[i].number == this.repairitem.number){
|
441
460
|
this.tabs.splice(i, 1)
|
442
461
|
this.model.servicerepair.splice(this.repairitem.number, 1)
|
443
|
-
for
|
462
|
+
for(let t = i;t < this.tabs.length;t++ ) {
|
444
463
|
this.tabs[t].number -= 1
|
445
464
|
}
|
446
465
|
return
|
@@ -449,92 +468,74 @@ export default {
|
|
449
468
|
}
|
450
469
|
})
|
451
470
|
},
|
452
|
-
takePic(prop, title, pathname
|
471
|
+
takePic(prop, title, pathname='null') {
|
453
472
|
if (this.role == 'androidview') {
|
454
473
|
return
|
455
474
|
}
|
456
|
-
const obj = HostApp.getGpsDetailAddress()
|
457
475
|
HostApp.__callback__ = this.cameraCallBack
|
458
476
|
HostApp.__this__ = this
|
459
477
|
//tag
|
460
478
|
let fileName
|
461
479
|
if (pathname == 'null') {
|
462
480
|
if (!this.f_items[prop].f_path || this.f_items[prop].f_path.includes("nopic.png")) {
|
463
|
-
fileName = Util.guid() + '-' + 'device'
|
481
|
+
fileName = Util.guid() + '-' + 'device'+this.device.n + '-' + this.idx + '-'+'f_items'+prop+ '.jpg'
|
464
482
|
} else {
|
465
483
|
fileName = Util.getFileName(this.f_items[prop].f_path)
|
466
484
|
}
|
467
485
|
} else {
|
468
486
|
if (!this.f_items[prop][pathname] || this.f_items[prop][pathname].includes("nopic.png")) {
|
469
|
-
fileName = Util.guid() + '-' + 'device'
|
487
|
+
fileName = Util.guid() + '-' + 'device'+this.device.n + '-' + this.idx + '-'+'f_items'+prop+ '.jpg'
|
470
488
|
} else {
|
471
489
|
fileName = Util.getFileName(this.f_items[prop][pathname])
|
472
490
|
}
|
473
491
|
}
|
474
|
-
let
|
475
|
-
|
476
|
-
|
492
|
+
let addressA = "未获取到地址";
|
493
|
+
try {
|
494
|
+
let posaddress= HostApp.getGpsDetailAddress(); //获取当前地址信息
|
495
|
+
console.log("---------地址:"+JSON.stringify(posaddress))
|
496
|
+
addressA = posaddress.address
|
497
|
+
this.f_items[prop].f_longitude=posaddress.longitude
|
498
|
+
this.f_items[prop].f_latitude=posaddress.latitude
|
499
|
+
} catch (e) {
|
500
|
+
console.error('拍照时调用android端获取地址信息错误')
|
477
501
|
}
|
478
502
|
//tag
|
479
503
|
//tag
|
480
|
-
HostApp._open_a_page({
|
481
|
-
type: 'boomerang',
|
504
|
+
HostApp._open_a_page({type: 'boomerang',
|
482
505
|
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
483
|
-
param: {
|
506
|
+
param: {file: fileName, requestCode: 111, callback:'javascript:HostApp.__callback__("'+ prop +'", "%s","'+pathname+'");', watermark: title + '\t时间:'+ Util.toStandardTimeString() + '\t' + Vue.user.name}
|
484
507
|
})
|
485
508
|
},
|
486
|
-
cameraCallBack(prop,
|
509
|
+
cameraCallBack(prop, fileName,pathname) {
|
487
510
|
//tag
|
488
511
|
if (pathname == 'null') {
|
489
512
|
//tag
|
490
|
-
HostApp.__this__.$set('f_items['
|
513
|
+
HostApp.__this__.$set( 'f_items['+prop+'].f_path', fileName + '?' + Math.random())
|
491
514
|
//tag
|
492
515
|
HostApp.__callback__ = null
|
493
516
|
HostApp.__this__ = null
|
494
517
|
} else {
|
495
518
|
//tag
|
496
519
|
//tag)
|
497
|
-
HostApp.__this__.$set('f_items['
|
520
|
+
HostApp.__this__.$set( 'f_items['+prop+'].'+pathname+'', fileName + '?' + Math.random())
|
498
521
|
HostApp.__callback__ = null
|
499
522
|
HostApp.__this__ = null
|
500
523
|
}
|
501
|
-
if (this.f_items[prop].is_verification) {
|
502
|
-
let path = fileName.replace('http://newimg', '')
|
503
|
-
path = path.replace('file://', '')
|
504
|
-
console.log('fileName', fileName)
|
505
|
-
console.log(path)
|
506
|
-
let res = HostApp.pictureVerificationAI(path, title)
|
507
|
-
if (res.code == 200) {
|
508
|
-
if (res.type_result) {
|
509
|
-
// this.$showMessage("检测通过,当前照片为"+title)
|
510
|
-
this.f_items[prop].verification_text = `检测通过,当前照片为 ${title}`
|
511
|
-
this.f_items[prop].verification_state = 'pass'
|
512
|
-
} else {
|
513
|
-
// this.$showMessage("检测失败,未识别到当前照片为 "+title+",请重新拍摄!")
|
514
|
-
this.f_items[prop].verification_text = `检测失败,未识别到当前照片为'${title}',请重新拍摄!`
|
515
|
-
this.f_items[prop].verification_state = 'npass'
|
516
|
-
}
|
517
|
-
} else {
|
518
|
-
// this.$showMessage("检测失败,请重试!")
|
519
|
-
this.f_items[prop].verification_text = `检测失败,请重试!`
|
520
|
-
this.f_items[prop].verification_state = 'npass'
|
521
|
-
}
|
522
|
-
}
|
523
524
|
},
|
524
|
-
delfile(prop, fileName, pathname
|
525
|
+
delfile(prop, fileName, pathname='null') {
|
525
526
|
if (pathname == 'null') {
|
526
527
|
//tag
|
527
528
|
//tag)
|
528
|
-
if
|
529
|
+
if(fileName == Vue.nopic){
|
529
530
|
return
|
530
531
|
} else {
|
531
532
|
HostApp.delfile(fileName)
|
532
533
|
this.f_items[prop].f_path = Vue.nopic
|
533
534
|
}
|
534
|
-
}
|
535
|
+
}else {
|
535
536
|
//tag
|
536
537
|
//tag)
|
537
|
-
if
|
538
|
+
if(fileName == Vue.nopic){
|
538
539
|
return
|
539
540
|
} else {
|
540
541
|
HostApp.delfile(fileName)
|
@@ -542,17 +543,17 @@ export default {
|
|
542
543
|
}
|
543
544
|
}
|
544
545
|
},
|
545
|
-
adddetails()
|
546
|
+
adddetails(){
|
546
547
|
// 下标作为序号,取值用。 增加 序号得依次增加
|
547
|
-
if
|
548
|
-
for
|
549
|
-
if
|
550
|
-
if
|
551
|
-
for
|
552
|
-
if
|
553
|
-
this.model.servicerepair.splice(j
|
554
|
-
this.tabs.splice(i
|
555
|
-
for
|
548
|
+
if(this.tabs.length > 0){
|
549
|
+
for(let i = this.tabs.length-1;i > 0 ;i-- ){
|
550
|
+
if(this.tabs[i].header == this.repairitem.header){
|
551
|
+
if(this.model.servicerepair.length > 0){
|
552
|
+
for(let j = this.model.servicerepair.length -1;j > -1;j-- ){
|
553
|
+
if(this.model.servicerepair[j].f_type == this.repairitem.header){
|
554
|
+
this.model.servicerepair.splice(j+1, 0, Object.assign({}, JSON.parse(JSON.stringify(this.tabs[i].details))))
|
555
|
+
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})
|
556
|
+
for(let t = i+2;t < this.tabs.length;t++ ) {
|
556
557
|
this.tabs[t].number += 1
|
557
558
|
}
|
558
559
|
this.faultshow.number += this.faultshow.number + 1
|
@@ -564,38 +565,34 @@ export default {
|
|
564
565
|
}
|
565
566
|
}
|
566
567
|
},
|
567
|
-
transelation(val)
|
568
|
+
transelation(val){
|
568
569
|
this.selectindex = val
|
569
570
|
},
|
570
|
-
towatch()
|
571
|
-
for
|
572
|
-
if
|
571
|
+
towatch(){
|
572
|
+
for(let n in this.f_items){
|
573
|
+
if(typeof this.f_items[n]=='function'){
|
573
574
|
continue
|
574
575
|
}
|
575
|
-
if (this.f_items[n].type == '
|
576
|
+
if (this.f_items[n].type == 'string' && ['其他隐患', '其它隐患'].indexOf(this.f_items[n].f_item_name) >= 0){
|
577
|
+
this.$watch('f_items['+n+'].f_item_value',function(val) {
|
578
|
+
if (val){
|
579
|
+
this.f_items[n].f_is_defect = true
|
580
|
+
}else {
|
581
|
+
this.f_items[n].f_is_defect = null
|
582
|
+
}
|
583
|
+
})
|
584
|
+
}
|
585
|
+
if(this.f_items[n].type == 'selector' || this.f_items[n].type == 'inputSelector'){
|
576
586
|
// 监听下拉框,如果有隐患,需要拍照
|
577
|
-
this.$watch('f_items['
|
578
|
-
if (val == old) {
|
579
|
-
return
|
580
|
-
}
|
587
|
+
this.$watch('f_items['+n+'].selected',function(val) {
|
581
588
|
// 下拉框值
|
582
589
|
//tag)
|
583
590
|
// 下拉框所属设备
|
584
591
|
//tag
|
585
592
|
// 下拉框所属项
|
586
593
|
//tag
|
587
|
-
if (val == undefined || val.length == 0 || val[0] == '') {
|
588
|
-
this.f_items[n].f_path = ''
|
589
|
-
this.f_items[n].f_is_defect = ''
|
590
|
-
this.f_items[n].f_defect_level = ''
|
591
|
-
this.f_items[n].f_live_dispose = ''
|
592
|
-
this.f_items[n].f_deal_dispose = ''
|
593
|
-
this.f_items[n].tooltip = ''
|
594
|
-
this.f_items[n].f_else = ''
|
595
|
-
return
|
596
|
-
}
|
597
594
|
let shImage = false
|
598
|
-
if
|
595
|
+
if(val.indexOf('其他') == -1){
|
599
596
|
this.f_items[n].f_else = ''
|
600
597
|
}
|
601
598
|
// if(this.config[this.device.device].items[item].type == 'selector'){
|
@@ -605,57 +602,57 @@ export default {
|
|
605
602
|
// }
|
606
603
|
// 在配置中查找该项
|
607
604
|
for (let item in this.config[this.device.device].items) {
|
608
|
-
if
|
605
|
+
if(typeof this.config[this.device.device].items[item]=='function'){
|
609
606
|
continue
|
610
607
|
}
|
611
608
|
let type = this.config[this.device.device].items[item].type
|
612
|
-
let multiple = this.config[this.device.device].items[item].multiple
|
609
|
+
let multiple = this.config[this.device.device].items[item].multiple?this.config[this.device.device].items[item].multiple:false
|
613
610
|
let options = this.config[this.device.device].items[item].options
|
614
611
|
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) {
|
615
612
|
for (let i in options) {
|
616
|
-
if
|
613
|
+
if(typeof options[i]=='function'){
|
617
614
|
continue
|
618
615
|
}
|
619
616
|
let value
|
620
|
-
if
|
617
|
+
if(this.config[this.device.device].items[item].type == 'selector' && this.config[this.device.device].items[item].multiple == false){
|
621
618
|
value = val[0]
|
622
|
-
}
|
619
|
+
}else if (this.config[this.device.device].items[item].type == 'inputSelector'){
|
623
620
|
value = val
|
624
621
|
}
|
625
622
|
//tag)
|
626
623
|
// 如果未选择,清空图片、隐患信息等
|
627
|
-
if
|
624
|
+
if((type == 'selector' && val.length == 0) || (type == 'inputSelector' && val == '')){
|
628
625
|
this.f_items[n].f_path = ''
|
629
626
|
this.f_items[n].f_is_defect = ''
|
630
627
|
this.f_items[n].f_defect_level = ''
|
631
628
|
this.f_items[n].f_live_dispose = ''
|
632
|
-
this.f_items[n].f_deal_dispose = ''
|
629
|
+
// this.f_items[n].f_deal_dispose = ''
|
633
630
|
this.f_items[n].tooltip = ''
|
634
631
|
}
|
635
|
-
if
|
632
|
+
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)){
|
636
633
|
// 找到选中的项了
|
637
634
|
//tag
|
638
|
-
if
|
635
|
+
if(options[i].isdefect == true ){
|
639
636
|
shImage = true
|
640
637
|
}
|
641
|
-
if
|
638
|
+
if(options[i].isdefect == false || this.f_items[n].f_item_value == ''){
|
642
639
|
shImage = false
|
643
640
|
}
|
644
641
|
//tag
|
645
|
-
if
|
646
|
-
this.f_items[n].f_is_defect =
|
642
|
+
if(shImage){
|
643
|
+
this.f_items[n].f_is_defect =true
|
647
644
|
this.f_items[n].f_defect_level = options[i].level
|
648
645
|
this.f_items[n].f_path = Vue.nopic
|
649
646
|
this.f_items[n].f_live_dispose = '否'
|
650
|
-
this.f_items[n].f_deal_dispose = '未处理'
|
647
|
+
// this.f_items[n].f_deal_dispose = '未处理'
|
651
648
|
//tag
|
652
|
-
this.f_items[n].tooltip
|
653
|
-
}
|
649
|
+
this.f_items[n].tooltip= options[i].tooltip
|
650
|
+
}else{
|
654
651
|
this.f_items[n].f_path = ''
|
655
652
|
this.f_items[n].f_is_defect = ''
|
656
653
|
this.f_items[n].f_defect_level = ''
|
657
654
|
this.f_items[n].f_live_dispose = ''
|
658
|
-
this.f_items[n].f_deal_dispose = ''
|
655
|
+
// this.f_items[n].f_deal_dispose = ''
|
659
656
|
this.f_items[n].tooltip = ''
|
660
657
|
}
|
661
658
|
}
|
@@ -674,7 +671,7 @@ export default {
|
|
674
671
|
// }
|
675
672
|
//
|
676
673
|
// })
|
677
|
-
}
|
674
|
+
}else if(this.f_items[n].type == 'radio') {
|
678
675
|
// 监听单选框,如果有隐患,需要拍照
|
679
676
|
this.$watch('f_items[' + n + '].f_item_value', function (val) {
|
680
677
|
//tag)
|
@@ -690,7 +687,7 @@ export default {
|
|
690
687
|
this.f_items[n].f_defect_level = options[i].level
|
691
688
|
this.f_items[n].f_path = Vue.nopic
|
692
689
|
this.f_items[n].f_live_dispose = '否'
|
693
|
-
this.f_items[n].f_deal_dispose = '未处理'
|
690
|
+
// this.f_items[n].f_deal_dispose = '未处理'
|
694
691
|
this.f_items[n].tooltip = options[i].tooltip
|
695
692
|
//tag)
|
696
693
|
return
|
@@ -701,10 +698,10 @@ export default {
|
|
701
698
|
this.f_items[n].f_is_defect = ''
|
702
699
|
this.f_items[n].f_defect_level = ''
|
703
700
|
this.f_items[n].f_live_dispose = ''
|
704
|
-
this.f_items[n].f_deal_dispose = ''
|
701
|
+
// this.f_items[n].f_deal_dispose = ''
|
705
702
|
this.f_items[n].tooltip = ''
|
706
703
|
})
|
707
|
-
}
|
704
|
+
}else if(this.f_items[n].type == 'checkbox') {
|
708
705
|
// 监听单选框,如果有隐患,需要拍照
|
709
706
|
this.$watch('f_items[' + n + '].f_item_value', function (val) {
|
710
707
|
//tag)
|
@@ -718,18 +715,18 @@ export default {
|
|
718
715
|
// 取出选中项中有隐患的详细信息
|
719
716
|
let selected = options.filter(item => { return val.indexOf(item.value) != -1 && item.isdefect })
|
720
717
|
|
721
|
-
if
|
718
|
+
if(selected.length > 0){
|
722
719
|
// 防止赋值无限调用
|
723
720
|
this.f_items[n].isReSet = true
|
724
|
-
let selectList = selected.map(item => {
|
721
|
+
let selectList = selected.map(item => {return item.value})
|
725
722
|
// 如果选中的是非隐患项,取消选中isdefect为true的
|
726
723
|
if (selectList.indexOf(val[val.length - 1]) == -1) {
|
727
|
-
this.f_items[n].f_item_value = val.filter(item => {
|
724
|
+
this.f_items[n].f_item_value = val.filter(item => {return selectList.indexOf(item) == -1})
|
728
725
|
this.f_items[n].f_path = ''
|
729
726
|
this.f_items[n].f_is_defect = ''
|
730
727
|
this.f_items[n].f_defect_level = ''
|
731
728
|
this.f_items[n].f_live_dispose = ''
|
732
|
-
this.f_items[n].f_deal_dispose = ''
|
729
|
+
// this.f_items[n].f_deal_dispose = ''
|
733
730
|
this.f_items[n].tooltip = ''
|
734
731
|
return
|
735
732
|
}
|
@@ -741,7 +738,7 @@ export default {
|
|
741
738
|
this.f_items[n].f_defect_level = selected[0].level
|
742
739
|
this.f_items[n].f_path = Vue.nopic
|
743
740
|
this.f_items[n].f_live_dispose = '否'
|
744
|
-
this.f_items[n].f_deal_dispose = '未处理'
|
741
|
+
// this.f_items[n].f_deal_dispose = '未处理'
|
745
742
|
//tag
|
746
743
|
this.f_items[n].tooltip = selected[0].tooltip
|
747
744
|
}
|
@@ -752,99 +749,87 @@ export default {
|
|
752
749
|
this.f_items[n].f_is_defect = ''
|
753
750
|
this.f_items[n].f_defect_level = ''
|
754
751
|
this.f_items[n].f_live_dispose = ''
|
755
|
-
this.f_items[n].f_deal_dispose = ''
|
752
|
+
// this.f_items[n].f_deal_dispose = ''
|
756
753
|
this.f_items[n].tooltip = ''
|
757
754
|
})
|
758
755
|
}
|
759
756
|
}
|
760
757
|
//tag)
|
761
758
|
},
|
762
|
-
getbiaodinumber() {
|
763
|
-
//tag
|
764
|
-
if (this.f_items[this.f_table_biaodi.index].f_item_value < 0) {
|
765
|
-
this.$showMessage('表底数不能为负数')
|
766
|
-
return
|
767
|
-
}
|
768
|
-
// 先清空
|
769
|
-
this.f_items[this.f_biaodi_number.index].f_item_value = null
|
770
|
-
this.f_items[this.f_biaodi_number.index].f_is_defect = null
|
771
|
-
//tag
|
772
|
-
// 只有两个值都填了才会计算
|
773
|
-
if (!this.f_items[this.f_table_biaodi.index].f_item_value) {
|
774
|
-
return
|
775
|
-
}
|
776
|
-
//tag
|
777
|
-
// 计算公式 => 表底异常差值= 本次表底- 上次表底
|
778
|
-
this.f_items[this.f_biaodi_number.index].f_item_value = this.f_items[this.f_table_biaodi.index].f_item_value - this.f_items[this.f_total_biaodi.index].f_item_value
|
779
|
-
this.f_items[this.f_biaodi_number.index].f_item_value = this.f_items[this.f_biaodi_number.index].f_item_value.toFixed(3)
|
780
|
-
if (isNaN(this.f_items[this.f_biaodi_number.index].f_item_value)) {
|
781
|
-
this.f_items[this.f_biaodi_number.index].f_item_value = null
|
782
|
-
}
|
783
|
-
// 计算差值是否在范围内
|
784
|
-
// if (this.f_items[this.f_biaodi_number.index].f_item_value< 0){
|
785
|
-
// this.f_items[this.f_biaodi_number.index].f_is_defect = true
|
786
|
-
// }
|
787
|
-
|
788
|
-
//tag)
|
789
|
-
},
|
790
759
|
getGasAberrantNumber(val) {
|
791
|
-
|
792
|
-
if (
|
760
|
+
console.log('this.userinfo11=', JSON.stringify(this.userinfo))
|
761
|
+
if (this.userinfo.f_plan_meters[0].f_collection_type == '按气量'){
|
793
762
|
//tag
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
this.f_items[this.f_gas_balance.index].f_item_value
|
763
|
+
if(!this.f_table_base.index || !this.f_gas_balance.index){
|
764
|
+
//tag
|
765
|
+
return
|
766
|
+
}
|
767
|
+
// 先清空
|
768
|
+
this.f_items[this.f_gas_aberrant_number.index].f_item_value = null
|
769
|
+
// this.f_items[this.f_gas_aberrant_number.index].f_is_defect = false
|
770
|
+
if(val=='已用气量'){
|
771
|
+
//剩余气量 = 累购-已用
|
772
|
+
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
|
773
|
+
if (isNaN(this.f_items[this.f_gas_balance.index].f_item_value)) {
|
774
|
+
this.f_items[this.f_gas_balance.index].f_item_value = null
|
775
|
+
}
|
804
776
|
}
|
805
|
-
}
|
806
777
|
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
778
|
+
// 只有两个值都填了才会计算
|
779
|
+
if (!this.f_items[this.f_table_base.index].f_item_value || !this.f_items[this.f_gas_balance.index].f_item_value) {
|
780
|
+
return
|
781
|
+
}
|
782
|
+
//tag)
|
783
|
+
//tag
|
784
|
+
//tag
|
814
785
|
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
786
|
+
// 计算公式 => 气量异常差值 = 累计购气量 - (已用气量 - 初始表底) - 剩余气量
|
787
|
+
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_initial_base.index?this.f_items[this.f_initial_base.index].f_item_value:0))
|
788
|
+
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)
|
789
|
+
// 如果数值有误,清空结果s
|
790
|
+
if (isNaN(this.f_items[this.f_gas_aberrant_number.index].f_item_value)) {
|
791
|
+
this.f_items[this.f_gas_aberrant_number.index].f_item_value = null
|
792
|
+
}
|
793
|
+
//tag ===> ' + Math.abs(this.f_items[this.f_gas_aberrant_number.index].f_item_value))
|
794
|
+
//tag ===> ' + JSON.stringify(Number(this.gasDeviation)))
|
795
|
+
// 计算差值是否在范围内
|
796
|
+
// if (Math.abs(this.f_items[this.f_gas_aberrant_number.index].f_item_value) > Number(this.gasDeviation)) {
|
797
|
+
// // this.f_items[this.f_gas_aberrant_number.index].f_is_defect = true
|
798
|
+
// this.f_items[this.f_fee_aberrant_number.index].f_is_defect = null
|
799
|
+
// this.f_items[this.f_gas_aberrant_number.index].f_deal_dispose = '未处理'
|
800
|
+
// }else{
|
801
|
+
// this.f_items[this.f_gas_aberrant_number.index].f_is_defect = null
|
802
|
+
// this.f_items[this.f_gas_aberrant_number.index].f_deal_dispose = null
|
803
|
+
// }
|
804
|
+
//tag)
|
805
|
+
}else {
|
806
|
+
// 先清空
|
820
807
|
this.f_items[this.f_gas_aberrant_number.index].f_item_value = null
|
808
|
+
if (!this.f_items[this.f_meter_base2.index].f_item_value || !this.f_items[this.f_table_base.index].f_item_value) {
|
809
|
+
return
|
810
|
+
}
|
811
|
+
// 计算公式 => 气量异常差值 = (已用气量 - 系统表底数)(负数有隐患)
|
812
|
+
this.f_items[this.f_gas_aberrant_number.index].f_item_value = this.f_items[this.f_table_base.index].f_item_value - this.f_items[this.f_meter_base2.index].f_item_value
|
813
|
+
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)
|
814
|
+
// 如果数值有误,清空结果s
|
815
|
+
if (isNaN(this.f_items[this.f_gas_aberrant_number.index].f_item_value)) {
|
816
|
+
this.f_items[this.f_gas_aberrant_number.index].f_item_value = null
|
817
|
+
}
|
821
818
|
}
|
822
|
-
//tag ===> ' + Math.abs(this.f_items[this.f_gas_aberrant_number.index].f_item_value))
|
823
|
-
//tag ===> ' + JSON.stringify(Number(this.gasDeviation)))
|
824
|
-
// 计算差值是否在范围内
|
825
|
-
if (Math.abs(this.f_items[this.f_gas_aberrant_number.index].f_item_value) > Number(this.gasDeviation) || Math.abs(this.f_items[this.f_gas_aberrant_number.index].f_item_value) < Number(this.gasDeviation) * -1) {
|
826
|
-
this.f_items[this.f_gas_aberrant_number.index].f_is_defect = true
|
827
|
-
this.f_items[this.f_gas_aberrant_number.index].f_deal_dispose = '未处理'
|
828
|
-
} else {
|
829
|
-
this.f_items[this.f_gas_aberrant_number.index].f_is_defect = null
|
830
|
-
this.f_items[this.f_gas_aberrant_number.index].f_deal_dispose = null
|
831
|
-
}
|
832
|
-
|
833
|
-
//tag)
|
834
819
|
},
|
835
820
|
getFeeAberrantNumber(val) {
|
836
821
|
//tag
|
837
822
|
// 只有两个值都填了才会计算
|
838
|
-
if
|
823
|
+
if(!this.f_fee_base.index || !this.f_fee_balance.index){
|
839
824
|
//tag
|
840
825
|
return
|
841
826
|
}
|
842
827
|
// 先清空
|
843
828
|
this.f_items[this.f_fee_aberrant_number.index].f_item_value = null
|
844
|
-
this.f_items[this.f_fee_aberrant_number.index].f_is_defect = false
|
829
|
+
// this.f_items[this.f_fee_aberrant_number.index].f_is_defect = false
|
845
830
|
|
846
|
-
if
|
847
|
-
this.f_items[this.f_fee_balance.index].f_item_value
|
831
|
+
if(val=='已用金额'){
|
832
|
+
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).toFixed(3)
|
848
833
|
if (isNaN(this.f_items[this.f_fee_balance.index].f_item_value)) {
|
849
834
|
this.f_items[this.f_fee_balance.index].f_item_value = null
|
850
835
|
}
|
@@ -863,13 +848,14 @@ export default {
|
|
863
848
|
//tag ===> ' + Math.abs(this.f_items[this.f_fee_aberrant_number.index].f_item_value))
|
864
849
|
//tag ===> ' + JSON.stringify(Number(this.feeDeviation)))
|
865
850
|
// 计算差值是否在范围内
|
866
|
-
if (Math.abs(this.f_items[this.f_fee_aberrant_number.index].f_item_value) > Number(this.feeDeviation)) {
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
851
|
+
// if (Math.abs(this.f_items[this.f_fee_aberrant_number.index].f_item_value) > Number(this.feeDeviation)) {
|
852
|
+
// // this.f_items[this.f_fee_aberrant_number.index].f_is_defect = true
|
853
|
+
// this.f_items[this.f_fee_aberrant_number.index].f_is_defect = null
|
854
|
+
// this.f_items[this.f_fee_aberrant_number.index].f_deal_dispose = '未处理'
|
855
|
+
// }else{
|
856
|
+
// this.f_items[this.f_fee_aberrant_number.index].f_is_defect = null
|
857
|
+
// this.f_items[this.f_fee_aberrant_number.index].f_deal_dispose = null
|
858
|
+
// }
|
873
859
|
|
874
860
|
//tag)
|
875
861
|
},
|
@@ -877,13 +863,13 @@ export default {
|
|
877
863
|
getFeeAberrantNumber2(val) {
|
878
864
|
//tag
|
879
865
|
// 只有两个值都填了才会计算
|
880
|
-
if
|
866
|
+
if(!this.f_table_balance.index || !this.f_fee_balance.index){
|
881
867
|
//tag
|
882
868
|
return
|
883
869
|
}
|
884
870
|
// 先清空
|
885
871
|
this.f_items[this.f_fee_aberrant_number.index].f_item_value = null
|
886
|
-
this.f_items[this.f_fee_aberrant_number.index].f_is_defect = false
|
872
|
+
// this.f_items[this.f_fee_aberrant_number.index].f_is_defect = false
|
887
873
|
|
888
874
|
// 计算公式 => 金额异常差值 = 系统剩余金额 - 表端剩余金额
|
889
875
|
this.f_items[this.f_fee_aberrant_number.index].f_item_value = this.f_items[this.f_fee_balance.index].f_item_value - this.f_items[this.f_table_balance.index].f_item_value
|
@@ -894,48 +880,19 @@ export default {
|
|
894
880
|
//tag ===> ' + Math.abs(this.f_items[this.f_fee_aberrant_number.index].f_item_value))
|
895
881
|
//tag ===> ' + JSON.stringify(Number(this.feeDeviation)))
|
896
882
|
// 计算差值是否在范围内
|
897
|
-
if (Math.abs(this.f_items[this.f_fee_aberrant_number.index].f_item_value) > Number(this.feeDeviation)) {
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
883
|
+
// if (Math.abs(this.f_items[this.f_fee_aberrant_number.index].f_item_value) > Number(this.feeDeviation)) {
|
884
|
+
// // this.f_items[this.f_fee_aberrant_number.index].f_is_defect = true
|
885
|
+
// this.f_items[this.f_fee_aberrant_number.index].f_is_defect = null
|
886
|
+
// this.f_items[this.f_fee_aberrant_number.index].f_deal_dispose = '未处理'
|
887
|
+
// }else{
|
888
|
+
// this.f_items[this.f_fee_aberrant_number.index].f_is_defect = null
|
889
|
+
// this.f_items[this.f_fee_aberrant_number.index].f_deal_dispose = null
|
890
|
+
// }
|
904
891
|
console.log('--------------------------------')
|
905
892
|
console.log(this.f_items[this.f_fee_aberrant_number.index].f_item_value)
|
906
893
|
|
907
894
|
//tag)
|
908
895
|
},
|
909
|
-
deviceOverdueDefect(index, device) {
|
910
|
-
let i = 0
|
911
|
-
if (device == '燃气灶') {
|
912
|
-
i = this.f_stove.index
|
913
|
-
} else if (device == '壁挂炉') {
|
914
|
-
i = this.f_wall.index
|
915
|
-
} else if (device == '热水器') {
|
916
|
-
i = this.f_water.index
|
917
|
-
} else {
|
918
|
-
return
|
919
|
-
}
|
920
|
-
try {
|
921
|
-
let value = parseInt(this.f_items[index].f_item_value.substring(0, 4))
|
922
|
-
if (new Date().getFullYear() - value > 8) {
|
923
|
-
this.f_items[i].f_is_defect = true
|
924
|
-
this.f_items[i].f_item_value = '是'
|
925
|
-
this.f_items[i].f_is_repaired = '已告知'
|
926
|
-
this.f_items[i].f_deal_dispose = '自行处理'
|
927
|
-
} else {
|
928
|
-
this.f_items[i].f_is_defect = null
|
929
|
-
this.f_items[i].f_item_value = '否'
|
930
|
-
this.f_items[i].f_is_repaired = null
|
931
|
-
this.f_items[i].f_deal_dispose = null
|
932
|
-
}
|
933
|
-
} catch (e) {
|
934
|
-
this.f_items[i].f_is_defect = null
|
935
|
-
this.f_items[i].f_is_repaired = null
|
936
|
-
}
|
937
|
-
console.log('this.f_items=', JSON.stringify(this.f_items))
|
938
|
-
},
|
939
896
|
//物联网表字轮数改变触发
|
940
897
|
getmeteraberrantnumber() {
|
941
898
|
//tag
|
@@ -958,13 +915,72 @@ export default {
|
|
958
915
|
//tag ===> ' + Math.abs(this.f_items[this.f_meter_aberrant_number1.index].f_item_value))
|
959
916
|
// 计算差值是否在范围内
|
960
917
|
//tag)
|
961
|
-
if (Math.abs(this.f_items[this.f_meter_aberrant_number1.index].f_item_value) > Number(this.meterbase))
|
962
|
-
this.f_items[this.f_meter_aberrant_number1.index].f_is_defect = true
|
918
|
+
if (Math.abs(this.f_items[this.f_meter_aberrant_number1.index].f_item_value) > Number(this.meterbase)){
|
919
|
+
// this.f_items[this.f_meter_aberrant_number1.index].f_is_defect = true
|
920
|
+
this.f_items[this.f_meter_aberrant_number1.index].f_is_defect = null
|
963
921
|
}
|
964
922
|
|
965
923
|
//tag)
|
966
924
|
},
|
925
|
+
// 表底异常计算
|
926
|
+
getbiaodinumber() {
|
927
|
+
//tag
|
928
|
+
if (this.f_items[this.f_table_biaodi.index].f_item_value < 0){
|
929
|
+
this.$showMessage('表底数不能为负数')
|
930
|
+
return
|
931
|
+
}
|
932
|
+
// 先清空
|
933
|
+
this.f_items[this.f_biaodi_number.index].f_item_value = null
|
934
|
+
this.f_items[this.f_biaodi_number.index].f_is_defect = null
|
935
|
+
//tag
|
936
|
+
// 只有两个值都填了才会计算
|
937
|
+
if (!this.f_items[this.f_table_biaodi.index].f_item_value) {
|
938
|
+
return
|
939
|
+
}
|
940
|
+
//tag
|
941
|
+
// 计算公式 => 表底异常差值= 本次表底- 上次表底
|
942
|
+
this.f_items[this.f_biaodi_number.index].f_item_value = this.f_items[this.f_table_biaodi.index].f_item_value - this.f_items[this.f_total_biaodi.index].f_item_value
|
943
|
+
this.f_items[this.f_biaodi_number.index].f_item_value = this.f_items[this.f_biaodi_number.index].f_item_value.toFixed(3)
|
944
|
+
if (isNaN(this.f_items[this.f_biaodi_number.index].f_item_value)) {
|
945
|
+
this.f_items[this.f_biaodi_number.index].f_item_value = null
|
946
|
+
}
|
947
|
+
// 计算差值是否在范围内
|
948
|
+
// if (this.f_items[this.f_biaodi_number.index].f_item_value< 0){
|
949
|
+
// this.f_items[this.f_biaodi_number.index].f_is_defect = true
|
950
|
+
// }
|
967
951
|
|
952
|
+
//tag)
|
953
|
+
},
|
954
|
+
deviceOverdueDefect(index, device) {
|
955
|
+
let i = 0
|
956
|
+
if (device == '燃气灶'){
|
957
|
+
i = this.f_stove.index
|
958
|
+
}else if (device == '壁挂炉'){
|
959
|
+
i = this.f_wall.index
|
960
|
+
}else if (device == '热水器'){
|
961
|
+
i = this.f_water.index
|
962
|
+
}else {
|
963
|
+
return
|
964
|
+
}
|
965
|
+
try {
|
966
|
+
let value = parseInt(this.f_items[index].f_item_value.substring(0, 4))
|
967
|
+
if (new Date().getFullYear() - value > 8){
|
968
|
+
this.f_items[i].f_is_defect = true
|
969
|
+
this.f_items[i].f_item_value = '是'
|
970
|
+
this.f_items[i].f_is_repaired = '已告知'
|
971
|
+
this.f_items[i].f_deal_dispose = '自行处理'
|
972
|
+
}else {
|
973
|
+
this.f_items[i].f_is_defect = null
|
974
|
+
this.f_items[i].f_item_value = '否'
|
975
|
+
this.f_items[i].f_is_repaired = null
|
976
|
+
this.f_items[i].f_deal_dispose = null
|
977
|
+
}
|
978
|
+
}catch (e){
|
979
|
+
this.f_items[i].f_is_defect = null
|
980
|
+
this.f_items[i].f_is_repaired = null
|
981
|
+
}
|
982
|
+
console.log('this.f_items=', JSON.stringify(this.f_items))
|
983
|
+
},
|
968
984
|
disSelect(index, itemValue) {
|
969
985
|
//tag)
|
970
986
|
//tag)
|
@@ -973,15 +989,15 @@ export default {
|
|
973
989
|
}
|
974
990
|
},
|
975
991
|
prepare() {
|
976
|
-
['config',
|
992
|
+
['config','device','idx','operation','role']
|
977
993
|
this.hiddenDangerImgNumber = 2
|
978
994
|
//创建页面所需数据
|
979
|
-
this.$set('piece', this.paper['device'
|
995
|
+
this.$set('piece', this.paper['device'+this.device.n][this.idx])
|
980
996
|
//tag)
|
981
997
|
//f_deal_dispose f_handle_date
|
982
998
|
let n = 0
|
983
999
|
for (let item in this.config[this.device.device].items) {
|
984
|
-
if
|
1000
|
+
if(typeof this.config[this.device.device].items[item]=='function'){
|
985
1001
|
continue
|
986
1002
|
}
|
987
1003
|
let index = item
|
@@ -991,11 +1007,11 @@ export default {
|
|
991
1007
|
//tag)
|
992
1008
|
// 先根据配置组接页面
|
993
1009
|
let f_item_value
|
994
|
-
if
|
1010
|
+
if(this.config[this.device.device].items[item].type == 'selector' || this.config[this.device.device].items[item].type == 'checkbox'){
|
995
1011
|
f_item_value = []
|
996
1012
|
// 判断选项的默认值
|
997
1013
|
for (let defitem in this.config[this.device.device].items[item].options) {
|
998
|
-
if
|
1014
|
+
if(typeof this.config[this.device.device].items[item].options[defitem]=='function'){
|
999
1015
|
continue
|
1000
1016
|
}
|
1001
1017
|
let defopt = this.config[this.device.device].items[item].options[defitem]
|
@@ -1007,12 +1023,12 @@ export default {
|
|
1007
1023
|
// if(this.config[this.device.device].items[item].data){
|
1008
1024
|
// f_item_value.push(this.config[this.device.device].items[item].data)
|
1009
1025
|
// }
|
1010
|
-
}
|
1026
|
+
}else if(this.config[this.device.device].items[item].type == 'radio'){
|
1011
1027
|
//为radio添加默认值
|
1012
|
-
f_item_value
|
1028
|
+
f_item_value=''
|
1013
1029
|
//tag)
|
1014
1030
|
for (let defitem in this.config[this.device.device].items[item].options) {
|
1015
|
-
if
|
1031
|
+
if(typeof this.config[this.device.device].items[item].options[defitem]=='function'){
|
1016
1032
|
continue
|
1017
1033
|
}
|
1018
1034
|
//tag)
|
@@ -1022,7 +1038,7 @@ export default {
|
|
1022
1038
|
f_item_value = defopt.data
|
1023
1039
|
}
|
1024
1040
|
}
|
1025
|
-
}
|
1041
|
+
}else{
|
1026
1042
|
f_item_value = this.config[this.device.device].items[item].data ? this.config[this.device.device].items[item].data : ''
|
1027
1043
|
}
|
1028
1044
|
//tag)
|
@@ -1032,14 +1048,14 @@ export default {
|
|
1032
1048
|
checkmust: this.config[this.device.device].items[item].checkmust,
|
1033
1049
|
f_item_value: this.config[this.device.device].items[item].f_item_value || f_item_value,
|
1034
1050
|
f_is_defect: '',
|
1035
|
-
multiple:
|
1036
|
-
isshow:
|
1037
|
-
readonly: this.config[this.device.device].items[item].readonly == true
|
1051
|
+
multiple:this.config[this.device.device].items[item].multiple == true?this.config[this.device.device].items[item].multiple:false,
|
1052
|
+
isshow:this.config[this.device.device].items[item].isshow == false?this.config[this.device.device].items[item].isshow:true,
|
1053
|
+
readonly: this.config[this.device.device].items[item].readonly == true?true:false,
|
1038
1054
|
remark: this.config[this.device.device].items[item].remark ? this.config[this.device.device].items[item].remark : '',
|
1039
1055
|
f_path: '',
|
1040
1056
|
unit: this.config[this.device.device].items[item].unit ? this.config[this.device.device].items[item].unit : '',
|
1041
|
-
tooltip:
|
1042
|
-
f_live_dispose:
|
1057
|
+
tooltip:'',
|
1058
|
+
f_live_dispose:'',
|
1043
1059
|
f_deal_dispose: this.config[this.device.device].items[item].f_process_mode,
|
1044
1060
|
f_else: '',
|
1045
1061
|
f_p1_path: '',
|
@@ -1048,26 +1064,26 @@ export default {
|
|
1048
1064
|
f_handle_date: Util.dateAddDay(new Date(), this.config[this.device.device].items[item].f_aging || 0),
|
1049
1065
|
count: this.config[this.device.device].items[item].count
|
1050
1066
|
}
|
1051
|
-
if (this.config[this.device.device].items[item].f_process_mode == '现场整改')
|
1067
|
+
if (this.config[this.device.device].items[item].f_process_mode == '现场整改'){
|
1052
1068
|
it.f_is_repaired = '已处理'
|
1053
1069
|
it.f_repair_date = Util.toStandardTimeString()
|
1054
1070
|
it.f_repairman = Vue.user.name
|
1055
1071
|
}
|
1056
|
-
if (this.config[this.device.device].items[item].type == 'selector' && this.config[this.device.device].items[item].f_item_value)
|
1072
|
+
if (this.config[this.device.device].items[item].type == 'selector' && this.config[this.device.device].items[item].f_item_value){
|
1057
1073
|
f_item_value = this.config[this.device.device].items[item].f_item_value
|
1058
1074
|
}
|
1059
1075
|
//tag)
|
1060
1076
|
//tag)
|
1061
|
-
this.$set('f_items['
|
1062
|
-
if (this.config[this.device.device].items[item].type == 'selector' ||
|
1063
|
-
if
|
1077
|
+
this.$set('f_items['+index+']',it)
|
1078
|
+
if (this.config[this.device.device].items[item].type == 'selector' ||this.config[this.device.device].items[item].type == 'inputSelector') {
|
1079
|
+
if(this.config[this.device.device].items[item].type == 'selector'){
|
1064
1080
|
// this.page['options' + index].push({
|
1065
1081
|
// label: "请选择",
|
1066
1082
|
// value: ''
|
1067
1083
|
// })
|
1068
1084
|
}
|
1069
1085
|
for (let i in this.config[this.device.device].items[item].options) {
|
1070
|
-
if
|
1086
|
+
if(typeof this.config[this.device.device].items[item].options[i]=='function'){
|
1071
1087
|
continue
|
1072
1088
|
}
|
1073
1089
|
this.page['options' + index].push({
|
@@ -1076,13 +1092,13 @@ export default {
|
|
1076
1092
|
tooltip: this.config[this.device.device].items[item].options[i].tooltip
|
1077
1093
|
})
|
1078
1094
|
}
|
1079
|
-
if
|
1080
|
-
this.$set('f_items['
|
1081
|
-
}
|
1082
|
-
this.$set('f_items['
|
1095
|
+
if(this.config[this.device.device].items[item].type == 'selector'){
|
1096
|
+
this.$set('f_items['+index+'].selected', f_item_value)
|
1097
|
+
}else if(this.config[this.device.device].items[item].type == 'inputSelector'){
|
1098
|
+
this.$set('f_items['+index+'].selected', f_item_value)
|
1083
1099
|
}
|
1084
1100
|
|
1085
|
-
this.$set('f_items['
|
1101
|
+
this.$set('f_items['+index+'].options',this.page['options' + index])
|
1086
1102
|
|
1087
1103
|
//tag)
|
1088
1104
|
} else if (this.config[this.device.device].items[item].type == 'radio' || this.config[this.device.device].items[item].type == 'checkbox') {
|
@@ -1090,7 +1106,7 @@ export default {
|
|
1090
1106
|
//tag
|
1091
1107
|
//tag)
|
1092
1108
|
for (let i in this.config[this.device.device].items[item].options) {
|
1093
|
-
if
|
1109
|
+
if(typeof this.config[this.device.device].items[item].options[i]=='function'){
|
1094
1110
|
continue
|
1095
1111
|
}
|
1096
1112
|
//tag
|
@@ -1110,20 +1126,20 @@ export default {
|
|
1110
1126
|
}
|
1111
1127
|
n = n + 1
|
1112
1128
|
}
|
1113
|
-
if
|
1129
|
+
if(!this.piece || JSON.stringify(this.piece) == '{}') {
|
1114
1130
|
// 如果没有,则新建
|
1115
|
-
this.$set('piece.f_items',
|
1131
|
+
this.$set('piece.f_items',this.f_items)
|
1116
1132
|
this.$set('piece.f_device_type', this.config[this.device.device].itemname)
|
1117
1133
|
this.prepare()
|
1118
1134
|
} else {
|
1119
1135
|
console.log('this.f_items12=', JSON.stringify(this.f_items))
|
1120
1136
|
// 已经存在,把之前的数据重新填入
|
1121
|
-
for (let f in this.f_items)
|
1122
|
-
if
|
1137
|
+
for (let f in this.f_items){
|
1138
|
+
if(typeof this.f_items[f]=='function'){
|
1123
1139
|
continue
|
1124
1140
|
}
|
1125
|
-
for
|
1126
|
-
if
|
1141
|
+
for(let p in this.piece.f_items) {
|
1142
|
+
if(typeof this.piece.f_items[p]=='function'){
|
1127
1143
|
continue
|
1128
1144
|
}
|
1129
1145
|
if (this.f_items[f].f_item_name == this.piece.f_items[p].f_item_name) {
|
@@ -1156,19 +1172,19 @@ export default {
|
|
1156
1172
|
this.$watch('f_items[' + f + '].f_item_value', function () {
|
1157
1173
|
this.getbiaodinumber()
|
1158
1174
|
})
|
1159
|
-
}
|
1175
|
+
}else if (this.f_items[f].f_item_name == '本次表底') {
|
1160
1176
|
//tag)
|
1161
1177
|
this.f_table_biaodi.index = f
|
1162
1178
|
this.$watch('f_items[' + f + '].f_item_value', function () {
|
1163
1179
|
this.getbiaodinumber()
|
1164
1180
|
})
|
1165
|
-
}
|
1181
|
+
}else if (this.f_items[f].f_item_name == '表底差值') {
|
1166
1182
|
//tag)
|
1167
1183
|
this.f_biaodi_number.index = f
|
1168
1184
|
} else if (this.f_items[f].f_item_name == '系统表底数') {
|
1169
1185
|
//tag)
|
1170
1186
|
this.f_meter_base2.index = f
|
1171
|
-
}
|
1187
|
+
} else if (this.f_items[f].f_item_name == '剩余气量') {
|
1172
1188
|
//tag)
|
1173
1189
|
this.f_gas_balance.index = f
|
1174
1190
|
this.$watch('f_items[' + f + '].f_item_value', function () {
|
@@ -1201,64 +1217,64 @@ export default {
|
|
1201
1217
|
} else if (this.f_items[f].f_item_name == '金额异常差值') {
|
1202
1218
|
//tag)
|
1203
1219
|
this.f_fee_aberrant_number.index = f
|
1204
|
-
}
|
1220
|
+
}else if (this.f_items[f].f_item_name == '表读数') {
|
1205
1221
|
//tag)
|
1206
1222
|
this.f_meter_base.index = f
|
1207
|
-
}
|
1223
|
+
}else if (this.f_items[f].f_item_name == '表剩余金额') {
|
1208
1224
|
//tag)
|
1209
1225
|
this.f_balance_amount.index = f
|
1210
|
-
}
|
1226
|
+
}else if (this.f_items[f].f_item_name == '字轮数') {
|
1211
1227
|
//tag)
|
1212
1228
|
this.f_meter_base1.index = f
|
1213
1229
|
this.$watch('f_items[' + f + '].f_item_value', function () {
|
1214
1230
|
this.getmeteraberrantnumber()
|
1215
1231
|
})
|
1216
|
-
}
|
1232
|
+
}else if (this.f_items[f].f_item_name == '表余额') {
|
1217
1233
|
//tag)
|
1218
1234
|
this.f_balance_amount1.index = f
|
1219
1235
|
this.$watch('f_items[' + f + '].f_item_value', function () {
|
1220
1236
|
this.getfeeaberrantnumber1()
|
1221
1237
|
})
|
1222
|
-
}
|
1238
|
+
}else if (this.f_items[f].f_item_name == '表数异常差值') {
|
1223
1239
|
//tag)
|
1224
1240
|
this.f_meter_aberrant_number1.index = f
|
1225
|
-
}
|
1241
|
+
}else if (this.f_items[f].f_item_name == '表金额异常差值') {
|
1226
1242
|
//tag)
|
1227
1243
|
this.f_fee_aberrant_number1.index = f
|
1228
|
-
}
|
1244
|
+
}else if (this.f_items[f].f_item_name == '燃气灶安装时间') {
|
1229
1245
|
this.$watch('f_items[' + f + '].f_item_value', function () {
|
1230
1246
|
this.deviceOverdueDefect(f, '燃气灶')
|
1231
1247
|
})
|
1232
|
-
}
|
1248
|
+
}else if (this.f_items[f].f_item_name == '燃气灶超期') {
|
1233
1249
|
this.f_stove.index = f
|
1234
1250
|
this.f_items[f].readonly = true
|
1235
|
-
}
|
1251
|
+
}else if (this.f_items[f].f_item_name == '壁挂炉安装时间') {
|
1236
1252
|
this.f_wall.index = f
|
1237
1253
|
this.$watch('f_items[' + f + '].f_item_value', function () {
|
1238
1254
|
this.deviceOverdueDefect(f, '壁挂炉')
|
1239
1255
|
})
|
1240
|
-
}
|
1256
|
+
}else if (this.f_items[f].f_item_name == '壁挂炉超期') {
|
1241
1257
|
this.f_wall.index = f
|
1242
1258
|
this.f_items[f].readonly = true
|
1243
|
-
}
|
1259
|
+
}else if (this.f_items[f].f_item_name == '热水器安装时间') {
|
1244
1260
|
this.f_water.index = f
|
1245
1261
|
this.$watch('f_items[' + f + '].f_item_value', function () {
|
1246
1262
|
this.deviceOverdueDefect(f, '热水器')
|
1247
1263
|
})
|
1248
|
-
}
|
1264
|
+
}else if (this.f_items[f].f_item_name == '热水器超期') {
|
1249
1265
|
this.f_water.index = f
|
1250
1266
|
this.f_items[f].readonly = true
|
1251
1267
|
}
|
1252
1268
|
}
|
1253
1269
|
}
|
1254
1270
|
for (let em in this.config[this.device.device].items) {
|
1255
|
-
if
|
1271
|
+
if(typeof this.config[this.device.device].items[em]=='function'){
|
1256
1272
|
continue
|
1257
1273
|
}
|
1258
1274
|
if (this.config[this.device.device].items[em].type == 'selector' && em == this.f_items[f].f_item_name) {
|
1259
|
-
this.f_items[f].options =
|
1275
|
+
this.f_items[f].options =[]
|
1260
1276
|
for (let k in this.config[this.device.device].items[em].options) {
|
1261
|
-
if
|
1277
|
+
if(typeof this.config[this.device.device].items[em].options[k]=='function'){
|
1262
1278
|
continue
|
1263
1279
|
}
|
1264
1280
|
this.f_items[f].options.push({
|
@@ -1270,316 +1286,26 @@ export default {
|
|
1270
1286
|
}
|
1271
1287
|
}
|
1272
1288
|
//tag)
|
1273
|
-
this.$set('piece.f_items',
|
1289
|
+
this.$set('piece.f_items',this.f_items)
|
1274
1290
|
}
|
1275
1291
|
this.towatch()
|
1276
1292
|
}
|
1277
1293
|
},
|
1278
1294
|
ready() {
|
1279
1295
|
this.prepare()
|
1280
|
-
//tag
|
1281
|
-
//tag
|
1282
|
-
// if(Vue.config.safecheck != undefined){
|
1283
|
-
// if(Vue.config.safecheck.ApproveConfig != undefined){
|
1284
|
-
// if(Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
|
1285
|
-
// this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
|
1286
|
-
// }
|
1287
|
-
// if(Vue.config.safecheck.ApproveConfig.dealdispose != undefined) {
|
1288
|
-
// this.dealdispose = Vue.config.safecheck.ApproveConfig.dealdispose
|
1289
|
-
// }
|
1290
|
-
// if(Vue.config.safecheck.ApproveConfig.showtorepair) {
|
1291
|
-
// this.deals=[{label: '现场整改', value: '现场整改'},
|
1292
|
-
// {label: '自行处理', value: '自行处理'},
|
1293
|
-
// {label: '转维修', value: '报修'}
|
1294
|
-
// ]
|
1295
|
-
// }
|
1296
|
-
// if(Vue.config.safecheck.ApproveConfig.Processing) {
|
1297
|
-
// if(Vue.config.safecheck.ApproveConfig.Processing.length > 0){
|
1298
|
-
// this.deals = Vue.config.safecheck.ApproveConfig.Processing
|
1299
|
-
// }
|
1300
|
-
// }
|
1301
|
-
// if(Vue.config.safecheck.ApproveConfig.showXCImg) {
|
1302
|
-
// this.showXCImg = true
|
1303
|
-
// }
|
1304
|
-
// if(Vue.config.safecheck.ApproveConfig.showZXTime) {
|
1305
|
-
// this.showZXTime = true
|
1306
|
-
// }
|
1307
|
-
// if(Vue.config.safecheck.ApproveConfig.showtorepair) {
|
1308
|
-
// }
|
1309
|
-
// if(Vue.config.safecheck.ApproveConfig.hiddendanger != undefined) {
|
1310
|
-
// if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >= 3) {
|
1311
|
-
// this.hiddenDangerImgNumber = 3
|
1312
|
-
// }else {
|
1313
|
-
// this.hiddenDangerImgNumber = parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger)
|
1314
|
-
// }
|
1315
|
-
// }
|
1316
|
-
// }
|
1317
|
-
// }
|
1318
|
-
// //tag
|
1319
|
-
// //tag)
|
1320
|
-
// //tag)
|
1321
|
-
// //tag)
|
1322
|
-
// //创建页面所需数据
|
1323
|
-
// this.$set('piece', this.paper['device'+this.device.n][this.idx])
|
1324
|
-
// //tag)
|
1325
|
-
// //tag)
|
1326
|
-
// let n = 0
|
1327
|
-
// for (let item in this.config[this.device.device].items) {
|
1328
|
-
// if(typeof this.config[this.device.device].items[item]=='function'){
|
1329
|
-
// continue
|
1330
|
-
// }
|
1331
|
-
// let index = this.config[this.device.device].items[item].index-1
|
1332
|
-
// this.$set('page.options' + index, [])
|
1333
|
-
// //tag)
|
1334
|
-
// //tag)
|
1335
|
-
// //tag)
|
1336
|
-
// // 先根据配置组接页面
|
1337
|
-
// let f_item_value
|
1338
|
-
// if(this.config[this.device.device].items[item].type == 'selector' || this.config[this.device.device].items[item].type == 'checkbox'){
|
1339
|
-
// f_item_value = []
|
1340
|
-
// // 判断选项的默认值
|
1341
|
-
// for (let defitem in this.config[this.device.device].items[item].options) {
|
1342
|
-
// if(typeof this.config[this.device.device].items[item].options[defitem]=='function'){
|
1343
|
-
// continue
|
1344
|
-
// }
|
1345
|
-
// let defopt = this.config[this.device.device].items[item].options[defitem]
|
1346
|
-
// if (defopt.isdefault) {
|
1347
|
-
// //tag
|
1348
|
-
// f_item_value[0] = defopt.data
|
1349
|
-
// }
|
1350
|
-
// }
|
1351
|
-
// // if(this.config[this.device.device].items[item].data){
|
1352
|
-
// // f_item_value.push(this.config[this.device.device].items[item].data)
|
1353
|
-
// // }
|
1354
|
-
// }else if(this.config[this.device.device].items[item].type == 'radio'){
|
1355
|
-
// //为radio添加默认值
|
1356
|
-
// f_item_value=''
|
1357
|
-
// //tag)
|
1358
|
-
// for (let defitem in this.config[this.device.device].items[item].options) {
|
1359
|
-
// if(typeof this.config[this.device.device].items[item].options[defitem]=='function'){
|
1360
|
-
// continue
|
1361
|
-
// }
|
1362
|
-
// //tag)
|
1363
|
-
// let defopt = this.config[this.device.device].items[item].options[defitem]
|
1364
|
-
// if (defopt.isdefault) {
|
1365
|
-
// //tag)
|
1366
|
-
// f_item_value = defopt.data
|
1367
|
-
// }
|
1368
|
-
// }
|
1369
|
-
// }else{
|
1370
|
-
// f_item_value = this.config[this.device.device].items[item].data ? this.config[this.device.device].items[item].data : ''
|
1371
|
-
// }
|
1372
|
-
// //tag)
|
1373
|
-
// let it = {
|
1374
|
-
// type: this.config[this.device.device].items[item].type,
|
1375
|
-
// f_item_name: item,
|
1376
|
-
// checkmust: this.config[this.device.device].items[item].checkmust,
|
1377
|
-
// f_item_value: f_item_value,
|
1378
|
-
// is_verification:this.config[this.device.device].items[item].is_verification,
|
1379
|
-
// verification_text:'',
|
1380
|
-
// verification_state:'',// ai验证是否通过 npass(未通过)/pass(通过)
|
1381
|
-
// f_is_defect: '',
|
1382
|
-
// multiple:this.config[this.device.device].items[item].multiple == true?this.config[this.device.device].items[item].multiple:false,
|
1383
|
-
// isshow:this.config[this.device.device].items[item].isshow == false?this.config[this.device.device].items[item].isshow:true,
|
1384
|
-
// readonly: this.config[this.device.device].items[item].readonly == true?true:false,
|
1385
|
-
// remark: this.config[this.device.device].items[item].remark ? this.config[this.device.device].items[item].remark : '',
|
1386
|
-
// f_path: '',
|
1387
|
-
// unit: this.config[this.device.device].items[item].unit ? this.config[this.device.device].items[item].unit : '',
|
1388
|
-
// tooltip:'',
|
1389
|
-
// f_live_dispose:'',
|
1390
|
-
// f_deal_dispose:'',
|
1391
|
-
// f_else: '',
|
1392
|
-
// f_p1_path: '',
|
1393
|
-
// f_p2_path: '',
|
1394
|
-
// f_p3_path: ''
|
1395
|
-
// }
|
1396
|
-
// //tag)
|
1397
|
-
// //tag)
|
1398
|
-
// this.$set('f_items['+index+']',it)
|
1399
|
-
// if (this.config[this.device.device].items[item].type == 'selector' ||this.config[this.device.device].items[item].type == 'inputSelector') {
|
1400
|
-
// if(this.config[this.device.device].items[item].type == 'selector'){
|
1401
|
-
// this.page['options' + index].push({
|
1402
|
-
// label: "请选择",
|
1403
|
-
// value: ''
|
1404
|
-
// })
|
1405
|
-
// }
|
1406
|
-
// for (let i in this.config[this.device.device].items[item].options) {
|
1407
|
-
// if(typeof this.config[this.device.device].items[item].options[i]=='function'){
|
1408
|
-
// continue
|
1409
|
-
// }
|
1410
|
-
// this.page['options' + index].push({
|
1411
|
-
// label: this.config[this.device.device].items[item].options[i].data,
|
1412
|
-
// value: this.config[this.device.device].items[item].options[i].data,
|
1413
|
-
// tooltip: this.config[this.device.device].items[item].options[i].tooltip
|
1414
|
-
// })
|
1415
|
-
// }
|
1416
|
-
// if(this.config[this.device.device].items[item].type == 'selector'){
|
1417
|
-
// this.$set('f_items['+index+'].selected', f_item_value)
|
1418
|
-
// }else if(this.config[this.device.device].items[item].type == 'inputSelector'){
|
1419
|
-
// this.$set('f_items['+index+'].selected', f_item_value)
|
1420
|
-
// }
|
1421
|
-
//
|
1422
|
-
// this.$set('f_items['+index+'].options',this.page['options' + index])
|
1423
|
-
//
|
1424
|
-
// //tag)
|
1425
|
-
// } else if (this.config[this.device.device].items[item].type == 'radio' || this.config[this.device.device].items[item].type == 'checkbox') {
|
1426
|
-
// //tag)
|
1427
|
-
// //tag
|
1428
|
-
// //tag)
|
1429
|
-
// for (let i in this.config[this.device.device].items[item].options) {
|
1430
|
-
// if(typeof this.config[this.device.device].items[item].options[i]=='function'){
|
1431
|
-
// continue
|
1432
|
-
// }
|
1433
|
-
// //tag
|
1434
|
-
// this.page['options' + index].push({
|
1435
|
-
// label: this.config[this.device.device].items[item].options[i].data,
|
1436
|
-
// value: this.config[this.device.device].items[item].options[i].data,
|
1437
|
-
// isdefect: this.config[this.device.device].items[item].options[i].isdefect,
|
1438
|
-
// level: this.config[this.device.device].items[item].options[i].level,
|
1439
|
-
// tooltip: this.config[this.device.device].items[item].options[i].tooltip
|
1440
|
-
// })
|
1441
|
-
// //tag)
|
1442
|
-
// }
|
1443
|
-
// //tag)
|
1444
|
-
// this.$set('f_items[' + index + '].options', this.page['options' + index])
|
1445
|
-
// this.$set('f_items[' + index + '].f_item_value', f_item_value)
|
1446
|
-
// //tag)
|
1447
|
-
// }
|
1448
|
-
// n = n + 1
|
1449
|
-
// }
|
1450
|
-
// if(!this.piece || JSON.stringify(this.piece) == '{}') {
|
1451
|
-
// // 如果没有,则新建
|
1452
|
-
// this.$set('piece.f_items',this.f_items)
|
1453
|
-
// this.$set('piece.f_device_type',this.device.device)
|
1454
|
-
// } else {
|
1455
|
-
// // 已经存在,把之前的数据重新填入
|
1456
|
-
// for (let f in this.f_items){
|
1457
|
-
// if(typeof this.f_items[f]=='function'){
|
1458
|
-
// continue
|
1459
|
-
// }
|
1460
|
-
// for(let p in this.piece.f_items) {
|
1461
|
-
// if(typeof this.piece.f_items[p]=='function'){
|
1462
|
-
// continue
|
1463
|
-
// }
|
1464
|
-
// if (this.f_items[f].f_item_name == this.piece.f_items[p].f_item_name) {
|
1465
|
-
// //tag)
|
1466
|
-
// //tag)
|
1467
|
-
// this.f_items[f] = Object.assign(this.f_items[f], this.piece.f_items[p])
|
1468
|
-
// //tag)
|
1469
|
-
// if (this.f_items[f].type == 'selector' || this.f_items[f].type == 'inputSelector') {
|
1470
|
-
// //tag)
|
1471
|
-
// //tag)
|
1472
|
-
// this.f_items[f].selected = this.piece.f_items[p].f_item_value
|
1473
|
-
// //tag)
|
1474
|
-
// }
|
1475
|
-
// // 取出特殊值
|
1476
|
-
// if (this.f_items[f].f_item_name == '初始表底') {
|
1477
|
-
// //tag)
|
1478
|
-
// this.f_initial_base.index = f
|
1479
|
-
// } else if (this.f_items[f].f_item_name == '累购气量') {
|
1480
|
-
// //tag)
|
1481
|
-
// this.f_total_gas.index = f
|
1482
|
-
// } else if (this.f_items[f].f_item_name == '已用气量') {
|
1483
|
-
// //tag)
|
1484
|
-
// this.f_table_base.index = f
|
1485
|
-
// this.$watch('f_items[' + f + '].f_item_value', function () {
|
1486
|
-
// this.getGasAberrantNumber('已用气量')
|
1487
|
-
// })
|
1488
|
-
// } else if (this.f_items[f].f_item_name == '剩余气量') {
|
1489
|
-
// //tag)
|
1490
|
-
// this.f_gas_balance.index = f
|
1491
|
-
// this.$watch('f_items[' + f + '].f_item_value', function () {
|
1492
|
-
// this.getGasAberrantNumber('')
|
1493
|
-
// })
|
1494
|
-
// } else if (this.f_items[f].f_item_name == '气量异常差值') {
|
1495
|
-
// //tag)
|
1496
|
-
// this.f_gas_aberrant_number.index = f
|
1497
|
-
// } else if (this.f_items[f].f_item_name == '累购金额') {
|
1498
|
-
// //tag)
|
1499
|
-
// this.f_total_fee.index = f
|
1500
|
-
// } else if (this.f_items[f].f_item_name == '已用金额') {
|
1501
|
-
// //tag)
|
1502
|
-
// this.f_fee_base.index = f
|
1503
|
-
// this.$watch('f_items[' + f + '].f_item_value', function () {
|
1504
|
-
// this.getFeeAberrantNumber('已用金额')
|
1505
|
-
// })
|
1506
|
-
// } else if (this.f_items[f].f_item_name == '剩余金额') {
|
1507
|
-
// //tag)
|
1508
|
-
// this.f_fee_balance.index = f
|
1509
|
-
// this.$watch('f_items[' + f + '].f_item_value', function () {
|
1510
|
-
// this.getFeeAberrantNumber('')
|
1511
|
-
// this.getFeeAberrantNumber2('')
|
1512
|
-
// })
|
1513
|
-
// } else if (this.f_items[f].f_item_name == '表端剩余金额') {
|
1514
|
-
// this.f_table_balance.index = f
|
1515
|
-
// this.$watch('f_items[' + f + '].f_item_value', function () {
|
1516
|
-
// this.getFeeAberrantNumber2('')
|
1517
|
-
// })
|
1518
|
-
// } else if (this.f_items[f].f_item_name == '金额异常差值') {
|
1519
|
-
// //tag)
|
1520
|
-
// this.f_fee_aberrant_number.index = f
|
1521
|
-
// }else if (this.f_items[f].f_item_name == '表读数') {
|
1522
|
-
// //tag)
|
1523
|
-
// this.f_meter_base.index = f
|
1524
|
-
// }else if (this.f_items[f].f_item_name == '表剩余金额') {
|
1525
|
-
// //tag)
|
1526
|
-
// this.f_balance_amount.index = f
|
1527
|
-
// }else if (this.f_items[f].f_item_name == '字轮数') {
|
1528
|
-
// //tag)
|
1529
|
-
// this.f_meter_base1.index = f
|
1530
|
-
// this.$watch('f_items[' + f + '].f_item_value', function () {
|
1531
|
-
// this.getmeteraberrantnumber()
|
1532
|
-
// })
|
1533
|
-
// }else if (this.f_items[f].f_item_name == '表余额') {
|
1534
|
-
// //tag)
|
1535
|
-
// this.f_balance_amount1.index = f
|
1536
|
-
// this.$watch('f_items[' + f + '].f_item_value', function () {
|
1537
|
-
// this.getfeeaberrantnumber1()
|
1538
|
-
// })
|
1539
|
-
// }else if (this.f_items[f].f_item_name == '表数异常差值') {
|
1540
|
-
// //tag)
|
1541
|
-
// this.f_meter_aberrant_number1.index = f
|
1542
|
-
// }else if (this.f_items[f].f_item_name == '表金额异常差值') {
|
1543
|
-
// //tag)
|
1544
|
-
// this.f_fee_aberrant_number1.index = f
|
1545
|
-
// }
|
1546
|
-
// }
|
1547
|
-
// }
|
1548
|
-
// for (let em in this.config[this.device.device].items) {
|
1549
|
-
// if(typeof this.config[this.device.device].items[em]=='function'){
|
1550
|
-
// continue
|
1551
|
-
// }
|
1552
|
-
// if (this.config[this.device.device].items[em].type == 'selector' && em == this.f_items[f].f_item_name) {
|
1553
|
-
// this.f_items[f].options =[]
|
1554
|
-
// for (let k in this.config[this.device.device].items[em].options) {
|
1555
|
-
// if(typeof this.config[this.device.device].items[em].options[k]=='function'){
|
1556
|
-
// continue
|
1557
|
-
// }
|
1558
|
-
// this.f_items[f].options.push({
|
1559
|
-
// label: this.config[this.device.device].items[em].options[k].data,
|
1560
|
-
// value: this.config[this.device.device].items[em].options[k].data
|
1561
|
-
// })
|
1562
|
-
// }
|
1563
|
-
// }
|
1564
|
-
// }
|
1565
|
-
// }
|
1566
|
-
// //tag)
|
1567
|
-
// this.$set('piece.f_items',this.f_items)
|
1568
|
-
// }
|
1569
|
-
// this.towatch()
|
1570
1296
|
},
|
1571
|
-
destroyed()
|
1297
|
+
destroyed(){
|
1572
1298
|
let nullCount = 0
|
1573
1299
|
let metertitles
|
1574
1300
|
//判断当前是否有选中项
|
1575
|
-
for (let row in this.f_items)
|
1576
|
-
if
|
1301
|
+
for (let row in this.f_items){
|
1302
|
+
if(typeof this.f_items[row]=='function'){
|
1577
1303
|
continue
|
1578
1304
|
}
|
1579
|
-
if
|
1305
|
+
if(this.f_items[row].selected && this.f_items[row].selected != '' && this.f_items[row].selected instanceof Array){
|
1580
1306
|
//tag
|
1581
1307
|
this.f_items[row].f_item_value = this.f_items[row].selected
|
1582
|
-
}
|
1308
|
+
}else if(this.f_items[row].selected && this.f_items[row].selected != ''){
|
1583
1309
|
//tag
|
1584
1310
|
this.f_items[row].f_item_value = this.f_items[row].selected
|
1585
1311
|
}
|
@@ -1599,7 +1325,7 @@ export default {
|
|
1599
1325
|
this.$set(`paper['device${this.device.n}'][${this.idx}]`, this.piece)
|
1600
1326
|
//tag
|
1601
1327
|
},
|
1602
|
-
computed:
|
1328
|
+
computed:{
|
1603
1329
|
|
1604
1330
|
}
|
1605
1331
|
}
|
@@ -1608,8 +1334,7 @@ export default {
|
|
1608
1334
|
.class-erro {
|
1609
1335
|
color: #a94442;
|
1610
1336
|
}
|
1611
|
-
|
1612
|
-
.fivelabel {
|
1337
|
+
.fivelabel{
|
1613
1338
|
border: none;
|
1614
1339
|
border-left: 5px solid #A2C2EB;
|
1615
1340
|
float: left;
|
@@ -1619,8 +1344,7 @@ export default {
|
|
1619
1344
|
word-wrap: break-word;
|
1620
1345
|
white-space: normal;
|
1621
1346
|
}
|
1622
|
-
|
1623
|
-
.radiolabel {
|
1347
|
+
.radiolabel{
|
1624
1348
|
border: none;
|
1625
1349
|
border-left: 5px solid #A2C2EB;
|
1626
1350
|
float: left;
|
@@ -1640,7 +1364,6 @@ export default {
|
|
1640
1364
|
word-wrap: break-word;
|
1641
1365
|
white-space: normal;
|
1642
1366
|
}
|
1643
|
-
|
1644
1367
|
.textlabel1 {
|
1645
1368
|
border: none;
|
1646
1369
|
border-left: 5px solid #f7cb32;
|
@@ -1650,12 +1373,10 @@ export default {
|
|
1650
1373
|
word-wrap: break-word;
|
1651
1374
|
white-space: normal;
|
1652
1375
|
}
|
1653
|
-
|
1654
|
-
.spanrodio {
|
1376
|
+
.spanrodio{
|
1655
1377
|
margin-right: 10px;
|
1656
1378
|
}
|
1657
|
-
|
1658
|
-
.div-photo {
|
1379
|
+
.div-photo{
|
1659
1380
|
width: auto;
|
1660
1381
|
height: auto;
|
1661
1382
|
/* margin-top: 10px; */
|
@@ -1663,14 +1384,12 @@ export default {
|
|
1663
1384
|
bottom: 10px;
|
1664
1385
|
right: 10px;
|
1665
1386
|
}
|
1666
|
-
|
1667
|
-
.panel-self {
|
1387
|
+
.panel-self{
|
1668
1388
|
border-radius: 5px;
|
1669
|
-
border:
|
1389
|
+
border:1px solid #c5e1f7;
|
1670
1390
|
//background-color: #F2F6FA;
|
1671
1391
|
}
|
1672
|
-
|
1673
|
-
.btn-photo {
|
1392
|
+
.btn-photo{
|
1674
1393
|
border: 0;
|
1675
1394
|
border-radius: 7px;
|
1676
1395
|
background-color: #7dc1f4;
|
@@ -1678,3 +1397,4 @@ export default {
|
|
1678
1397
|
height: 20%;
|
1679
1398
|
}
|
1680
1399
|
</style>
|
1400
|
+
|