safecheck-client 4.0.1-12 → 4.0.1-14

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "safecheck-client",
3
3
  "//": "主分支版本别乱升,测试包的版本直接发包(建议使用1.XX.XX-XXX格式作为测试包,不要频繁升级第三位版本号),别提交版本号。切了分支切记把主分支版本升了,保证主分支始终是最高版本!!!!!",
4
- "version": "4.0.1-12",
4
+ "version": "4.0.1-14",
5
5
  "description": "安检模块 前端组件",
6
6
  "author": "丁新 <417755458@qq.com>",
7
7
  "license": "ISC",
@@ -23,7 +23,6 @@
23
23
  :multiple="true" style="width: 60%"
24
24
  class="select_list select"
25
25
  :options='$parent.$parent.checkBooks' placeholder='安检册名称'
26
- close-on-select
27
26
  condition="tcb.id in {}"></v-select>
28
27
  </div>
29
28
  <!-- <div :class="$parent.$parent.style">-->
@@ -73,13 +72,12 @@
73
72
  </div>
74
73
 
75
74
  <div :class="$parent.$parent.style">
76
- <label class="font_normal_body">安检册名</label>
75
+ <label class="font_normal_body">安检册名称</label>
77
76
  <v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
78
- :value-single="true" style="width: 60%"
77
+ :multiple="true" style="width: 60%"
79
78
  class="select_list select"
80
79
  :options='$parent.$parent.checkBooks' placeholder='安检册名称'
81
- close-on-select
82
- condition="tcb.id ='{}'"></v-select>
80
+ condition="tcb.id in {}"></v-select>
83
81
  </div>
84
82
  <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
85
83
  <button type="button" class="button_search button_spacing" @click="search()">查询</button>
@@ -217,7 +217,6 @@
217
217
  </td>
218
218
  <td style="text-align: center">
219
219
  <button style="margin-bottom: 5px" class="button_spacing button_search-1" @click='$parent.$parent.$parent.showDealModal(row)'>{{row.f_is_repaired == '未处理' ? '处理' : '查看'}}</button>
220
- <button style="margin-bottom: 5px" class="button_spacing button_search-1" v-if="row.f_is_repaired == '未处理'" @click='$parent.$parent.$parent.delDefect(row)'>删除</button>
221
220
  </td>
222
221
  </template>
223
222
  </data-grid>
@@ -301,6 +300,17 @@
301
300
  <img-self-plus :width="200" :height="200" :src="solveModal.preData.repairedImg2" style="margin-left: 10px"></img-self-plus>
302
301
  </div>
303
302
  </div>
303
+ <div class="col-sm-12">
304
+ <div class="col-sm-6" v-if="solveModal.preData.repairedImg3">
305
+ <img-self-plus :width="200" :height="200" :src="solveModal.preData.repairedImg3" style="margin-left: 10px"></img-self-plus>
306
+ </div>
307
+ <div class="col-sm-6" v-if="solveModal.preData.repairedImg4">
308
+ <img-self-plus :width="200" :height="200" :src="solveModal.preData.repairedImg4" style="margin-left: 10px"></img-self-plus>
309
+ </div>
310
+ <div class="col-sm-6" v-if="solveModal.preData.repairedImg5">
311
+ <img-self-plus :width="200" :height="200" :src="solveModal.preData.repairedImg5" style="margin-left: 10px"></img-self-plus>
312
+ </div>
313
+ </div>
304
314
  </div>
305
315
  </div>
306
316
  <div slot="modal-footer" class="modal-footer" style="text-align: center">
@@ -508,6 +518,9 @@
508
518
  repairedImg: '',
509
519
  repairedImg1: '',
510
520
  repairedImg2: '',
521
+ repairedImg3: '',
522
+ repairedImg4: '',
523
+ repairedImg5: '',
511
524
  state: ''
512
525
  },
513
526
  uploadData: {
@@ -534,7 +547,7 @@
534
547
  if (res == 'confirm') {
535
548
  let http = new HttpResetClass()
536
549
  let updevices = `update t_devices_items set f_is_repaired ='已处理' where id = '${row.f_defect_id}'`
537
- http.load('POST', 'api/af-safecheck/logic/runSQL', {data: {sql: updevices}},
550
+ http.load('POST', 'api/af-safecheck/logic/通用更新', {data: {sql: updevices}},
538
551
  {resolveMsg: null, rejectMsg: '删除安检册失败'})
539
552
  this.$refs.paged.$refs.criteria.search()
540
553
  this.$showMessage('删除成功')
@@ -633,6 +646,9 @@
633
646
  this.solveModal.preData.repairedImg = row.f_repair_path ? '/rs/image/file/' + row.f_repair_path : ''
634
647
  this.solveModal.preData.repairedImg1 = row.f_repair1_path ? '/rs/image/file/' + row.f_repair1_path : ''
635
648
  this.solveModal.preData.repairedImg2 = row.f_repair2_path ? '/rs/image/file/' + row.f_repair2_path : ''
649
+ this.solveModal.preData.repairedImg3 = row.f_repair_path ? '/resource/af-revenue/images/' + row.f_repair_path : ''
650
+ this.solveModal.preData.repairedImg4 = row.f_repair1_path ? '/resource/af-revenue/images/' + row.f_repair1_path : ''
651
+ this.solveModal.preData.repairedImg4 = row.f_repair2_path ? '/resource/af-revenue/images/' + row.f_repair2_path : ''
636
652
  this.solveModal.uploadData.id = row.f_defect_id
637
653
  this.solveModal.uploadData.f_repairman = row.f_repairman
638
654
  this.solveModal.uploadData.f_repair_date = row.f_repair_date
@@ -466,7 +466,7 @@ export default {
466
466
  //获取气价
467
467
  getPrice() {
468
468
  new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
469
- {data: {items: "*", tablename: "t_stairprice", orderitem: "id", condition: ` f_state = '有效' and f_filialeid='${this.userlogin.orgid}'`}},
469
+ {data: {items: "*", tablename: "t_stairprice", orderitem: "id", condition: ` f_state = '有效' and f_filialeid='${this.userlogin.orgid}' and f_perform_date <= GETDATE() AND f_end_date >= GETDATE()`}},
470
470
  {resolveMsg: null, rejectMsg: null}).then((resp) => {
471
471
  resp.data.forEach((result) => {
472
472
  this.gasprice.push({label: result.f_price_name, value: result.f_price_id})