sale-client 4.2.67 → 4.2.69
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 +1 -1
- package/src/components/revenue/base/leftview/HiddenDangerInfo.vue +136 -0
- package/src/components/revenue/base/leftview/otherinfo.vue +2 -1
- package/src/filiale/fugou/MeterinfoTest.vue +27 -14
- package/src/filiale/hongYa/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeMeter.vue +0 -1
- package/src/plugins/CommonService.js +3 -1
- package/src/sale.js +2 -0
package/package.json
CHANGED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="panel panel-info auto">
|
|
3
|
+
<div class="panel-heading auto" style="height: 35px">
|
|
4
|
+
<h4 style="display:inline-block;margin-top: auto">未处理隐患</h4>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<table class="table table-striped table-bordered" v-if="hiddenDangerList.length > 0">
|
|
8
|
+
<tbody v-for="(index,row) in hiddenDangerList">
|
|
9
|
+
<tr>
|
|
10
|
+
<td colspan="4" style="text-align: center;background-color: #8cbce2;">未处理隐患{{index+1}}明细
|
|
11
|
+
</td>
|
|
12
|
+
</tr>
|
|
13
|
+
<tr>
|
|
14
|
+
<td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患名称:</td>
|
|
15
|
+
<td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;">{{ row.f_item_name }}</td>
|
|
16
|
+
</tr>
|
|
17
|
+
<tr>
|
|
18
|
+
<td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">发现时间:</td>
|
|
19
|
+
<td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;">{{ row.f_offsite_time }}</td>
|
|
20
|
+
</tr>
|
|
21
|
+
<tr>
|
|
22
|
+
<td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">发现人员:</td>
|
|
23
|
+
<td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;">{{ row.f_checker_name }}</td>
|
|
24
|
+
</tr>
|
|
25
|
+
<tr>
|
|
26
|
+
<td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">隐患照片:</td>
|
|
27
|
+
<td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
|
|
28
|
+
<div class="img">
|
|
29
|
+
<img-self :src="'rs/image/file/' + row.f_path" width="150" height="150"></img-self>
|
|
30
|
+
</div>
|
|
31
|
+
</td>
|
|
32
|
+
</tr>
|
|
33
|
+
<tr v-if="row.f_p1_path">
|
|
34
|
+
<td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">隐患照片2:</td>
|
|
35
|
+
<td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
|
|
36
|
+
<div class="img">
|
|
37
|
+
<img-self :src="'rs/image/file/' + row.f_p1_path" width="150" height="150"></img-self>
|
|
38
|
+
</div>
|
|
39
|
+
</td>
|
|
40
|
+
</tr>
|
|
41
|
+
<tr v-if="row.f_p2_path">
|
|
42
|
+
<td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">隐患照片3:</td>
|
|
43
|
+
<td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
|
|
44
|
+
<div class="img">
|
|
45
|
+
<img-self :src="'rs/image/file/' + row.f_p2_path" width="150" height="150"></img-self>
|
|
46
|
+
</div>
|
|
47
|
+
</td>
|
|
48
|
+
</tr>
|
|
49
|
+
<tr v-if="row.f_p3_path">
|
|
50
|
+
<td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">隐患照片4:</td>
|
|
51
|
+
<td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
|
|
52
|
+
<div class="img">
|
|
53
|
+
<img-self :src="'api/af-revenue/file/image/' + row.f_p3_path" width="150" height="150"></img-self>
|
|
54
|
+
</div>
|
|
55
|
+
</td>
|
|
56
|
+
</tr>
|
|
57
|
+
</tbody>
|
|
58
|
+
</table>
|
|
59
|
+
|
|
60
|
+
<div class="auto info-content" v-if="hiddenDangerList.length === 0">
|
|
61
|
+
<div class="row">
|
|
62
|
+
<strong>暂无未处理隐患信息</strong>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
</template>
|
|
68
|
+
<script>
|
|
69
|
+
/**
|
|
70
|
+
*用户信息
|
|
71
|
+
*安检信息
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
import { HttpResetClass } from 'vue-client'
|
|
75
|
+
|
|
76
|
+
let getHiddenDangerGen = async function (self) {
|
|
77
|
+
try {
|
|
78
|
+
let http = new HttpResetClass()
|
|
79
|
+
let condition = `f_userinfoid = ${self.data.f_userinfo_id} and f_is_repaired = '隐患未处理'`
|
|
80
|
+
let getHiddenDanger = await http.load('POST', 'api/af-safecheck/sql/defectDetails', {
|
|
81
|
+
data: {
|
|
82
|
+
condition: condition,
|
|
83
|
+
f_filialeid: `('${self.$login.f.orgid}')`
|
|
84
|
+
}
|
|
85
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
86
|
+
console.log('getHiddenDanger', getHiddenDanger)
|
|
87
|
+
self.hiddenDangerList = getHiddenDanger.data
|
|
88
|
+
} catch (error) {
|
|
89
|
+
console.error(error)
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export default {
|
|
94
|
+
title: '安检信息',
|
|
95
|
+
data () {
|
|
96
|
+
return {
|
|
97
|
+
hiddenDangerList: [],
|
|
98
|
+
style: 'text-align: center;border: #E9E9E9 solid 1px;'
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
props: ['data'],
|
|
102
|
+
ready () {
|
|
103
|
+
if (this.data) {
|
|
104
|
+
getHiddenDangerGen(this)
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
methods: {},
|
|
108
|
+
computed: {},
|
|
109
|
+
watch: {
|
|
110
|
+
'data' () {
|
|
111
|
+
if (this.data == null) {
|
|
112
|
+
this.hiddenDangerList = []
|
|
113
|
+
} else {
|
|
114
|
+
getHiddenDangerGen(this)
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
</script>
|
|
120
|
+
<style scoped>
|
|
121
|
+
.img {
|
|
122
|
+
border: 1px solid #9773ed;
|
|
123
|
+
width: auto;
|
|
124
|
+
height: auto;
|
|
125
|
+
margin: 6px auto;
|
|
126
|
+
display: inline-block;
|
|
127
|
+
text-align: center;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
img {
|
|
131
|
+
margin: 6px;
|
|
132
|
+
display: block;
|
|
133
|
+
margin-left: auto;
|
|
134
|
+
margin-right: auto;
|
|
135
|
+
}
|
|
136
|
+
</style>
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
<valueaddinfo :data="data" v-ref:valueaddinfo></valueaddinfo>
|
|
7
7
|
<user-fee-info :userinfoid="data.f_userinfo_id" v-ref:valueaddinfo></user-fee-info>
|
|
8
8
|
<sale-safecheck-info :data="data"></sale-safecheck-info>
|
|
9
|
-
|
|
9
|
+
<!-- 未处理隐患 -->
|
|
10
|
+
<sale-hidden-danger-info :data="data"></sale-hidden-danger-info>
|
|
10
11
|
<service-repair :data="data" v-if="name==='维修情况查询'"></service-repair>
|
|
11
12
|
<check-gas :data="data" v-if="checkgas==='气量核对'"></check-gas>
|
|
12
13
|
</div>
|
|
@@ -375,8 +375,14 @@
|
|
|
375
375
|
<label for="f_adjustable" class="font_normal_body" style="width: auto;letter-spacing: 0.5em;margin-right: -0.5em;margin-left: -0.5em"> {{getConfigLabelName('f_adjustable','调压箱')}}</label>
|
|
376
376
|
<input type="text" v-model="row.f_adjustable" v-show="false"
|
|
377
377
|
v-validate:f_adjustable=getConfigValidate("f_adjustable",false)>
|
|
378
|
-
<v-select :value.sync="row.f_adjustable"
|
|
379
|
-
|
|
378
|
+
<v-select :value.sync="row.f_adjustable"
|
|
379
|
+
:options='adjustables'
|
|
380
|
+
placeholder='调压箱'
|
|
381
|
+
close-on-select
|
|
382
|
+
@select-search="getAdjustables"
|
|
383
|
+
v-model='row.f_adjustable'
|
|
384
|
+
:search='true'>
|
|
385
|
+
</v-select>
|
|
380
386
|
</div>
|
|
381
387
|
<div class="col-sm-4 form-group" :class="[$m.f_hand_date.required ? 'has-error' : '']"
|
|
382
388
|
v-show="(formconfig && formconfig.f_hand_date && formconfig.f_hand_date.required) || !onlyshowmust"
|
|
@@ -761,6 +767,7 @@
|
|
|
761
767
|
opteratormetrbook: false, // 抄表册操作
|
|
762
768
|
oldrow: [],
|
|
763
769
|
overdueset: [],
|
|
770
|
+
adjustables: [],
|
|
764
771
|
isiot: true,
|
|
765
772
|
meterNumberDisabled: false,
|
|
766
773
|
meterChangeDisabled: this.$appdata.getSingleValue('建档后禁止更改表号') ? this.$appdata.getSingleValue('建档后禁止更改表号') : false,
|
|
@@ -799,8 +806,26 @@
|
|
|
799
806
|
await this.getConcentrators()
|
|
800
807
|
co(meterBookGen(this))
|
|
801
808
|
await readyGen(this)
|
|
809
|
+
await this.getAdjustables()
|
|
802
810
|
},
|
|
803
811
|
methods: {
|
|
812
|
+
async getAdjustables (searchText) {
|
|
813
|
+
let condition = `f_orgid = '${this.$login.f.orgid}'`
|
|
814
|
+
if (searchText) {
|
|
815
|
+
condition = condition + ` and (f_adjustable_name like '%${searchText}%' or f_adjustable_id like '%${searchText}%')`
|
|
816
|
+
}
|
|
817
|
+
let data = {
|
|
818
|
+
items: 'id,f_adjustable_name,f_adjustable_id',
|
|
819
|
+
tablename: 't_adjustablebox',
|
|
820
|
+
condition: condition,
|
|
821
|
+
orderitem: 'id desc'
|
|
822
|
+
}
|
|
823
|
+
let result = await this.$resetpost('rs/sql/singleTable_OrderBy?pageNo=1&pageSize=100', {data: data}, {resolveMsg: null, rejectMsg: '获取集中器失败!'})
|
|
824
|
+
this.adjustables = [{label: '全部', value: ''}]
|
|
825
|
+
for (let row of result.data) {
|
|
826
|
+
this.adjustables.push({label: `[${row.f_adjustable_id}]-${row.f_adjustable_name}`, value: row})
|
|
827
|
+
}
|
|
828
|
+
},
|
|
804
829
|
validateInput (event, key) {
|
|
805
830
|
const value = event.target.value
|
|
806
831
|
const sanitizedValue = value.replace(/[^0-9.]/g, '')
|
|
@@ -1150,18 +1175,6 @@
|
|
|
1150
1175
|
})
|
|
1151
1176
|
return Array.from(new Set(result))
|
|
1152
1177
|
},
|
|
1153
|
-
|
|
1154
|
-
adjustables () {
|
|
1155
|
-
let arr = []
|
|
1156
|
-
let filter = this.f_filialeid
|
|
1157
|
-
this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
|
|
1158
|
-
let temp = {}
|
|
1159
|
-
temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
|
|
1160
|
-
temp.value = item.value
|
|
1161
|
-
arr.push(temp)
|
|
1162
|
-
})
|
|
1163
|
-
return [{label: '全部', value: ''}, ...arr]
|
|
1164
|
-
},
|
|
1165
1178
|
inputtores () {
|
|
1166
1179
|
// return this.$login.f.f_gasman
|
|
1167
1180
|
let rs = new Array()
|
|
@@ -244,7 +244,9 @@ let CommonService = {
|
|
|
244
244
|
totalmoney: cardParams.data.f_collection,
|
|
245
245
|
stairversion: cardParams.data.f_stairversion,
|
|
246
246
|
pricedate: cardParams.data.pricedate,
|
|
247
|
-
pricetype: cardParams.data.pricetype
|
|
247
|
+
pricetype: cardParams.data.pricetype,
|
|
248
|
+
stairperiod: cardParams.data.stairperiod ? cardParams.data.stairperiod : null,
|
|
249
|
+
stairstartdate: cardParams.data.stairstartdate ? cardParams.data.stairstartdate : null
|
|
248
250
|
}
|
|
249
251
|
|
|
250
252
|
// 对阶梯进行处理
|
package/src/sale.js
CHANGED
|
@@ -134,6 +134,8 @@ export default function () {
|
|
|
134
134
|
Vue.component('user-fee-info', (resolve) => { require(['./components/revenue/base/leftview/UserFeeInfo'], resolve) })
|
|
135
135
|
// 安检信息
|
|
136
136
|
Vue.component('sale-safecheck-info', (resolve) => { require(['./components/revenue/base/leftview/SafeCheck'], resolve) })
|
|
137
|
+
// 未处理隐患信息
|
|
138
|
+
Vue.component('sale-hidden-danger-info', (resolve) => { require(['./components/revenue/base/leftview/HiddenDangerInfo'], resolve) })
|
|
137
139
|
// 当前选择用户的发票信息
|
|
138
140
|
Vue.component('bill-message', (resolve) => { require(['./components/revenue/base/leftview/billMessage'], resolve) })
|
|
139
141
|
// 当前选择用户的阶梯使用信息
|