safecheck-client 3.0.34-91 → 3.0.34-93

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "safecheck-client",
3
3
  "//": "主分支版本别乱升,测试包的版本直接发包(建议使用1.XX.XX-XXX格式作为测试包,不要频繁升级第三位版本号),别提交版本号。切了分支切记把主分支版本升了,保证主分支始终是最高版本!!!!!",
4
- "version": "3.0.34-91",
4
+ "version": "3.0.34-93",
5
5
  "description": "安检模块 前端组件",
6
6
  "author": "丁新 <417755458@qq.com>",
7
7
  "license": "ISC",
@@ -98,8 +98,8 @@
98
98
  </div>
99
99
  </div>
100
100
  <div class="row" style="text-align: center;background-color: #ffffff;">
101
- <label class="font text-left" style="padding: 15px;" @click="showView=0" :style="{'color':showView == 0?'#003fffcf':'#a8a4a4'}">安检记录</label>
102
- <label class="font text-left" style="padding: 15px;" @click="showView=1" :style="{'color':showView == 1?'#003fffcf':'#a8a4a4'}">物联网表上报情况</label>
101
+ <label class="font text-left" style="padding: 15px;" @click="showView=0" :style="{'color':showView == 0?'#1890FF':'#a8a4a4'}">安检记录</label>
102
+ <label class="font text-left" style="padding: 15px;" @click="showView=1" :style="{'color':showView == 1?'#1890FF':'#a8a4a4'}">物联网表上报情况</label>
103
103
  </div>
104
104
  <div style="margin-top: 10px" v-if="showView === 0" class="panel panel-default well" v-for="(idx,row) in model">
105
105
  <div class="bg-info" @click="viewDetails(row)">
@@ -149,48 +149,48 @@
149
149
  </div>
150
150
  </div>
151
151
  </div>
152
- <div style="margin-top: 10px" v-if="showView === 1" class="panel panel-default well" v-for="(idx,row) in model">
153
- <div class="bg-info" @click="viewDetails(row)">
152
+ <div style="margin-top: 10px" v-if="showView === 1" class="panel panel-default well" v-for="(idx,row) in model2">
153
+ <div class="bg-info">
154
154
  <div class="row form-group">
155
155
  <div class="col-xs-12 col-sm-12 col-md-12">
156
156
  <div class="row app-row">
157
157
  <div class="col-xs-3">
158
- <label class="font text-left lable">安检时间</label>
158
+ <label class="font text-left lable">用气量</label>
159
159
  </div>
160
160
  <div class="col-xs-8" >
161
- <p>{{ row.f_offsite_time }}</p>
161
+ <p>{{ row.f_oughtamount }}</p>
162
162
  </div>
163
163
  </div>
164
164
  <div class="row app-row">
165
165
  <div class="col-xs-3">
166
- <label class="font text-left lable">安检人员</label>
166
+ <label class="font text-left lable">用气金额</label>
167
167
  </div>
168
168
  <div class="col-xs-8" >
169
- <p>{{ row.f_checker_name }}</p>
169
+ <p>{{ row.f_oughtfee }}</p>
170
170
  </div>
171
171
  </div>
172
172
  <div class="row app-row">
173
173
  <div class="col-xs-3">
174
- <label class="font text-left lable">安检状态</label>
174
+ <label class="font text-left lable">本期余额</label>
175
175
  </div>
176
176
  <div class="col-xs-8" >
177
- <p>{{ row.f_entry_status }}</p>
177
+ <p>{{ row.f_curbalance }}</p>
178
178
  </div>
179
179
  </div>
180
180
  <div class="row app-row">
181
181
  <div class="col-xs-3">
182
- <label class="font text-left lable">安检结果</label>
182
+ <label class="font text-left lable">上期余额</label>
183
183
  </div>
184
184
  <div class="col-xs-8" >
185
- <p>{{ row.f_defect_content.includes('正常') ? '正常' : '有隐患' }}</p>
185
+ <p>{{ row.f_balance }}</p>
186
186
  </div>
187
187
  </div>
188
188
  <div class="row app-row">
189
189
  <div class="col-xs-3">
190
- <label class="font text-left lable">整改内容</label>
190
+ <label class="font text-left lable">上报时间</label>
191
191
  </div>
192
192
  <div class="col-xs-8" >
193
- <p>{{ row.f_defect_text || '无' }}</p>
193
+ <p>{{ row.f_operate_date }}</p>
194
194
  </div>
195
195
  </div>
196
196
  </div>
@@ -210,6 +210,7 @@ export default {
210
210
  return {
211
211
  model: [],
212
212
  showView:0,
213
+ model2:[],
213
214
  f_safecheck_code: ''
214
215
  }
215
216
  },
@@ -229,29 +230,41 @@ export default {
229
230
  data: {
230
231
  items: "tcp.*,ui.f_user_state,uf.f_table_state,uf.f_meternumber,uf.f_gasproperties as uf_gasproperties,ts.f_price_name,tg.f_meter_brand,CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END as f_defect_text",
231
232
  tablename: 't_check_paper tcp left join t_qr_code tqr on tcp.f_userinfo_code = tqr.f_userinfo_id ' +
232
- 'left join t_userinfo ui on ui.f_userinfo_id = tcp.f_userinfoid ' +
233
- 'left join t_userfiles uf on ui.f_userinfo_id = uf.f_userinfo_id ' +
233
+ 'left join t_userinfo ui on ui.f_userinfo_id = tcp.f_userinfoid and ui.f_user_state != \'无效\'' +
234
+ 'left join t_userfiles uf on ui.f_userinfo_id = uf.f_userinfo_id and uf.f_table_state in (\'正常\',\'停用\')' +
234
235
  'left join t_stairprice ts on uf.f_price_id = ts.id ' +
235
236
  'left join t_gasbrand tg on tg.id = uf.f_gasbrand_id',
236
- condition: `tqr.f_safecheck_code = '62243501'`,
237
+ condition: `tqr.f_safecheck_code = '${this.f_safecheck_code}'`,
237
238
  orderitem: 'tcp.f_offsite_time desc'
238
239
  }
239
240
  },{resolveMsg: null,rejectMsg: null}).then((res) => {
240
241
  this.model = res.data
241
242
  })
242
243
  },
244
+ getmodel2() {
245
+ let http = new HttpResetClass()
246
+ http.load('POST', `rs/sql/tel_singleTable_OrderBy`, {
247
+ data: {
248
+ items: "wh.*",
249
+ tablename: 't_qr_code tqr left join t_handplan wh on wh.f_userinfo_code = tqr.f_userinfo_id',
250
+ condition: `tqr.f_safecheck_code = '${this.f_safecheck_code}' and wh.id is not null and wh.f_operate_date >= DATEADD(MONTH, -1, GETDATE())`,
251
+ orderitem: 'wh.id desc'
252
+ }
253
+ },{resolveMsg: null,rejectMsg: null}).then((res) => {
254
+ this.model2 = res.data
255
+ })
256
+ },
243
257
  },
244
258
  ready() {
245
- console.log(window.location.href)
246
259
  let url = window.location.href
247
260
  if (url.includes('id')){
248
261
  const urlObj = new URL(url);
249
262
  this.f_safecheck_code = urlObj.searchParams.get('id')
250
263
  this.getmodel()
264
+ this.getmodel2()
251
265
  }else {
252
- console.log(window.location.href)
253
- console.log('非法数据')
254
266
  this.getmodel()
267
+ this.getmodel2()
255
268
  }
256
269
  }
257
270
  }
@@ -274,7 +287,7 @@ export default {
274
287
 
275
288
  .work-badge{
276
289
  background-image: url('./410.png');
277
-
290
+ background-repeat: no-repeat;
278
291
  }
279
292
 
280
293
  .lable{
@@ -186,6 +186,10 @@
186
186
  </div>
187
187
 
188
188
  </div>
189
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 ">
190
+ <label class="text-left font">隐患整改通知单单号</label>
191
+ <input v-model="paper.f_repairorder_id" :value="paper.f_repairorder_id" type="text">
192
+ </div>
189
193
  <div class="form-group col-sm-12 col-xs-12 col-md-12 ">
190
194
  <label class="text-left font">副操</label>
191
195
  <v-select
@@ -97,19 +97,19 @@ div {
97
97
  <tr>
98
98
  <td style="text-align: center;border: #E9E9E9 solid 1px">街 道:</td>
99
99
  <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_street }}</td>
100
- <td style="text-align: center;border: #E9E9E9 solid 1px">楼 号:</td>
101
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_building }}</td>
100
+ <td style="text-align: center;border: #E9E9E9 solid 1px" v-if="paperdata.f_check_type=='民用'">楼 号:</td>
101
+ <td style="text-align: center;border: #E9E9E9 solid 1px" v-if="paperdata.f_check_type=='民用'">{{ paperdata.f_building }}</td>
102
102
  </tr>
103
103
  <tr>
104
- <td style="text-align: center;border: #E9E9E9 solid 1px">单 元:</td>
105
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_unit }}</td>
106
- <td style="text-align: center;border: #E9E9E9 solid 1px">楼 层:</td>
107
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_floor }}</td>
104
+ <td style="text-align: center;border: #E9E9E9 solid 1px" v-if="paperdata.f_check_type=='民用'">单 元:</td>
105
+ <td style="text-align: center;border: #E9E9E9 solid 1px" v-if="paperdata.f_check_type=='民用'">{{ paperdata.f_unit }}</td>
106
+ <td style="text-align: center;border: #E9E9E9 solid 1px" v-if="paperdata.f_check_type=='民用'">楼 层:</td>
107
+ <td style="text-align: center;border: #E9E9E9 solid 1px" v-if="paperdata.f_check_type=='民用'">{{ paperdata.f_floor }}</td>
108
108
  </tr>
109
109
  <tr>
110
- <td style="text-align: center;border: #E9E9E9 solid 1px">门 牌 号 :</td>
111
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_room }}</td>
112
- <td style="text-align: center;border: #E9E9E9 solid 1px">用户性质:</td>
110
+ <td style="text-align: center;border: #E9E9E9 solid 1px" v-if="paperdata.f_check_type=='民用'">门 牌 号 :</td>
111
+ <td style="text-align: center;border: #E9E9E9 solid 1px" v-if="paperdata.f_check_type=='民用'">{{ paperdata.f_room }}</td>
112
+ <td style="text-align: center;border: #E9E9E9 solid 1px" >用户性质:</td>
113
113
  <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_userproperties }}</td>
114
114
  </tr>
115
115
  <tr>
@@ -163,24 +163,26 @@ div {
163
163
  </td>
164
164
  </tr>
165
165
  <tr>
166
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
166
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患通知单单号:</td>
167
167
  <td colspan="3"
168
168
  style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
169
- <span v-for="deviceCollect in deviceCollects">
169
+ {{ paperdata.f_repairorder_id }}
170
+ </td>
171
+ </tr>
172
+ <tr>
173
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
174
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
175
+ <span v-for="deviceCollect in deviceCollects">
170
176
  <span class="li-font">
171
177
  {{ deviceCollect.name }}:{{ deviceCollect.value }}&nbsp;&nbsp;&nbsp;
172
178
  </span>
173
- <br>
174
- <span v-if="deviceCollect.value == '有隐患'">
175
- <lable>
176
- 隐患:
177
- </lable>
178
- <span v-for="val in deviceCollect.devices">
179
- {{ val }}
180
- </span><br>
181
- </span>
182
-
183
- </span>
179
+ <br>
180
+ <span v-if="deviceCollect.value == '有隐患'">
181
+ <lable>隐患:</lable>
182
+ <span v-for="val in deviceCollect.devices">{{ val }}</span>
183
+ <br>
184
+ </span>
185
+ </span>
184
186
  </td>
185
187
  </tr>
186
188
 
@@ -485,18 +487,18 @@ div {
485
487
  <tr>
486
488
  <td style="text-align: center;border: #E9E9E9 solid 1px">街 道:</td>
487
489
  <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_street }}</td>
488
- <td style="text-align: center;border: #E9E9E9 solid 1px">楼 号:</td>
489
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_building }}</td>
490
+ <td style="text-align: center;border: #E9E9E9 solid 1px" v-if="paperdata.f_check_type=='民用'">楼 号:</td>
491
+ <td style="text-align: center;border: #E9E9E9 solid 1px" v-if="paperdata.f_check_type=='民用'">{{ paperdata.f_building }}</td>
490
492
  </tr>
491
493
  <tr>
492
- <td style="text-align: center;border: #E9E9E9 solid 1px">单 元:</td>
493
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_unit }}</td>
494
- <td style="text-align: center;border: #E9E9E9 solid 1px">楼 层:</td>
495
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_floor }}</td>
494
+ <td style="text-align: center;border: #E9E9E9 solid 1px" v-if="paperdata.f_check_type=='民用'">单 元:</td>
495
+ <td style="text-align: center;border: #E9E9E9 solid 1px" v-if="paperdata.f_check_type=='民用'">{{ paperdata.f_unit }}</td>
496
+ <td style="text-align: center;border: #E9E9E9 solid 1px" v-if="paperdata.f_check_type=='民用'">楼 层:</td>
497
+ <td style="text-align: center;border: #E9E9E9 solid 1px" v-if="paperdata.f_check_type=='民用'">{{ paperdata.f_floor }}</td>
496
498
  </tr>
497
499
  <tr>
498
- <td style="text-align: center;border: #E9E9E9 solid 1px">门 牌 号 :</td>
499
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_room }}</td>
500
+ <td style="text-align: center;border: #E9E9E9 solid 1px" v-if="paperdata.f_check_type=='民用'">门 牌 号 :</td>
501
+ <td style="text-align: center;border: #E9E9E9 solid 1px" v-if="paperdata.f_check_type=='民用'">{{ paperdata.f_room }}</td>
500
502
  <td style="text-align: center;border: #E9E9E9 solid 1px">用户性质:</td>
501
503
  <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_userproperties }}</td>
502
504
  </tr>
@@ -557,27 +559,28 @@ div {
557
559
  </td>
558
560
  </tr>
559
561
  <tr>
560
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
562
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患通知单单号:</td>
561
563
  <td colspan="3"
562
564
  style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
563
- <span v-for="deviceCollect in deviceCollects">
565
+ {{ paperdata.f_repairorder_id }}
566
+ </td>
567
+ </tr>
568
+ <tr>
569
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
570
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
571
+ <span v-for="deviceCollect in deviceCollects">
564
572
  <span class="li-font">
565
573
  {{ deviceCollect.name }}:{{ deviceCollect.value }}&nbsp;&nbsp;&nbsp;
566
574
  </span>
567
- <br>
568
- <span v-if="deviceCollect.value == '有隐患'">
569
- <lable>
570
- 隐患:
571
- </lable>
572
- <span v-for="val in deviceCollect.devices">
573
- {{ val }}
574
- </span><br>
575
- </span>
576
-
577
- </span>
575
+ <br>
576
+ <span v-if="deviceCollect.value == '有隐患'">
577
+ <lable>隐患:</lable>
578
+ <span v-for="val in deviceCollect.devices">{{ val }}</span>
579
+ <br>
580
+ </span>
581
+ </span>
578
582
  </td>
579
583
  </tr>
580
-
581
584
  </tbody>
582
585
  </table>
583
586
  <table class="table table-striped table-bordered" style="margin-top: 40px"
@@ -1338,7 +1341,8 @@ export default {
1338
1341
  if (this.deviceCollects.length > 0) {
1339
1342
  this.hasDevice = true
1340
1343
  }
1341
- this.ajresult = JSON.parse(this.data.f_defect_content).result
1344
+ this.data.f_userproperties = this.item.f_gasproperties
1345
+ this.ajresult = JSON.parse(this.item.f_defect_content).result
1342
1346
  this.showimg3 = this.data.f_noanswer_path
1343
1347
  this.showimg5 = this.data.f_noanswer1_path
1344
1348
  this.showimg6 = this.data.f_noanswer2_path
@@ -1860,7 +1864,7 @@ export default {
1860
1864
  setTimeout(() => {
1861
1865
  this.loading = false;
1862
1866
  }, 10000)
1863
- // this.putDevices()
1867
+ this.putDevices()
1864
1868
  this.showAudit()
1865
1869
  this.newConfig = this.$appdata.getSingleValue('配置中心获取文件') ? this.$appdata.getSingleValue('配置中心获取文件') : '否';
1866
1870
  if (this.item.f_state != '未检' || this.item.f_no_checkplan == '无计划安检' || this.item.f_no_checkplan == '复检') {