telephone-clients 3.0.103-97 → 3.0.103-99
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/pc/RepairsWork.vue +3 -2
- package/src/components/pc/WorkListAll.vue +630 -630
- package/src/components/temp/HandplanInfo.vue +78 -78
- package/src/components/temp/InfoTable.vue +134 -134
- package/src/components/workorder/RepairDetails.vue +613 -613
- package/src/filiale/shexian/pc/QueryVisitHistory.vue +237 -0
- package/src/filiale/shexian/telephone.js +19 -18
- package/src/filiale/wenxi/android/FailureShow.vue +61 -61
- package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1053 -1053
- package/src/filiale/wenxi/android/RepairInfo.vue +252 -252
- package/src/filiale/wenxi/android/RepairOrderV.vue +805 -805
- package/src/filiale/wenxi/android/RepairUserInfo.vue +532 -532
- package/src/filiale/wenxi/pc/GasWork.vue +747 -747
- package/src/filiale/wenxi/pc/MetereadInfo.vue +82 -82
- package/src/filiale/wenxi/pc/TelFindUser.vue +306 -306
- package/src/filiale/wenxi/telephoneAndroid.js +19 -19
- package/src/filiale/zhongsheng/android/FaultAll.vue +741 -741
- package/src/filiale/zhongsheng/android/RepairUserInfo.vue +559 -559
- package/src/main.js +1 -1
|
@@ -1,252 +1,252 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="repair-bg" id="work-history">
|
|
3
|
-
<div class="bq-parent" v-if="shutype == 'heng'">
|
|
4
|
-
<blockquote class="blockquote">
|
|
5
|
-
<p>工单基本信息</p>
|
|
6
|
-
</blockquote>
|
|
7
|
-
</div>
|
|
8
|
-
<!-- 工单的基本信息 -->
|
|
9
|
-
<div class="panel panel-default auto repair-info-content">
|
|
10
|
-
<div class="panel-body">
|
|
11
|
-
<p v-if="service.f_userinfo_id">用户编号: <span style="text-decoration:underline">{{ service.f_userinfo_code }}</span></p>
|
|
12
|
-
<p>来电电话: {{ service.f_phone }}<img src="../../../assets/telphonesend.png" style="width: 12px;"
|
|
13
|
-
@click.stop.prevent='makeAPhoneCall(service.f_phone)'></p>
|
|
14
|
-
<div v-if="service.f_userinfo_id" class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
|
|
15
|
-
<div class="col-xs-6 col-sm-6">
|
|
16
|
-
<input type="checkbox" v-model="backlistisselect" :disabled="enabled"/><label
|
|
17
|
-
class="text-left font">限制该用户购气</label>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<failure-show :value='service.failure'>
|
|
22
|
-
</failure-show>
|
|
23
|
-
<div style="clear:both;">
|
|
24
|
-
<phone-sell-info-lite v-if="showSellInfo" :user="{}"
|
|
25
|
-
:f_userinfo_id="service.f_userinfo_id"></phone-sell-info-lite>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="from-group">
|
|
28
|
-
<img-self v-if="service.f_single_path" :src="imgfilename" width="200" height="200"></img-self>
|
|
29
|
-
<img-self v-if="service.f_singlea_path" :src="imgfilenamea" width="200" height="200"></img-self>
|
|
30
|
-
<img-self v-if="service.f_singleb_path" :src="imgfilenameb" width="200" height="200"></img-self>
|
|
31
|
-
</div>
|
|
32
|
-
<route name="info-route"></route>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
<modal :show.sync="showmodel" v-ref:modal>
|
|
37
|
-
<div slot="modal-header" class="modal-header">
|
|
38
|
-
<h4 class="modal-title">
|
|
39
|
-
限制用户购气
|
|
40
|
-
</h4>
|
|
41
|
-
</div>
|
|
42
|
-
<div slot="modal-body" class="modal-body">
|
|
43
|
-
<div class="row" style="margin-top: 6px">
|
|
44
|
-
<textarea id="el_ca_tx" v-model.trim="cause" style="border-radius:4px;width: 100%;" placeholder="请输入停用购气原因">
|
|
45
|
-
</textarea>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
<div slot="modal-footer" class="modal-footer">
|
|
49
|
-
<button type="button" name="button" class="col-sm-3 btn btn-primary" @click="backlistXin()">确认</button>
|
|
50
|
-
<button type="button" name="button" class="col-sm-3 btn btn-primary" @click="cancel()">取消</button>
|
|
51
|
-
</div>
|
|
52
|
-
</modal>
|
|
53
|
-
</template>
|
|
54
|
-
<script>
|
|
55
|
-
import FailureShow from './FailureShow'
|
|
56
|
-
import {HttpResetClass} from "vue-client";
|
|
57
|
-
import Vue from "vue";
|
|
58
|
-
|
|
59
|
-
export default {
|
|
60
|
-
title: '工单历史记录',
|
|
61
|
-
data() {
|
|
62
|
-
return {
|
|
63
|
-
imgfilename: '',
|
|
64
|
-
imgfilenamea: '',
|
|
65
|
-
cause: '',
|
|
66
|
-
imgfilenameb: '',
|
|
67
|
-
enabled: false,
|
|
68
|
-
showmodel: false,
|
|
69
|
-
backlistisselect: false,
|
|
70
|
-
f_userinfo_code: '测试文本',
|
|
71
|
-
showSellInfo: false
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
props: {
|
|
75
|
-
service: { // 传入一条报修单信息
|
|
76
|
-
type: Object
|
|
77
|
-
},
|
|
78
|
-
issee: '',
|
|
79
|
-
worktype: {
|
|
80
|
-
type: String,
|
|
81
|
-
default: '报修单'
|
|
82
|
-
},
|
|
83
|
-
// 维修对应的用户数据收集
|
|
84
|
-
model: {
|
|
85
|
-
type: Object
|
|
86
|
-
},
|
|
87
|
-
// 工单信息
|
|
88
|
-
repair: {
|
|
89
|
-
type: Object
|
|
90
|
-
},
|
|
91
|
-
savevalid: {},
|
|
92
|
-
sum: {},
|
|
93
|
-
user: {
|
|
94
|
-
type: Object
|
|
95
|
-
},
|
|
96
|
-
show: {
|
|
97
|
-
type: Boolean,
|
|
98
|
-
default: false
|
|
99
|
-
},
|
|
100
|
-
// 本次维修, 用于编辑
|
|
101
|
-
data: {
|
|
102
|
-
type: Object
|
|
103
|
-
},
|
|
104
|
-
shutype: 'heng'
|
|
105
|
-
},
|
|
106
|
-
ready() {
|
|
107
|
-
this.imgfilename = `${this.$androidUtil.getProxyUrl()}/rs/image/file/` + this.service.f_single_path
|
|
108
|
-
this.imgfilenamea = `${this.$androidUtil.getProxyUrl()}/rs/image/file/` + this.service.f_singlea_path
|
|
109
|
-
this.imgfilenameb = `${this.$androidUtil.getProxyUrl()}/rs/image/file/` + this.service.f_singleb_path
|
|
110
|
-
for (let i in this.service) {
|
|
111
|
-
}
|
|
112
|
-
this.$goto('repair-user-info', {
|
|
113
|
-
model: this.model,
|
|
114
|
-
data: this.data,
|
|
115
|
-
savevalid: this.savevalid,
|
|
116
|
-
repair: this.repair,
|
|
117
|
-
show: this.show,
|
|
118
|
-
// userinfo: this.userinfo
|
|
119
|
-
shutype: this.shutype,
|
|
120
|
-
worktype: this.worktype,
|
|
121
|
-
issee: this.issee
|
|
122
|
-
}, 'info-route')
|
|
123
|
-
},
|
|
124
|
-
methods: {
|
|
125
|
-
async backlistXin() {
|
|
126
|
-
if (!this.cause) {
|
|
127
|
-
this.$showMessage("请填写停用原因!")
|
|
128
|
-
return
|
|
129
|
-
}
|
|
130
|
-
let http = new HttpResetClass()
|
|
131
|
-
let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
|
|
132
|
-
data: {
|
|
133
|
-
items: "f_userfiles_id,version",
|
|
134
|
-
tablename: "t_userfiles",
|
|
135
|
-
condition: "f_table_state in ('正常','停用','封堵','待开通') and f_userinfo_id= '" + this.service.f_userinfo_id + "'",
|
|
136
|
-
orderitem: "f_userfiles_id"
|
|
137
|
-
}
|
|
138
|
-
}, {resolveMsg: null, rejectMsg: null})
|
|
139
|
-
if (res2.data.length == 0) {
|
|
140
|
-
this.$showMessage('已成功停用')
|
|
141
|
-
this.showmodel = false
|
|
142
|
-
this.enabled = true
|
|
143
|
-
return
|
|
144
|
-
}
|
|
145
|
-
let data = {
|
|
146
|
-
f_userfiles_id: {
|
|
147
|
-
f_userfiles_id: res2.data[0].f_userfiles_id,
|
|
148
|
-
f_table_state: '停用',
|
|
149
|
-
version: res2.data[0].version
|
|
150
|
-
},
|
|
151
|
-
f_userfile_id: res2.data[0].f_userfiles_id,
|
|
152
|
-
f_user_id: this.service.f_userinfo_code,
|
|
153
|
-
f_userinfo_id: "'" + this.service.f_userinfo_id + "'",
|
|
154
|
-
f_user_name: this.service.f_user_name,
|
|
155
|
-
f_othereason: this.cause,
|
|
156
|
-
f_operat_type: '停用',
|
|
157
|
-
f_describe: `${Vue.user.name}对客户${this.service.f_user_name}进行停用操作`,
|
|
158
|
-
f_state: '有效',
|
|
159
|
-
f_operator: Vue.user.name,
|
|
160
|
-
f_operatorid: Vue.user.id,
|
|
161
|
-
f_orgid: Vue.user.orgid,
|
|
162
|
-
f_orgname: Vue.user.orgs,
|
|
163
|
-
f_depid: Vue.user.depids,
|
|
164
|
-
f_depname: Vue.user.deps,
|
|
165
|
-
f_zoneid: Vue.user.zoneid,
|
|
166
|
-
f_zones: Vue.user.zones
|
|
167
|
-
}
|
|
168
|
-
new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
|
|
169
|
-
data, {resolveMsg: null, rejectMsg: null}).then((row) => {
|
|
170
|
-
this.$showMessage('已成功停用')
|
|
171
|
-
this.showmodel = false
|
|
172
|
-
this.enabled = true
|
|
173
|
-
})
|
|
174
|
-
},
|
|
175
|
-
cancel() {
|
|
176
|
-
this.backlistisselect = false
|
|
177
|
-
this.showmodel = false
|
|
178
|
-
},
|
|
179
|
-
upUserInfo(userinfo) {
|
|
180
|
-
debugger
|
|
181
|
-
let _this = this.$parent.$parent
|
|
182
|
-
this.$dispatch('gotoson', {
|
|
183
|
-
_this: this.$parent.$parent,
|
|
184
|
-
title: '档案信息变更',
|
|
185
|
-
safe: false
|
|
186
|
-
})
|
|
187
|
-
this.$parent.$parent.$goto('PhoneUpUserinfo', {
|
|
188
|
-
f_userinfo_id: userinfo.f_userinfo_id,
|
|
189
|
-
f_source: '维修',
|
|
190
|
-
f_check_type: ''
|
|
191
|
-
}, 'self')
|
|
192
|
-
},
|
|
193
|
-
makeAPhoneCall(phoneNumber) {
|
|
194
|
-
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
|
195
|
-
},
|
|
196
|
-
goOtherCharge(userinfoid) {
|
|
197
|
-
new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/onlinequeryuser`, {data: {condition: ` uf.f_orgid = '${Vue.user.orgid}' and (ui.f_user_state = '正常' or ui.f_user_state = '预备') and ui.f_userinfo_id = '${userinfoid}'`}}).then((res) => {
|
|
198
|
-
if (res.data.length == 1) {
|
|
199
|
-
let _this = this
|
|
200
|
-
var pardate = {
|
|
201
|
-
_this: _this,
|
|
202
|
-
title: '其他收费',
|
|
203
|
-
safe: false
|
|
204
|
-
}
|
|
205
|
-
_this.$dispatch('gotoson', pardate)
|
|
206
|
-
_this.$parent.$goto('other_charge', {row: res.data[0]}, 'self')
|
|
207
|
-
} else if (res.data.length > 1) {
|
|
208
|
-
this.$showMessage('查询到了多条用户表信息,请让管理员核实用户信息是否正常!')
|
|
209
|
-
} else {
|
|
210
|
-
this.$showMessage('未查询到用户有正常状态的表具信息,请让管理员核实用户表档案信息是否正常!')
|
|
211
|
-
}
|
|
212
|
-
}).catch((msg) => {
|
|
213
|
-
this.$showMessage('获取用户信息失败,请检查手机网络!')
|
|
214
|
-
})
|
|
215
|
-
},
|
|
216
|
-
selfSearch() {
|
|
217
|
-
if (!this.rowOne) {
|
|
218
|
-
return
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
searchHistory() {
|
|
222
|
-
this.showSellInfo = !this.showSellInfo
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
watch: {
|
|
226
|
-
'rowOne'() {
|
|
227
|
-
this.selfSearch()
|
|
228
|
-
},
|
|
229
|
-
'backlistisselect'(val) {
|
|
230
|
-
if (val == true) {
|
|
231
|
-
this.showmodel = true
|
|
232
|
-
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
|
|
233
|
-
data: {
|
|
234
|
-
items: "f_othereason",
|
|
235
|
-
tablename: "t_disable",
|
|
236
|
-
condition: "f_userinfo_id= '" + this.service.f_userinfo_id + "'",
|
|
237
|
-
orderitem: "id desc"
|
|
238
|
-
}
|
|
239
|
-
}, {resolveMsg: null, rejectMsg: null}).then(response => {
|
|
240
|
-
if (response.data.length > 0) {
|
|
241
|
-
this.cause = response.data[0].f_othereason
|
|
242
|
-
}
|
|
243
|
-
})
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
},
|
|
247
|
-
components: {
|
|
248
|
-
FailureShow,
|
|
249
|
-
'failure-show': FailureShow
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="repair-bg" id="work-history">
|
|
3
|
+
<div class="bq-parent" v-if="shutype == 'heng'">
|
|
4
|
+
<blockquote class="blockquote">
|
|
5
|
+
<p>工单基本信息</p>
|
|
6
|
+
</blockquote>
|
|
7
|
+
</div>
|
|
8
|
+
<!-- 工单的基本信息 -->
|
|
9
|
+
<div class="panel panel-default auto repair-info-content">
|
|
10
|
+
<div class="panel-body">
|
|
11
|
+
<p v-if="service.f_userinfo_id">用户编号: <span style="text-decoration:underline">{{ service.f_userinfo_code }}</span></p>
|
|
12
|
+
<p>来电电话: {{ service.f_phone }}<img src="../../../assets/telphonesend.png" style="width: 12px;"
|
|
13
|
+
@click.stop.prevent='makeAPhoneCall(service.f_phone)'></p>
|
|
14
|
+
<div v-if="service.f_userinfo_id" class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
|
|
15
|
+
<div class="col-xs-6 col-sm-6">
|
|
16
|
+
<input type="checkbox" v-model="backlistisselect" :disabled="enabled"/><label
|
|
17
|
+
class="text-left font">限制该用户购气</label>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<failure-show :value='service.failure'>
|
|
22
|
+
</failure-show>
|
|
23
|
+
<div style="clear:both;">
|
|
24
|
+
<phone-sell-info-lite v-if="showSellInfo" :user="{}"
|
|
25
|
+
:f_userinfo_id="service.f_userinfo_id"></phone-sell-info-lite>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="from-group">
|
|
28
|
+
<img-self v-if="service.f_single_path" :src="imgfilename" width="200" height="200"></img-self>
|
|
29
|
+
<img-self v-if="service.f_singlea_path" :src="imgfilenamea" width="200" height="200"></img-self>
|
|
30
|
+
<img-self v-if="service.f_singleb_path" :src="imgfilenameb" width="200" height="200"></img-self>
|
|
31
|
+
</div>
|
|
32
|
+
<route name="info-route"></route>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
<modal :show.sync="showmodel" v-ref:modal>
|
|
37
|
+
<div slot="modal-header" class="modal-header">
|
|
38
|
+
<h4 class="modal-title">
|
|
39
|
+
限制用户购气
|
|
40
|
+
</h4>
|
|
41
|
+
</div>
|
|
42
|
+
<div slot="modal-body" class="modal-body">
|
|
43
|
+
<div class="row" style="margin-top: 6px">
|
|
44
|
+
<textarea id="el_ca_tx" v-model.trim="cause" style="border-radius:4px;width: 100%;" placeholder="请输入停用购气原因">
|
|
45
|
+
</textarea>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
<div slot="modal-footer" class="modal-footer">
|
|
49
|
+
<button type="button" name="button" class="col-sm-3 btn btn-primary" @click="backlistXin()">确认</button>
|
|
50
|
+
<button type="button" name="button" class="col-sm-3 btn btn-primary" @click="cancel()">取消</button>
|
|
51
|
+
</div>
|
|
52
|
+
</modal>
|
|
53
|
+
</template>
|
|
54
|
+
<script>
|
|
55
|
+
import FailureShow from './FailureShow'
|
|
56
|
+
import {HttpResetClass} from "vue-client";
|
|
57
|
+
import Vue from "vue";
|
|
58
|
+
|
|
59
|
+
export default {
|
|
60
|
+
title: '工单历史记录',
|
|
61
|
+
data() {
|
|
62
|
+
return {
|
|
63
|
+
imgfilename: '',
|
|
64
|
+
imgfilenamea: '',
|
|
65
|
+
cause: '',
|
|
66
|
+
imgfilenameb: '',
|
|
67
|
+
enabled: false,
|
|
68
|
+
showmodel: false,
|
|
69
|
+
backlistisselect: false,
|
|
70
|
+
f_userinfo_code: '测试文本',
|
|
71
|
+
showSellInfo: false
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
props: {
|
|
75
|
+
service: { // 传入一条报修单信息
|
|
76
|
+
type: Object
|
|
77
|
+
},
|
|
78
|
+
issee: '',
|
|
79
|
+
worktype: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: '报修单'
|
|
82
|
+
},
|
|
83
|
+
// 维修对应的用户数据收集
|
|
84
|
+
model: {
|
|
85
|
+
type: Object
|
|
86
|
+
},
|
|
87
|
+
// 工单信息
|
|
88
|
+
repair: {
|
|
89
|
+
type: Object
|
|
90
|
+
},
|
|
91
|
+
savevalid: {},
|
|
92
|
+
sum: {},
|
|
93
|
+
user: {
|
|
94
|
+
type: Object
|
|
95
|
+
},
|
|
96
|
+
show: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: false
|
|
99
|
+
},
|
|
100
|
+
// 本次维修, 用于编辑
|
|
101
|
+
data: {
|
|
102
|
+
type: Object
|
|
103
|
+
},
|
|
104
|
+
shutype: 'heng'
|
|
105
|
+
},
|
|
106
|
+
ready() {
|
|
107
|
+
this.imgfilename = `${this.$androidUtil.getProxyUrl()}/rs/image/file/` + this.service.f_single_path
|
|
108
|
+
this.imgfilenamea = `${this.$androidUtil.getProxyUrl()}/rs/image/file/` + this.service.f_singlea_path
|
|
109
|
+
this.imgfilenameb = `${this.$androidUtil.getProxyUrl()}/rs/image/file/` + this.service.f_singleb_path
|
|
110
|
+
for (let i in this.service) {
|
|
111
|
+
}
|
|
112
|
+
this.$goto('repair-user-info', {
|
|
113
|
+
model: this.model,
|
|
114
|
+
data: this.data,
|
|
115
|
+
savevalid: this.savevalid,
|
|
116
|
+
repair: this.repair,
|
|
117
|
+
show: this.show,
|
|
118
|
+
// userinfo: this.userinfo
|
|
119
|
+
shutype: this.shutype,
|
|
120
|
+
worktype: this.worktype,
|
|
121
|
+
issee: this.issee
|
|
122
|
+
}, 'info-route')
|
|
123
|
+
},
|
|
124
|
+
methods: {
|
|
125
|
+
async backlistXin() {
|
|
126
|
+
if (!this.cause) {
|
|
127
|
+
this.$showMessage("请填写停用原因!")
|
|
128
|
+
return
|
|
129
|
+
}
|
|
130
|
+
let http = new HttpResetClass()
|
|
131
|
+
let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
|
|
132
|
+
data: {
|
|
133
|
+
items: "f_userfiles_id,version",
|
|
134
|
+
tablename: "t_userfiles",
|
|
135
|
+
condition: "f_table_state in ('正常','停用','封堵','待开通') and f_userinfo_id= '" + this.service.f_userinfo_id + "'",
|
|
136
|
+
orderitem: "f_userfiles_id"
|
|
137
|
+
}
|
|
138
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
139
|
+
if (res2.data.length == 0) {
|
|
140
|
+
this.$showMessage('已成功停用')
|
|
141
|
+
this.showmodel = false
|
|
142
|
+
this.enabled = true
|
|
143
|
+
return
|
|
144
|
+
}
|
|
145
|
+
let data = {
|
|
146
|
+
f_userfiles_id: {
|
|
147
|
+
f_userfiles_id: res2.data[0].f_userfiles_id,
|
|
148
|
+
f_table_state: '停用',
|
|
149
|
+
version: res2.data[0].version
|
|
150
|
+
},
|
|
151
|
+
f_userfile_id: res2.data[0].f_userfiles_id,
|
|
152
|
+
f_user_id: this.service.f_userinfo_code,
|
|
153
|
+
f_userinfo_id: "'" + this.service.f_userinfo_id + "'",
|
|
154
|
+
f_user_name: this.service.f_user_name,
|
|
155
|
+
f_othereason: this.cause,
|
|
156
|
+
f_operat_type: '停用',
|
|
157
|
+
f_describe: `${Vue.user.name}对客户${this.service.f_user_name}进行停用操作`,
|
|
158
|
+
f_state: '有效',
|
|
159
|
+
f_operator: Vue.user.name,
|
|
160
|
+
f_operatorid: Vue.user.id,
|
|
161
|
+
f_orgid: Vue.user.orgid,
|
|
162
|
+
f_orgname: Vue.user.orgs,
|
|
163
|
+
f_depid: Vue.user.depids,
|
|
164
|
+
f_depname: Vue.user.deps,
|
|
165
|
+
f_zoneid: Vue.user.zoneid,
|
|
166
|
+
f_zones: Vue.user.zones
|
|
167
|
+
}
|
|
168
|
+
new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
|
|
169
|
+
data, {resolveMsg: null, rejectMsg: null}).then((row) => {
|
|
170
|
+
this.$showMessage('已成功停用')
|
|
171
|
+
this.showmodel = false
|
|
172
|
+
this.enabled = true
|
|
173
|
+
})
|
|
174
|
+
},
|
|
175
|
+
cancel() {
|
|
176
|
+
this.backlistisselect = false
|
|
177
|
+
this.showmodel = false
|
|
178
|
+
},
|
|
179
|
+
upUserInfo(userinfo) {
|
|
180
|
+
debugger
|
|
181
|
+
let _this = this.$parent.$parent
|
|
182
|
+
this.$dispatch('gotoson', {
|
|
183
|
+
_this: this.$parent.$parent,
|
|
184
|
+
title: '档案信息变更',
|
|
185
|
+
safe: false
|
|
186
|
+
})
|
|
187
|
+
this.$parent.$parent.$goto('PhoneUpUserinfo', {
|
|
188
|
+
f_userinfo_id: userinfo.f_userinfo_id,
|
|
189
|
+
f_source: '维修',
|
|
190
|
+
f_check_type: ''
|
|
191
|
+
}, 'self')
|
|
192
|
+
},
|
|
193
|
+
makeAPhoneCall(phoneNumber) {
|
|
194
|
+
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
|
195
|
+
},
|
|
196
|
+
goOtherCharge(userinfoid) {
|
|
197
|
+
new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/onlinequeryuser`, {data: {condition: ` uf.f_orgid = '${Vue.user.orgid}' and (ui.f_user_state = '正常' or ui.f_user_state = '预备') and ui.f_userinfo_id = '${userinfoid}'`}}).then((res) => {
|
|
198
|
+
if (res.data.length == 1) {
|
|
199
|
+
let _this = this
|
|
200
|
+
var pardate = {
|
|
201
|
+
_this: _this,
|
|
202
|
+
title: '其他收费',
|
|
203
|
+
safe: false
|
|
204
|
+
}
|
|
205
|
+
_this.$dispatch('gotoson', pardate)
|
|
206
|
+
_this.$parent.$goto('other_charge', {row: res.data[0]}, 'self')
|
|
207
|
+
} else if (res.data.length > 1) {
|
|
208
|
+
this.$showMessage('查询到了多条用户表信息,请让管理员核实用户信息是否正常!')
|
|
209
|
+
} else {
|
|
210
|
+
this.$showMessage('未查询到用户有正常状态的表具信息,请让管理员核实用户表档案信息是否正常!')
|
|
211
|
+
}
|
|
212
|
+
}).catch((msg) => {
|
|
213
|
+
this.$showMessage('获取用户信息失败,请检查手机网络!')
|
|
214
|
+
})
|
|
215
|
+
},
|
|
216
|
+
selfSearch() {
|
|
217
|
+
if (!this.rowOne) {
|
|
218
|
+
return
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
searchHistory() {
|
|
222
|
+
this.showSellInfo = !this.showSellInfo
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
watch: {
|
|
226
|
+
'rowOne'() {
|
|
227
|
+
this.selfSearch()
|
|
228
|
+
},
|
|
229
|
+
'backlistisselect'(val) {
|
|
230
|
+
if (val == true) {
|
|
231
|
+
this.showmodel = true
|
|
232
|
+
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
|
|
233
|
+
data: {
|
|
234
|
+
items: "f_othereason",
|
|
235
|
+
tablename: "t_disable",
|
|
236
|
+
condition: "f_userinfo_id= '" + this.service.f_userinfo_id + "'",
|
|
237
|
+
orderitem: "id desc"
|
|
238
|
+
}
|
|
239
|
+
}, {resolveMsg: null, rejectMsg: null}).then(response => {
|
|
240
|
+
if (response.data.length > 0) {
|
|
241
|
+
this.cause = response.data[0].f_othereason
|
|
242
|
+
}
|
|
243
|
+
})
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
},
|
|
247
|
+
components: {
|
|
248
|
+
FailureShow,
|
|
249
|
+
'failure-show': FailureShow
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
</script>
|