telephone-clients 3.0.80 → 3.0.82

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.80",
3
+ "version": "3.0.82",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -125,11 +125,7 @@
125
125
  <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>派单时间:</b></p>
126
126
  <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_created_date }}</p>
127
127
  </div>
128
- <div class="col-xs-6">
129
- <p class="panel-title col-xs-5 text-left font" style="float: left"><b>派单员:</b></p>
130
- <p class="panel-title col-xs-7 text-left input-font">{{row.f_attendant}} </p>
131
- </div>
132
- <div class="col-xs-6">
128
+ <div class="col-xs-12">
133
129
  <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
134
130
  <p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_name }}
135
131
  </p>
@@ -138,9 +134,13 @@
138
134
  <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
139
135
  <p class="panel-title col-xs-7 text-left input-font">{{ row.f_address }} &nbsp;&nbsp; {{row.f_contact_name}} </p>
140
136
  </div>
137
+ <div class="col-xs-6">
138
+ <p class="panel-title col-xs-5 text-left font" style="float: left"><b>派单员:</b></p>
139
+ <p class="panel-title col-xs-7 text-left input-font">{{row.f_attendant}} </p>
140
+ </div>
141
141
  <div class="col-xs-12">
142
- <failure-show :value='row.failure'>
143
- </failure-show>
142
+ <p class="panel-title col-xs-5 text-left font" style="float: left"><b>故障明细:</b></p>
143
+ <p class="panel-title col-xs-7 text-left input-font">{{$parent.$parent.$parent.getfailure(row.failure)}} </p>
144
144
  </div>
145
145
  <div class="col-xs-12">
146
146
  <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="$parent.$parent.$parent.inspect(row)">接单</button>
@@ -184,13 +184,30 @@ export default {
184
184
 
185
185
  },
186
186
  methods: {
187
+ getfailure(val){
188
+ if (val) {
189
+ var result = ''
190
+ // 把字符串转换成故障列表对象
191
+ var array = JSON.parse(val)
192
+ if(Array.isArray(array)) {
193
+ array.forEach((value) => {
194
+ result += value.f_failure_type + ':'
195
+ value.failurecase.forEach((failure) => {
196
+ result += failure + ' '
197
+ })
198
+ result += ';'
199
+ })
200
+ }
201
+ return result
202
+ }
203
+ },
187
204
  search (args) {
188
205
  //tag
189
206
  //tag
190
207
  let data = {}
191
208
  data.condition = this.$refs.paged.$refs.cri.condition?this.$refs.paged.$refs.cri.condition:'1=1'
192
209
  data.condition += " "+"and f_workorder_type like '%报修单%'";
193
- data.condition += " "+`and f_orgid = '${Vue.user.orgid}'`;
210
+ data.condition += " "+`and f_filiale_id = '${Vue.user.orgid}'`;
194
211
  data.sign = this.$refs.paged.$refs.cri.select ? `defname = '${this.$refs.paged.$refs.cri.select.defname[0]}'`:'1=1'
195
212
  this.searchData.condition = data
196
213
  this.searchData = Object.assign(this.searchData,args.model)
@@ -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
  // 是否清空
@@ -0,0 +1,6 @@
1
+ # 配置说明
2
+ 所有关于呼叫工单模块功能得配置
3
+
4
+ ## 3.0.80 - 2023-07-20 @ 文明
5
+ - 咨询单、投诉单,派发方式选择框,由单值 咨询投诉处理方式 : 是
6
+