telephone-clients 3.0.103 → 3.0.104-11

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.
Files changed (132) hide show
  1. package/package.json +3 -3
  2. package/src/App.vue +54 -56
  3. package/src/assets//345/210/240/351/231/244.png +0 -0
  4. package/src/components/Util/RightTreeSafe.vue +2 -2
  5. package/src/components/Util/RightTreeSafeDep.vue +350 -0
  6. package/src/components/android/AddMyTask.vue +7 -0
  7. package/src/components/guoxin/Console.vue +9 -0
  8. package/src/components/guoxin/VisitInfo.vue +0 -11
  9. package/src/components/pc/NewRepairPaper.vue +370 -370
  10. package/src/components/pc/RepairsWork.vue +23 -2
  11. package/src/components/pc/RoleSelectorDep.vue +158 -0
  12. package/src/components/pc/TelFindUser.vue +1 -1
  13. package/src/components/pc/TelListener.vue +47 -16
  14. package/src/components/pc/VisitInfo.vue +44 -17
  15. package/src/components/pc/WorkCenter.vue +1 -1
  16. package/src/components/pc/WorkCenterList.vue +1 -1
  17. package/src/components/pc/WorkHistory.vue +20 -2
  18. package/src/components/pc/WorkListAll.vue +1 -1
  19. package/src/components/pc/WorkListAllNew.vue +10 -3
  20. package/src/components/pc/WorkListNew.vue +9 -3
  21. package/src/components/pc/olddata/OldWorkList.vue +193 -0
  22. package/src/components/telreport/RepairsDetailsReport.vue +98 -0
  23. package/src/components/telreport/TableFaultReport.vue +96 -0
  24. package/src/components/telreport/Traffic.vue +3 -3
  25. package/src/components/telreport/TrafficClassificationReport.vue +134 -0
  26. package/src/components/temp/ChangemeterInfo.vue +75 -87
  27. package/src/components/temp/DeviceInfo.vue +80 -82
  28. package/src/components/temp/HandplanInfo.vue +14 -3
  29. package/src/components/temp/InfoTable.vue +5 -2
  30. package/src/components/temp/MetereadInfo.vue +1 -4
  31. package/src/components/temp/OldRepairList.vue +100 -0
  32. package/src/components/temp/RepairList.vue +2 -2
  33. package/src/components/weinan/Console.vue +1 -1
  34. package/src/components/weinan/RecordList.vue +2 -2
  35. package/src/components/weinan/SiteSend.vue +2 -2
  36. package/src/components/weinan/SiteSendWeixiu.vue +7 -16
  37. package/src/components/weinan/StandWorkWeixiu.vue +1 -1
  38. package/src/components/weinan/WorkList.vue +73 -0
  39. package/src/components/weinan/WorkListAll.vue +90 -14
  40. package/src/components/weinan/WorkListWeixiu.vue +1 -1
  41. package/src/components/workorder/CompletedRepair.vue +269 -183
  42. package/src/components/workorder/FaultAll.vue +826 -826
  43. package/src/components/workorder/PhoneStandWork.vue +354 -354
  44. package/src/components/workorder/PhoneUpDetail.vue +3 -0
  45. package/src/components/workorder/RepairDetails.vue +12 -2
  46. package/src/components/workorder/RepairFirstV.vue +1 -1
  47. package/src/components/workorder/RepairOrderV.vue +1446 -1446
  48. package/src/filiale/furuike/pc/ComplainWork.vue +348 -348
  49. package/src/filiale/furuike/pc/Seekwork.vue +352 -352
  50. package/src/filiale/gongyi/android/RepairOrderV.vue +1415 -1415
  51. package/src/filiale/hanzhong/telephone.js +1 -1
  52. package/src/filiale/kelai/android/AppTakePic.vue +143 -0
  53. package/src/filiale/kelai/android/PhoneVentilationLeave.vue +176 -0
  54. package/src/filiale/kelai/pc/WorkCenterList.vue +20 -3
  55. package/src/filiale/kelai/pc/WorkListAllNew.vue +47 -9
  56. package/src/filiale/kelai/pc/serviceDeleteOrder.vue +55 -0
  57. package/src/filiale/kelai/telephone.js +9 -8
  58. package/src/filiale/kelai/telephoneAndroid.js +3 -1
  59. package/src/filiale/liaoyuan/android/RepairOrderV.vue +831 -831
  60. package/src/filiale/qianneng/android/FaultAll.vue +883 -883
  61. package/src/filiale/qianneng/android/MaterIialOne.vue +123 -123
  62. package/src/filiale/qianneng/android/RepairOrderV.vue +874 -874
  63. package/src/filiale/qianneng/android/TemporarySingle.vue +25 -0
  64. package/src/filiale/qianneng/android/chargesList.vue +161 -161
  65. package/src/filiale/qianneng/pc/MaterialDetailed.vue +15 -3
  66. package/src/filiale/qianneng/pc/MaterialStatistics.vue +144 -0
  67. package/src/filiale/qianneng/pc/NewRepairPaper.vue +467 -467
  68. package/src/filiale/qianneng/pc/RepairsWork.vue +992 -982
  69. package/src/filiale/qianneng/pc/WorkHistory.vue +2 -2
  70. package/src/filiale/qianneng/pc/WorkListAllNew.vue +53 -5
  71. package/src/filiale/qianneng/pc/changetable.vue +273 -0
  72. package/src/filiale/qianneng/telephone.js +2 -0
  73. package/src/filiale/rizhao/pc/DispatchMan.vue +3 -3
  74. package/src/filiale/rizhao/pc/DispatchWork.vue +3 -3
  75. package/src/filiale/rizhao/pc/Traffic.vue +3 -3
  76. package/src/filiale/rizhao/pc/WorkListAllNew.vue +8 -3
  77. package/src/filiale/rizhao/telephone.js +1 -1
  78. package/src/filiale/rongcheng/CliWorkListAll.vue +442 -407
  79. package/src/filiale/rongcheng/FaultAll.vue +3 -3
  80. package/src/filiale/rongcheng/RepairOrderV.vue +1445 -0
  81. package/src/filiale/rongcheng/telephoneAndroid.js +3 -1
  82. package/src/filiale/shanxian/android/RepairFirstV.vue +5 -1
  83. package/src/filiale/shanxian/pc/RepairsWork.vue +826 -0
  84. package/src/filiale/shanxian/pc/WorkList.vue +1 -1
  85. package/src/filiale/shanxian/telephone.js +13 -12
  86. package/src/filiale/shexian/android/AddMyTask.vue +7 -0
  87. package/src/filiale/shexian/android/CompletedRepair.vue +280 -0
  88. package/src/filiale/shexian/android/FaultAll.vue +847 -0
  89. package/src/filiale/shexian/android/Outlay.vue +182 -165
  90. package/src/filiale/shexian/android/RepairFirstV.vue +16 -2
  91. package/src/filiale/shexian/android/RepairInfo.vue +1 -0
  92. package/src/filiale/shexian/pc/QueryVisitHistory.vue +237 -0
  93. package/src/filiale/shexian/pc/TelAgentVoiceReport.vue +271 -0
  94. package/src/filiale/shexian/pc/TelByOrderManCount.vue +10 -2
  95. package/src/filiale/shexian/pc/WorkList.vue +782 -740
  96. package/src/filiale/shexian/pc/WorkListAllNew.vue +75 -67
  97. package/src/filiale/shexian/telephone.js +21 -18
  98. package/src/filiale/shexian/telephoneAndroid.js +32 -26
  99. package/src/filiale/tongchuan/android/RepairDetails.vue +623 -0
  100. package/src/filiale/tongchuan/android/TicketDetails.vue +3 -0
  101. package/src/filiale/tongchuan/pc/UserWork.vue +805 -805
  102. package/src/filiale/tongchuan/pc/WorkOrderStatistics.vue +2 -2
  103. package/src/filiale/tongchuan/telephone.js +52 -52
  104. package/src/filiale/tongchuan/telephoneAndroid.js +23 -22
  105. package/src/filiale/wenxi/android/FailureShow.vue +61 -0
  106. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1053 -0
  107. package/src/filiale/wenxi/android/RepairInfo.vue +158 -74
  108. package/src/filiale/wenxi/android/RepairOrderV.vue +805 -1419
  109. package/src/filiale/wenxi/android/RepairUserInfo.vue +532 -0
  110. package/src/filiale/wenxi/android/ZHihuanFirst.vue +502 -0
  111. package/src/filiale/wenxi/pc/DistributeWork.vue +107 -121
  112. package/src/filiale/wenxi/pc/FailureEdit.vue +1 -1
  113. package/src/filiale/wenxi/pc/GasWork.vue +747 -0
  114. package/src/filiale/wenxi/pc/MetereadInfo.vue +82 -0
  115. package/src/filiale/wenxi/pc/RepairsWork.vue +15 -0
  116. package/src/filiale/wenxi/pc/TelFindUser.vue +213 -116
  117. package/src/filiale/wenxi/pc/WorkListAll.vue +348 -297
  118. package/src/filiale/wenxi/telephone.js +4 -5
  119. package/src/filiale/wenxi/telephoneAndroid.js +4 -1
  120. package/src/filiale/wuan/android/RepairOrderV.vue +1384 -1384
  121. package/src/filiale/wuhai/telephone.js +1 -1
  122. package/src/filiale/yuncheng/pc/TelFindUser.vue +302 -0
  123. package/src/filiale/yuncheng/telephone.js +12 -0
  124. package/src/filiale/zhongsheng/android/FaultAll.vue +741 -0
  125. package/src/filiale/zhongsheng/android/RepairOrderV.vue +1430 -1430
  126. package/src/filiale/zhongsheng/android/RepairUserInfo.vue +241 -214
  127. package/src/filiale/zhongsheng/pc/RepairsWork.vue +775 -775
  128. package/src/filiale/zhongsheng/telephone.js +23 -23
  129. package/src/filiale/zhongsheng/telephoneAndroid.js +2 -1
  130. package/src/main.js +1 -1
  131. package/src/telephone.js +17 -1
  132. package/src/weinan.js +6 -0
@@ -5,7 +5,9 @@
5
5
 
6
6
  <div class="bq-parent" v-if="shutype == 'heng'">
7
7
  <blockquote class="blockquote">
8
- <p>费用<a @click="mute()" style="float:right" href="javascript:void(0)" class="repair-mute-class"><img src="../../../assets/novoice.png" width="25px;" alt=""><span style="margin-left:10px;color: #304A66">关闭声音</span></a></p>
8
+ <p>费用<a @click="mute()" style="float:right" href="javascript:void(0)" class="repair-mute-class"><img
9
+ src="../../../assets/novoice.png" width="25px;" alt=""><span
10
+ style="margin-left:10px;color: #304A66">关闭声音</span></a></p>
9
11
  </blockquote>
10
12
  </div>
11
13
  <div class="auto repair-info-content compatible" v-if="materialsumshow">
@@ -40,22 +42,34 @@
40
42
  <!--</div>-->
41
43
  <div class="col-xs-12 col-sm-12 col-md-12 form-input-group">
42
44
  <label class="text-justify lb-left">维修内容:</label>
43
- <span v-if="show" style="font-weight:bold">{{model.f_remarks}}</span>
44
- <textarea class="form-control" cols="30" rows="4" style="resize: vertical;" v-model="model.f_remarks" v-if="!show" :disabled="issee"></textarea>
45
+ <span v-if="show" style="font-weight:bold">{{ model.f_remarks }}</span>
46
+ <textarea class="form-control" cols="30" rows="4" style="resize: vertical;" v-model="model.f_remarks"
47
+ v-if="!show" :disabled="issee"></textarea>
48
+ </div>
49
+ <div class="col-xs-12 col-sm-12 col-md-12 form-input-group">
50
+ <label class="text-justify lb-left">维修内容:</label>
51
+ <v-select
52
+ :value.sync="model.f_failure"
53
+ :options='failure_list'
54
+ placeholder='请选择'
55
+ close-on-select
56
+ :multiple="true"
57
+ :value-single="false"
58
+ ></v-select>
45
59
  </div>
46
60
  </div>
47
61
  <div class="row auto" v-if="imgtpe">
48
- <div class="col-xs-12 col-sm-12 col-md-12 form-input-group" v-for="row in imgstype">
49
- <label class="text-justify lb-left">{{row.title}}</label>
50
- <img-area :model="model.imgs" :sutitle="getsutitle(row.title)"></img-area>
62
+ <div class="col-xs-12 col-sm-12 col-md-12 form-input-group" v-for="row in imgstype">
63
+ <label class="text-justify lb-left">{{ row.title }}</label>
64
+ <img-area :model="model.imgs" :sutitle="getsutitle(row.title)"></img-area>
51
65
  </div>
52
66
  </div>
53
- <img-area :model="model.imgs" :sutitle="'总体照片'" v-if="!imgtpe" ></img-area>
67
+ <img-area :model="model.imgs" :sutitle="'总体照片'" v-if="!imgtpe"></img-area>
54
68
  <div v-if="check" style="margin: 15px 10px; display: flex; flex-direction: column; gap: 10px">
55
69
  <div style="border-left: 5px solid #a9beeb;padding-left: 10px;">请确认并勾选以下事项然后进行签名</div>
56
70
  <div>
57
71
  <input style="margin-right: 5px" type="checkbox" v-model="isCheck" :value.sync="isCheck">
58
- {{check}}
72
+ {{ check }}
59
73
  </div>
60
74
  </div>
61
75
  <p style="font-size: 15px;font-weight: bold" v-if="model.f_sign_imgid">客户签名:</p>
@@ -66,184 +80,187 @@
66
80
  <new-sign :value="model.f_signname" @input="getSignValue"></new-sign>
67
81
  </div>
68
82
  <div v-if="show && model.f_sign_imgid">
69
- <img :src="'rs/file/getfile/' + model.f_sign_imgid" :width="150" :height="200" >
83
+ <img :src="'rs/file/getfile/' + model.f_sign_imgid" :width="150" :height="200">
70
84
  </div>
71
85
  </div>
72
86
  <material-sum v-if="!materialsumshow" v-on:sumchange="sumchange"
73
- v-on:back="showchenge" :material="model.material" :f_cost_material="model.f_cost_material" :show="show">
87
+ v-on:back="showchenge" :material="model.material" :f_cost_material="model.f_cost_material"
88
+ :show="show">
74
89
  </material-sum>
75
90
  </validator>
76
91
  </div>
77
92
  </template>
78
93
 
79
94
  <script>
80
- import Vue from 'vue'
81
- import * as Util from '../../../components/Util'
82
- export default {
83
- title: '费用',
84
- props: {
85
- // 本次维修, 包含照片数组 材料数组
86
- model: {
87
- type: Object
88
- },
89
- service: {
90
- type: Object
91
- },
92
- show: {
93
- type: Boolean,
94
- default: false
95
- },
96
- f_single_man: {
97
- type: Object
98
- },
99
- system: '',
100
- shutype: 'heng',
101
- issee:''
102
- },
103
- data () {
104
- return {
105
- signType:{
106
- type: Boolean,
107
- default: true
95
+ import Vue from 'vue'
96
+ import * as Util from '../../../components/Util'
97
+
98
+ export default {
99
+ title: '费用',
100
+ props: {
101
+ // 本次维修, 包含照片数组 材料数组
102
+ model: {
103
+ type: Object
104
+ },
105
+ service: {
106
+ type: Object
108
107
  },
109
- // 拍照时的文件名
110
- imgurl: 'http://192.168.2.77:8081',
111
- fileName: '',
112
- materialsumshow: { // 控制明细组件和费用层的 显示 fasle 明细组建显示
108
+ show: {
113
109
  type: Boolean,
114
- default: true
110
+ default: false
115
111
  },
116
- imgtpe:false,
117
- imgstype:[],
118
- check: '',
119
- isCheck: false
120
- }
121
- },
122
- methods: {
123
- getSignValue(fileName){
124
- //tag
125
- //tag
126
- this.model.f_signname = fileName
127
- this.model.f_sign_path = this.$androidUtil.getFullFileName(fileName)
128
- },
129
- getsutitle(val){
130
- return val
131
- },
132
- mute () {
133
- HostApp.mute()
134
- },
135
- // 签名回调
136
- signCallback(prop, fileName) {
137
- // HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
138
- HostApp.__this__.$set('model.f_signname', fileName)
139
- HostApp.__callback__ = null
140
- HostApp.__this__ = null
141
- },
142
- // 用户签名
143
- sign() {
144
- this.delAudioFile('f_signname', this.model.f_signname)
145
- let prop = 'f_signname'
146
- let idx = 'aofeng'
147
- let fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
148
- HostApp.__callback__ = this.signCallback
149
- HostApp.__this__ = this
150
- HostApp.getSignature({
151
- file: fileName,
152
- requestCode: 111,
153
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
154
- })
112
+ f_single_man: {
113
+ type: Object
114
+ },
115
+ system: '',
116
+ shutype: 'heng',
117
+ issee: ''
155
118
  },
156
- delAudioFile(prop, fileName) {
157
- if (!fileName)
158
- return
159
- else {
160
- HostApp.delfile(fileName)
161
- this.model[prop] = null
119
+ data() {
120
+ return {
121
+ signType: {
122
+ type: Boolean,
123
+ default: true
124
+ },
125
+ // 拍照时的文件名
126
+ imgurl: 'http://192.168.2.77:8081',
127
+ fileName: '',
128
+ materialsumshow: { // 控制明细组件和费用层的 显示 fasle 明细组建显示
129
+ type: Boolean,
130
+ default: true
131
+ },
132
+ failure_list: [{label: "请选择", value: ""}, ...this.$appdata.getParam('表具故障原因')],
133
+ imgtpe: false,
134
+ imgstype: [],
135
+ check: '',
136
+ isCheck: false
162
137
  }
163
138
  },
164
- // 从图片中删除
165
- remove (row) {
166
- this.$androidUtil.delfile(row.android_file)
167
- let pos = this.model.imgs.findIndex((value) => {
168
- return value === row
169
- })
170
- this.model.imgs.splice(pos, 1)
171
- },
172
- // fileName: 回传文件名,传入的带安卓路径url
173
- // prop: 传入的字段名,没做改动
174
- cameraCallBack(prop, fileName) {
175
- // 当前this只能通过HostApp.__tis__获取
176
- let self = this.$androidUtil.getCallBack(this)
177
- // 添加新图片
178
- self.model.imgs.push({
179
- android_file: self.fileName,
180
- path: fileName
181
- })
182
- },
183
- takePic() {
184
- let prop = 'repair'
185
- let idx = 'aofeng'
186
- this.fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
187
- this.$androidUtil.takePic(this, this.cameraCallBack, this.fileName)
188
- },
189
- // 明细组件显示
190
- sumshow(){
191
- this.materialsumshow = false
192
- },
193
- // 当材料明细发生变化 材料费随之变化
194
- sumchange(val){
195
- this.model.f_cost_material = val
196
- },
197
- // 返回 总材料费 关闭材料费详情界面
198
- showchenge(val){
199
- this.materialsumshow = true
200
- if(!isNaN(val)) {
139
+ methods: {
140
+ getSignValue(fileName) {
141
+ //tag
142
+ //tag
143
+ this.model.f_signname = fileName
144
+ this.model.f_sign_path = this.$androidUtil.getFullFileName(fileName)
145
+ },
146
+ getsutitle(val) {
147
+ return val
148
+ },
149
+ mute() {
150
+ HostApp.mute()
151
+ },
152
+ // 签名回调
153
+ signCallback(prop, fileName) {
154
+ // HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
155
+ HostApp.__this__.$set('model.f_signname', fileName)
156
+ HostApp.__callback__ = null
157
+ HostApp.__this__ = null
158
+ },
159
+ // 用户签名
160
+ sign() {
161
+ this.delAudioFile('f_signname', this.model.f_signname)
162
+ let prop = 'f_signname'
163
+ let idx = 'aofeng'
164
+ let fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
165
+ HostApp.__callback__ = this.signCallback
166
+ HostApp.__this__ = this
167
+ HostApp.getSignature({
168
+ file: fileName,
169
+ requestCode: 111,
170
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
171
+ })
172
+ },
173
+ delAudioFile(prop, fileName) {
174
+ if (!fileName)
175
+ return
176
+ else {
177
+ HostApp.delfile(fileName)
178
+ this.model[prop] = null
179
+ }
180
+ },
181
+ // 从图片中删除
182
+ remove(row) {
183
+ this.$androidUtil.delfile(row.android_file)
184
+ let pos = this.model.imgs.findIndex((value) => {
185
+ return value === row
186
+ })
187
+ this.model.imgs.splice(pos, 1)
188
+ },
189
+ // fileName: 回传文件名,传入的带安卓路径url
190
+ // prop: 传入的字段名,没做改动
191
+ cameraCallBack(prop, fileName) {
192
+ // 当前this只能通过HostApp.__tis__获取
193
+ let self = this.$androidUtil.getCallBack(this)
194
+ // 添加新图片
195
+ self.model.imgs.push({
196
+ android_file: self.fileName,
197
+ path: fileName
198
+ })
199
+ },
200
+ takePic() {
201
+ let prop = 'repair'
202
+ let idx = 'aofeng'
203
+ this.fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
204
+ this.$androidUtil.takePic(this, this.cameraCallBack, this.fileName)
205
+ },
206
+ // 明细组件显示
207
+ sumshow() {
208
+ this.materialsumshow = false
209
+ },
210
+ // 当材料明细发生变化 材料费随之变化
211
+ sumchange(val) {
201
212
  this.model.f_cost_material = val
213
+ },
214
+ // 返回 总材料费 关闭材料费详情界面
215
+ showchenge(val) {
216
+ this.materialsumshow = true
217
+ if (!isNaN(val)) {
218
+ this.model.f_cost_material = val
219
+ }
202
220
  }
203
- }
204
- },
205
- ready(){
206
- if(Vue.config.telephone.Outlay.data != undefined){
207
- this.check = Vue.config.telephone.Outlay.data.check
208
- if (!this.check){
209
- this.isCheck = true
221
+ },
222
+ ready() {
223
+ if (Vue.config.telephone.Outlay.data != undefined) {
224
+ this.check = Vue.config.telephone.Outlay.data.check
225
+ if (!this.check) {
226
+ this.isCheck = true
227
+ }
228
+ //tag
229
+ //tag)
230
+ if (this.service.f_user_type == '民用') {
231
+ this.imgstype = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.Outlay.data[this.service.f_workorder_type].civil)))
232
+ } else {
233
+ this.imgstype = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.Outlay.data[this.service.f_workorder_type].nocivil)))
234
+ }
235
+ if (this.imgstype.length > 0) {
236
+ this.imgtpe = true
237
+ }
210
238
  }
211
- //tag
212
- //tag)
213
- if(this.service.f_user_type == '民用'){
214
- this.imgstype = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.Outlay.data[this.service.f_workorder_type].civil)))
215
- }else{
216
- this.imgstype = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.Outlay.data[this.service.f_workorder_type].nocivil)))
239
+ if (navigator.userAgent.match('iPad') || navigator.userAgent.match('iPhone')) {
240
+ this.signType = false
217
241
  }
218
- if(this.imgstype.length>0){
219
- this.imgtpe = true
242
+ if (this.model && this.model.f_single_man) {
243
+ this.model.f_single_man = this.f_single_man
220
244
  }
221
- }
222
- if(navigator.userAgent.match('iPad') || navigator.userAgent.match('iPhone')){
223
- this.signType = false
224
- }
225
- if(this.model && this.model.f_single_man){
226
- this.model.f_single_man = this.f_single_man
227
- }
228
- if(!this.show&&this.model){
229
- if(Vue.user == undefined)
230
- return
231
- this.model.f_order_man = Vue.user.name
232
- this.model.f_order_man_id = Vue.user.id
233
- }
234
- //tag
235
- //tag
236
- //tag
237
- },
238
- computed:{
239
- Detail(){
240
- if (this.model.imgs && this.model.servicerepair.length > 0) {
241
- let result = this.model.servicerepair.find((row) => {
242
- return row.f_type === this.repairitem.header
243
- })
244
- return result
245
+ if (!this.show && this.model) {
246
+ if (Vue.user == undefined)
247
+ return
248
+ this.model.f_order_man = Vue.user.name
249
+ this.model.f_order_man_id = Vue.user.id
250
+ }
251
+ //tag
252
+ //tag
253
+ //tag
254
+ },
255
+ computed: {
256
+ Detail() {
257
+ if (this.model.imgs && this.model.servicerepair.length > 0) {
258
+ let result = this.model.servicerepair.find((row) => {
259
+ return row.f_type === this.repairitem.header
260
+ })
261
+ return result
262
+ }
245
263
  }
246
264
  }
247
265
  }
248
- }
249
266
  </script>
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <div style="height: auto;width: 100%" class="repair-bg">
3
+ <work-busy :is-busy="saveing" v-show="saveing"></work-busy>
3
4
  <div class="bq-parent">
4
5
  <blockquote style="color: #499edf;border-left-color: #499edf;font-size: 16px">
5
6
  <p>
@@ -103,7 +104,7 @@
103
104
  <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
104
105
  用户姓名: {{ row.f_user_name }}
105
106
  </div>
106
- <div v-show="false" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
107
+ <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
107
108
  来电电话: {{ row.f_phone }}
108
109
  <img src="../../../assets/telphonesend.png" style="width: 12px;"
109
110
  @click.stop.prevent='makeAPhoneCall(row.f_phone)'>
@@ -257,6 +258,7 @@
257
258
  <script>
258
259
  import FailureShow from '../../../components/pc/FailureShow'
259
260
  import {HttpResetClass} from 'vue-client'
261
+ import * as Util from '../../../components/Util'
260
262
  import Vue from 'vue'
261
263
  // 工作类型对应的各项设置
262
264
  const config = {
@@ -283,7 +285,8 @@ export default {
283
285
  }
284
286
  ]
285
287
  },
286
-
288
+ saveing:false,
289
+ sendbackmodel:{},
287
290
  // rows: Object
288
291
  rows: [{
289
292
  f_user_name: '',
@@ -349,10 +352,12 @@ export default {
349
352
  methods: {
350
353
  // 结案确认
351
354
  caseok(){
355
+ this.saveing = true
352
356
  let info = {
353
357
  id:this.selectone.id_back,
354
358
  f_state : '',
355
359
  f_processid: this.selectone.f_processid,
360
+ f_closing_time: Util.toStandardTimeString(),
356
361
  f_orderstatus:'无法处理'
357
362
  }
358
363
  // 工单结案操作
@@ -362,11 +367,15 @@ export default {
362
367
  resolveMsg: null,
363
368
  rejectMsg: null
364
369
  }).then(() => {
370
+ this.saveing = false
365
371
  this.$showMessage('结案成功!')
366
372
  this.endshow = false
367
373
  this.f_caseremarks = ''
368
374
  // 刷新界面
369
375
  this.getNewOrder()
376
+ }).catch((error)=>{
377
+ this.saveing=false
378
+ this.$showMessage('网络异常,结案失败!')
370
379
  })
371
380
  },
372
381
  // 结案返回
@@ -380,6 +389,7 @@ export default {
380
389
  this.endshow = true
381
390
  },
382
391
  WorkBack() {
392
+ this.saveing=true
383
393
  this.model = this.sendbackmodel
384
394
  this.model.serviceacitivity = [{
385
395
  f_site_back_date: '',
@@ -403,10 +413,14 @@ export default {
403
413
  resolveMsg: null,
404
414
  rejectMsg: null
405
415
  }).then(() => {
416
+ this.saveing=false
406
417
  this.$showMessage('退回成功!!!')
407
418
  this.f_site_back_reason = ''
408
419
  this.editflag = false
409
420
  this.getNewOrder()
421
+ }).catch((error)=>{
422
+ this.saveing=false
423
+ this.$showMessage('网络异常,退回失败!!!')
410
424
  })
411
425
  },
412
426
  WorkBackclose() {
@@ -16,6 +16,7 @@
16
16
  <!--<p>生成时间: {{service.f_created_date}}</p>-->
17
17
  <!--<p>预约时间: {{service.f_repair_date}}</p>-->
18
18
  <p>来电电话: {{service.f_phone}}<img src="../../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(service.f_phone)'></p>
19
+ <p>联系电话: {{service.f_contact_phone}}<img src="../../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(service.f_contact_phone)'></p>
19
20
  <p>开启录音:<button type="button" class="btn btn-default" @click="openRecord()">开启</button>
20
21
  </p>
21
22
  <!--<p>用户姓名: {{service.f_user_name}}</p>-->