telephone-clients 3.0.81 → 3.0.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telephone-clients",
3
- "version": "3.0.81",
3
+ "version": "3.0.83",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -101,6 +101,7 @@
101
101
  </div>
102
102
  <div class="col-sm-12 col-xs-12 col-md-12">
103
103
  <button type="button" name="button" class="btn btn-primary btn-sm" style="float: right" @click="selected(row)">下派</button>
104
+ <button type="button" name="button" class="btn btn-primary btn-sm" style="float: right" @click="showback(row)">退回</button>
104
105
  </div>
105
106
  </div>
106
107
  </div>
@@ -137,6 +138,25 @@
137
138
  <button type="button" class="btn btn-default" @click="undo()">取消</button>
138
139
  </div>
139
140
  </modal>
141
+ <modal :show.sync="backshow" v-ref:backshow :backdrop="false">
142
+ <div slot="modal-header" class="modal-header">
143
+ <h4 class="modal-title">
144
+ 工单退回
145
+ </h4>
146
+ </div>
147
+ <div slot="modal-body" class="modal-body">
148
+ <div class="row" style="margin-top: 6px">
149
+ <label class="control-label font text-left col-md-4 col-xs-4">退回原因:</label>
150
+ <div class="col-xs-8 col-md-8">
151
+ <input type="text" v-model="f_site_back_reason"/>
152
+ </div>
153
+ </div>
154
+ </div>
155
+ <div slot="modal-footer" class="modal-footer">
156
+ <button type="button" class="btn btn-default" @click="sendbackdo()">确定</button>
157
+ <button type="button" class="btn btn-default" @click="sendbackundo()">取消</button>
158
+ </div>
159
+ </modal>
140
160
  </div>
141
161
  </div>
142
162
  </template>
@@ -150,6 +170,17 @@
150
170
  title: '移动端站点派发',
151
171
  data () {
152
172
  return {
173
+ backshow:false,
174
+ sendBackData:{
175
+ f_processid:'',
176
+ id:'',
177
+ serviceacitivity:[
178
+ {
179
+ f_site_back_reason:''
180
+ }
181
+ ]
182
+ },
183
+ f_site_back_reason:'',
153
184
  // rows: Object
154
185
  rows: [],
155
186
  username:'',
@@ -176,6 +207,33 @@
176
207
  props: {
177
208
  },
178
209
  methods: {
210
+ sendbackdo(){
211
+ this.sendBackData.serviceacitivity[0].f_site_back_reason = this.f_site_back_reason
212
+ var data = {model: this.sendBackData, loginUser: {name: Vue.user.name, ename: Vue.user.ename, id: Vue.user.id}}
213
+ return this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/siteBack`, data).then(() => {
214
+ this.ifsearch()
215
+ this.sendBackData = {
216
+ f_processid:'',
217
+ id:'',
218
+ serviceacitivity:[{f_site_back_reason:''}]
219
+ }
220
+ this.backshow =false
221
+ this.$showMessage(`退回成功!`, ['confirm'])
222
+ })
223
+ },
224
+ sendbackundo(){
225
+ this.f_site_back_reason = ''
226
+ this.backshow =false
227
+ },
228
+ // 工单退回
229
+ showback(val){
230
+ this.sendBackData = {
231
+ f_processid:val.f_processid,
232
+ id:val.id_back,
233
+ serviceacitivity:[{f_site_back_reason:''}]
234
+ }
235
+ this.backshow = true
236
+ },
179
237
  worksend () {
180
238
  if (!this.sendselected.serviceacitivity[0].f_reciever) {
181
239
  this.$showMessage(`请选择接单人员!`, ['confirm'])
@@ -827,6 +827,7 @@
827
827
  } else {
828
828
  this.repairers = []
829
829
  this.meading = '转运营系统'
830
+ this.model.serviceacitivity[0].f_reciever = '运营系统'
830
831
  }
831
832
  },
832
833
  // 是否清空
@@ -95,7 +95,7 @@ export default {
95
95
  },
96
96
  methods: {
97
97
  repiarmancg (val) {
98
- if (val) {
98
+ if (typeof val == 'string' && val) {
99
99
  this.row.serviceacitivity[0].f_reciever = val
100
100
  let http1 = new HttpResetClass()
101
101
  http1.load('POST', 'rs/sql/tel_singleTable_OrderBy', {