diff --git a/src/views/order/components/orderDia.vue b/src/views/order/components/orderDia.vue index 2c138a2..a9d41f5 100644 --- a/src/views/order/components/orderDia.vue +++ b/src/views/order/components/orderDia.vue @@ -637,6 +637,65 @@ const { rules, orderForm, handleProcess, confirmForm, historyParams, queryParams, orderRobotId, phonesCall } = toRefs(orderData); +const orderTitleList = ref([ + { + code: 'register', + title: '登记工单', + // icon: gddj_icon, + value: 'launch', + num: null, + }, + { + code: 'reassign', + title: '二次分配', + // icon: sl_icon, + value: 'reassign', + num: null, + }, + { + code: 'submit', + title: '工单提交', + // icon: tj_icon, + value: 'submit', + num: null, + }, + { + code: 'assign', + title: '工单分派', + // icon: fp_icon, + value: 'assign', + num: null, + }, + { + code: 'response', + title: '工单响应', + // icon: xy_icon, + value: 'response', + num: null, + }, + { + code: 'report', + title: '工单上报', + // icon: sb_icon, + value: 'report', + num: null, + }, + { + code: 'check', + title: '工单核实', + // icon: hs_icon, + value: 'check', + num: null, + }, + // { + // code: 'complete', + // title: '工单结案', + // icon: ja_icon, + // value: 'complete', + // num: null, + // }, +]); + // 详情 const getDetail = () => { infoLoading.value = true; @@ -696,13 +755,25 @@ // 外呼催办 const orderCall = item => { if (!is_phone.value) return; - // orderNumber - // console.log('------------',orderForm.value.orderNumber); - + // orderNumber reportLocation message + + let location = orderForm.value.reportLocation || ''; + let message = orderForm.value.message || ''; + let orderNumber = orderForm.value.orderNumber || ''; + let orderState = orderTitleList.value.find(item => item.value === orderForm.value.status)?.title || ''; + + // console.log( + // '------------001', + // orderForm.value, + // location + message + '工单编码为' + orderNumber + '已完成' + orderState + '请尽快进行下一步操作' + // ); let params = { robotId: orderRobotId.value, phones: phonesCall.value, - templateDesc: { title: '延安城市生命线通知', notice: '请尽快处理工单编码' + orderForm.value.orderNumber + '工单内容' }, + templateDesc: { + title: '延安城市生命线通知', + notice: location + message + '工单编码为' + orderNumber + '已完成' + orderState + '请尽快进行下一步操作', + }, }; proxy.$modal