sale-client 3.6.247 → 3.6.248
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
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<div class="" v-for="row in meterinfo">
|
|
4
|
+
<div style="margin-bottom: 2%; margin-top: 2%">
|
|
5
|
+
<img style="margin-top: -5px" src="../../../../static/images/lefticon/矩形1183.png">
|
|
6
|
+
<a style="font-size: 20px;font-weight: 500;">表具信息</a> <a style="color: #999999;text-decoration: none"></a>
|
|
7
|
+
<button class="button_search" style="width: max-content" @click="deleteMeter($index, row)" v-if="!row.f_table_state ">删除表具
|
|
8
|
+
</button>
|
|
9
|
+
<button class="button_search" style="width: max-content" @click="showDevices($index, row)">用气设备信息</button>
|
|
10
|
+
<button class="button_search" style="width: max-content" @click="showFire($index, row)">点火信息</button>
|
|
11
|
+
</div>
|
|
12
|
+
<file-meter-info :onlyshowmust="onlyshowmust" :formconfig="formconfig" :curuser="curuser" :meter="row" :f_filialeid="f_filialeid" :usertype="usertype" :gasproperties="gasproperties" :overdueset="overdueset" @self-valid='valida'
|
|
13
|
+
@delete-meter="deleteMeter($index)" :f_userinfo_id="f_userinfo_id"></file-meter-info>
|
|
14
|
+
<file-user-fire-info @clearfire="clearfire(row)" :addressinfo="addressinfo" :fireinfo.sync="fireinfo" :show_fire.sync="show_fire" :meter.sync="row" :baseinfo.sync="baseinfo"
|
|
15
|
+
:userinfoid='data.baseinfo.base.f_userinfo_id'></file-user-fire-info>
|
|
16
|
+
|
|
17
|
+
</div>
|
|
18
|
+
<div class="panel panel-default auto text-center" @click="addMeter()" style="cursor: pointer;" v-if="permission('建档一户多表')">
|
|
19
|
+
<span class="glyphicon glyphicon-plus"></span>
|
|
20
|
+
<!--<img :src="imgmeter" alt="图片加载失败" class="img-rounded" style="width: 50px;margin:10px;">-->
|
|
21
|
+
</div>
|
|
22
|
+
<file-user-device-info :devicesinfo.sync="devicesinfo" v-if="show_devices" :show_devices.sync="show_devices" :devicesinfonew.sync="devicesinfo"
|
|
23
|
+
:f_input_person="f_input_person" :userinfoid='data.baseinfo.base.f_userinfo_id'></file-user-device-info>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script>
|
|
28
|
+
|
|
29
|
+
export default {
|
|
30
|
+
title: '表具信息',
|
|
31
|
+
data () {
|
|
32
|
+
return {
|
|
33
|
+
pricenames: [],
|
|
34
|
+
devicesinfo: [],
|
|
35
|
+
show_devices: false,
|
|
36
|
+
fireinfo: {},
|
|
37
|
+
f_input_person: '',
|
|
38
|
+
show_fire: false,
|
|
39
|
+
imgdelete: '/images/mainicon/deletedevice.png',
|
|
40
|
+
imgsrc: '/images/mainicon/biaopan.png',
|
|
41
|
+
imgmeter: '/images/mainicon/addmeter.png'
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
// props: ['meterinfo', 'usertype', 'gasproperties', 'metervalid'],
|
|
45
|
+
|
|
46
|
+
props: {
|
|
47
|
+
meterinfo: [],
|
|
48
|
+
usertype: {},
|
|
49
|
+
gasproperties: {},
|
|
50
|
+
metervalid: {
|
|
51
|
+
twoWay: true
|
|
52
|
+
},
|
|
53
|
+
addressinfo: {},
|
|
54
|
+
baseinfo: {},
|
|
55
|
+
f_filialeid: {},
|
|
56
|
+
f_userinfo_id: {},
|
|
57
|
+
overdueset: {},
|
|
58
|
+
curuser: {},
|
|
59
|
+
formconfig: {},
|
|
60
|
+
onlyshowmust: ''
|
|
61
|
+
},
|
|
62
|
+
ready () {
|
|
63
|
+
console.log('表具信息,,,,', this.meterinfo)
|
|
64
|
+
},
|
|
65
|
+
methods: {
|
|
66
|
+
permission (name) {
|
|
67
|
+
if (!this.$login.r.find(value => value == name)) {
|
|
68
|
+
return false
|
|
69
|
+
}
|
|
70
|
+
return true
|
|
71
|
+
},
|
|
72
|
+
isNull (value) {
|
|
73
|
+
return value && value.length > 0
|
|
74
|
+
},
|
|
75
|
+
addMeter () {
|
|
76
|
+
this.meterinfo.push({
|
|
77
|
+
// 表号
|
|
78
|
+
f_meternumber: '',
|
|
79
|
+
f_metertitles: '',
|
|
80
|
+
f_area_code: '',
|
|
81
|
+
// 气表品牌
|
|
82
|
+
gasbrand: '',
|
|
83
|
+
// 气表型号
|
|
84
|
+
gasmodel: '',
|
|
85
|
+
// 气表类型
|
|
86
|
+
gasmodeltype: '',
|
|
87
|
+
pricetype: '', // 气价类型
|
|
88
|
+
pricename: '', // 气价名称
|
|
89
|
+
f_user_type: '', // 用户类型
|
|
90
|
+
f_gasproperties: '', // 用气性质
|
|
91
|
+
f_inputtor: '',
|
|
92
|
+
// 安装位置
|
|
93
|
+
f_position: '',
|
|
94
|
+
f_subscribe_date: '',
|
|
95
|
+
// 左右表
|
|
96
|
+
f_aroundmeter: '',
|
|
97
|
+
f_garbage_fee: '',
|
|
98
|
+
f_meter_base: '',
|
|
99
|
+
// 安装人
|
|
100
|
+
f_instaler_person: '',
|
|
101
|
+
// 通气人
|
|
102
|
+
f_gas_person: '',
|
|
103
|
+
f_adjustable: '', // 调压箱
|
|
104
|
+
devicesinfo: [],
|
|
105
|
+
fireinfo: {}
|
|
106
|
+
})
|
|
107
|
+
},
|
|
108
|
+
|
|
109
|
+
showDevices (index, row) {
|
|
110
|
+
this.devicesinfo = []
|
|
111
|
+
this.devicesinfo = row.devicesinfo
|
|
112
|
+
if (row.f_install_person && row.f_install_person[0]) {
|
|
113
|
+
this.f_input_person = row.f_install_person[0]
|
|
114
|
+
}
|
|
115
|
+
this.devicesinfo.forEach((row) => {
|
|
116
|
+
row.devicetypes = this.$appdata.getParam('设备类型')
|
|
117
|
+
row.pipetypes = []
|
|
118
|
+
row.pipeways = this.$appdata.getParam('连接方式')
|
|
119
|
+
row.devicebrands = [{label:'全部', value: '全部'}]
|
|
120
|
+
})
|
|
121
|
+
console.log('shebei', this.devicesinfo)
|
|
122
|
+
this.show_devices = true
|
|
123
|
+
console.log('查看设备信息', this.devicesinfo)
|
|
124
|
+
},
|
|
125
|
+
showFire (index, row) {
|
|
126
|
+
if (row.f_user_type.length == 0) {
|
|
127
|
+
this.$showAlert('请先确定客户类型', 'warning', 3000)
|
|
128
|
+
} else {
|
|
129
|
+
this.fireinfo = {}
|
|
130
|
+
this.show_fire = true
|
|
131
|
+
this.fireinfo = row.fireinfo ? row.fireinfo : {}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
// 清楚表具信息
|
|
135
|
+
|
|
136
|
+
clearMeter () {
|
|
137
|
+
this.meterinfo = []
|
|
138
|
+
},
|
|
139
|
+
deleteMeter (index) {
|
|
140
|
+
this.meterinfo.splice(index, 1)
|
|
141
|
+
this.valida()
|
|
142
|
+
},
|
|
143
|
+
valida () {
|
|
144
|
+
for (var i = 0; i < this.meterinfo.length; i++) {
|
|
145
|
+
console.log('表具信息验证', this.meterinfo, this.meterinfo[i].valid)
|
|
146
|
+
if (!this.meterinfo[i].valid) {
|
|
147
|
+
this.metervalid = false
|
|
148
|
+
return
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
this.metervalid = true
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
</script>
|
|
156
|
+
<style lang="less">
|
|
157
|
+
.user-meter-padding {
|
|
158
|
+
.form-group {
|
|
159
|
+
> div {
|
|
160
|
+
padding-right: 5px;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
</style>
|
|
@@ -91,4 +91,6 @@ export default function () {
|
|
|
91
91
|
Vue.component('file-user-device-info', (resolve) => { require(['./UserDeviceInfoTest'], resolve) })
|
|
92
92
|
// 调价补差导入
|
|
93
93
|
Vue.component('third-surplus', (resolve) => { require(['./components/thirdSurplus'], resolve) })
|
|
94
|
+
// 用户表具信息test
|
|
95
|
+
Vue.component('file-user-meter-info', (resolve) => { require(['./FilesManage/UserMeterInfoTest'], resolve) })
|
|
94
96
|
}
|