telephone-clients 3.0.103-79 → 3.0.103-80

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.
@@ -1,254 +1,254 @@
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 }}
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
- <failure-show :value='service.failure'>
24
- </failure-show>
25
- <div style="clear:both;">
26
- <phone-sell-info-lite v-if="showSellInfo" :user="{}"
27
- :f_userinfo_id="service.f_userinfo_id"></phone-sell-info-lite>
28
- </div>
29
- <div class="from-group">
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>
33
- </div>
34
- <route name="info-route"></route>
35
- </div>
36
- </div>
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>
55
- </template>
56
- <script>
57
- import FailureShow from '../../../components/pc/FailureShow'
58
- import {HttpResetClass} from "vue-client";
59
- import Vue from "vue";
60
-
61
- export default {
62
- title: '工单历史记录',
63
- data() {
64
- return {
65
- imgfilename: '',
66
- imgfilenamea: '',
67
- cause: '',
68
- imgfilenameb: '',
69
- enabled: false,
70
- showmodel: false,
71
- backlistisselect: false,
72
- f_userinfo_code: '测试文本',
73
- showSellInfo: false
74
- }
75
- },
76
- props: {
77
- service: { // 传入一条报修单信息
78
- type: Object
79
- },
80
- issee: '',
81
- worktype: {
82
- type: String,
83
- default: '报修单'
84
- },
85
- // 维修对应的用户数据收集
86
- model: {
87
- type: Object
88
- },
89
- // 工单信息
90
- repair: {
91
- type: Object
92
- },
93
- savevalid: {},
94
- sum: {},
95
- user: {
96
- type: Object
97
- },
98
- show: {
99
- type: Boolean,
100
- default: false
101
- },
102
- // 本次维修, 用于编辑
103
- data: {
104
- type: Object
105
- },
106
- shutype: 'heng'
107
- },
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
112
- for (let i in this.service) {
113
- }
114
- this.$goto('repair-user-info', {
115
- model: this.model,
116
- data: this.data,
117
- savevalid: this.savevalid,
118
- repair: this.repair,
119
- show: this.show,
120
- // userinfo: this.userinfo
121
- shutype: this.shutype,
122
- worktype: this.worktype,
123
- issee: this.issee
124
- }, 'info-route')
125
- },
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
- },
195
- makeAPhoneCall(phoneNumber) {
196
- this.$androidUtil.makeAPhoneCall(phoneNumber)
197
- },
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) {
201
- let _this = this
202
- var pardate = {
203
- _this: _this,
204
- title: '其他收费',
205
- safe: false
206
- }
207
- _this.$dispatch('gotoson', pardate)
208
- _this.$parent.$goto('other_charge', {row: res.data[0]}, 'self')
209
- } else if (res.data.length > 1) {
210
- this.$showMessage('查询到了多条用户表信息,请让管理员核实用户信息是否正常!')
211
- } else {
212
- this.$showMessage('未查询到用户有正常状态的表具信息,请让管理员核实用户表档案信息是否正常!')
213
- }
214
- }).catch((msg) => {
215
- this.$showMessage('获取用户信息失败,请检查手机网络!')
216
- })
217
- },
218
- selfSearch() {
219
- if (!this.rowOne) {
220
- return
221
- }
222
- },
223
- searchHistory() {
224
- this.showSellInfo = !this.showSellInfo
225
- }
226
- },
227
- watch: {
228
- 'rowOne'() {
229
- this.selfSearch()
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
- },
248
- },
249
- components: {
250
- FailureShow,
251
- 'failure-show': FailureShow
252
- }
253
- }
254
- </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 }}
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
+ <failure-show :value='service.failure'>
24
+ </failure-show>
25
+ <div style="clear:both;">
26
+ <phone-sell-info-lite v-if="showSellInfo" :user="{}"
27
+ :f_userinfo_id="service.f_userinfo_id"></phone-sell-info-lite>
28
+ </div>
29
+ <div class="from-group">
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>
33
+ </div>
34
+ <route name="info-route"></route>
35
+ </div>
36
+ </div>
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>
55
+ </template>
56
+ <script>
57
+ import FailureShow from '../../../components/pc/FailureShow'
58
+ import {HttpResetClass} from "vue-client";
59
+ import Vue from "vue";
60
+
61
+ export default {
62
+ title: '工单历史记录',
63
+ data() {
64
+ return {
65
+ imgfilename: '',
66
+ imgfilenamea: '',
67
+ cause: '',
68
+ imgfilenameb: '',
69
+ enabled: false,
70
+ showmodel: false,
71
+ backlistisselect: false,
72
+ f_userinfo_code: '测试文本',
73
+ showSellInfo: false
74
+ }
75
+ },
76
+ props: {
77
+ service: { // 传入一条报修单信息
78
+ type: Object
79
+ },
80
+ issee: '',
81
+ worktype: {
82
+ type: String,
83
+ default: '报修单'
84
+ },
85
+ // 维修对应的用户数据收集
86
+ model: {
87
+ type: Object
88
+ },
89
+ // 工单信息
90
+ repair: {
91
+ type: Object
92
+ },
93
+ savevalid: {},
94
+ sum: {},
95
+ user: {
96
+ type: Object
97
+ },
98
+ show: {
99
+ type: Boolean,
100
+ default: false
101
+ },
102
+ // 本次维修, 用于编辑
103
+ data: {
104
+ type: Object
105
+ },
106
+ shutype: 'heng'
107
+ },
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
112
+ for (let i in this.service) {
113
+ }
114
+ this.$goto('repair-user-info', {
115
+ model: this.model,
116
+ data: this.data,
117
+ savevalid: this.savevalid,
118
+ repair: this.repair,
119
+ show: this.show,
120
+ // userinfo: this.userinfo
121
+ shutype: this.shutype,
122
+ worktype: this.worktype,
123
+ issee: this.issee
124
+ }, 'info-route')
125
+ },
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
+ },
195
+ makeAPhoneCall(phoneNumber) {
196
+ this.$androidUtil.makeAPhoneCall(phoneNumber)
197
+ },
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) {
201
+ let _this = this
202
+ var pardate = {
203
+ _this: _this,
204
+ title: '其他收费',
205
+ safe: false
206
+ }
207
+ _this.$dispatch('gotoson', pardate)
208
+ _this.$parent.$goto('other_charge', {row: res.data[0]}, 'self')
209
+ } else if (res.data.length > 1) {
210
+ this.$showMessage('查询到了多条用户表信息,请让管理员核实用户信息是否正常!')
211
+ } else {
212
+ this.$showMessage('未查询到用户有正常状态的表具信息,请让管理员核实用户表档案信息是否正常!')
213
+ }
214
+ }).catch((msg) => {
215
+ this.$showMessage('获取用户信息失败,请检查手机网络!')
216
+ })
217
+ },
218
+ selfSearch() {
219
+ if (!this.rowOne) {
220
+ return
221
+ }
222
+ },
223
+ searchHistory() {
224
+ this.showSellInfo = !this.showSellInfo
225
+ }
226
+ },
227
+ watch: {
228
+ 'rowOne'() {
229
+ this.selfSearch()
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
+ },
248
+ },
249
+ components: {
250
+ FailureShow,
251
+ 'failure-show': FailureShow
252
+ }
253
+ }
254
+ </script>