|
|
@@ -70,20 +70,12 @@
|
|
70
|
70
|
</view>
|
|
71
|
71
|
</view>
|
|
72
|
72
|
</view>
|
|
73
|
|
- <!-- <view class="uni-form-item uni-column">
|
|
74
|
|
- <view class="uni-title uni-common-pl">反映类别:</view>
|
|
75
|
|
- <uni-combox :candidates="candidates" v-model="city" labelWidth="10000"></uni-combox>
|
|
76
|
|
-
|
|
77
|
|
- <view class="uni-list">
|
|
78
|
|
- <view class="uni-list-cell">
|
|
79
|
|
- <view class="uni-list-cell-db">
|
|
80
|
|
- <picker @change="bindPickerChange" :value="formData.index" :range="array">
|
|
81
|
|
- <view class="uni-input">{{ array[index] }}</view>
|
|
82
|
|
- </picker>
|
|
83
|
|
- </view>
|
|
84
|
|
- </view>
|
|
|
73
|
+ <view class="uni-form-item uni-column">
|
|
|
74
|
+ <view class="title">反映类别:</view>
|
|
|
75
|
+ <view>
|
|
|
76
|
+ <bjx-inputs the-style="font-size: 14px; overflow: auto" :value="formData.responseCategory" item-key="names" placeholder="请输入内容" @list="getReflectCategoryData" @select="selectReflectCategory" overflow="hide"> </bjx-inputs>
|
|
85
|
77
|
</view>
|
|
86
|
|
- </view> -->
|
|
|
78
|
+ </view>
|
|
87
|
79
|
<view class="uni-form-item uni-column">
|
|
88
|
80
|
<view class="title">号码密级:</view>
|
|
89
|
81
|
<radio-group name="numberSecurityLevel" :value="formData.numberSecurityLevel">
|
|
|
@@ -103,54 +95,30 @@
|
|
103
|
95
|
</view>
|
|
104
|
96
|
</view>
|
|
105
|
97
|
</view>
|
|
106
|
|
- <view class="uni-form-item uni-column">
|
|
107
|
|
- <view class="uni-title uni-common-pl">分管领导:</view>
|
|
108
|
|
- <view class="uni-list">
|
|
109
|
|
- <view class="uni-list-cell">
|
|
110
|
|
- <view class="uni-list-cell-db">
|
|
111
|
|
- <picker @change="bindPickerChangeLeaderCharge" :value="formData.leaderCharge" :range="leaderChargeListData" :range-key="'text'">
|
|
112
|
|
- <view class="uni-input">{{ leaderChargeListData[pickerIndex.indexLeaderCharge].text }}</view>
|
|
113
|
|
- </picker>
|
|
114
|
|
- </view>
|
|
115
|
|
- </view>
|
|
116
|
|
- </view>
|
|
117
|
|
- </view>
|
|
118
|
|
- <!-- <view class="uni-form-item uni-column">
|
|
119
|
|
- <view class="uni-title uni-common-pl">承办单位:</view>
|
|
|
98
|
+ <view class="uni-form-item uni-column" v-show="isDisplay.phoneType">
|
|
|
99
|
+ <view class="uni-title uni-common-pl">电话类别:</view>
|
|
120
|
100
|
<view class="uni-list">
|
|
121
|
101
|
<view class="uni-list-cell">
|
|
122
|
102
|
<view class="uni-list-cell-db">
|
|
123
|
|
- <picker @change="bindPickerChange" :value="formData.index" :range="array">
|
|
124
|
|
- <view class="uni-input">{{ array[index] }}</view>
|
|
|
103
|
+ <picker @change="bindPickerChangePhoneType" :value="formData.phoneType" :range="phoneTypeListData" :range-key="'F_Remark'">
|
|
|
104
|
+ <view class="uni-input">{{ phoneTypeListData[pickerIndex.indexPhoneType].F_Remark }}</view>
|
|
125
|
105
|
</picker>
|
|
126
|
106
|
</view>
|
|
127
|
107
|
</view>
|
|
128
|
108
|
</view>
|
|
129
|
109
|
</view>
|
|
130
|
|
- <view class="uni-form-item uni-column">
|
|
131
|
|
- <view class="uni-title uni-common-pl">办理时限:</view>
|
|
|
110
|
+ <view class="uni-form-item uni-column" v-show="isDisplay.leaderCharge">
|
|
|
111
|
+ <view class="uni-title uni-common-pl">分管领导:</view>
|
|
132
|
112
|
<view class="uni-list">
|
|
133
|
113
|
<view class="uni-list-cell">
|
|
134
|
114
|
<view class="uni-list-cell-db">
|
|
135
|
|
- <picker @change="bindPickerChange" :value="formData.index" :range="array">
|
|
136
|
|
- <view class="uni-input">{{ array[index] }}</view>
|
|
|
115
|
+ <picker @change="bindPickerChangeLeaderCharge" :value="formData.leaderCharge" :range="leaderChargeListData" :range-key="'text'">
|
|
|
116
|
+ <view class="uni-input">{{ leaderChargeListData[pickerIndex.indexLeaderCharge].text }}</view>
|
|
137
|
117
|
</picker>
|
|
138
|
118
|
</view>
|
|
139
|
119
|
</view>
|
|
140
|
120
|
</view>
|
|
141
|
121
|
</view>
|
|
142
|
|
- <view class="uni-form-item uni-column">
|
|
143
|
|
- <view class="uni-title uni-common-pl">紧急时限:</view>
|
|
144
|
|
- <view class="uni-list">
|
|
145
|
|
- <view class="uni-list-cell">
|
|
146
|
|
- <view class="uni-list-cell-db">
|
|
147
|
|
- <picker @change="bindPickerChange" :value="formData.index" :range="array">
|
|
148
|
|
- <view class="uni-input">{{ array[index] }}</view>
|
|
149
|
|
- </picker>
|
|
150
|
|
- </view>
|
|
151
|
|
- </view>
|
|
152
|
|
- </view>
|
|
153
|
|
- </view> -->
|
|
154
|
122
|
<view class="uni-btn-v">
|
|
155
|
123
|
<button form-type="submit" class="mini-btn" type="default" size="mini">保存</button>
|
|
156
|
124
|
</view>
|
|
|
@@ -160,13 +128,18 @@
|
|
160
|
128
|
</template>
|
|
161
|
129
|
|
|
162
|
130
|
<script>
|
|
|
131
|
+import BjxInputs from "@/components/bjx-inputs/bjx-inputs.vue"
|
|
|
132
|
+
|
|
163
|
133
|
export default {
|
|
|
134
|
+ components: {
|
|
|
135
|
+ BjxInputs,
|
|
|
136
|
+ },
|
|
164
|
137
|
data() {
|
|
165
|
138
|
return {
|
|
166
|
139
|
wid: "", // 工单id
|
|
167
|
140
|
title: "picker",
|
|
168
|
|
- array: ["中国", "美国", "巴西", "日本"],
|
|
169
|
141
|
index: 0,
|
|
|
142
|
+ reflectCategoryListData: [], // 反映类别列表数据
|
|
170
|
143
|
// date: currentDate,
|
|
171
|
144
|
formData: {
|
|
172
|
145
|
workOrderTitle: "", // 标题
|
|
|
@@ -180,11 +153,14 @@ export default {
|
|
180
|
153
|
callerNumber: "", // 来电号码
|
|
181
|
154
|
workOrderType: "", // 工单类型
|
|
182
|
155
|
responseCategory: "", // 反映类别
|
|
|
156
|
+ responseCategoryId: "", // 反映类别id
|
|
183
|
157
|
numberSecurityLevel: "", // 来电号码密级
|
|
184
|
158
|
emergencyLevel: "", // 紧急程度
|
|
185
|
159
|
organizer: "", // 承办单位
|
|
186
|
160
|
processingTimeLimit: "", // 办理时限
|
|
187
|
161
|
emergencyTimeLimit: "", // 积极时限
|
|
|
162
|
+ phoneType: "", // 电话类别
|
|
|
163
|
+ phoneTypeId: "", // 电话类别
|
|
188
|
164
|
leaderCharge: "", // 分管领导
|
|
189
|
165
|
threeWayCall: "", // 三方通话
|
|
190
|
166
|
},
|
|
|
@@ -195,11 +171,14 @@ export default {
|
|
195
|
171
|
},
|
|
196
|
172
|
isDisplay: {
|
|
197
|
173
|
result: false, // 办理内容
|
|
|
174
|
+ phoneType: false, // 电话类别
|
|
|
175
|
+ leaderCharge: false, // 分管领导
|
|
198
|
176
|
},
|
|
199
|
177
|
pickerIndex: {
|
|
200
|
178
|
indexSource: 0, // 来源index
|
|
201
|
179
|
indexType: 0, // 类型index
|
|
202
|
180
|
indexEmergencyLevel: 0, // 紧急程度index
|
|
|
181
|
+ indexPhoneType: 0, // 电话类别index
|
|
203
|
182
|
indexLeaderCharge: 0, // 分管领导index
|
|
204
|
183
|
},
|
|
205
|
184
|
// 来源数据
|
|
|
@@ -225,6 +204,12 @@ export default {
|
|
225
|
204
|
text: "紧急",
|
|
226
|
205
|
},
|
|
227
|
206
|
],
|
|
|
207
|
+ // 电话类别
|
|
|
208
|
+ phoneTypeListData: [
|
|
|
209
|
+ {
|
|
|
210
|
+ F_Value: "请选择",
|
|
|
211
|
+ }
|
|
|
212
|
+ ],
|
|
228
|
213
|
// 分管领导
|
|
229
|
214
|
leaderChargeListData: [
|
|
230
|
215
|
{
|
|
|
@@ -245,6 +230,10 @@ export default {
|
|
245
|
230
|
this.getDictionaryData(1)
|
|
246
|
231
|
// 获取来源数据 dictionaryId=2
|
|
247
|
232
|
this.getDictionaryData(2)
|
|
|
233
|
+ // 获取电话类别 dictionaryId=2498
|
|
|
234
|
+ this.getDictionaryData(2498)
|
|
|
235
|
+ // 获取反映类别
|
|
|
236
|
+ this.getReflectCategoryList()
|
|
248
|
237
|
// 获取详情 type=0
|
|
249
|
238
|
this.getDetail(0)
|
|
250
|
239
|
},
|
|
|
@@ -280,11 +269,12 @@ export default {
|
|
280
|
269
|
sourceaddress: "",
|
|
281
|
270
|
source: this.formData.source, // 来源
|
|
282
|
271
|
splituser: this.formData.leaderCharge, // 分管领导
|
|
|
272
|
+ phonetype: this.formData.phoneType, // 电话类别
|
|
283
|
273
|
isresult: this.formData.processingMethod, //=(0转办1直办)
|
|
284
|
274
|
// business: this.formData.threeWayCall, // 三方通话
|
|
285
|
275
|
business: "0",
|
|
286
|
276
|
result: this.formData.result, // 办理内容
|
|
287
|
|
- keys: this.formData.responseCategory, // 反映类别
|
|
|
277
|
+ keys: this.formData.responseCategoryId, // 反映类别
|
|
288
|
278
|
type: this.formData.workOrderType, // 类型
|
|
289
|
279
|
isprotect: this.formData.numberSecurityLevel, //=(0普通1保密)
|
|
290
|
280
|
level: this.formData.emergencyLevel, //=(1普通2紧急)
|
|
|
@@ -293,9 +283,10 @@ export default {
|
|
293
|
283
|
token: uni.getStorageSync("token"),
|
|
294
|
284
|
}
|
|
295
|
285
|
this.$http
|
|
296
|
|
- .get("/WorkOrder/EditWorkOrder", params)
|
|
|
286
|
+ .post("/WorkOrder/EditWorkOrder", params)
|
|
297
|
287
|
.then((response) => {
|
|
298
|
288
|
if (response.state.toLowerCase() === "success") {
|
|
|
289
|
+
|
|
299
|
290
|
}
|
|
300
|
291
|
})
|
|
301
|
292
|
.catch((e) => {
|
|
|
@@ -325,7 +316,7 @@ export default {
|
|
325
|
316
|
// sourceaddress: $("#sourceaddress").val(), //=事发详细地址
|
|
326
|
317
|
// this.formData.threeWayCall = data.F_Business, // 三方通话
|
|
327
|
318
|
this.formData.result = data.F_Result; // 办理内容
|
|
328
|
|
- this.formData.responseCategory = data.F_Key; // 反映类别
|
|
|
319
|
+ this.formData.responseCategoryId = data.F_Key; // 反映类别
|
|
329
|
320
|
|
|
330
|
321
|
// 处理方式(0转办1直办)
|
|
331
|
322
|
if (String(data.F_IsResult) === "0") {
|
|
|
@@ -373,6 +364,14 @@ export default {
|
|
373
|
364
|
});
|
|
374
|
365
|
|
|
375
|
366
|
// 分管领导
|
|
|
367
|
+ this.phoneTypeListData.forEach((e,i) => {
|
|
|
368
|
+ if (String(e.text) === String(data.F_PhoneType)) {
|
|
|
369
|
+ this.pickerIndex.indexPhoneType = i;
|
|
|
370
|
+ this.formData.phoneType = data.F_PhoneType;
|
|
|
371
|
+ }
|
|
|
372
|
+ });
|
|
|
373
|
+
|
|
|
374
|
+ // 分管领导
|
|
376
|
375
|
this.leaderChargeListData.forEach((e,i) => {
|
|
377
|
376
|
if (String(e.text) === String(data.F_SplitUser)) {
|
|
378
|
377
|
this.pickerIndex.indexLeaderCharge = i;
|
|
|
@@ -404,6 +403,9 @@ export default {
|
|
404
|
403
|
} else if (String(dictionaryId) === "2") {
|
|
405
|
404
|
// 类型数据
|
|
406
|
405
|
this.typeListData = data;
|
|
|
406
|
+ } else if (String(dictionaryId) === "2498") {
|
|
|
407
|
+ // 电话类别
|
|
|
408
|
+ this.phoneTypeListData = data;
|
|
407
|
409
|
}
|
|
408
|
410
|
}
|
|
409
|
411
|
})
|
|
|
@@ -411,6 +413,46 @@ export default {
|
|
411
|
413
|
console.log(e)
|
|
412
|
414
|
})
|
|
413
|
415
|
},
|
|
|
416
|
+
|
|
|
417
|
+ getReflectCategoryList() {
|
|
|
418
|
+ let params = {
|
|
|
419
|
+ token: uni.getStorageSync("token"),
|
|
|
420
|
+ }
|
|
|
421
|
+ this.$http
|
|
|
422
|
+ .get("Dictionary/GetKeyListNew", params)
|
|
|
423
|
+ .then((response) => {
|
|
|
424
|
+ if (response.state.toLowerCase() === "success") {
|
|
|
425
|
+ let data = response.data
|
|
|
426
|
+ this.reflectCategoryListData = data
|
|
|
427
|
+ }
|
|
|
428
|
+ })
|
|
|
429
|
+ .catch((e) => {
|
|
|
430
|
+ console.log(e)
|
|
|
431
|
+ })
|
|
|
432
|
+ },
|
|
|
433
|
+
|
|
|
434
|
+ // 远程加载数据 返回一个对象,{value: 输入框值, callback: 回调函数}
|
|
|
435
|
+ getReflectCategoryData(e) {
|
|
|
436
|
+ console.log("e", e)
|
|
|
437
|
+ this.formData.responseCategory = e.value
|
|
|
438
|
+ if (!e.value) {
|
|
|
439
|
+ e.callback(this.reflectCategoryListData)
|
|
|
440
|
+ } else {
|
|
|
441
|
+ let data = []
|
|
|
442
|
+ this.reflectCategoryListData.forEach((item) => {
|
|
|
443
|
+ if (item.names.indexOf(e.value) > -1) {
|
|
|
444
|
+ data.push(item)
|
|
|
445
|
+ }
|
|
|
446
|
+ })
|
|
|
447
|
+ e.callback(data)
|
|
|
448
|
+ }
|
|
|
449
|
+ },
|
|
|
450
|
+
|
|
|
451
|
+ selectReflectCategory(value) {
|
|
|
452
|
+ this.formData.responseCategory = value.name
|
|
|
453
|
+ this.formData.responseCategoryId = value.id
|
|
|
454
|
+ },
|
|
|
455
|
+
|
|
414
|
456
|
bindPickerChange: function (e) {
|
|
415
|
457
|
console.log("picker发送选择改变,携带值为", e.target.value)
|
|
416
|
458
|
this.index = e.target.value
|
|
|
@@ -419,6 +461,16 @@ export default {
|
|
419
|
461
|
bindPickerChangeSource: function (e) {
|
|
420
|
462
|
this.pickerIndex.indexSource = e.target.value;
|
|
421
|
463
|
this.formData.source = this.sourceListData[e.target.value].F_ValueId;
|
|
|
464
|
+ if (String(this.formData.source) === "4") {
|
|
|
465
|
+ this.isDisplay.leaderCharge = true
|
|
|
466
|
+ this.isDisplay.phoneType = false
|
|
|
467
|
+ } else if (String(this.formData.source) === "1") {
|
|
|
468
|
+ this.isDisplay.phoneType = true
|
|
|
469
|
+ this.isDisplay.leaderCharge = false
|
|
|
470
|
+ } else {
|
|
|
471
|
+ this.isDisplay.phoneType = false
|
|
|
472
|
+ this.isDisplay.leaderCharge = false
|
|
|
473
|
+ }
|
|
422
|
474
|
},
|
|
423
|
475
|
bindPickerChangeType: function (e) {
|
|
424
|
476
|
this.pickerIndex.indexType = e.target.value;
|
|
|
@@ -428,6 +480,10 @@ export default {
|
|
428
|
480
|
this.pickerIndex.indexEmergencyLevel = e.target.value;
|
|
429
|
481
|
this.formData.emergencyLevel = this.emergencyLevelListData[e.target.value].value
|
|
430
|
482
|
},
|
|
|
483
|
+ bindPickerChangePhoneType: function (e) {
|
|
|
484
|
+ this.pickerIndex.indexPhoneType = e.target.value;
|
|
|
485
|
+ this.formData.phoneType = this.phoneTypeListData[e.target.value].F_ValueId
|
|
|
486
|
+ },
|
|
431
|
487
|
bindPickerChangeLeaderCharge: function (e) {
|
|
432
|
488
|
this.pickerIndex.indexLeaderCharge = e.target.value;
|
|
433
|
489
|
this.formData.leaderCharge = this.leaderChargeListData[e.target.value].text
|
|
|
@@ -465,6 +521,20 @@ export default {
|
|
465
|
521
|
radio-group uni-text {
|
|
466
|
522
|
font-size: 14px;
|
|
467
|
523
|
}
|
|
|
524
|
+ .uni-input-input {
|
|
|
525
|
+ font-size: 14px !important;
|
|
|
526
|
+ }
|
|
|
527
|
+ .bjx-inputs {
|
|
|
528
|
+ // .uni-input-wrapper {
|
|
|
529
|
+ // font-size: 14px !important;
|
|
|
530
|
+ // }
|
|
|
531
|
+ // .uni-input {
|
|
|
532
|
+ // font-size: 14px !important;
|
|
|
533
|
+ // }
|
|
|
534
|
+ .uni-input-placeholder {
|
|
|
535
|
+ font-size: 14px;
|
|
|
536
|
+ }
|
|
|
537
|
+ }
|
|
468
|
538
|
}
|
|
469
|
539
|
.uni-btn-v {
|
|
470
|
540
|
margin: 15px 0 0 0;
|