safecheck-client 4.0.2-6 → 4.0.2-60

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.
Files changed (67) hide show
  1. package/package.json +1 -1
  2. package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1184
  3. package/src/components/android/AndroidNotifiedDeal.vue +417 -0
  4. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  5. package/src/components/android/SafeRightTree.vue +218 -218
  6. package/src/components/android/SafecheckDevices.vue +1340 -1340
  7. package/src/components/android/week/CheckResultSimple.vue +251 -0
  8. package/src/components/android/week/FirstWeekCheck.vue +275 -0
  9. package/src/components/android/week/StepHeaderBar.vue +457 -0
  10. package/src/components/android/week/WeekCheck.vue +209 -0
  11. package/src/components/android/week/WeekCheckPaper.vue +219 -0
  12. package/src/components/android/week/WeekCheckPlan.vue +145 -0
  13. package/src/components/checkplan/SelectCheckPlan.vue +39 -0
  14. package/src/components/paper/safetyledger.vue +198 -0
  15. package/src/components/pc/CheckBook.vue +303 -303
  16. package/src/components/pc/CheckBookArea.vue +146 -146
  17. package/src/components/pc/CheckBookCompany.vue +144 -144
  18. package/src/components/pc/CheckBookDetails.vue +161 -161
  19. package/src/components/pc/CheckBookEntry.vue +60 -60
  20. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  21. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  22. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  23. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  24. package/src/components/pc/DefectDeal.vue +6 -2
  25. package/src/components/planmanage/checkUserList.vue +1 -1
  26. package/src/components/querycheckpaper/CheckSearchUser.vue +2 -1
  27. package/src/components/report/CheckPlanAreaList.vue +53 -7
  28. package/src/filiale/jinhong/android/AndroidDefectDeal.vue +722 -0
  29. package/src/filiale/jinhong/android/AndroidNotifiedDeal.vue +521 -0
  30. package/src/filiale/jinhong/android/CurrentCreate.vue +35 -13
  31. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +28 -3
  32. package/src/filiale/jinhong/android/SafecheckOrderV.vue +2300 -0
  33. package/src/filiale/jinhong/android.js +4 -1
  34. package/src/filiale/jinhong/pc/CheckBookList.vue +28 -18
  35. package/src/filiale/jinhong/pc/CheckSearchUser.vue +42 -2
  36. package/src/filiale/jinhong/pc/NewCheckpaper.vue +1958 -0
  37. package/src/filiale/jinhong/pc/PaperList.vue +5 -1
  38. package/src/filiale/jinhong/pc/checkPlanList.vue +73 -24
  39. package/src/filiale/jinhong/pc.js +1 -0
  40. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  41. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  42. package/src/filiale/meihekou/android/CurrentCreate.vue +16 -0
  43. package/src/filiale/meihekou/android/PaperFeedback.vue +1545 -1542
  44. package/src/filiale/meihekou/android/SafecheckDevices.vue +1343 -1340
  45. package/src/filiale/meihekou/android/SafecheckOrderV.vue +27 -28
  46. package/src/filiale/meihekou/android.js +22 -22
  47. package/src/filiale/meihekou/pc/CheckDetail.vue +217 -0
  48. package/src/filiale/meihekou/pc/CheckPlan.vue +52 -0
  49. package/src/filiale/meihekou/pc/CheckPlanAreaList.vue +505 -0
  50. package/src/filiale/meihekou/pc/NewCheckpaper.vue +2 -1
  51. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2051 -2050
  52. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1 -0
  53. package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -0
  54. package/src/filiale/meihekou/pc.js +18 -15
  55. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +2 -2
  56. package/src/filiale/taiyuan/android/AddPlanItem.vue +457 -456
  57. package/src/filiale/taiyuan/android/SafecheckDevices.vue +1343 -0
  58. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2347 -2347
  59. package/src/filiale/taiyuan/android.js +1 -0
  60. package/src/filiale/xinkang/android/SafecheckDevices.vue +2 -2
  61. package/src/filiale/xinkang/android/SafecheckOrderV.vue +9 -2
  62. package/src/filiale/xinkang/pc/NewCheckpaper.vue +17 -46
  63. package/src/filiale/xinliansihui/pc/PaperList.vue +814 -0
  64. package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -0
  65. package/src/filiale/xinliansihui/pc.js +13 -0
  66. package/src/safecheck-android.js +12 -0
  67. package/src/safecheck.js +3 -0
@@ -0,0 +1,251 @@
1
+ <template>
2
+ <div class="select-overspread repair-bg auto" style="padding-bottom:5px;">
3
+ <div class="panel panel-default auto repair-info-content">
4
+ <div class="panel-body" style="padding: 0">
5
+ <!-- 周检项内容 -->
6
+ <div class="auto repair-info-content compatible" style="padding: 0">
7
+ <div class="row auto" style="padding: 0">
8
+ <div class="col-xs-12 col-sm-12 col-md-12 mg8" v-show="row.isshow" v-for="(idxs,row) in items" style="padding: 4px; border:1px solid #D4D4D4;border-bottom: 0" >
9
+ <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}}</label>
10
+ <label v-if="row.type == 'radio'" v-show="row.isshow" class="radiolabel">{{row.f_item_name}}</label>
11
+ <label v-if="row.type == 'text'" v-show="row.isshow" class="textlabel1">{{row.f_item_name}}</label>
12
+ <label v-if="row.type == 'picture' || row.type == 'checkbox'" v-show="row.isshow" class="textlabel">{{row.f_item_name}}</label>
13
+ <div style="clear: both" v-if="row.type == 'picture'" class="form-group col-sm-12" >
14
+ <div slot="modal-body" class="modal-body">
15
+ <div class="auto" :class="style__">
16
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
17
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
18
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px" >
19
+ <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px" v-for="(index,img) in row.images">
20
+ <img-self v-if="row.state === '未检'" :src="img.f_path" :alt="row.f_item_name" :width="140" :height="170"></img-self>
21
+ <img-self v-if="row.state === '已检'" :src="'/rs/image/file/'+img.filename" :alt="row.f_item_name" :width="140" :height="170"></img-self>
22
+ <img v-if="!row.readonly" src="../../../assets/删除.png" @click="delfile(img.f_path,index,idxs)" style="width: 15px;margin-top: -80px" alt="">
23
+ </div>
24
+ </div>
25
+ <div class="row text-right div-photo">
26
+ <button v-if="!row.readonly" type="button" name="button" class="btn btn-photo" @click="takePic(row.f_item_name,idxs)">拍照</button>
27
+ </div>
28
+ </div>
29
+ </div>
30
+ </div>
31
+ </div>
32
+ </div>
33
+
34
+ <div style="float: left;width:60%" class="form-group" v-if="row.type == 'string'" v-show="row.isshow">
35
+ <input type="text" class="form-control" maxlength="100" v-model="row.f_item_value" :readonly="role == 'androidview' || row.readonly">
36
+ </div>
37
+ <div style="float: left;width:60%" class="form-group col-sm-12" v-if="row.type == 'date'" v-show="row.isshow">
38
+ <datepicker id="f_making_date" :placeholder= row.f_item_name
39
+ :value.sync="row.f_item_value"
40
+ v-if="row.type == 'date'"
41
+ v-show="row.isshow"
42
+ :disabled-days-of-Week="[]"
43
+ :format="'yyyy-MM-dd HH:mm:ss'"
44
+ readonly
45
+ >
46
+ </datepicker>
47
+ </div>
48
+ <div style="float: left;width:60%" class="form-group" v-if="row.type == 'number'" v-show="row.isshow">
49
+ <input type="text" class="form-control" maxlength="100" v-model="row.f_item_value" onkeyup="value=value.replace(/[^\d\.-]/g,'')" :readonly="row.readonly">
50
+ </div>
51
+ <v-select style="float: left" :value.sync="row.selected"
52
+ v-model="row.selected"
53
+ v-if="row.type == 'selector'"
54
+ :search="false"
55
+ v-show="row.isshow"
56
+ placeholder='请选择'
57
+ :options="row.options"
58
+ :disabled="row.readonly"
59
+ @change="changse"
60
+ @click="transelation(idxs)"
61
+ :multiple="row.multiple"
62
+ :value-single="!row.multiple"
63
+ :close-on-select="!row.multiple" clear-button></v-select>
64
+ <div style="float: left;width: 30%" class="form-group" v-if="row.type == 'radio'">
65
+ <div class="col-xs-6 col-sm-6 col-md-6" v-for="item in row.options">
66
+ <input type="radio" :name="row.f_item_name" :value="item.value" :disabled="row.readonly" v-model="row.f_item_value" >
67
+ <span>{{item.label}}</span>
68
+ </div>
69
+ </div>
70
+ <div v-if="row.type == 'checkbox'" class="col-xs-12 col-sm-12 col-md-12" style="white-space: nowrap" >
71
+ <div style="float: left" v-for="item in row.options">
72
+ <input type="checkbox" :name="row.f_item_name" :value="item.value" :disabled="row.readonly" v-model="row.f_item_value">
73
+ <span>{{item.label}}</span>
74
+ </div>
75
+ </div>
76
+
77
+ </div>
78
+ </div>
79
+ </div>
80
+ </div>
81
+ </div>
82
+ </div>
83
+ </template>
84
+ <script>
85
+ import Vue from 'vue'
86
+ import * as Util from '../../Util'
87
+
88
+ export default {
89
+ title: '周检列表信息',
90
+ data() {
91
+ return {
92
+ selectindex: null
93
+ }
94
+ },
95
+ props: ['itemname','items'],
96
+ ready() {
97
+ },
98
+ methods: {
99
+ delfile(fileName, index,idxs) {
100
+ this.items[idxs].images.splice(index, 1)
101
+ HostApp.delfile(fileName)
102
+ },
103
+ cameraCallBack(fileName,idxs) {
104
+ let path = fileName
105
+ HostApp.__this__.items[idxs].images.push({
106
+ f_path: path
107
+ })
108
+ HostApp.__callback__ = null
109
+ HostApp.__this__ = null
110
+ },
111
+ takePic(title, idxs) {
112
+ HostApp.__callback__ = this.cameraCallBack
113
+ HostApp.__this__ = this
114
+ let fileName = Util.guid() + '-' + '.jpg'
115
+ HostApp._open_a_page({
116
+ type: 'boomerang',
117
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
118
+ param: {
119
+ file: fileName,
120
+ requestCode: 111,
121
+ callback: 'javascript:HostApp.__callback__( "%s","'+ idxs + '");',
122
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
123
+ }
124
+ })
125
+ },
126
+ changse(val){
127
+ if(val == undefined){
128
+ return
129
+ }
130
+ if(this.selectindex != null) {
131
+ if(this.items[this.selectindex].type == 'selector'){
132
+ this.items[this.selectindex].f_item_value = val
133
+ }
134
+ }
135
+ },
136
+ transelation(val){
137
+ this.selectindex = val
138
+ },
139
+ },
140
+ computed:{
141
+ },
142
+ watch: {
143
+ 'itemname'(){
144
+ for (let item in this.items) {
145
+ if (this.items[item].type === 'selector') {
146
+ if (this.items[item].state === '未检'){
147
+ let page = [
148
+ {
149
+ label: "请选择",
150
+ value: ''
151
+ }
152
+ ]
153
+
154
+ for (let i in this.items[item].options) {
155
+ if (Util.isEmpty(this.items[item].f_item_value) && this.items[item].options[i].isdefault){
156
+ this.$set(`items[${item}].f_item_value`, this.items[item].options[i].data)
157
+ this.items[item].f_item_value = this.items[item].options[i].data
158
+ }
159
+ page.push({
160
+ label: this.items[item].options[i].data,
161
+ value: this.items[item].options[i].data
162
+ })
163
+ }
164
+ this.items[item].options = page
165
+ this.$set(`items[${item}].options`, page)
166
+ }
167
+ this.$set(`items[${item}].selected`, this.items[item].f_item_value)
168
+ } else if (this.items[item].type === 'radio' || this.items[item].type === 'checkbox') {
169
+ if (this.items[item].state === '未检'){
170
+ let page = []
171
+ for (let i in this.items[item].options) {
172
+ page.push({
173
+ label: this.items[item].options[i].data,
174
+ value: this.items[item].options[i].data
175
+ })
176
+ if (Util.isEmpty(this.items[item].f_item_value) && this.items[item].options[i].isdefault){
177
+ this.$set(`items[${item}].f_item_value`, this.items[item].options[i].data)
178
+ this.items[item].f_item_value = this.items[item].options[i].data
179
+ }
180
+ }
181
+ this.items[item].options = page
182
+ this.$set(`items[${item}].options`, page)
183
+ }
184
+ }
185
+ }
186
+ }
187
+ },
188
+ }
189
+ </script>
190
+ <style lang="less" scoped>
191
+ .class-erro {
192
+ color: #a94442;
193
+ }
194
+ .fivelabel{
195
+ border: none;
196
+ float: left;
197
+ width: 35%;
198
+ margin-bottom: 3px;
199
+ text-align: left;
200
+ word-wrap: break-word;
201
+ white-space: normal;
202
+ }
203
+ .radiolabel{
204
+ border: none;
205
+ float: left;
206
+ width: 65%;
207
+ margin-bottom: 3px;
208
+ text-align: left;
209
+ word-wrap: break-word;
210
+ white-space: normal;
211
+ }
212
+
213
+ .textlabel {
214
+ border: none;
215
+ width: 100%;
216
+ margin-bottom: 3px;
217
+ text-align: left;
218
+ word-wrap: break-word;
219
+ white-space: normal;
220
+ }
221
+ .textlabel1 {
222
+ border: none;
223
+ width: 100%;
224
+ margin-bottom: 3px;
225
+ text-align: left;
226
+ word-wrap: break-word;
227
+ white-space: normal;
228
+ }
229
+ .spanrodio{
230
+ margin-right: 10px;
231
+ }
232
+ .div-photo{
233
+ width: auto;
234
+ height: auto;
235
+ position: absolute;
236
+ bottom: 10px;
237
+ right: 10px;
238
+ }
239
+ .panel-self{
240
+ border-radius: 5px;
241
+ border:1px solid #c5e1f7;
242
+ }
243
+ .btn-photo{
244
+ border: 0;
245
+ border-radius: 7px;
246
+ background-color: #7dc1f4;
247
+ font: 15px PingFang-SC-Bold;
248
+ height: 20%;
249
+ }
250
+ </style>
251
+
@@ -0,0 +1,275 @@
1
+ <template>
2
+ <work-busy :is-busy="loading"></work-busy>
3
+ <div class="auto">
4
+ <div v-show="!showcheck">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfsearch' v-ref:cri>
7
+ <div partial>
8
+ <form>
9
+ <div class="row app-row">
10
+ <div class="col-xs-4">
11
+ <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
12
+ <label class="font text-left">表 &nbsp;&nbsp; &nbsp;&nbsp; 号:</label>
13
+ </div>
14
+ <div class="col-xs-8" >
15
+ <input class="search_input input-font"
16
+ v-model=model.f_meternumber condition="f_meternumber = '{}'" style="width: 70%" placeholder="请输入表号" />
17
+ <button type="button" name="button" class="btn btn-primary" style="width: 25%" @click="$parent.$parent.scan">扫码</button>
18
+ </div>
19
+ </div>
20
+ <div class="row text-center" style="margin-top: 20px;">
21
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
22
+ <button v-if="$parent.$parent.showbutton && $parent.$parent.model.rows.length == 0" type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="$parent.$parent.showModal">执行首检</button>
23
+ </div>
24
+ </form>
25
+ </div>
26
+ </criteria>
27
+
28
+ <list :model="model" partial='list'>
29
+ <div partial>
30
+ <div @click="$parent.$parent.$parent.inspect(row)" class="auto app-text" style="margin-top: 5px;">
31
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
32
+ <div class="panel-body panel-self">
33
+ <div class="row">
34
+ <p class="panel-title col-xs-4 text-left font">表号</p>
35
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
36
+ </div>
37
+ <div class="row">
38
+ <p class="panel-title col-xs-4 text-left font">首检日期</p>
39
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_first_inspection_date }}</p>
40
+ </div>
41
+ <div class="row">
42
+ <p class="panel-title col-xs-4 text-left font">首检机构</p>
43
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_inspection_agency }}</p>
44
+ </div>
45
+ <div class="row">
46
+ <p class="panel-title col-xs-4 text-left font">气表品牌</p>
47
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meter_brand }}</p>
48
+ </div>
49
+ <div class="row">
50
+ <p class="panel-title col-xs-4 text-left font">气表型号</p>
51
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meter_style }}</p>
52
+ </div>
53
+ </div>
54
+ </div>
55
+
56
+ </div>
57
+ </div>
58
+ </list>
59
+ </criteria-paged>
60
+ </div>
61
+ <div v-show="showcheck">
62
+ <check-rsult-simple :items="weekCheck" :itemname="itemname"></check-rsult-simple>
63
+ <div class="row text-center" style="margin-top: 20px;">
64
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="colse">取消</button>
65
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="uploadCheckPaper">提交</button>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ </template>
70
+
71
+ <script>
72
+ import {HttpResetClass, PagedList} from 'vue-client'
73
+ import Vue from 'vue'
74
+ import * as Util from '../../Util'
75
+
76
+ export default {
77
+ title: '首检',
78
+ data () {
79
+ let model = new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/getFirstWeekTable`, 20,
80
+ {
81
+ f_orgids:'this.f_orgids'
82
+ })
83
+ model.f_orgids = Vue.user.orgid
84
+ return {
85
+ model: model,
86
+ weekCheck:[],
87
+ useritem:{},
88
+ weekConfig:{},
89
+ showcheck:false,
90
+ loading: false,
91
+ showbutton:false,
92
+ itemname:''
93
+ }
94
+ },
95
+ ready () {
96
+ this.getweekconfig()
97
+ },
98
+ computed: {
99
+ },
100
+ methods:{
101
+ getweekconfig(){
102
+ const http = new HttpResetClass()
103
+ http.load('post',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getWeekCheckTypeByType`, {f_safecheck_type: '首检' }).then(res=>{
104
+ if (res.data && res.data.length > 0 ){
105
+ this.weekConfig = res.data[0]
106
+ }
107
+ })
108
+ },
109
+ getdetails(){
110
+ const json = JSON.parse(this.weekConfig.f_json)
111
+ this.weekCheck = []
112
+ if (json && json.length > 0){
113
+ for (let i = 0; i < json.length; i++){
114
+ if (json[i].itemname === '首检'){
115
+ json[i].items.forEach(row => {
116
+ this.weekCheck.push({
117
+ f_item_name: row.itemname,
118
+ f_item_value: row.f_item_value || '',
119
+ options:row.options,
120
+ type: row.type,
121
+ isshow:true,
122
+ images: row.images|| [],
123
+ multiple: row.multiple?row.multiple:false,
124
+ readonly:false,
125
+ state:'未检'
126
+ })
127
+ })
128
+ }
129
+ }
130
+ }
131
+ },
132
+ scan(){
133
+ HostApp.__this__=this,
134
+ HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
135
+ },
136
+ getCode(){
137
+ let datapa = HostApp.getCode().data;
138
+ this.$refs.paged.$refs.cri.model.f_meternumber=datapa
139
+ },
140
+ inspect (row) {
141
+ this.getdetails()
142
+ this.useritem = row
143
+ this.weekCheck.forEach(item=>{
144
+ if (item.f_item_name === '表号' && !Util.isEmpty(row.f_meternumber)){
145
+ item.f_item_value = row.f_meternumber
146
+ item.readonly = true
147
+ }
148
+ if (item.f_item_name === '气表品牌' && !Util.isEmpty(row.f_meter_brand)){
149
+ item.f_item_value = row.f_meter_brand
150
+ item.readonly = true
151
+ }
152
+ if (item.f_item_name === '气表型号' && !Util.isEmpty(row.f_meter_style)){
153
+ item.f_item_value = row.f_meter_style
154
+ item.readonly = true
155
+ }
156
+ })
157
+ this.itemname = '首检'
158
+ this.showcheck = true
159
+ },
160
+ showModal(){
161
+ this.getdetails()
162
+ this.itemname = '首检'
163
+ this.showcheck = true
164
+ },
165
+ colse(){
166
+ this.getdetails()
167
+ this.itemname = ''
168
+ this.$refs.paged.$refs.cri.search()
169
+ this.showcheck = false
170
+ this.loading = false
171
+ this.showbutton = false
172
+ },
173
+ uploadCheckPaper(){
174
+ this.loading = true
175
+ const json = JSON.parse(this.weekConfig.f_json)
176
+ json.forEach(res=>{
177
+ if (res.itemname === '首检'){
178
+ res.items = this.weekCheck
179
+ }
180
+ })
181
+ const http = new HttpResetClass()
182
+ const weekCheckpaper = {
183
+ f_meter_brand: this.useritem.f_meter_brand,
184
+ f_meter_style: this.useritem.f_meter_style,
185
+ f_meternumber: this.useritem.f_meternumber,
186
+ f_device_address: this.useritem.f_device_address,
187
+ f_address: this.useritem.f_device_address,
188
+ f_operatorid: Vue.user.id,
189
+ f_operator: Vue.user.name,
190
+ f_complete: '已完成',
191
+ f_entry_status: '正常',
192
+ f_safe_type: '首检',
193
+ f_state: '已检',
194
+ f_safe_content: json,
195
+ f_safecheck_type_id: this.weekConfig.f_security_check_type_id,
196
+ f_safe_type_version: this.weekConfig.version,
197
+ f_upload_date: Util.toStandardTimeString(),
198
+ f_filialeid: Vue.user.orgid,
199
+ f_orgid: Vue.user.orgid,
200
+ f_orgname: Vue.user.orgs,
201
+ }
202
+ this.weekCheck.forEach(item => {
203
+ if (item.f_item_name === '表号'){
204
+ weekCheckpaper.f_meternumber = item.f_item_value
205
+ }
206
+ if (item.f_item_name === '气表品牌'){
207
+ weekCheckpaper.f_meter_brand = item.f_item_value
208
+ }
209
+ if (item.f_item_name === '气表型号'){
210
+ weekCheckpaper.f_meter_style = item.f_item_value
211
+ }
212
+ if (item.f_item_name === '检定机构'){
213
+ weekCheckpaper.f_last_inspection_agency = item.f_item_value
214
+ }
215
+ if (item.f_item_name === '检定时间'){
216
+ weekCheckpaper.f_complete_date = item.f_item_value
217
+ }
218
+ if (item.f_item_name === '检定结果'){
219
+ weekCheckpaper.f_last_inspection_result = item.f_item_value
220
+ }
221
+ })
222
+ http.load('post',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/saveWeekPaper`, weekCheckpaper, {resolveMsg: '首检成功!', rejectMsg: '首检失败,请联系管理员检查!'}).then(res=>{
223
+ if (res.data){
224
+ this.colse()
225
+ }
226
+ })
227
+ this.loading = false
228
+ },
229
+ selfsearch(args){
230
+ if (Util.isEmpty(args.model.f_meternumber)){
231
+ this.$showMessage("请输入表号查询!")
232
+ return
233
+ }
234
+ this.showbutton = true
235
+ this.model.search(args.condition, args.model)
236
+ }
237
+ }
238
+ }
239
+ </script>
240
+ <style scoped>
241
+ .app-row {
242
+ background-color: white;
243
+ padding: 10px 10px 0 10px;
244
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
245
+ }
246
+ .search_input {
247
+ border: 0;
248
+ outline: none;
249
+ }
250
+ .font{
251
+ font: 15px PingFang-SC-Medium;
252
+ color: #666666;
253
+ }
254
+ .input-font{
255
+ font: 15px PingFang-SC-Medium;
256
+ color: #333333;
257
+ }
258
+ .btn-font{
259
+ font:600 16px PingFang-SC-Bold;
260
+ color: #499EDF;
261
+ }
262
+ .btn-color{
263
+ background-color: #FFFFFF;
264
+ border-radius: 10px ;
265
+ border: 1px solid #499EDF;
266
+ }
267
+ .app-text {
268
+ font-size: 12px;
269
+ }
270
+ .panel-self{
271
+ border-radius: 10px;
272
+ border:1px solid #499EDF;
273
+ background-color: #F8F8F8;
274
+ }
275
+ </style>