safecheck-client 4.0.1-60 → 4.0.1-62
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 +132 -132
- package/src/components/NewDefectList/DefectListNew.vue +22 -3
- package/src/components/android/AndroidDefectDeal.vue +356 -323
- package/src/components/android/AppInstallationMaterial.vue +865 -0
- package/src/components/pc/DefectMaterialLook.vue +98 -0
- package/src/components/pc/PaperDefectMain.vue +26 -1
- package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +0 -6
- package/src/filiale/xinkang/android/AndroidDefectDeal.vue +450 -449
- package/src/safecheck.js +3 -0
- package/.trae/.ignore +0 -0
- package/.vscode/settings.json +0 -3
@@ -0,0 +1,98 @@
|
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<data-grid :model="onetomany" class="list_area table_sy">
|
4
|
+
<template partial='head'>
|
5
|
+
<tr>
|
6
|
+
<th class="textNoLineBreak">序号</th>
|
7
|
+
<th class="textNoLineBreak">材料名称</th>
|
8
|
+
<th class="textNoLineBreak">规格、型号</th>
|
9
|
+
<th class="textNoLineBreak">单价</th>
|
10
|
+
<th class="textNoLineBreak">数量</th>
|
11
|
+
<th class="textNoLineBreak">金额</th>
|
12
|
+
<th class="textNoLineBreak">操作人</th>
|
13
|
+
<th class="textNoLineBreak">操作时间</th>
|
14
|
+
<th class="textNoLineBreak">备注</th>
|
15
|
+
</tr>
|
16
|
+
</template>
|
17
|
+
<template partial='body'>
|
18
|
+
<tr>
|
19
|
+
<td style="text-align: center;">
|
20
|
+
<nobr>{{$index+1}}</nobr>
|
21
|
+
</td>
|
22
|
+
<td style="text-align: center;">
|
23
|
+
<nobr>{{row.f_material_name}}</nobr>
|
24
|
+
</td>
|
25
|
+
<td style="text-align: center;">
|
26
|
+
<nobr>{{row.f_typenumber}}</nobr>
|
27
|
+
</td>
|
28
|
+
|
29
|
+
<td style="text-align: center;">
|
30
|
+
<nobr>{{row.f_material_price}}</nobr>
|
31
|
+
</td>
|
32
|
+
<td style="text-align: center;">
|
33
|
+
<nobr>{{row.f_material_number}}</nobr>
|
34
|
+
</td>
|
35
|
+
<td style="text-align: center;">
|
36
|
+
<nobr>{{row.f_fee}}</nobr>
|
37
|
+
</td>
|
38
|
+
<td style="text-align: center;">
|
39
|
+
<nobr>{{row.f_operator}}</nobr>
|
40
|
+
</td>
|
41
|
+
<td style="text-align: center;">
|
42
|
+
<nobr>{{row.f_date}}</nobr>
|
43
|
+
</td>
|
44
|
+
<td style="text-align: center;">
|
45
|
+
<nobr>{{row.f_remarks}}</nobr>
|
46
|
+
</td>
|
47
|
+
</tr>
|
48
|
+
</template>
|
49
|
+
</data-grid>
|
50
|
+
</div>
|
51
|
+
</template>
|
52
|
+
|
53
|
+
<script>
|
54
|
+
import {HttpResetClass} from 'vue-client'
|
55
|
+
export default {
|
56
|
+
name: '隐患明细材料查看',
|
57
|
+
props: {
|
58
|
+
selectdata: {
|
59
|
+
type: Object
|
60
|
+
}
|
61
|
+
},
|
62
|
+
data () {
|
63
|
+
return {
|
64
|
+
onetomany: {
|
65
|
+
rows: []
|
66
|
+
}
|
67
|
+
}
|
68
|
+
},
|
69
|
+
ready(){
|
70
|
+
this.getOnetoManyData()
|
71
|
+
},
|
72
|
+
methods: {
|
73
|
+
/*获取工单收费添加的材料*/
|
74
|
+
async getOnetoManyData () {
|
75
|
+
let http = new HttpResetClass()
|
76
|
+
let data = {
|
77
|
+
items: '*',
|
78
|
+
tablename: 't_material_service',
|
79
|
+
condition: `f_process_id = '${this.selectdata.f_defect_id}'`,
|
80
|
+
orderitem: 'id'
|
81
|
+
}
|
82
|
+
http.load('post', 'api/af-safecheck/sql/safe_singleTable_OrderBy', {data: data}, {
|
83
|
+
resolveMsg: null,
|
84
|
+
rejectMsg: '获取数据失败'
|
85
|
+
}).then(res => {
|
86
|
+
this.onetomany.rows = res.data
|
87
|
+
})
|
88
|
+
}
|
89
|
+
},
|
90
|
+
events: {
|
91
|
+
},
|
92
|
+
}
|
93
|
+
|
94
|
+
</script>
|
95
|
+
|
96
|
+
<style scoped>
|
97
|
+
|
98
|
+
</style>
|
@@ -258,6 +258,9 @@
|
|
258
258
|
<th>
|
259
259
|
<nobr>接收人</nobr>
|
260
260
|
</th>
|
261
|
+
<th v-if="$parent.$parent.$parent.canlook">
|
262
|
+
<nobr>材料明细</nobr>
|
263
|
+
</th>
|
261
264
|
</tr>
|
262
265
|
</template>
|
263
266
|
<template partial='body'>
|
@@ -279,6 +282,9 @@
|
|
279
282
|
<td style="text-align: center">{{row.f_service_id}}</td>
|
280
283
|
<td style="text-align: center">{{row.f_handlingtype}}</td>
|
281
284
|
<td style="text-align: center">{{row.f_order_man}}</td>
|
285
|
+
<td class="flex-around" v-if="$parent.$parent.$parent.canlook">
|
286
|
+
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.lookMateril(row)">查看材料</button>
|
287
|
+
</td>
|
282
288
|
</template>
|
283
289
|
</data-grid>
|
284
290
|
</criteria-paged>
|
@@ -366,6 +372,16 @@
|
|
366
372
|
</div>
|
367
373
|
<div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
|
368
374
|
</modal>
|
375
|
+
<modal :show.sync="showmaterial" backdrop="false" style="overflow: scroll;height: 100%">
|
376
|
+
<header slot="modal-header" class="modal-header text-center">
|
377
|
+
<button type="button" class="close" @click="close2"><span>×</span></button>
|
378
|
+
<h4 class="modal-title">材料查看</h4>
|
379
|
+
</header>
|
380
|
+
<article slot="modal-body">
|
381
|
+
<defect-material-look v-if="showmaterial" :selectdata = "selectdata" ></defect-material-look>
|
382
|
+
</article>
|
383
|
+
<footer slot="modal-footer"></footer>
|
384
|
+
</modal>
|
369
385
|
</div>
|
370
386
|
</div>
|
371
387
|
</template>
|
@@ -423,7 +439,8 @@
|
|
423
439
|
model.f_filialeid = `('${this.$login.f.orgid}')`
|
424
440
|
return {
|
425
441
|
audioshow:false,
|
426
|
-
|
442
|
+
showmaterial: false,
|
443
|
+
selectdata: {},
|
427
444
|
model: model,
|
428
445
|
deal_dispose:[{label:'全部',value:''},{label:'报修',value:'报修'},{label:'现场整改',value:'现场整改'},{label:'自行处理',value:'自行处理'},{label:'未处理',value:'未处理'}],
|
429
446
|
repairStateOptions: this.getSafeParam('隐患状态'),
|
@@ -477,6 +494,7 @@
|
|
477
494
|
showModal3: false,
|
478
495
|
progressbarWidth:'0',
|
479
496
|
canToRepair: this.$appdata.getSingleValue('隐患明细转维修'),
|
497
|
+
canlook: this.$appdata.getSingleValue('隐患明细查看材料')?true:false,
|
480
498
|
checkes: []
|
481
499
|
}
|
482
500
|
},
|
@@ -486,6 +504,13 @@
|
|
486
504
|
}
|
487
505
|
},
|
488
506
|
methods: {
|
507
|
+
lookMateril(row){
|
508
|
+
this.selectdata=row
|
509
|
+
this.showmaterial=true
|
510
|
+
},
|
511
|
+
close2(){
|
512
|
+
this.showmaterial=false
|
513
|
+
},
|
489
514
|
delConfigKey(obj){
|
490
515
|
// 从琉璃中获取的配置中会包含 $开头的一些额外描述新的key。为了兼容v3的代码逻辑在此函数中去掉
|
491
516
|
Object.keys(obj).forEach(key =>{
|
@@ -257,10 +257,6 @@
|
|
257
257
|
<label class="righttxt">气表类型:</label>
|
258
258
|
<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_classify" readonly/>
|
259
259
|
</div>
|
260
|
-
<div class="row auto" style="margin: 5px 0">
|
261
|
-
<label class="righttxt">现场表具型号:</label>
|
262
|
-
<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_xc_meter_style"/>
|
263
|
-
</div>
|
264
260
|
<div class="row auto" style="margin: 5px 0">
|
265
261
|
<label class="righttxt">表前阀状态:</label>
|
266
262
|
<!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
|
@@ -665,7 +661,6 @@ export default {
|
|
665
661
|
this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
|
666
662
|
this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
|
667
663
|
this.userinfo_old.meterinfo[0].f_meternumber = this.userinfo.meterinfo[0].f_meternumber
|
668
|
-
this.userinfo_old.meterinfo[0].f_xc_meter_style = this.userinfo.meterinfo[0].f_xc_meter_style
|
669
664
|
userinfoms.userfiles = []
|
670
665
|
this.userinfo_old.meterinfo[0].devicesinfo = this.model
|
671
666
|
userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
|
@@ -748,7 +743,6 @@ export default {
|
|
748
743
|
this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
|
749
744
|
this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
|
750
745
|
this.userinfo_old.meterinfo[0].f_meternumber = this.userinfo.meterinfo[0].f_meternumber
|
751
|
-
this.userinfo_old.meterinfo[0].f_xc_meter_style = this.userinfo.meterinfo[0].f_xc_meter_style
|
752
746
|
userinfoms.userfiles = []
|
753
747
|
this.userinfo_old.meterinfo[0].devicesinfo = this.model
|
754
748
|
userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
|