telephone-clients 3.0.103-81 → 3.0.103-83
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
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
</v-select>
|
|
79
79
|
</div>
|
|
80
80
|
<div class="col-sm-9 form-group form-input-group" style="width: 80%" >
|
|
81
|
-
<label style="width: 100%;margin-right: 10px" class="font_normal_body"
|
|
81
|
+
<label style="width: 100%;margin-right: 10px" class="font_normal_body">呼入自助数:{{$parent.$parent.RecordAll.zizhu}} 呼入人工数:{{$parent.$parent.RecordAll.neixian}} 人工接听数:{{$parent.$parent.RecordAll.jieting}} 回访数:{{$parent.$parent.RecordAll.huchu}} 接线率:{{$parent.$parent.RecordAll.hflv}}% </label>
|
|
82
82
|
|
|
83
83
|
</div>
|
|
84
84
|
<!-- <div class="col-sm-1" style="float: right;margin-right: 40px" >-->
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
],
|
|
219
219
|
model: new PagedList('rs/sql/tel_recordlist', 20, {items: "'*'", tablename: "'t_records'", orderitem: "'outltime desc'" }),
|
|
220
220
|
row: null,
|
|
221
|
-
RecordAll: {"huru":0,"zongshu":0,"jieting":0,"huchu":0,"neixian":0,"hflv":0,"jxlv":0},
|
|
221
|
+
RecordAll: {"huru":0,"zongshu":0,"jieting":0,"huchu":0,"neixian":0,"hflv":0,"jxlv":0,"zizhu":0},
|
|
222
222
|
cclist:{
|
|
223
223
|
type: Array,
|
|
224
224
|
default: null
|
|
@@ -517,10 +517,6 @@
|
|
|
517
517
|
}
|
|
518
518
|
},
|
|
519
519
|
async save() {
|
|
520
|
-
// 判断是否录入用户类型
|
|
521
|
-
// if (this.model.f_user_type == '' || this.model.f_user_type == undefined) {
|
|
522
|
-
// return this.$showAlert('请选择客户类型!', 'warning', 2000)
|
|
523
|
-
// }
|
|
524
520
|
// 判断是否录入用气性质
|
|
525
521
|
if (this.model.f_gasproperties == '' || this.model.f_gasproperties == undefined) {
|
|
526
522
|
return this.$showAlert('请选择用气性质!', 'warning', 2000)
|
|
@@ -538,6 +534,7 @@
|
|
|
538
534
|
}
|
|
539
535
|
}
|
|
540
536
|
}
|
|
537
|
+
this.model.f_user_type = '民用'
|
|
541
538
|
this.$emit('saveing')
|
|
542
539
|
if (this.meading == '转维修员') {
|
|
543
540
|
this.model.f_meetunit = this.$login.f.deps
|
|
@@ -1,559 +1,559 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="select-overspread repair-bg auto" style="padding-bottom:5px;">
|
|
3
|
-
<!--<validator name='v' @valid="$emit('valid')" @invalid="$emit('invalid')">-->
|
|
4
|
-
<div class="bq-parent" v-if="shutype == 'heng'">
|
|
5
|
-
<blockquote class="blockquote">
|
|
6
|
-
<p><span>用户基本信息</span><a @click="mute()" style="float:right" href="javascript:void(0)"
|
|
7
|
-
class="repair-mute-class"><img src="../../../assets/novoice.png" width="25px;"
|
|
8
|
-
alt=""><span style="margin-left:10px;color: #304A66">关闭声音</span></a>
|
|
9
|
-
</p>
|
|
10
|
-
</blockquote>
|
|
11
|
-
</div>
|
|
12
|
-
<div class="panel panel-default auto repair-info-content">
|
|
13
|
-
<div class="panel-body">
|
|
14
|
-
<!-- 维修相关时间 -->
|
|
15
|
-
<div v-if="data" class="row repair-info-content auto">
|
|
16
|
-
<!--<div class="col-xs-12 col-sm-12 col-md-12 form-input-group">-->
|
|
17
|
-
<!--<label class="control-label">-->
|
|
18
|
-
<!--<nobr>维修日期:</nobr>-->
|
|
19
|
-
<!--</label>-->
|
|
20
|
-
<!--<span>{{data.f_date}}</span>-->
|
|
21
|
-
<!--</div>-->
|
|
22
|
-
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group">
|
|
23
|
-
<label class="control-label">
|
|
24
|
-
<nobr>到达时间:</nobr>
|
|
25
|
-
</label>
|
|
26
|
-
<span>{{ data.f_date_come }}</span>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group" v-if="data.f_date_leave">
|
|
29
|
-
<label class="control-label">
|
|
30
|
-
<nobr>离开时间:</nobr>
|
|
31
|
-
</label>
|
|
32
|
-
<span>{{ data.f_date_leave }}</span>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
<!-- 用户基信息内容 -->
|
|
36
|
-
<div v-if="model" class="auto repair-info-content compatible">
|
|
37
|
-
<div class="row auto">
|
|
38
|
-
<!-- <div class="{{shuclass}}">
|
|
39
|
-
<label class=" lb-left text-justify">客户编号</label>
|
|
40
|
-
<span v-if="show" style="font-weight:bold">{{model.f_userinfo_code}}</span>
|
|
41
|
-
<input type="text" class="form-control" v-model="model.f_userinfo_code" v-if="!show" readonly>
|
|
42
|
-
<!–<button type="button" name="button" class="btn btn-primary" @click="findUserByCardId(model.f_userinfo_code)"–>
|
|
43
|
-
<!–v-if="!show">查找–>
|
|
44
|
-
<!–</button>–>
|
|
45
|
-
</div>-->
|
|
46
|
-
<div class="{{shuclass}}">
|
|
47
|
-
<label class=" lb-left text-justify">姓名</label>
|
|
48
|
-
<span v-if="show" style="font-weight:bold">{{ model.f_user_name }}</span>
|
|
49
|
-
<template v-if="!show">
|
|
50
|
-
<input :disabled="worktype == '报修单'" type="text" class="form-control" v-model="model.f_user_name"
|
|
51
|
-
:readonly="issee">
|
|
52
|
-
</template>
|
|
53
|
-
</div>
|
|
54
|
-
<div v-show="false" class="{{shuclass}}"
|
|
55
|
-
v-if="!((worktype == '置换通气单'||worktype == '安装单') && model.f_user_type == '非民用')">
|
|
56
|
-
<label class="lb-left text-justify">客户类型</label>
|
|
57
|
-
<input type="text" class="form-control" v-model="model.f_user_type" readonly v-if="!show">
|
|
58
|
-
<span v-if="show" style="font-weight:bold">{{ model.f_user_type }}</span>
|
|
59
|
-
</div>
|
|
60
|
-
<div class="{{shuclass}}" v-if="((worktype == '置换通气单'||worktype == '安装单') && model.f_user_type == '民用')">
|
|
61
|
-
<label class="lb-left text-justify">用气性质</label>
|
|
62
|
-
<input type="text" class="form-control" v-model="model.f_gasproperties" readonly v-if="!show">
|
|
63
|
-
<span v-if="show" style="font-weight:bold">{{ model.f_gasproperties }}</span>
|
|
64
|
-
</div>
|
|
65
|
-
<div v-show="false" class="{{shuclass}}"
|
|
66
|
-
v-if="(worktype == '置换通气单'||worktype == '安装单') && model.f_user_type == '非民用'">
|
|
67
|
-
<label class="lb-left text-justify">客户类型</label>
|
|
68
|
-
<input type="text" class="form-control" v-model="model.f_user_type" readonly v-if="!show">
|
|
69
|
-
<span v-if="show" style="font-weight:bold">{{ model.f_user_type }}</span>
|
|
70
|
-
</div>
|
|
71
|
-
<div class="{{shuclass}}" v-if="(worktype == '置换通气单'||worktype == '安装单') && model.f_user_type == '非民用'">
|
|
72
|
-
<label class="lb-left text-justify">用气性质</label>
|
|
73
|
-
<input type="text" class="form-control" v-model="model.f_gasproperties" readonly v-if="!show">
|
|
74
|
-
<span v-if="show" style="font-weight:bold">{{ model.f_gasproperties }}</span>
|
|
75
|
-
</div>
|
|
76
|
-
<!-- <div class="{{shuclass}}">-->
|
|
77
|
-
<!-- <label class=" lb-left text-justify" >来电电话</label>-->
|
|
78
|
-
<!-- <span v-if="show" style="font-weight:bold">{{model.f_linkphone}}</span>-->
|
|
79
|
-
<!-- <template v-if="!show">-->
|
|
80
|
-
<!-- <input type="text" class="form-control" v-model="model.f_linkphone" readonly>-->
|
|
81
|
-
<!-- </template>-->
|
|
82
|
-
<!-- </div>-->
|
|
83
|
-
<div class="{{shuclass}}">
|
|
84
|
-
<label class=" lb-left text-justify">联系电话</label>
|
|
85
|
-
<span v-if="show" style="font-weight:bold">{{ model.f_user_phone }}</span>
|
|
86
|
-
<template v-if="!show">
|
|
87
|
-
<input type="text" class="form-control" v-model="model.f_user_phone" :readonly="issee"
|
|
88
|
-
onkeyup="value=value.replace(/[^\d\.]/g,'')">
|
|
89
|
-
</template>
|
|
90
|
-
</div>
|
|
91
|
-
<div class="col-xs-12 col-sm-12 col-md-6 form-input-group">
|
|
92
|
-
<label class=" lb-left text-justify">地址</label>
|
|
93
|
-
<span v-if="show" style="font-weight:bold">{{ model.f_address }}</span>
|
|
94
|
-
<template v-if="!show">
|
|
95
|
-
<textarea :disabled="worktype == '报修单'" type="text" class="form-control" v-model="model.f_address"
|
|
96
|
-
readonly></textarea>
|
|
97
|
-
</template>
|
|
98
|
-
</div>
|
|
99
|
-
|
|
100
|
-
<!-- 置换通气单配置选项 -->
|
|
101
|
-
<div class="{{shuclass}}" v-if="worktype == '置换通气单'||worktype == '安装单'">
|
|
102
|
-
<label class=" lb-left text-justify">身份证号</label>
|
|
103
|
-
<span v-if="show" style="font-weight:bold">{{ model.f_shenfenzheng }}</span>
|
|
104
|
-
<template v-if="!show">
|
|
105
|
-
<input type="text" class="form-control" v-model="model.f_shenfenzheng" :readonly="issee">
|
|
106
|
-
</template>
|
|
107
|
-
</div>
|
|
108
|
-
<div class="{{shuclass}}" v-if="(worktype == '置换通气单'||worktype == '安装单') && isshenfenzheng">
|
|
109
|
-
<span style="font-size:10px;color: red">输入的身份证号长度不对,或者号码不符合规定!</span>
|
|
110
|
-
</div>
|
|
111
|
-
<div class="{{shuclass}}" v-if="worktype == '置换通气单'">
|
|
112
|
-
<label class=" lb-left text-justify">燃气具</label>
|
|
113
|
-
<span
|
|
114
|
-
style="font-weight:bold">{{ $parent.$parent.$parent.$parent.tabs[0].props.service.f_gasstoves }}</span>
|
|
115
|
-
</div>
|
|
116
|
-
<div class="{{shuclass}}" v-if="worktype == '置换通气单'">
|
|
117
|
-
<label class=" lb-left text-justify"
|
|
118
|
-
<span
|
|
119
|
-
style="font-weight:bold">{{ $parent.$parent.$parent.$parent.tabs[0].props.service.f_waterheater }}</span>
|
|
120
|
-
</div>
|
|
121
|
-
<div class="{{shuclass}}" v-if="worktype == '置换通气单'">
|
|
122
|
-
<label class=" lb-left text-justify">壁挂炉</label>
|
|
123
|
-
<span
|
|
124
|
-
style="font-weight:bold">{{ $parent.$parent.$parent.$parent.tabs[0].props.service.f_wallhangingfurnace }}</span>
|
|
125
|
-
</div>
|
|
126
|
-
</div>
|
|
127
|
-
<div class="row">
|
|
128
|
-
<!-- <div class="{{shuclass}}" v-if="worktype == '置换通气单'||worktype == '安装单'">-->
|
|
129
|
-
<!-- <label class="lb-left text-justify">住户类型</label>-->
|
|
130
|
-
<!-- <span v-if="show" style="font-weight:bold">{{model.f_house_type}}</span>-->
|
|
131
|
-
<!-- <v-select :value="model.f_house_type" :value-single="true"-->
|
|
132
|
-
<!-- :options='housetype' placeholder='请选择'-->
|
|
133
|
-
<!-- close-on-select v-if="!show"-->
|
|
134
|
-
<!-- v-on:change="housetypechange"-->
|
|
135
|
-
<!-- :disabled="issee">-->
|
|
136
|
-
<!-- </v-select>-->
|
|
137
|
-
<!-- </div>-->
|
|
138
|
-
<!-- <div class="{{shuclass}}" v-if="worktype == '置换通气单'">
|
|
139
|
-
<label class="lb-left text-justify">住户备注</label>
|
|
140
|
-
<span v-if="show" style="font-weight:bold">{{model.f_remarks}}</span>
|
|
141
|
-
<input type="text" class="form-control" v-model="model.f_remarks" v-if="!show" :readonly="issee">
|
|
142
|
-
</div>-->
|
|
143
|
-
<!--报修特殊配置选项 -->
|
|
144
|
-
<div class="{{shuclass}}"
|
|
145
|
-
v-if="worktype == '报修单' && noExp && meterinfo && meterinfo.f_collection_type == '按气量'">
|
|
146
|
-
<label class="lb-left text-justify">累购气量</label>
|
|
147
|
-
<input type="text" class="form-control" v-model="meterinfo.f_total_gas" :disabled="show"
|
|
148
|
-
:readonly="issee">
|
|
149
|
-
</div>
|
|
150
|
-
<div class="{{shuclass}}"
|
|
151
|
-
v-if="worktype == '报修单' && noExp && meterinfo && meterinfo.f_collection_type == '按金额'">
|
|
152
|
-
<label class="lb-left text-justify">累购金额</label>
|
|
153
|
-
<input type="text" class="form-control" v-model="meterinfo.f_total_fee" :disabled="show"
|
|
154
|
-
:readonly="issee">
|
|
155
|
-
</div>
|
|
156
|
-
<div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
|
|
157
|
-
<label class="lb-left text-justify">气表品牌</label>
|
|
158
|
-
<input type="text" class="form-control" v-model="meterinfo.f_meter_brand" :disabled="show"
|
|
159
|
-
:readonly="issee">
|
|
160
|
-
</div>
|
|
161
|
-
<div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
|
|
162
|
-
<label class="lb-left text-justify">气表型号</label>
|
|
163
|
-
<input type="text" class="form-control" v-model="meterinfo.f_meter_style" :disabled="show"
|
|
164
|
-
:readonly="issee">
|
|
165
|
-
</div>
|
|
166
|
-
<div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
|
|
167
|
-
<label class="lb-left text-justify">左右表</label>
|
|
168
|
-
<input type="text" class="form-control" v-model="meterinfo.f_aroundmeter" :disabled="show"
|
|
169
|
-
:readonly="issee">
|
|
170
|
-
</div>
|
|
171
|
-
<div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
|
|
172
|
-
<label class="lb-left text-justify">安装位置</label>
|
|
173
|
-
<input type="text" class="form-control" v-model="meterinfo.f_position" :disabled="show" :readonly="issee">
|
|
174
|
-
</div>
|
|
175
|
-
<div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
|
|
176
|
-
<label class="lb-left text-justify">表号</label>
|
|
177
|
-
<input type="text" class="form-control" v-model="meterinfo.f_meternumber" :disabled="show"
|
|
178
|
-
:readonly="issee">
|
|
179
|
-
</div>
|
|
180
|
-
<div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
|
|
181
|
-
<label class="lb-left text-justify">气表初始底数</label>
|
|
182
|
-
<input type="text" class="form-control" v-model="model.f_initial_base" :disabled="show" :readonly="issee">
|
|
183
|
-
</div>
|
|
184
|
-
</div>
|
|
185
|
-
</div>
|
|
186
|
-
</div>
|
|
187
|
-
</div>
|
|
188
|
-
<!--</validator>-->
|
|
189
|
-
</div>
|
|
190
|
-
</template>
|
|
191
|
-
<script>
|
|
192
|
-
import * as Util from '../../../components/Util'
|
|
193
|
-
import {HttpResetClass} from "vue-client";
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
export default {
|
|
197
|
-
title: '维修列表客户基本信息',
|
|
198
|
-
data() {
|
|
199
|
-
return {
|
|
200
|
-
telphoneValid: '/^((0\\d{2,3}-\\d{7,8})|(1[3584]\\d{9}))$/',
|
|
201
|
-
watchtype: this.$appdata.getParam('表型'),
|
|
202
|
-
gasdirection: this.$appdata.getParam('进气方向'),
|
|
203
|
-
watchhull: this.$appdata.getParam('表封'),
|
|
204
|
-
ictype: this.$appdata.getParam('IC卡类型'),
|
|
205
|
-
meterstyle: [],
|
|
206
|
-
shuclass: 'col-xs-6 col-sm-6 col-md-6 form-input-group mg8',
|
|
207
|
-
isshenfenzheng: false,
|
|
208
|
-
noExp: false,
|
|
209
|
-
meterinfo: {}
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
props: {
|
|
213
|
-
issee: '',
|
|
214
|
-
worktype: {
|
|
215
|
-
type: String,
|
|
216
|
-
default: '报修单'
|
|
217
|
-
},
|
|
218
|
-
// userinfo: {
|
|
219
|
-
// type: Object
|
|
220
|
-
// },
|
|
221
|
-
// 维修对应的用户数据收集
|
|
222
|
-
model: {
|
|
223
|
-
type: Object
|
|
224
|
-
},
|
|
225
|
-
// 工单信息
|
|
226
|
-
repair: {
|
|
227
|
-
type: Object
|
|
228
|
-
},
|
|
229
|
-
savevalid: {},
|
|
230
|
-
sum: {},
|
|
231
|
-
user: {
|
|
232
|
-
type: Object
|
|
233
|
-
},
|
|
234
|
-
show: {
|
|
235
|
-
type: Boolean,
|
|
236
|
-
default: false
|
|
237
|
-
},
|
|
238
|
-
// 本次维修, 用于编辑
|
|
239
|
-
data: {
|
|
240
|
-
type: Object
|
|
241
|
-
},
|
|
242
|
-
shutype: 'heng'
|
|
243
|
-
},
|
|
244
|
-
methods: {
|
|
245
|
-
housetypechange(val) {
|
|
246
|
-
if (val) {
|
|
247
|
-
this.model.f_house_type = val
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
usertypeschange(val) {
|
|
251
|
-
this.model.f_npuser_type = val
|
|
252
|
-
},
|
|
253
|
-
gasbrandchange(val) {
|
|
254
|
-
this.model.f_gasbrand_id = val
|
|
255
|
-
let ret = this.$TelGetSaleParam.getGasbrand()
|
|
256
|
-
//tag
|
|
257
|
-
let rs = new Array()
|
|
258
|
-
if (this.model.f_gasbrand_id) {
|
|
259
|
-
ret.forEach((item, index) => {
|
|
260
|
-
if (this.model.f_gasbrand_id == item.value.id) {
|
|
261
|
-
this.model.f_gasbrand_name = item.label
|
|
262
|
-
item.value.gasmodel.forEach((item1, index1) => {
|
|
263
|
-
rs.push({label: item1.label, value: item1.value.id})
|
|
264
|
-
})
|
|
265
|
-
}
|
|
266
|
-
})
|
|
267
|
-
}
|
|
268
|
-
this.meterstyle = rs
|
|
269
|
-
},
|
|
270
|
-
gasmodelchange(val) {
|
|
271
|
-
if (val == undefined || val == '') {
|
|
272
|
-
return
|
|
273
|
-
}
|
|
274
|
-
this.model.f_gasmodel_id = val
|
|
275
|
-
let ret = this.$TelGetSaleParam.getGasbrand()
|
|
276
|
-
if (this.model.f_gasbrand_id && this.model.f_gasmodel_id) {
|
|
277
|
-
ret.forEach((item, index) => {
|
|
278
|
-
if (this.model.f_gasbrand_id == item.value.id) {
|
|
279
|
-
item.value.gasmodel.forEach((item1, index1) => {
|
|
280
|
-
if (this.model.f_gasmodel_id == item1.value.id) {
|
|
281
|
-
this.model.f_gasmodel_name = item1.label
|
|
282
|
-
}
|
|
283
|
-
})
|
|
284
|
-
}
|
|
285
|
-
})
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
// getPricenames (pricetype) {
|
|
289
|
-
// //tag
|
|
290
|
-
// let rs = new Array()
|
|
291
|
-
// var f_fengongsi = ''
|
|
292
|
-
// if(Vue.android) {
|
|
293
|
-
// f_fengongsi = Vue.user.f_fengongsi
|
|
294
|
-
// }else {
|
|
295
|
-
// f_fengongsi = this.$login.f.f_fengongsi
|
|
296
|
-
// }
|
|
297
|
-
// if (this.model.f_user_type.length != '' && this.model.f_gasproperties != '' && pricetype != 1) {
|
|
298
|
-
// let params = {
|
|
299
|
-
// f_user_type: this.model.f_user_type,
|
|
300
|
-
// f_gasproperties: this.model.f_gasproperties,
|
|
301
|
-
// f_price_type: pricetype,
|
|
302
|
-
// filter: f_fengongsi
|
|
303
|
-
// }
|
|
304
|
-
// let ret = this.$GetSaleParam.getPrice(params)
|
|
305
|
-
// ret.forEach((item, index) => {
|
|
306
|
-
// rs.push({label: item.label, value: item.value.f_price_id})
|
|
307
|
-
// })
|
|
308
|
-
// }
|
|
309
|
-
// //tag
|
|
310
|
-
// return rs
|
|
311
|
-
// },
|
|
312
|
-
mute() {
|
|
313
|
-
HostApp.mute()
|
|
314
|
-
},
|
|
315
|
-
// findUserByCardId() {
|
|
316
|
-
// this.$resetpost(this.$androidUtil.getProxyUrl() + '/rs/sql/tel_singleTable_OrderBy', {
|
|
317
|
-
// data: {
|
|
318
|
-
// items: '*',
|
|
319
|
-
// tablename: 't_userinfo',
|
|
320
|
-
// condition: `f_userinfo_id = '${this.model.f_userinfo_id}'`,
|
|
321
|
-
// orderitem: 'f_userinfo_id'
|
|
322
|
-
// }
|
|
323
|
-
// }).then((res) => {
|
|
324
|
-
// if (res.data.length === 0) {
|
|
325
|
-
// HostApp.alert('未查询到相关用户,请仔细核对卡号是否正确')
|
|
326
|
-
// }
|
|
327
|
-
// // this.getSumGas()
|
|
328
|
-
// // object.assign会导致数据无法上传。暂定使用$set
|
|
329
|
-
// this.$set('model.f_username', res.data[0].f_user_name)
|
|
330
|
-
// this.$set('model.f_address', res.data[0].f_address)
|
|
331
|
-
// this.$set('model.f_user_type', res.data[0].f_user_type)
|
|
332
|
-
// this.$set('model.f_gasproperties', res.data[0].f_gasproperties)
|
|
333
|
-
// })
|
|
334
|
-
// },
|
|
335
|
-
// 判断 日期 到达时间 是否有值
|
|
336
|
-
ifCreatDate() {
|
|
337
|
-
if (this.data && !this.data.f_date) {
|
|
338
|
-
this.data.f_date = Util.toStandardTimeString()
|
|
339
|
-
}
|
|
340
|
-
if (this.data && !this.data.f_date_come) {
|
|
341
|
-
this.data.f_date_come = Util.toStandardTimeString()
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
},
|
|
345
|
-
async ready() {
|
|
346
|
-
//tag)
|
|
347
|
-
//tag)
|
|
348
|
-
debugger
|
|
349
|
-
if (this.worktype == '报修单' && this.repair.f_userinfo_id) {
|
|
350
|
-
this.show = true
|
|
351
|
-
let http = new HttpResetClass()
|
|
352
|
-
let res = await http.load('POST', this.$androidUtil.getProxyUrl() + '/rs/sql/getBaseMeterInfo', {
|
|
353
|
-
data: {
|
|
354
|
-
f_userinfo_id: this.repair.f_userinfo_id
|
|
355
|
-
}
|
|
356
|
-
}, {warnMsg: null, resolveMsg: null, rejectMsg: null})
|
|
357
|
-
//tag)
|
|
358
|
-
if (res.data[0]) {
|
|
359
|
-
this.meterinfo = res.data[0]
|
|
360
|
-
this.noExp = true
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
this.ifCreatDate()
|
|
364
|
-
},
|
|
365
|
-
watch: {
|
|
366
|
-
// 气表品牌 更新
|
|
367
|
-
'model.f_gasbrand_id'(val) {
|
|
368
|
-
if (val == undefined || val == '') {
|
|
369
|
-
return
|
|
370
|
-
}
|
|
371
|
-
if (this.model.f_gasbrand_id) {
|
|
372
|
-
let ret = this.$TelGetSaleParam.getGasbrand()
|
|
373
|
-
let rs = new Array()
|
|
374
|
-
if (this.model.f_gasbrand_id) {
|
|
375
|
-
ret.forEach((item, index) => {
|
|
376
|
-
if (this.model.f_gasbrand_id == item.value.id) {
|
|
377
|
-
this.model.f_gasbrand_name = item.label
|
|
378
|
-
item.value.gasmodel.forEach((item1, index1) => {
|
|
379
|
-
rs.push({label: item1.label, value: item1.value.id})
|
|
380
|
-
})
|
|
381
|
-
}
|
|
382
|
-
})
|
|
383
|
-
}
|
|
384
|
-
this.meterstyle = rs
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
// 气价名称
|
|
388
|
-
// 'model.f_pricename_id' () {
|
|
389
|
-
// var f_fengongsi = ''
|
|
390
|
-
// if(Vue.android) {
|
|
391
|
-
// f_fengongsi = Vue.user.f_fengongsi
|
|
392
|
-
// }else {
|
|
393
|
-
// f_fengongsi = Util.f.f_fengongsi
|
|
394
|
-
// }
|
|
395
|
-
// if (this.model.f_user_type && this.model.f_gasproperties && this.model.f_price_type && this.model.f_pricename_id) {
|
|
396
|
-
// let params = {
|
|
397
|
-
// f_user_type: this.model.f_user_type,
|
|
398
|
-
// f_gasproperties: this.model.f_gasproperties,
|
|
399
|
-
// f_price_type: this.model.f_price_type,
|
|
400
|
-
// filter: f_fengongsi
|
|
401
|
-
// }
|
|
402
|
-
// let ret = this.$GetSaleParam.getPrice(params)
|
|
403
|
-
// //tag
|
|
404
|
-
// ret.forEach((item, index) => {
|
|
405
|
-
// if(this.model.f_pricename_id == item.value.f_price_id) {
|
|
406
|
-
// this.model.f_pricename = item.label
|
|
407
|
-
// }
|
|
408
|
-
// })
|
|
409
|
-
// }
|
|
410
|
-
// },
|
|
411
|
-
'repair'() {
|
|
412
|
-
if (this.repair.f_orderstatus) {
|
|
413
|
-
return
|
|
414
|
-
}
|
|
415
|
-
if (this.model.f_address) {
|
|
416
|
-
return
|
|
417
|
-
}
|
|
418
|
-
this.$set('model.f_linkphone', this.repair.f_phone)
|
|
419
|
-
this.$set('model.f_address', this.repair.f_address)
|
|
420
|
-
this.$set('model.f_userinfo_id', this.repair.f_userinfo_id)
|
|
421
|
-
this.$set('model.f_user_phone', this.repair.f_contact_phone)
|
|
422
|
-
this.$set('model.f_user_name', this.repair.f_user_name)
|
|
423
|
-
this.$set('model.f_user_type', this.repair.f_user_type)
|
|
424
|
-
this.$set('model.f_gasproperties', this.repair.f_gasproperties)
|
|
425
|
-
this.$set('model.f_userinfo_code', this.repair.f_userinfo_code)
|
|
426
|
-
if (!this.model.f_house_type) {
|
|
427
|
-
this.model.f_house_type == '自有房'
|
|
428
|
-
}
|
|
429
|
-
if (this.model.f_user_type == '非民用') {
|
|
430
|
-
if (this.model.f_gasproperties == '工业用气') {
|
|
431
|
-
this.$set('model.f_house_type', '工业用户')
|
|
432
|
-
} else if (this.model.f_gasproperties == '商业用气') {
|
|
433
|
-
this.$set('model.f_house_type', '商业用户')
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
},
|
|
437
|
-
'valid'() {
|
|
438
|
-
this.savevalid.uservalid = this.$v.valid
|
|
439
|
-
},
|
|
440
|
-
'shutype'(val) {
|
|
441
|
-
if (val == 'shu') {
|
|
442
|
-
this.shuclass = 'col-xs-12 col-sm-12 col-md-12 form-input-group mg8'
|
|
443
|
-
}
|
|
444
|
-
},
|
|
445
|
-
'model.f_shenfenzheng'(val) {
|
|
446
|
-
if (val) {
|
|
447
|
-
if (!(/^[1-9][0-9]{5}([1][9][0-9]{2}|[2][0][0|1][0-9])([0][1-9]|[1][0|1|2])([0][1-9]|[1|2][0-9]|[3][0|1])[0-9]{3}([0-9]|[X])$/.test(val))) {
|
|
448
|
-
// this.$showAlert('输入的身份证号长度不对,或者号码不符合规定!\n15位号码应全为数字,18位号码末位可以为数字或X。')
|
|
449
|
-
this.isshenfenzheng = true
|
|
450
|
-
} else {
|
|
451
|
-
this.isshenfenzheng = false
|
|
452
|
-
}
|
|
453
|
-
} else {
|
|
454
|
-
this.isshenfenzheng = false
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
// 'userinfo' () {
|
|
458
|
-
// if(this.repair.f_orderstatus){
|
|
459
|
-
// return
|
|
460
|
-
// }
|
|
461
|
-
// if(this.userinfo == undefined || this.userinfo == '' ){
|
|
462
|
-
// return
|
|
463
|
-
// }
|
|
464
|
-
// this.$set('model.f_userinfo_code', this.userinfo.baseinfo.base.f_userinfo_code)
|
|
465
|
-
// this.$set('model.f_user_name', this.userinfo.baseinfo.base.f_user_name)
|
|
466
|
-
// this.$set('model.f_user_type', this.userinfo.baseinfo.base.f_user_type)
|
|
467
|
-
// this.$set('model.f_gasproperties', this.userinfo.baseinfo.base.f_gasproperties)
|
|
468
|
-
// this.$set('model.f_gasbrand_id', this.userinfo.meterinfo[0].f_gasbrand_id)
|
|
469
|
-
// this.$set('model.f_gasmodel_id', this.userinfo.meterinfo[0].f_gasmodel_id)
|
|
470
|
-
// this.$set('model.f_price_type', this.userinfo.baseinfo.base.pricetype)
|
|
471
|
-
// this.$set('model.f_pricename_id', this.userinfo.baseinfo.base.f_price_id)
|
|
472
|
-
// this.$set('model.f_aroundmeter', this.userinfo.meterinfo[0].f_aroundmeter)
|
|
473
|
-
// this.$set('model.f_position', this.userinfo.meterinfo[0].f_position)
|
|
474
|
-
// this.$set('model.f_userinfo_id', this.userinfo.baseinfo.base.f_userinfo_id)
|
|
475
|
-
// this.$set('model.f_user_id', this.userinfo.meterinfo[0].f_user_id)
|
|
476
|
-
// this.$set('model.versionfile', this.userinfo.meterinfo[0].version)
|
|
477
|
-
// this.$set('model.versioninfo', this.userinfo.baseinfo.base.version)
|
|
478
|
-
// }
|
|
479
|
-
},
|
|
480
|
-
computed: {
|
|
481
|
-
positions() {
|
|
482
|
-
return this.$appdata.getParam('安装位置')
|
|
483
|
-
},
|
|
484
|
-
usertypes() {
|
|
485
|
-
return this.$appdata.getParam('非民用用户类型')
|
|
486
|
-
},
|
|
487
|
-
// f_price_types () {
|
|
488
|
-
// return this.$appdata.getParam('气价类型')
|
|
489
|
-
// },
|
|
490
|
-
housetype() {
|
|
491
|
-
if (this.model.f_user_type == '民用') {
|
|
492
|
-
return this.$appdata.getParam('民用置换住户类型')
|
|
493
|
-
} else {
|
|
494
|
-
return this.$appdata.getParam('非民用置换住户类型')
|
|
495
|
-
}
|
|
496
|
-
},
|
|
497
|
-
// meterstyle() {
|
|
498
|
-
// let ret = this.$GetSaleParam.getGasbrand()
|
|
499
|
-
// //tag
|
|
500
|
-
// let rs = new Array()
|
|
501
|
-
// if(this.model.f_gasbrand_id) {
|
|
502
|
-
// ret.forEach((item, index) => {
|
|
503
|
-
// if(this.model.f_gasbrand_id == item.value.id) {
|
|
504
|
-
// // rs = item.value.gasmodel
|
|
505
|
-
// item.value.gasmodel.forEach((item1, index1) => {
|
|
506
|
-
// rs.push({label: item1.label, value: item1.value.id})
|
|
507
|
-
// })
|
|
508
|
-
// }
|
|
509
|
-
// })
|
|
510
|
-
// }
|
|
511
|
-
// return rs
|
|
512
|
-
// },
|
|
513
|
-
// pricenames() {
|
|
514
|
-
// let rs = new Array()
|
|
515
|
-
// var f_fengongsi = ''
|
|
516
|
-
// if(Vue.android) {
|
|
517
|
-
// f_fengongsi = Vue.user.f_fengongsi
|
|
518
|
-
// }else {
|
|
519
|
-
// f_fengongsi = this.$login.f.f_fengongsi
|
|
520
|
-
// }
|
|
521
|
-
// if (this.model.f_user_type && this.model.f_gasproperties && this.model.f_price_type) {
|
|
522
|
-
// let params = {
|
|
523
|
-
// f_user_type: this.model.f_user_type,
|
|
524
|
-
// f_gasproperties: this.model.f_gasproperties,
|
|
525
|
-
// f_price_type: this.model.f_price_type,
|
|
526
|
-
// filter: f_fengongsi
|
|
527
|
-
// }
|
|
528
|
-
// let ret = this.$GetSaleParam.getPrice(params)
|
|
529
|
-
// //tag
|
|
530
|
-
// ret.forEach((item, index) => {
|
|
531
|
-
// rs.push({label: item.label, value: item.value.f_price_id})
|
|
532
|
-
// })
|
|
533
|
-
// }
|
|
534
|
-
// //tag
|
|
535
|
-
// return rs
|
|
536
|
-
// },
|
|
537
|
-
aroundmeters() {
|
|
538
|
-
return this.$appdata.getParam('左右表')
|
|
539
|
-
},
|
|
540
|
-
// gasproperties () {
|
|
541
|
-
// let rs = []
|
|
542
|
-
// if (this.model.f_user_type) {
|
|
543
|
-
// rs = this.$appdata.getParam(this.model.f_user_type)
|
|
544
|
-
// }
|
|
545
|
-
// return rs
|
|
546
|
-
// },
|
|
547
|
-
valid() {
|
|
548
|
-
this.savevalid.uservalid = this.$v.valid
|
|
549
|
-
return this.$v.valid
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
</script>
|
|
554
|
-
<style lang="less">
|
|
555
|
-
.class-erro {
|
|
556
|
-
color: #a94442;
|
|
557
|
-
}
|
|
558
|
-
</style>
|
|
559
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="select-overspread repair-bg auto" style="padding-bottom:5px;">
|
|
3
|
+
<!--<validator name='v' @valid="$emit('valid')" @invalid="$emit('invalid')">-->
|
|
4
|
+
<div class="bq-parent" v-if="shutype == 'heng'">
|
|
5
|
+
<blockquote class="blockquote">
|
|
6
|
+
<p><span>用户基本信息</span><a @click="mute()" style="float:right" href="javascript:void(0)"
|
|
7
|
+
class="repair-mute-class"><img src="../../../assets/novoice.png" width="25px;"
|
|
8
|
+
alt=""><span style="margin-left:10px;color: #304A66">关闭声音</span></a>
|
|
9
|
+
</p>
|
|
10
|
+
</blockquote>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="panel panel-default auto repair-info-content">
|
|
13
|
+
<div class="panel-body">
|
|
14
|
+
<!-- 维修相关时间 -->
|
|
15
|
+
<div v-if="data" class="row repair-info-content auto">
|
|
16
|
+
<!--<div class="col-xs-12 col-sm-12 col-md-12 form-input-group">-->
|
|
17
|
+
<!--<label class="control-label">-->
|
|
18
|
+
<!--<nobr>维修日期:</nobr>-->
|
|
19
|
+
<!--</label>-->
|
|
20
|
+
<!--<span>{{data.f_date}}</span>-->
|
|
21
|
+
<!--</div>-->
|
|
22
|
+
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group">
|
|
23
|
+
<label class="control-label">
|
|
24
|
+
<nobr>到达时间:</nobr>
|
|
25
|
+
</label>
|
|
26
|
+
<span>{{ data.f_date_come }}</span>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group" v-if="data.f_date_leave">
|
|
29
|
+
<label class="control-label">
|
|
30
|
+
<nobr>离开时间:</nobr>
|
|
31
|
+
</label>
|
|
32
|
+
<span>{{ data.f_date_leave }}</span>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<!-- 用户基信息内容 -->
|
|
36
|
+
<div v-if="model" class="auto repair-info-content compatible">
|
|
37
|
+
<div class="row auto">
|
|
38
|
+
<!-- <div class="{{shuclass}}">
|
|
39
|
+
<label class=" lb-left text-justify">客户编号</label>
|
|
40
|
+
<span v-if="show" style="font-weight:bold">{{model.f_userinfo_code}}</span>
|
|
41
|
+
<input type="text" class="form-control" v-model="model.f_userinfo_code" v-if="!show" readonly>
|
|
42
|
+
<!–<button type="button" name="button" class="btn btn-primary" @click="findUserByCardId(model.f_userinfo_code)"–>
|
|
43
|
+
<!–v-if="!show">查找–>
|
|
44
|
+
<!–</button>–>
|
|
45
|
+
</div>-->
|
|
46
|
+
<div class="{{shuclass}}">
|
|
47
|
+
<label class=" lb-left text-justify">姓名</label>
|
|
48
|
+
<span v-if="show" style="font-weight:bold">{{ model.f_user_name }}</span>
|
|
49
|
+
<template v-if="!show">
|
|
50
|
+
<input :disabled="worktype == '报修单'" type="text" class="form-control" v-model="model.f_user_name"
|
|
51
|
+
:readonly="issee">
|
|
52
|
+
</template>
|
|
53
|
+
</div>
|
|
54
|
+
<div v-show="false" class="{{shuclass}}"
|
|
55
|
+
v-if="!((worktype == '置换通气单'||worktype == '安装单') && model.f_user_type == '非民用')">
|
|
56
|
+
<label class="lb-left text-justify">客户类型</label>
|
|
57
|
+
<input type="text" class="form-control" v-model="model.f_user_type" readonly v-if="!show">
|
|
58
|
+
<span v-if="show" style="font-weight:bold">{{ model.f_user_type }}</span>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="{{shuclass}}" v-if="((worktype == '置换通气单'||worktype == '安装单') && model.f_user_type == '民用')">
|
|
61
|
+
<label class="lb-left text-justify">用气性质</label>
|
|
62
|
+
<input type="text" class="form-control" v-model="model.f_gasproperties" readonly v-if="!show">
|
|
63
|
+
<span v-if="show" style="font-weight:bold">{{ model.f_gasproperties }}</span>
|
|
64
|
+
</div>
|
|
65
|
+
<div v-show="false" class="{{shuclass}}"
|
|
66
|
+
v-if="(worktype == '置换通气单'||worktype == '安装单') && model.f_user_type == '非民用'">
|
|
67
|
+
<label class="lb-left text-justify">客户类型</label>
|
|
68
|
+
<input type="text" class="form-control" v-model="model.f_user_type" readonly v-if="!show">
|
|
69
|
+
<span v-if="show" style="font-weight:bold">{{ model.f_user_type }}</span>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="{{shuclass}}" v-if="(worktype == '置换通气单'||worktype == '安装单') && model.f_user_type == '非民用'">
|
|
72
|
+
<label class="lb-left text-justify">用气性质</label>
|
|
73
|
+
<input type="text" class="form-control" v-model="model.f_gasproperties" readonly v-if="!show">
|
|
74
|
+
<span v-if="show" style="font-weight:bold">{{ model.f_gasproperties }}</span>
|
|
75
|
+
</div>
|
|
76
|
+
<!-- <div class="{{shuclass}}">-->
|
|
77
|
+
<!-- <label class=" lb-left text-justify" >来电电话</label>-->
|
|
78
|
+
<!-- <span v-if="show" style="font-weight:bold">{{model.f_linkphone}}</span>-->
|
|
79
|
+
<!-- <template v-if="!show">-->
|
|
80
|
+
<!-- <input type="text" class="form-control" v-model="model.f_linkphone" readonly>-->
|
|
81
|
+
<!-- </template>-->
|
|
82
|
+
<!-- </div>-->
|
|
83
|
+
<div class="{{shuclass}}">
|
|
84
|
+
<label class=" lb-left text-justify">联系电话</label>
|
|
85
|
+
<span v-if="show" style="font-weight:bold">{{ model.f_user_phone }}</span>
|
|
86
|
+
<template v-if="!show">
|
|
87
|
+
<input type="text" class="form-control" v-model="model.f_user_phone" :readonly="issee"
|
|
88
|
+
onkeyup="value=value.replace(/[^\d\.]/g,'')">
|
|
89
|
+
</template>
|
|
90
|
+
</div>
|
|
91
|
+
<div class="col-xs-12 col-sm-12 col-md-6 form-input-group">
|
|
92
|
+
<label class=" lb-left text-justify">地址</label>
|
|
93
|
+
<span v-if="show" style="font-weight:bold">{{ model.f_address }}</span>
|
|
94
|
+
<template v-if="!show">
|
|
95
|
+
<textarea :disabled="worktype == '报修单'" type="text" class="form-control" v-model="model.f_address"
|
|
96
|
+
readonly></textarea>
|
|
97
|
+
</template>
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
<!-- 置换通气单配置选项 -->
|
|
101
|
+
<div class="{{shuclass}}" v-if="worktype == '置换通气单'||worktype == '安装单'">
|
|
102
|
+
<label class=" lb-left text-justify">身份证号</label>
|
|
103
|
+
<span v-if="show" style="font-weight:bold">{{ model.f_shenfenzheng }}</span>
|
|
104
|
+
<template v-if="!show">
|
|
105
|
+
<input type="text" class="form-control" v-model="model.f_shenfenzheng" :readonly="issee">
|
|
106
|
+
</template>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="{{shuclass}}" v-if="(worktype == '置换通气单'||worktype == '安装单') && isshenfenzheng">
|
|
109
|
+
<span style="font-size:10px;color: red">输入的身份证号长度不对,或者号码不符合规定!</span>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="{{shuclass}}" v-if="worktype == '置换通气单'">
|
|
112
|
+
<label class=" lb-left text-justify">燃气具</label>
|
|
113
|
+
<span
|
|
114
|
+
style="font-weight:bold">{{ $parent.$parent.$parent.$parent.tabs[0].props.service.f_gasstoves }}</span>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="{{shuclass}}" v-if="worktype == '置换通气单'">
|
|
117
|
+
<label class=" lb-left text-justify">热水器</label>
|
|
118
|
+
<span
|
|
119
|
+
style="font-weight:bold">{{ $parent.$parent.$parent.$parent.tabs[0].props.service.f_waterheater }}</span>
|
|
120
|
+
</div>
|
|
121
|
+
<div class="{{shuclass}}" v-if="worktype == '置换通气单'">
|
|
122
|
+
<label class=" lb-left text-justify">壁挂炉</label>
|
|
123
|
+
<span
|
|
124
|
+
style="font-weight:bold">{{ $parent.$parent.$parent.$parent.tabs[0].props.service.f_wallhangingfurnace }}</span>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
<div class="row">
|
|
128
|
+
<!-- <div class="{{shuclass}}" v-if="worktype == '置换通气单'||worktype == '安装单'">-->
|
|
129
|
+
<!-- <label class="lb-left text-justify">住户类型</label>-->
|
|
130
|
+
<!-- <span v-if="show" style="font-weight:bold">{{model.f_house_type}}</span>-->
|
|
131
|
+
<!-- <v-select :value="model.f_house_type" :value-single="true"-->
|
|
132
|
+
<!-- :options='housetype' placeholder='请选择'-->
|
|
133
|
+
<!-- close-on-select v-if="!show"-->
|
|
134
|
+
<!-- v-on:change="housetypechange"-->
|
|
135
|
+
<!-- :disabled="issee">-->
|
|
136
|
+
<!-- </v-select>-->
|
|
137
|
+
<!-- </div>-->
|
|
138
|
+
<!-- <div class="{{shuclass}}" v-if="worktype == '置换通气单'">
|
|
139
|
+
<label class="lb-left text-justify">住户备注</label>
|
|
140
|
+
<span v-if="show" style="font-weight:bold">{{model.f_remarks}}</span>
|
|
141
|
+
<input type="text" class="form-control" v-model="model.f_remarks" v-if="!show" :readonly="issee">
|
|
142
|
+
</div>-->
|
|
143
|
+
<!--报修特殊配置选项 -->
|
|
144
|
+
<div class="{{shuclass}}"
|
|
145
|
+
v-if="worktype == '报修单' && noExp && meterinfo && meterinfo.f_collection_type == '按气量'">
|
|
146
|
+
<label class="lb-left text-justify">累购气量</label>
|
|
147
|
+
<input type="text" class="form-control" v-model="meterinfo.f_total_gas" :disabled="show"
|
|
148
|
+
:readonly="issee">
|
|
149
|
+
</div>
|
|
150
|
+
<div class="{{shuclass}}"
|
|
151
|
+
v-if="worktype == '报修单' && noExp && meterinfo && meterinfo.f_collection_type == '按金额'">
|
|
152
|
+
<label class="lb-left text-justify">累购金额</label>
|
|
153
|
+
<input type="text" class="form-control" v-model="meterinfo.f_total_fee" :disabled="show"
|
|
154
|
+
:readonly="issee">
|
|
155
|
+
</div>
|
|
156
|
+
<div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
|
|
157
|
+
<label class="lb-left text-justify">气表品牌</label>
|
|
158
|
+
<input type="text" class="form-control" v-model="meterinfo.f_meter_brand" :disabled="show"
|
|
159
|
+
:readonly="issee">
|
|
160
|
+
</div>
|
|
161
|
+
<div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
|
|
162
|
+
<label class="lb-left text-justify">气表型号</label>
|
|
163
|
+
<input type="text" class="form-control" v-model="meterinfo.f_meter_style" :disabled="show"
|
|
164
|
+
:readonly="issee">
|
|
165
|
+
</div>
|
|
166
|
+
<div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
|
|
167
|
+
<label class="lb-left text-justify">左右表</label>
|
|
168
|
+
<input type="text" class="form-control" v-model="meterinfo.f_aroundmeter" :disabled="show"
|
|
169
|
+
:readonly="issee">
|
|
170
|
+
</div>
|
|
171
|
+
<div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
|
|
172
|
+
<label class="lb-left text-justify">安装位置</label>
|
|
173
|
+
<input type="text" class="form-control" v-model="meterinfo.f_position" :disabled="show" :readonly="issee">
|
|
174
|
+
</div>
|
|
175
|
+
<div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
|
|
176
|
+
<label class="lb-left text-justify">表号</label>
|
|
177
|
+
<input type="text" class="form-control" v-model="meterinfo.f_meternumber" :disabled="show"
|
|
178
|
+
:readonly="issee">
|
|
179
|
+
</div>
|
|
180
|
+
<div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
|
|
181
|
+
<label class="lb-left text-justify">气表初始底数</label>
|
|
182
|
+
<input type="text" class="form-control" v-model="model.f_initial_base" :disabled="show" :readonly="issee">
|
|
183
|
+
</div>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
</div>
|
|
188
|
+
<!--</validator>-->
|
|
189
|
+
</div>
|
|
190
|
+
</template>
|
|
191
|
+
<script>
|
|
192
|
+
import * as Util from '../../../components/Util'
|
|
193
|
+
import {HttpResetClass} from "vue-client";
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
export default {
|
|
197
|
+
title: '维修列表客户基本信息',
|
|
198
|
+
data() {
|
|
199
|
+
return {
|
|
200
|
+
telphoneValid: '/^((0\\d{2,3}-\\d{7,8})|(1[3584]\\d{9}))$/',
|
|
201
|
+
watchtype: this.$appdata.getParam('表型'),
|
|
202
|
+
gasdirection: this.$appdata.getParam('进气方向'),
|
|
203
|
+
watchhull: this.$appdata.getParam('表封'),
|
|
204
|
+
ictype: this.$appdata.getParam('IC卡类型'),
|
|
205
|
+
meterstyle: [],
|
|
206
|
+
shuclass: 'col-xs-6 col-sm-6 col-md-6 form-input-group mg8',
|
|
207
|
+
isshenfenzheng: false,
|
|
208
|
+
noExp: false,
|
|
209
|
+
meterinfo: {}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
props: {
|
|
213
|
+
issee: '',
|
|
214
|
+
worktype: {
|
|
215
|
+
type: String,
|
|
216
|
+
default: '报修单'
|
|
217
|
+
},
|
|
218
|
+
// userinfo: {
|
|
219
|
+
// type: Object
|
|
220
|
+
// },
|
|
221
|
+
// 维修对应的用户数据收集
|
|
222
|
+
model: {
|
|
223
|
+
type: Object
|
|
224
|
+
},
|
|
225
|
+
// 工单信息
|
|
226
|
+
repair: {
|
|
227
|
+
type: Object
|
|
228
|
+
},
|
|
229
|
+
savevalid: {},
|
|
230
|
+
sum: {},
|
|
231
|
+
user: {
|
|
232
|
+
type: Object
|
|
233
|
+
},
|
|
234
|
+
show: {
|
|
235
|
+
type: Boolean,
|
|
236
|
+
default: false
|
|
237
|
+
},
|
|
238
|
+
// 本次维修, 用于编辑
|
|
239
|
+
data: {
|
|
240
|
+
type: Object
|
|
241
|
+
},
|
|
242
|
+
shutype: 'heng'
|
|
243
|
+
},
|
|
244
|
+
methods: {
|
|
245
|
+
housetypechange(val) {
|
|
246
|
+
if (val) {
|
|
247
|
+
this.model.f_house_type = val
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
usertypeschange(val) {
|
|
251
|
+
this.model.f_npuser_type = val
|
|
252
|
+
},
|
|
253
|
+
gasbrandchange(val) {
|
|
254
|
+
this.model.f_gasbrand_id = val
|
|
255
|
+
let ret = this.$TelGetSaleParam.getGasbrand()
|
|
256
|
+
//tag
|
|
257
|
+
let rs = new Array()
|
|
258
|
+
if (this.model.f_gasbrand_id) {
|
|
259
|
+
ret.forEach((item, index) => {
|
|
260
|
+
if (this.model.f_gasbrand_id == item.value.id) {
|
|
261
|
+
this.model.f_gasbrand_name = item.label
|
|
262
|
+
item.value.gasmodel.forEach((item1, index1) => {
|
|
263
|
+
rs.push({label: item1.label, value: item1.value.id})
|
|
264
|
+
})
|
|
265
|
+
}
|
|
266
|
+
})
|
|
267
|
+
}
|
|
268
|
+
this.meterstyle = rs
|
|
269
|
+
},
|
|
270
|
+
gasmodelchange(val) {
|
|
271
|
+
if (val == undefined || val == '') {
|
|
272
|
+
return
|
|
273
|
+
}
|
|
274
|
+
this.model.f_gasmodel_id = val
|
|
275
|
+
let ret = this.$TelGetSaleParam.getGasbrand()
|
|
276
|
+
if (this.model.f_gasbrand_id && this.model.f_gasmodel_id) {
|
|
277
|
+
ret.forEach((item, index) => {
|
|
278
|
+
if (this.model.f_gasbrand_id == item.value.id) {
|
|
279
|
+
item.value.gasmodel.forEach((item1, index1) => {
|
|
280
|
+
if (this.model.f_gasmodel_id == item1.value.id) {
|
|
281
|
+
this.model.f_gasmodel_name = item1.label
|
|
282
|
+
}
|
|
283
|
+
})
|
|
284
|
+
}
|
|
285
|
+
})
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
// getPricenames (pricetype) {
|
|
289
|
+
// //tag
|
|
290
|
+
// let rs = new Array()
|
|
291
|
+
// var f_fengongsi = ''
|
|
292
|
+
// if(Vue.android) {
|
|
293
|
+
// f_fengongsi = Vue.user.f_fengongsi
|
|
294
|
+
// }else {
|
|
295
|
+
// f_fengongsi = this.$login.f.f_fengongsi
|
|
296
|
+
// }
|
|
297
|
+
// if (this.model.f_user_type.length != '' && this.model.f_gasproperties != '' && pricetype != 1) {
|
|
298
|
+
// let params = {
|
|
299
|
+
// f_user_type: this.model.f_user_type,
|
|
300
|
+
// f_gasproperties: this.model.f_gasproperties,
|
|
301
|
+
// f_price_type: pricetype,
|
|
302
|
+
// filter: f_fengongsi
|
|
303
|
+
// }
|
|
304
|
+
// let ret = this.$GetSaleParam.getPrice(params)
|
|
305
|
+
// ret.forEach((item, index) => {
|
|
306
|
+
// rs.push({label: item.label, value: item.value.f_price_id})
|
|
307
|
+
// })
|
|
308
|
+
// }
|
|
309
|
+
// //tag
|
|
310
|
+
// return rs
|
|
311
|
+
// },
|
|
312
|
+
mute() {
|
|
313
|
+
HostApp.mute()
|
|
314
|
+
},
|
|
315
|
+
// findUserByCardId() {
|
|
316
|
+
// this.$resetpost(this.$androidUtil.getProxyUrl() + '/rs/sql/tel_singleTable_OrderBy', {
|
|
317
|
+
// data: {
|
|
318
|
+
// items: '*',
|
|
319
|
+
// tablename: 't_userinfo',
|
|
320
|
+
// condition: `f_userinfo_id = '${this.model.f_userinfo_id}'`,
|
|
321
|
+
// orderitem: 'f_userinfo_id'
|
|
322
|
+
// }
|
|
323
|
+
// }).then((res) => {
|
|
324
|
+
// if (res.data.length === 0) {
|
|
325
|
+
// HostApp.alert('未查询到相关用户,请仔细核对卡号是否正确')
|
|
326
|
+
// }
|
|
327
|
+
// // this.getSumGas()
|
|
328
|
+
// // object.assign会导致数据无法上传。暂定使用$set
|
|
329
|
+
// this.$set('model.f_username', res.data[0].f_user_name)
|
|
330
|
+
// this.$set('model.f_address', res.data[0].f_address)
|
|
331
|
+
// this.$set('model.f_user_type', res.data[0].f_user_type)
|
|
332
|
+
// this.$set('model.f_gasproperties', res.data[0].f_gasproperties)
|
|
333
|
+
// })
|
|
334
|
+
// },
|
|
335
|
+
// 判断 日期 到达时间 是否有值
|
|
336
|
+
ifCreatDate() {
|
|
337
|
+
if (this.data && !this.data.f_date) {
|
|
338
|
+
this.data.f_date = Util.toStandardTimeString()
|
|
339
|
+
}
|
|
340
|
+
if (this.data && !this.data.f_date_come) {
|
|
341
|
+
this.data.f_date_come = Util.toStandardTimeString()
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
async ready() {
|
|
346
|
+
//tag)
|
|
347
|
+
//tag)
|
|
348
|
+
debugger
|
|
349
|
+
if (this.worktype == '报修单' && this.repair.f_userinfo_id) {
|
|
350
|
+
this.show = true
|
|
351
|
+
let http = new HttpResetClass()
|
|
352
|
+
let res = await http.load('POST', this.$androidUtil.getProxyUrl() + '/rs/sql/getBaseMeterInfo', {
|
|
353
|
+
data: {
|
|
354
|
+
f_userinfo_id: this.repair.f_userinfo_id
|
|
355
|
+
}
|
|
356
|
+
}, {warnMsg: null, resolveMsg: null, rejectMsg: null})
|
|
357
|
+
//tag)
|
|
358
|
+
if (res.data[0]) {
|
|
359
|
+
this.meterinfo = res.data[0]
|
|
360
|
+
this.noExp = true
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
this.ifCreatDate()
|
|
364
|
+
},
|
|
365
|
+
watch: {
|
|
366
|
+
// 气表品牌 更新
|
|
367
|
+
'model.f_gasbrand_id'(val) {
|
|
368
|
+
if (val == undefined || val == '') {
|
|
369
|
+
return
|
|
370
|
+
}
|
|
371
|
+
if (this.model.f_gasbrand_id) {
|
|
372
|
+
let ret = this.$TelGetSaleParam.getGasbrand()
|
|
373
|
+
let rs = new Array()
|
|
374
|
+
if (this.model.f_gasbrand_id) {
|
|
375
|
+
ret.forEach((item, index) => {
|
|
376
|
+
if (this.model.f_gasbrand_id == item.value.id) {
|
|
377
|
+
this.model.f_gasbrand_name = item.label
|
|
378
|
+
item.value.gasmodel.forEach((item1, index1) => {
|
|
379
|
+
rs.push({label: item1.label, value: item1.value.id})
|
|
380
|
+
})
|
|
381
|
+
}
|
|
382
|
+
})
|
|
383
|
+
}
|
|
384
|
+
this.meterstyle = rs
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
// 气价名称
|
|
388
|
+
// 'model.f_pricename_id' () {
|
|
389
|
+
// var f_fengongsi = ''
|
|
390
|
+
// if(Vue.android) {
|
|
391
|
+
// f_fengongsi = Vue.user.f_fengongsi
|
|
392
|
+
// }else {
|
|
393
|
+
// f_fengongsi = Util.f.f_fengongsi
|
|
394
|
+
// }
|
|
395
|
+
// if (this.model.f_user_type && this.model.f_gasproperties && this.model.f_price_type && this.model.f_pricename_id) {
|
|
396
|
+
// let params = {
|
|
397
|
+
// f_user_type: this.model.f_user_type,
|
|
398
|
+
// f_gasproperties: this.model.f_gasproperties,
|
|
399
|
+
// f_price_type: this.model.f_price_type,
|
|
400
|
+
// filter: f_fengongsi
|
|
401
|
+
// }
|
|
402
|
+
// let ret = this.$GetSaleParam.getPrice(params)
|
|
403
|
+
// //tag
|
|
404
|
+
// ret.forEach((item, index) => {
|
|
405
|
+
// if(this.model.f_pricename_id == item.value.f_price_id) {
|
|
406
|
+
// this.model.f_pricename = item.label
|
|
407
|
+
// }
|
|
408
|
+
// })
|
|
409
|
+
// }
|
|
410
|
+
// },
|
|
411
|
+
'repair'() {
|
|
412
|
+
if (this.repair.f_orderstatus) {
|
|
413
|
+
return
|
|
414
|
+
}
|
|
415
|
+
if (this.model.f_address) {
|
|
416
|
+
return
|
|
417
|
+
}
|
|
418
|
+
this.$set('model.f_linkphone', this.repair.f_phone)
|
|
419
|
+
this.$set('model.f_address', this.repair.f_address)
|
|
420
|
+
this.$set('model.f_userinfo_id', this.repair.f_userinfo_id)
|
|
421
|
+
this.$set('model.f_user_phone', this.repair.f_contact_phone)
|
|
422
|
+
this.$set('model.f_user_name', this.repair.f_user_name)
|
|
423
|
+
this.$set('model.f_user_type', this.repair.f_user_type)
|
|
424
|
+
this.$set('model.f_gasproperties', this.repair.f_gasproperties)
|
|
425
|
+
this.$set('model.f_userinfo_code', this.repair.f_userinfo_code)
|
|
426
|
+
if (!this.model.f_house_type) {
|
|
427
|
+
this.model.f_house_type == '自有房'
|
|
428
|
+
}
|
|
429
|
+
if (this.model.f_user_type == '非民用') {
|
|
430
|
+
if (this.model.f_gasproperties == '工业用气') {
|
|
431
|
+
this.$set('model.f_house_type', '工业用户')
|
|
432
|
+
} else if (this.model.f_gasproperties == '商业用气') {
|
|
433
|
+
this.$set('model.f_house_type', '商业用户')
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
'valid'() {
|
|
438
|
+
this.savevalid.uservalid = this.$v.valid
|
|
439
|
+
},
|
|
440
|
+
'shutype'(val) {
|
|
441
|
+
if (val == 'shu') {
|
|
442
|
+
this.shuclass = 'col-xs-12 col-sm-12 col-md-12 form-input-group mg8'
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
'model.f_shenfenzheng'(val) {
|
|
446
|
+
if (val) {
|
|
447
|
+
if (!(/^[1-9][0-9]{5}([1][9][0-9]{2}|[2][0][0|1][0-9])([0][1-9]|[1][0|1|2])([0][1-9]|[1|2][0-9]|[3][0|1])[0-9]{3}([0-9]|[X])$/.test(val))) {
|
|
448
|
+
// this.$showAlert('输入的身份证号长度不对,或者号码不符合规定!\n15位号码应全为数字,18位号码末位可以为数字或X。')
|
|
449
|
+
this.isshenfenzheng = true
|
|
450
|
+
} else {
|
|
451
|
+
this.isshenfenzheng = false
|
|
452
|
+
}
|
|
453
|
+
} else {
|
|
454
|
+
this.isshenfenzheng = false
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
// 'userinfo' () {
|
|
458
|
+
// if(this.repair.f_orderstatus){
|
|
459
|
+
// return
|
|
460
|
+
// }
|
|
461
|
+
// if(this.userinfo == undefined || this.userinfo == '' ){
|
|
462
|
+
// return
|
|
463
|
+
// }
|
|
464
|
+
// this.$set('model.f_userinfo_code', this.userinfo.baseinfo.base.f_userinfo_code)
|
|
465
|
+
// this.$set('model.f_user_name', this.userinfo.baseinfo.base.f_user_name)
|
|
466
|
+
// this.$set('model.f_user_type', this.userinfo.baseinfo.base.f_user_type)
|
|
467
|
+
// this.$set('model.f_gasproperties', this.userinfo.baseinfo.base.f_gasproperties)
|
|
468
|
+
// this.$set('model.f_gasbrand_id', this.userinfo.meterinfo[0].f_gasbrand_id)
|
|
469
|
+
// this.$set('model.f_gasmodel_id', this.userinfo.meterinfo[0].f_gasmodel_id)
|
|
470
|
+
// this.$set('model.f_price_type', this.userinfo.baseinfo.base.pricetype)
|
|
471
|
+
// this.$set('model.f_pricename_id', this.userinfo.baseinfo.base.f_price_id)
|
|
472
|
+
// this.$set('model.f_aroundmeter', this.userinfo.meterinfo[0].f_aroundmeter)
|
|
473
|
+
// this.$set('model.f_position', this.userinfo.meterinfo[0].f_position)
|
|
474
|
+
// this.$set('model.f_userinfo_id', this.userinfo.baseinfo.base.f_userinfo_id)
|
|
475
|
+
// this.$set('model.f_user_id', this.userinfo.meterinfo[0].f_user_id)
|
|
476
|
+
// this.$set('model.versionfile', this.userinfo.meterinfo[0].version)
|
|
477
|
+
// this.$set('model.versioninfo', this.userinfo.baseinfo.base.version)
|
|
478
|
+
// }
|
|
479
|
+
},
|
|
480
|
+
computed: {
|
|
481
|
+
positions() {
|
|
482
|
+
return this.$appdata.getParam('安装位置')
|
|
483
|
+
},
|
|
484
|
+
usertypes() {
|
|
485
|
+
return this.$appdata.getParam('非民用用户类型')
|
|
486
|
+
},
|
|
487
|
+
// f_price_types () {
|
|
488
|
+
// return this.$appdata.getParam('气价类型')
|
|
489
|
+
// },
|
|
490
|
+
housetype() {
|
|
491
|
+
if (this.model.f_user_type == '民用') {
|
|
492
|
+
return this.$appdata.getParam('民用置换住户类型')
|
|
493
|
+
} else {
|
|
494
|
+
return this.$appdata.getParam('非民用置换住户类型')
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
// meterstyle() {
|
|
498
|
+
// let ret = this.$GetSaleParam.getGasbrand()
|
|
499
|
+
// //tag
|
|
500
|
+
// let rs = new Array()
|
|
501
|
+
// if(this.model.f_gasbrand_id) {
|
|
502
|
+
// ret.forEach((item, index) => {
|
|
503
|
+
// if(this.model.f_gasbrand_id == item.value.id) {
|
|
504
|
+
// // rs = item.value.gasmodel
|
|
505
|
+
// item.value.gasmodel.forEach((item1, index1) => {
|
|
506
|
+
// rs.push({label: item1.label, value: item1.value.id})
|
|
507
|
+
// })
|
|
508
|
+
// }
|
|
509
|
+
// })
|
|
510
|
+
// }
|
|
511
|
+
// return rs
|
|
512
|
+
// },
|
|
513
|
+
// pricenames() {
|
|
514
|
+
// let rs = new Array()
|
|
515
|
+
// var f_fengongsi = ''
|
|
516
|
+
// if(Vue.android) {
|
|
517
|
+
// f_fengongsi = Vue.user.f_fengongsi
|
|
518
|
+
// }else {
|
|
519
|
+
// f_fengongsi = this.$login.f.f_fengongsi
|
|
520
|
+
// }
|
|
521
|
+
// if (this.model.f_user_type && this.model.f_gasproperties && this.model.f_price_type) {
|
|
522
|
+
// let params = {
|
|
523
|
+
// f_user_type: this.model.f_user_type,
|
|
524
|
+
// f_gasproperties: this.model.f_gasproperties,
|
|
525
|
+
// f_price_type: this.model.f_price_type,
|
|
526
|
+
// filter: f_fengongsi
|
|
527
|
+
// }
|
|
528
|
+
// let ret = this.$GetSaleParam.getPrice(params)
|
|
529
|
+
// //tag
|
|
530
|
+
// ret.forEach((item, index) => {
|
|
531
|
+
// rs.push({label: item.label, value: item.value.f_price_id})
|
|
532
|
+
// })
|
|
533
|
+
// }
|
|
534
|
+
// //tag
|
|
535
|
+
// return rs
|
|
536
|
+
// },
|
|
537
|
+
aroundmeters() {
|
|
538
|
+
return this.$appdata.getParam('左右表')
|
|
539
|
+
},
|
|
540
|
+
// gasproperties () {
|
|
541
|
+
// let rs = []
|
|
542
|
+
// if (this.model.f_user_type) {
|
|
543
|
+
// rs = this.$appdata.getParam(this.model.f_user_type)
|
|
544
|
+
// }
|
|
545
|
+
// return rs
|
|
546
|
+
// },
|
|
547
|
+
valid() {
|
|
548
|
+
this.savevalid.uservalid = this.$v.valid
|
|
549
|
+
return this.$v.valid
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
</script>
|
|
554
|
+
<style lang="less">
|
|
555
|
+
.class-erro {
|
|
556
|
+
color: #a94442;
|
|
557
|
+
}
|
|
558
|
+
</style>
|
|
559
|
+
|
package/src/main.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import App from './App'
|
|
3
|
-
import all from 'vue-client/src/all'
|
|
4
|
-
import system from 'system-clients/src/system'
|
|
5
|
-
import telephone from './telephone'
|
|
6
|
-
import echarts from 'echarts'
|
|
7
|
-
Vue.prototype.$echarts = echarts
|
|
8
|
-
|
|
9
|
-
/** **************************通用组件******************************/
|
|
10
|
-
all()
|
|
11
|
-
system(false)
|
|
12
|
-
telephone()
|
|
13
|
-
require('./expandcss.less')
|
|
14
|
-
require('system-clients/src/styles/less/bootstrap.less')
|
|
15
|
-
require('./telephoneanaly.less')
|
|
16
|
-
// 测试
|
|
17
|
-
|
|
18
|
-
Vue.component('test', (resolve) => { require(['./components/Test'], resolve) })
|
|
19
|
-
new Vue({
|
|
20
|
-
el: 'body',
|
|
21
|
-
components: { App }
|
|
22
|
-
})
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import App from './App'
|
|
3
|
+
import all from 'vue-client/src/all'
|
|
4
|
+
import system from 'system-clients/src/system'
|
|
5
|
+
import telephone from './telephone'
|
|
6
|
+
import echarts from 'echarts'
|
|
7
|
+
Vue.prototype.$echarts = echarts
|
|
8
|
+
|
|
9
|
+
/** **************************通用组件******************************/
|
|
10
|
+
all()
|
|
11
|
+
system(false)
|
|
12
|
+
telephone('wenxi')
|
|
13
|
+
require('./expandcss.less')
|
|
14
|
+
require('system-clients/src/styles/less/bootstrap.less')
|
|
15
|
+
require('./telephoneanaly.less')
|
|
16
|
+
// 测试
|
|
17
|
+
|
|
18
|
+
Vue.component('test', (resolve) => { require(['./components/Test'], resolve) })
|
|
19
|
+
new Vue({
|
|
20
|
+
el: 'body',
|
|
21
|
+
components: { App }
|
|
22
|
+
})
|