telephone-clients 3.0.104-10 → 3.0.104-100

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 (99) hide show
  1. package/package.json +3 -3
  2. package/src/App.vue +54 -54
  3. package/src/components/android/ImgArea.vue +80 -0
  4. package/src/components/guoxin/Console.vue +42 -14
  5. package/src/components/guoxin/call.state.api.js +3 -1
  6. package/src/components/pc/ComplainWork.vue +3 -0
  7. package/src/components/pc/RecordListLeft.vue +80 -10
  8. package/src/components/pc/RepairsWork.vue +33 -3
  9. package/src/components/pc/RoleSelector.vue +7 -1
  10. package/src/components/pc/Seekwork.vue +3 -0
  11. package/src/components/pc/SiteSend.vue +38 -1
  12. package/src/components/pc/TelLossList.vue +20 -3
  13. package/src/components/pc/WorkHistory.vue +1 -1
  14. package/src/components/pc/WorkList.vue +4 -3
  15. package/src/components/pc/WorkListAllNew.vue +16 -8
  16. package/src/components/pc/WorkListNew.vue +722 -712
  17. package/src/components/sendsingle/onlinequeryuser.vue +1 -1
  18. package/src/components/telcount/TelByOrderMan.vue +22 -4
  19. package/src/components/telreport/RepairsDetailsReport.vue +2 -2
  20. package/src/components/telreport/TrafficClassificationReport.vue +13 -13
  21. package/src/components/telreport/Trafficassess.vue +2 -2
  22. package/src/components/temp/HandplanInfo.vue +5 -1
  23. package/src/components/temp/InstructInfo.vue +1 -1
  24. package/src/components/temp/SecuritycheckInfo.vue +14 -0
  25. package/src/components/workorder/RepairDetails.vue +8 -2
  26. package/src/components/workorder/RepairInfo.vue +3 -3
  27. package/src/components/workorder/RepairPaperAndroid.vue +351 -0
  28. package/src/components/workorder/ServiceOnlineQuery.vue +306 -0
  29. package/src/components/workorder/TemporarySingle.vue +346 -302
  30. package/src/filiale/furuike/pc/QueryVisitHistory.vue +14 -1
  31. package/src/filiale/furuike/pc/WorkHistory.vue +576 -576
  32. package/src/filiale/hanzhong/telephone.js +1 -1
  33. package/src/filiale/jiaocheng/android/createQRcode.vue +204 -0
  34. package/src/filiale/jiaocheng/android/onlineBuyGas.vue +637 -0
  35. package/src/filiale/jiaocheng/telephone.js +8 -0
  36. package/src/filiale/jiaocheng/telephoneAndroid.js +15 -0
  37. package/src/filiale/lixian/onlineChangeMeter.vue +481 -0
  38. package/src/filiale/lixian/onlineoperation.vue +606 -0
  39. package/src/filiale/lixian/onlinequeryuser.vue +509 -0
  40. package/src/filiale/lixian/telephoneAndroid.js +23 -0
  41. package/src/filiale/qianneng/android/AppInstallationMaterial.vue +880 -845
  42. package/src/filiale/qianneng/android/TemporarySingle.vue +537 -537
  43. package/src/filiale/qianneng/pc/MaterialDetailed.vue +260 -260
  44. package/src/filiale/qianneng/pc/NewRepairPaper.vue +467 -467
  45. package/src/filiale/qianneng/pc/RepairsWork.vue +992 -992
  46. package/src/filiale/qianneng/pc/WorkListAllNew.vue +757 -757
  47. package/src/filiale/qianneng/pc/changetable.vue +273 -273
  48. package/src/filiale/qianneng/telephone.js +22 -22
  49. package/src/filiale/rizhao/pc/IgnitionVentilation.vue +0 -1
  50. package/src/filiale/rizhao/pc/RepairsWork.vue +0 -1
  51. package/src/filiale/rizhao/pc/WorkListAllNew.vue +11 -5
  52. package/src/filiale/rizhao/telephone.js +1 -1
  53. package/src/filiale/shanxian/android/RepairFirstV.vue +3 -0
  54. package/src/filiale/shanxian/pc/TelFindUser.vue +310 -0
  55. package/src/filiale/shanxian/pc/WorkList.vue +2 -2
  56. package/src/filiale/shanxian/telephone.js +1 -0
  57. package/src/filiale/shexian/android/AddMyTask.vue +7 -0
  58. package/src/filiale/shexian/android/RepairFirstV.vue +5 -0
  59. package/src/filiale/shexian/android/RepairInfo.vue +1 -0
  60. package/src/filiale/shexian/pc/TelAgentVoiceReport.vue +9 -9
  61. package/src/filiale/shexian/pc/TelByRepairType.vue +3 -3
  62. package/src/filiale/shexian/pc/WorkList.vue +4 -1
  63. package/src/filiale/shexian/pc/WorkListAllNew.vue +14 -1
  64. package/src/filiale/tongchuan/android/RepairDetails.vue +623 -0
  65. package/src/filiale/tongchuan/pc/AnalysisMain.vue +7 -7
  66. package/src/filiale/tongchuan/pc/RepairsWork.vue +8 -0
  67. package/src/filiale/tongchuan/pc/UserWork.vue +8 -0
  68. package/src/filiale/tongchuan/telephoneAndroid.js +1 -0
  69. package/src/filiale/wenxi/android/FaultAll.vue +710 -0
  70. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +73 -162
  71. package/src/filiale/wenxi/android/RepairOrderV.vue +1 -1
  72. package/src/filiale/wenxi/android/ZHihuanFirst.vue +149 -129
  73. package/src/filiale/wenxi/pc/DistributeWork.vue +1 -1
  74. package/src/filiale/wenxi/pc/RecordListLeft.vue +272 -0
  75. package/src/filiale/wenxi/pc/RepairsWork.vue +143 -64
  76. package/src/filiale/wenxi/pc/TelAgentVoiceReport.vue +290 -0
  77. package/src/filiale/wenxi/pc/TelLossList.vue +272 -0
  78. package/src/filiale/wenxi/telephone.js +4 -0
  79. package/src/filiale/wenxi/telephoneAndroid.js +2 -1
  80. package/src/filiale/wuhai/telephone.js +1 -1
  81. package/src/filiale/yuncheng/android/LdapHelper.js +75 -0
  82. package/src/filiale/yuncheng/android/Outlay.vue +201 -0
  83. package/src/filiale/yuncheng/android/RepairInfo.vue +163 -0
  84. package/src/filiale/yuncheng/android/RepairOrderV.vue +1483 -0
  85. package/src/filiale/yuncheng/android/RepairUserInfo.vue +390 -0
  86. package/src/filiale/yuncheng/android/RightTree.vue +218 -0
  87. package/src/filiale/yuncheng/android/TemporarySingle.vue +522 -0
  88. package/src/filiale/yuncheng/android/ZHihuanFirst.vue +541 -0
  89. package/src/filiale/yuncheng/pc/DistributeWork.vue +199 -0
  90. package/src/filiale/yuncheng/pc/GasWork.vue +773 -0
  91. package/src/filiale/yuncheng/pc/TelFindUser.vue +31 -11
  92. package/src/filiale/yuncheng/pc/WorkList.vue +823 -0
  93. package/src/filiale/yuncheng/pc/WorkListAllNew.vue +781 -0
  94. package/src/filiale/yuncheng/telephone.js +5 -1
  95. package/src/filiale/yuncheng/telephoneAndroid.js +19 -0
  96. package/src/filiale/zhongyi/pc/WorkListAllNew.vue +2 -1
  97. package/src/main.js +1 -1
  98. package/src/telephone-android.js +7 -0
  99. package/src/telephone.js +1 -1
@@ -11,7 +11,7 @@
11
11
  </div>
12
12
  <div class="row app-row">
13
13
  <div class="col-xs-4">
14
- <label >联系电话</label>
14
+ <label>联系电话</label>
15
15
  </div>
16
16
  <div class="col-xs-8">
17
17
  <input class="input-font inputText4 " v-model=model.f_contact_phone style="width: 100%"></input>
@@ -20,7 +20,7 @@
20
20
  </div>
21
21
  <div class="row app-row">
22
22
  <div class="col-xs-4">
23
- <label >详细地址</label>
23
+ <label>详细地址</label>
24
24
  </div>
25
25
  <div class="col-xs-8">
26
26
  <input class="input-font inputText4 " v-model=model.f_address style="width: 100%"></input>
@@ -62,7 +62,8 @@
62
62
  <label>选择站点</label>
63
63
  </div>
64
64
  <div class="col-xs-8">
65
- <right-tree islist :userid="userid" :source="source" v-on:re-res="reres" v-ref:f_reciever width="100%" style="width: 100%">
65
+ <right-tree islist :userid="userid" :source="source" v-on:re-res="reres" v-ref:f_reciever width="100%"
66
+ style="width: 100%">
66
67
 
67
68
  </right-tree>
68
69
  </div>
@@ -78,7 +79,7 @@
78
79
  class="inputText4"
79
80
  :width="'100%'"
80
81
  :value-single="true"
81
- v-model="model.f_repairtype" close-on-select clear-button></v-select>
82
+ v-model="model.f_repairtype" close-on-select clear-button></v-select>
82
83
  </div>
83
84
 
84
85
  </div>
@@ -92,7 +93,7 @@
92
93
  class="inputText4"
93
94
  :width="'100%'"
94
95
  multiple
95
- v-model="failure" clear-button></v-select>
96
+ v-model="failure" clear-button></v-select>
96
97
  </div>
97
98
 
98
99
  </div>
@@ -108,16 +109,20 @@
108
109
  <div class="form-group col-sm-12">
109
110
 
110
111
  <div class="panel" style="padding: 10px 10px 5px 10px;">
111
- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 90%;margin-left:5%;height: 220px;position: relative">
112
+ <div class="panel-body panel-self"
113
+ style="background-color: #F8F8F8;width: 90%;margin-left:5%;height: 220px;position: relative">
112
114
  <div class="row" style="height: 180px;overflow: scroll;top: 1px">
113
115
  <div class="col-sm-4">
114
- <img-self :src="model.f_single_path" alt="抢修照片" :width="140" :height="170" capture="camera" type="file" @change="upload"></img-self>
116
+ <img-self :src="model.f_single_path" alt="抢修照片" :width="140" :height="170" capture="camera" type="file"
117
+ @change="upload"></img-self>
115
118
  </div>
116
119
  </div>
117
120
 
118
121
  <div class="row text-right div-photo" style="height: 50px">
119
- <img src="../../assets/remove.png" @click="delfile('f_single_path', model.f_single_path)" ></img>
120
- <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_single_path','抢修照片')" >拍照</button>
122
+ <img src="../../assets/remove.png" @click="delfile('f_single_path', model.f_single_path)"/>
123
+ <button type="button" name="button" class="btn btn-primary btn-photo"
124
+ @click="takePic('f_single_path','抢修照片')">拍照
125
+ </button>
121
126
 
122
127
  </div>
123
128
  </div>
@@ -127,16 +132,20 @@
127
132
  <div class="form-group col-sm-12">
128
133
 
129
134
  <div class="panel" style="padding: 10px 10px 5px 10px;">
130
- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 90%;margin-left:5%;height: 220px;position: relative">
135
+ <div class="panel-body panel-self"
136
+ style="background-color: #F8F8F8;width: 90%;margin-left:5%;height: 220px;position: relative">
131
137
  <div class="row" style="height: 180px;overflow: scroll;top: 1px">
132
138
  <div class="col-sm-4">
133
- <img-self :src="model.f_singlea_path" alt="抢修照片" :width="140" :height="170" capture="camera" type="file" @change="upload"></img-self>
139
+ <img-self :src="model.f_singlea_path" alt="抢修照片" :width="140" :height="170" capture="camera" type="file"
140
+ @change="upload"></img-self>
134
141
  </div>
135
142
  </div>
136
143
 
137
144
  <div class="row text-right div-photo" style="height: 50px">
138
- <img src="../../assets/remove.png" @click="delfile('f_singlea_path', model.f_singlea_path)" ></img>
139
- <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic1('f_singlea_path','抢修照片')" >拍照</button>
145
+ <img src="../../assets/remove.png" @click="delfile('f_singlea_path', model.f_singlea_path)"/>
146
+ <button type="button" name="button" class="btn btn-primary btn-photo"
147
+ @click="takePic1('f_singlea_path','抢修照片')">拍照
148
+ </button>
140
149
 
141
150
  </div>
142
151
  </div>
@@ -146,16 +155,20 @@
146
155
  <div class="form-group col-sm-12">
147
156
 
148
157
  <div class="panel" style="padding: 10px 10px 5px 10px;">
149
- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 90%;margin-left:5%;height: 220px;position: relative">
158
+ <div class="panel-body panel-self"
159
+ style="background-color: #F8F8F8;width: 90%;margin-left:5%;height: 220px;position: relative">
150
160
  <div class="row" style="height: 180px;overflow: scroll;top: 1px">
151
161
  <div class="col-sm-4">
152
- <img-self :src="model.f_singleb_path" alt="抢修照片" :width="140" :height="170" capture="camera" type="file" @change="upload"></img-self>
162
+ <img-self :src="model.f_singleb_path" alt="抢修照片" :width="140" :height="170" capture="camera" type="file"
163
+ @change="upload"></img-self>
153
164
  </div>
154
165
  </div>
155
166
 
156
167
  <div class="row text-right div-photo" style="height: 50px">
157
- <img src="../../assets/remove.png" @click="delfile('f_singleb_path', model.f_singleb_path)" ></img>
158
- <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic2('f_singleb_path','抢修照片')" >拍照</button>
168
+ <img src="../../assets/remove.png" @click="delfile('f_singleb_path', model.f_singleb_path)"/>
169
+ <button type="button" name="button" class="btn btn-primary btn-photo"
170
+ @click="takePic2('f_singleb_path','抢修照片')">拍照
171
+ </button>
159
172
 
160
173
  </div>
161
174
  </div>
@@ -170,311 +183,342 @@
170
183
  </template>
171
184
 
172
185
  <script>
173
- import Vue from 'vue'
174
- import * as Util from '../../components/Util'
175
- export default {
176
- title: '在线维修处理',
177
- props: {
178
- userinfo:{
179
- type: Object,
180
- default: null
181
- }
182
- },
183
- data() {
184
- return {
185
- source:
186
- 'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
187
- 'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
188
- userid: Vue.user.id,
189
- failure:['更换不锈钢波纹管'],
190
- model:{
191
- f_userinfo_id:'',
192
- f_userinfo_code:'',
193
- aState: null,
194
- f_address: '',
195
- f_area: "",
196
- f_attendant: Vue.user.name,
197
- f_building: "",
198
- f_card_id: "",
199
- f_contact_phone: "",
200
- f_depid:Vue.user.depids,
201
- f_filiale_id: "",
202
- f_floor: "",
203
- f_handlingtype: "转维修员",
204
- f_enter_number:'',
205
- f_meetunit: "",
206
- f_operator:Vue.user.name,
207
- f_operatorid:Vue.user.id,
208
- f_orgid:Vue.user.orgid,
209
- f_orgname:Vue.user.orgs,
210
- f_outlets: "",
211
- f_phone: "",
212
- f_reciever: "",
213
- f_remarks: "",
214
- f_repair_date: Util.getNowDate(),
215
- f_repairman_phone: "",
216
- f_repairtype: "整改",
217
- f_residential_area: "",
218
- f_room: "",
219
- f_service_id: "",
220
- f_source: "临时派单",
221
- f_street: "",
222
- f_unit: "",
223
- f_unit_name: "",
224
- f_user_name: "",
225
- f_user_type: "",
226
- failure: "",
227
- f_single_path:'',
228
- f_singlea_path:'',
229
- f_singleb_path:'',
230
- serviceacitivity:[{
231
- f_service_acitivity_type: "派单",
232
- f_reciever: Vue.user.name
233
- }]
186
+ import Vue from 'vue'
187
+ import * as Util from '../../components/Util'
188
+ import {HttpResetClass} from "vue-client";
189
+
190
+ export default {
191
+ title: '在线维修处理',
192
+ props: {
193
+ userinfo: {
194
+ type: Object,
195
+ default: null
234
196
  },
235
- repairstypes : this.$appdata.getParam('报修类型'),
236
- failuretypes: this.$appdata.getParam('在线维修故障类型'),
237
- user_types:[{label:"民用",value:"民用"},
238
- {label:"非民用",value:"非民用"}],
239
- repair_types:[{label:"民用",value:"民用"},
240
- {label:"非民用",value:"非民用"}],
241
- handling_types:[{label:"是",value:"转站点"},
242
- {label:"否",value:"转维修员"}]
243
- }
244
- },
245
- methods: {
246
- delfile(prop, fileName) {
247
- if (fileName == Vue.nopic)
248
- return
249
- else {
250
- HostApp.delfile(fileName)
251
- this.model[prop] = Vue.nopic
197
+ f_userinfo_id: {
198
+ type: String,
199
+ default: ''
252
200
  }
253
201
  },
254
- cameraCallBack(prop, fileName) {
255
- HostApp.__this__.model.f_single_path = fileName + '?' + Math.random()
256
- HostApp.__callback__ = null
257
- HostApp.__this__ = null
258
- },
259
- cameraCallBack1(prop, fileName) {
260
- HostApp.__this__.model.f_singlea_path = fileName + '?' + Math.random()
261
- HostApp.__callback__ = null
262
- HostApp.__this__ = null
263
- },
264
- cameraCallBack2(prop, fileName) {
265
- HostApp.__this__.model.f_singleb_path = fileName + '?' + Math.random()
266
- HostApp.__callback__ = null
267
- HostApp.__this__ = null
202
+ data() {
203
+ return {
204
+ source:
205
+ 'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
206
+ 'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
207
+ userid: Vue.user.id,
208
+ is_has_jingweidu: this.$appdata.getSingleValue('照片水印加经纬度') || 'false',
209
+ failure: ['更换不锈钢波纹管'],
210
+ model: {
211
+ f_userinfo_id: '',
212
+ f_userinfo_code: '',
213
+ aState: null,
214
+ f_address: '',
215
+ f_area: "",
216
+ f_attendant: Vue.user.name,
217
+ f_building: "",
218
+ f_card_id: "",
219
+ f_contact_phone: "",
220
+ f_depid: Vue.user.depids,
221
+ f_filiale_id: "",
222
+ f_floor: "",
223
+ f_handlingtype: "转维修员",
224
+ f_enter_number: '',
225
+ f_meetunit: "",
226
+ f_operator: Vue.user.name,
227
+ f_operatorid: Vue.user.id,
228
+ f_orgid: Vue.user.orgid,
229
+ f_orgname: Vue.user.orgs,
230
+ f_outlets: "",
231
+ f_phone: "",
232
+ f_reciever: "",
233
+ f_remarks: "",
234
+ f_repair_date: Util.getNowDate(),
235
+ f_repairman_phone: "",
236
+ f_repairtype: "整改",
237
+ f_residential_area: "",
238
+ f_room: "",
239
+ f_service_id: "",
240
+ f_source: "临时派单",
241
+ f_street: "",
242
+ f_unit: "",
243
+ f_unit_name: "",
244
+ f_user_name: "",
245
+ f_user_type: "",
246
+ failure: "",
247
+ f_single_path: '',
248
+ f_singlea_path: '',
249
+ f_singleb_path: '',
250
+ serviceacitivity: [{
251
+ f_service_acitivity_type: "派单",
252
+ f_reciever: Vue.user.name
253
+ }]
254
+ },
255
+ repairstypes: this.$appdata.getParam('报修类型'),
256
+ failuretypes: this.$appdata.getParam('在线维修故障类型'),
257
+ user_types: [{label: "民用", value: "民用"},
258
+ {label: "非民用", value: "非民用"}],
259
+ repair_types: [{label: "民用", value: "民用"},
260
+ {label: "非民用", value: "非民用"}],
261
+ handling_types: [{label: "是", value: "转站点"},
262
+ {label: "否", value: "转维修员"}]
263
+ }
268
264
  },
265
+ methods: {
266
+ delfile(prop, fileName) {
267
+ if (fileName == Vue.nopic)
268
+ return
269
+ else {
270
+ HostApp.delfile(fileName)
271
+ this.model[prop] = Vue.nopic
272
+ }
273
+ },
274
+ cameraCallBack(prop, fileName) {
275
+ HostApp.__this__.model.f_single_path = fileName + '?' + Math.random()
276
+ HostApp.__callback__ = null
277
+ HostApp.__this__ = null
278
+ },
279
+ cameraCallBack1(prop, fileName) {
280
+ HostApp.__this__.model.f_singlea_path = fileName + '?' + Math.random()
281
+ HostApp.__callback__ = null
282
+ HostApp.__this__ = null
283
+ },
284
+ cameraCallBack2(prop, fileName) {
285
+ HostApp.__this__.model.f_singleb_path = fileName + '?' + Math.random()
286
+ HostApp.__callback__ = null
287
+ HostApp.__this__ = null
288
+ },
269
289
 
270
- takePic(prop, title) {
271
- HostApp.__callback__ = this.cameraCallBack
272
- HostApp.__this__ = this
273
- let fileName
274
- if (!this.model.f_single_path || this.model.f_single_path.includes("nopic.png")) {
275
- fileName = Util.guid() + '-' + prop + '.jpg'
276
- } else {
277
- fileName = Util.getFileName(this.model.f_single_path)
278
- }
279
- //tag
280
- //tag
281
- HostApp._open_a_page({
282
- type: 'boomerang',
283
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
284
- param: {
285
- file: fileName,
286
- requestCode: 111,
287
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
288
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
290
+ takePic(prop, title) {
291
+ const obj = HostApp.getGpsDetailAddress()
292
+ HostApp.__callback__ = this.cameraCallBack
293
+ HostApp.__this__ = this
294
+ let fileName
295
+ if (!this.model.f_single_path || this.model.f_single_path.includes("nopic.png")) {
296
+ fileName = Util.guid() + '-' + prop + '.jpg'
297
+ } else {
298
+ fileName = Util.getFileName(this.model.f_single_path)
289
299
  }
290
- })
291
- },
292
- takePic1(prop, title) {
293
- HostApp.__callback__ = this.cameraCallBack1
294
- HostApp.__this__ = this
295
- let fileName
296
- if (!this.model.f_singlea_path || this.model.f_singlea_path.includes("nopic.png")) {
297
- fileName = Util.guid() + '-' + prop + '.jpg'
298
- } else {
299
- fileName = Util.getFileName(this.model.f_singlea_path)
300
- }
301
- //tag
302
- //tag
303
- HostApp._open_a_page({
304
- type: 'boomerang',
305
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
306
- param: {
307
- file: fileName,
308
- requestCode: 111,
309
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
310
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
300
+ let jingweidu = ''
301
+ if (this.is_has_jingweidu == 'true') {
302
+ jingweidu = '\t经度:' + obj.longitude + '\t纬度:' + obj.latitude
311
303
  }
312
- })
313
- },
314
- takePic2(prop, title) {
315
- HostApp.__callback__ = this.cameraCallBack2
316
- HostApp.__this__ = this
317
- let fileName
318
- if (!this.model.f_singleb_path || this.model.f_singleb_path.includes("nopic.png")) {
319
- fileName = Util.guid() + '-' + prop + '.jpg'
320
- } else {
321
- fileName = Util.getFileName(this.model.f_singleb_path)
322
- }
323
- //tag
324
- //tag
325
- HostApp._open_a_page({
326
- type: 'boomerang',
327
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
328
- param: {
329
- file: fileName,
330
- requestCode: 111,
331
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
332
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
304
+ //tag
305
+ //tag
306
+ HostApp._open_a_page({
307
+ type: 'boomerang',
308
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
309
+ param: {
310
+ file: fileName,
311
+ requestCode: 111,
312
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
313
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name + jingweidu
314
+ }
315
+ })
316
+ },
317
+ takePic1(prop, title) {
318
+ HostApp.__callback__ = this.cameraCallBack1
319
+ HostApp.__this__ = this
320
+ let fileName
321
+ if (!this.model.f_singlea_path || this.model.f_singlea_path.includes("nopic.png")) {
322
+ fileName = Util.guid() + '-' + prop + '.jpg'
323
+ } else {
324
+ fileName = Util.getFileName(this.model.f_singlea_path)
333
325
  }
334
- })
335
- },
336
-
337
- save() {
338
- if (!this.model.f_address){
339
- this.$showMessage('请填写地址信息')
340
- return
341
- }
342
- //tag)
343
- let data = {
344
- model: this.model, loginUser: {
345
- name: Vue.user.name,
346
- ename: Vue.user.ename
347
- }, user: null, callObj: null
348
- }
349
- if(this.model.f_handlingtype=='转维修员'){
350
- data.toRepair = '一级派单'
351
- this.model.f_meetunit = Vue.user.deps
352
- this.model.f_orgid = Vue.user.orgid
353
- this.model.f_filiale = Vue.user.org
354
- this.model.f_outlets = Vue.user.deps
355
- this.model.f_filiale_id = Vue.user.orgid
356
- }
357
- //tag
358
- HostApp.__this__ = this
359
- HostApp.logicWithHint({'logic': 'callerSendPhone', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
360
- 'data': data, 'backresult':1
361
- })
362
- },
363
- commitCallBack(jo){
364
- if (jo.state == "ok"&&this.model.f_handlingtype=='转站点'){
365
- this.$showMessage('抢修上报成功', ['confirm']).then((req) => {
366
- if (req === 'confirm') {
367
- this.$dispatch('confirm')
326
+ //tag
327
+ //tag
328
+ HostApp._open_a_page({
329
+ type: 'boomerang',
330
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
331
+ param: {
332
+ file: fileName,
333
+ requestCode: 111,
334
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
335
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
368
336
  }
369
337
  })
370
- }
371
- else if (jo.state == "ok"&&this.model.f_handlingtype=='转维修员'){
372
- this.$showMessage('抢修上报成功,请前往待办工单页面查看', ['confirm']).then((req) => {
373
- if (req === 'confirm') {
374
- this.$dispatch('confirm')
338
+ },
339
+ takePic2(prop, title) {
340
+ HostApp.__callback__ = this.cameraCallBack2
341
+ HostApp.__this__ = this
342
+ let fileName
343
+ if (!this.model.f_singleb_path || this.model.f_singleb_path.includes("nopic.png")) {
344
+ fileName = Util.guid() + '-' + prop + '.jpg'
345
+ } else {
346
+ fileName = Util.getFileName(this.model.f_singleb_path)
347
+ }
348
+ //tag
349
+ //tag
350
+ HostApp._open_a_page({
351
+ type: 'boomerang',
352
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
353
+ param: {
354
+ file: fileName,
355
+ requestCode: 111,
356
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
357
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
375
358
  }
376
359
  })
377
- }else{
378
- this.$showMessage('服务器内部错误')
379
- }
380
- },
381
- reres(val){
382
- if(val.res == undefined || val.res[0] == undefined || val.res[0] == ''){
383
- return
360
+ },
361
+
362
+ save() {
363
+ if (!this.model.f_address) {
364
+ this.$showMessage('请填写地址信息')
365
+ return
366
+ }
367
+ //tag)
368
+ let data = {
369
+ model: this.model, loginUser: {
370
+ name: Vue.user.name,
371
+ ename: Vue.user.ename
372
+ }, user: null, callObj: null
373
+ }
374
+ if (this.model.f_handlingtype == '转维修员') {
375
+ data.toRepair = '一级派单'
376
+ this.model.f_meetunit = Vue.user.deps
377
+ this.model.f_orgid = Vue.user.orgid
378
+ this.model.f_filiale = Vue.user.org
379
+ this.model.f_outlets = Vue.user.deps
380
+ this.model.f_filiale_id = Vue.user.orgid
381
+ }
382
+ //tag
383
+ HostApp.__this__ = this
384
+ HostApp.logicWithHint({
385
+ 'logic': 'callerSendPhone', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
386
+ 'data': data, 'backresult': 1
387
+ })
388
+ },
389
+ commitCallBack(jo) {
390
+ if (jo.state == "ok" && this.model.f_handlingtype == '转站点') {
391
+ this.$showMessage('抢修上报成功', ['confirm']).then((req) => {
392
+ if (req === 'confirm') {
393
+ this.$dispatch('confirm')
394
+ }
395
+ })
396
+ } else if (jo.state == "ok" && this.model.f_handlingtype == '转维修员') {
397
+ this.$showMessage('抢修上报成功,请前往待办工单页面查看', ['confirm']).then((req) => {
398
+ if (req === 'confirm') {
399
+ this.$dispatch('confirm')
400
+ }
401
+ })
402
+ } else {
403
+ this.$showMessage('服务器内部错误')
404
+ }
405
+ },
406
+ reres(val) {
407
+ if (val.res == undefined || val.res[0] == undefined || val.res[0] == '') {
408
+ return
409
+ }
410
+ this.model.serviceacitivity[0].f_meetunit = val.res[0]
411
+ this.model.f_meetunit = val.res[0]
412
+ this.model.f_filiale_id = val.orgobj[0].parentid
413
+ this.model.f_filiale = val.orgobj[0].parentname
414
+ this.model.f_outlets = val.res[0]
415
+ this.model.serviceacitivity[0].f_reciever = val.resids[0]
416
+ },
417
+ changeFailure(val) {
418
+ let failure = []
419
+ for (let i = 0; i < val.length; i++) {
420
+ failure.push({"f_failure_type": val[i], "failurecase": []})
421
+ }
422
+ this.model.failure = JSON.stringify(failure)
384
423
  }
385
- this.model.serviceacitivity[0].f_meetunit = val.res[0]
386
- this.model.f_meetunit = val.res[0]
387
- this.model.f_filiale_id = val.orgobj[0].parentid
388
- this.model.f_filiale = val.orgobj[0].parentname
389
- this.model.f_outlets = val.res[0]
390
- this.model.serviceacitivity[0].f_reciever = val.resids[0]
391
424
  },
392
- changeFailure(val) {
393
- let failure = []
394
- for (let i = 0; i < val.length; i++) {
395
- failure.push({"f_failure_type": val[i], "failurecase": []})
425
+ ready() {
426
+ this.changeFailure(this.failure)
427
+ // let gen = select(this)
428
+ // co(gen)
429
+ if (this.f_userinfo_id) {
430
+ new HttpResetClass().load('POST', 'rs/sql/tel_getUserInfoAdress', {
431
+ data: {
432
+ condition: `ti.f_userinfo_id = '${this.f_userinfo_id}'`
433
+ }
434
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
435
+ this.userinfo = res.data[0]
436
+ })
396
437
  }
397
- this.model.failure=JSON.stringify(failure)
398
- }
399
- },
400
- ready(){
401
- this.changeFailure(this.failure)
402
- // let gen = select(this)
403
- // co(gen)
404
- },
405
- watch: {
406
- 'failure'(val){
407
- this.changeFailure(val)
408
438
  },
409
- 'userinfo'(val){
410
- if(val){
411
- this.model.f_user_name = val.f_user_name
412
- this.model.f_contact_phone = val.f_user_phone
413
- this.model.f_userinfo_id = val.f_userinfo_id
414
- this.model.f_userinfo_code = val.f_userinfo_code
415
- this.model.f_address = val.f_address
416
- this.model.f_user_type = val.f_user_type
417
- this.model.f_enter_number = val.f_enter_number
439
+ watch: {
440
+ 'failure'(val) {
441
+ this.changeFailure(val)
442
+ },
443
+ 'userinfo'(val) {
444
+ if (val) {
445
+ this.model.f_user_name = val.f_user_name
446
+ this.model.f_contact_phone = val.f_user_phone
447
+ this.model.f_userinfo_id = val.f_userinfo_id
448
+ this.model.f_userinfo_code = val.f_userinfo_code
449
+ this.model.f_address = val.f_address
450
+ this.model.f_user_type = val.f_user_type
451
+ this.model.f_enter_number = val.f_enter_number
452
+ }
418
453
  }
419
454
  }
420
455
  }
421
- }
422
456
  </script>
423
457
 
424
458
  <style scoped>
425
- .inputText4 {
426
- font-family:Arial,Helvetica,sans-serif;
427
- background:none repeat scroll 0 0 #F5F7FD;
428
- border:1px solid #B8BFE9;
429
- padding:5px 7px;
430
- width:100px;
431
- vertical-align:middle;
432
- height:30px;
433
- font-size:12px;
434
- margin:0;
435
- list-style:none outside none;
436
- }
437
- .input-font{
438
- font: 15px PingFang-SC-Medium;
439
- color: #333333;
440
- }
441
- .app-row {
442
- background-color: white;
443
- padding: 10px 10px 0 10px;
444
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
445
- }
446
- .bg {
447
- background-color: blue;
448
- height: 1px;
449
- border: 0;
450
- }
451
- .app-row {
452
- background-color: white;
453
- padding: 10px 10px 0 10px;
454
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
455
- }
456
- .search_input {
457
- border: 0;
458
- outline: none;
459
- }
460
- .font{
461
- font: 15px PingFang-SC-Medium;
462
- color: #666666;
463
- }
464
- .input-font{
465
- font: 15px PingFang-SC-Medium;
466
- color: #333333;
467
- }
468
- .btn-font{
469
- font:600 16px PingFang-SC-Bold;
470
- color: #499EDF;
471
- }
472
- .btn-color{
473
- background-color: #FFFFFF;
474
- border-radius: 10px ;
475
- border: 1px solid #499EDF;
476
- }
477
- .app-text {
478
- font-size: 12px;
479
- }
459
+ .inputText4 {
460
+ font-family: Arial, Helvetica, sans-serif;
461
+ background: none repeat scroll 0 0 #F5F7FD;
462
+ border: 1px solid #B8BFE9;
463
+ padding: 5px 7px;
464
+ width: 100px;
465
+ vertical-align: middle;
466
+ height: 30px;
467
+ font-size: 12px;
468
+ margin: 0;
469
+ list-style: none outside none;
470
+ }
471
+
472
+ .input-font {
473
+ font: 15px PingFang-SC-Medium;
474
+ color: #333333;
475
+ }
476
+
477
+ .app-row {
478
+ background-color: white;
479
+ padding: 10px 10px 0 10px;
480
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
481
+ }
482
+
483
+ .bg {
484
+ background-color: blue;
485
+ height: 1px;
486
+ border: 0;
487
+ }
488
+
489
+ .app-row {
490
+ background-color: white;
491
+ padding: 10px 10px 0 10px;
492
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
493
+ }
494
+
495
+ .search_input {
496
+ border: 0;
497
+ outline: none;
498
+ }
499
+
500
+ .font {
501
+ font: 15px PingFang-SC-Medium;
502
+ color: #666666;
503
+ }
504
+
505
+ .input-font {
506
+ font: 15px PingFang-SC-Medium;
507
+ color: #333333;
508
+ }
509
+
510
+ .btn-font {
511
+ font: 600 16px PingFang-SC-Bold;
512
+ color: #499EDF;
513
+ }
514
+
515
+ .btn-color {
516
+ background-color: #FFFFFF;
517
+ border-radius: 10px;
518
+ border: 1px solid #499EDF;
519
+ }
520
+
521
+ .app-text {
522
+ font-size: 12px;
523
+ }
480
524
  </style>