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