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