Commit 5ca9cb2d by 前端

v1.27.0版本需求

1 parent 17ba7b33
......@@ -22,7 +22,7 @@
"core-js": "3.6.5",
"downloadjs": "^1.4.7",
"echarts": "^5.2.1",
"element-ui": "2.13.2",
"element-ui": "^2.15.4",
"font-awesome": "^4.7.0",
"js-cookie": "2.2.0",
"js-md5": "^0.7.3",
......
......@@ -187,4 +187,9 @@ export const REPUSH_WORK_ORDER = params => {
// 业务管理-车辆管理-三码合一照片修改
export const UPDATE_THREECODE_IMAGE = params => {
return api.post('vehicle/updateThreeCodeImage', params, 'object')
}
// 业务管理-工单管理-获取虚拟号拨打记录
export const GET_CALLLOG_LIST = params => {
return api.get('workOrder/getCallLogListByOrderId', params)
}
\ No newline at end of file
<template>
<div class="dial_page">
<div class="dial_head">
<i class="el-icon-arrow-left" @click="goBack"></i>
<span>虚拟号拨打记录详情</span>
</div>
<div class="dial_content">
<!-- 时间线 开始 -->
<el-timeline v-if="recordList && recordList.length">
<el-timeline-item
v-for="(item, index) in recordList"
:key="`timeline_${index}`"
>
<el-card class="card_box" :body-style="bodyStyle">
<p>【呼叫时间】{{ item.callTime }}</p>
<p>主叫方:{{ item.callingRoleTypeStr }}</p>
<p>主叫方手机号:{{ item.callingParty }}</p>
<p>被叫方:{{ item.calledRoleTypeStr }}</p>
<p>被叫方手机号:{{ item.calledParty }}</p>
<p>拨通情况:{{ item.dialingStateStr }}</p>
<p>通话时长:{{ item.callDuration }}</p>
<p>结束发起方:{{ item.finishTypeStr }}</p>
<p>结束状态:{{ item.finishStateStr }}</p>
</el-card>
</el-timeline-item>
</el-timeline>
<!-- 时间线 end -->
<!-- 暂无数据 开始 -->
<div class="" v-else>
<el-empty description="暂无数据"></el-empty>
</div>
<!-- 暂无数据 end -->
</div>
</div>
</template>
<script>
import { GET_CALLLOG_LIST } from "@/api/services/business";
export default {
name: "DialDetail",
props: {
id: {
type: [String, Number],
default: "",
},
},
watch: {
id: {
handler: function (n) {
if (n) {
this.getList(n);
}
},
immediate: true,
},
},
data() {
return {
recordList: [],
bodyStyle: { padding: "10px 20px" },
};
},
methods: {
// 获取列表
getList(id) {
let params = {};
params.workOrderId = id;
GET_CALLLOG_LIST(params).then((res) => {
this.recordList = res.data || [];
});
},
// 返回
goBack() {
this.$emit("close");
},
},
};
</script>
<style lang="scss" scoped>
.dial_page {
display: flex;
flex-direction: column;
height: 100%;
}
.dial_head {
position: relative;
display: flex;
align-items: center;
padding: 10px;
flex-shrink: 0;
i {
font-size: 24px;
margin-right: 10px;
cursor: pointer;
}
}
.dial_head:after {
display: block;
content: "";
height: 1px;
position: absolute;
left: 0;
right: 0;
bottom: 0;
background: #eee;
}
.dial_content {
flex: 1;
padding: 20px 30px;
overflow-y: auto;
box-sizing: border-box;
}
</style>
\ No newline at end of file
......@@ -91,7 +91,7 @@
</el-form-item>
</div>
<el-form-item label="是否加装" v-if="showFormItem">
<el-input :value="form.addFlag == 1?'是':'否'" disabled />
<el-input :value="form.addFlag == 1 ? '是' : '否'" disabled />
</el-form-item>
<el-form-item label="结算主体">
<el-input :value="form.tradeEntityStr" disabled />
......@@ -579,6 +579,16 @@
@click="getFeedList"
>日志刷新</el-button
>
<el-button
type="default"
icon="el-icon-phone-outline"
round
plain
size="mini"
class="btn"
@click="lookDialRecord"
>虚拟号拨打记录</el-button
>
</div>
<el-timeline>
<el-timeline-item v-for="(item, index) in feedList" :key="index">
......@@ -600,6 +610,12 @@
</div>
<!-- 平安工单 end -->
<!-- 虚拟号拨打记录 开始 -->
<div class="dial_record" v-if="showDialRecord">
<dial-detail :id="orderId" @close="closeDialRecord()" />
</div>
<!-- 虚拟号拨打记录 end -->
<div slot="footer" class="dialog-footer">
<div class="left">
<template v-if="form.orderType == 'PAZL' && form.businessStatus == 4">
......@@ -676,6 +692,7 @@ import {
REPUSH_WORK_ORDER,
} from "@/api/services/business";
import { showModal, showToast } from "@/utils/util";
import DialDetail from "./dial.vue";
const BUSINESS_SERVICE = services.business;
export default {
......@@ -685,6 +702,7 @@ export default {
vAreaSelect,
snValidate,
plateNumberInput,
DialDetail,
},
props: [
"orderModalVisible",
......@@ -821,7 +839,7 @@ export default {
orderSourceStr: "",
specialTagStr: "",
tradeEntityStr: "",
addFlag:""
addFlag: "",
},
rules: {
shopName: [
......@@ -953,7 +971,8 @@ export default {
freshLoading: false,
pushTime: 120,
pushInterval: null,
showFormItem:false , // 是否展示加装工单选项
showFormItem: false, // 是否展示加装工单选项
showDialRecord:false, // 是否展示虚拟号拨打记录
};
},
computed: {
......@@ -974,7 +993,7 @@ export default {
}
},
},
methods: {
resetForm() {
const form = this.form;
......@@ -1019,14 +1038,14 @@ export default {
form.orderSourceStr = "";
form.specialTagStr = "";
form.tradeEntityStr = "";
form.addFlag = 0
form.addFlag = 0;
},
openDialog() {
console.log(this.progressShow);
let user = sessionStorage.getItem('user');
let info = user?JSON.parse(user):{};
let user = sessionStorage.getItem("user");
let info = user ? JSON.parse(user) : {};
// 针对平安特殊的账户,动态展示是否加装字段
if (info.username == "PAXM"||info.username == "paxm") {
if (info.username == "PAXM" || info.username == "paxm") {
this.showFormItem = true;
}
this.$emit("onOrderModalChange", true);
......@@ -1070,6 +1089,7 @@ export default {
this.$refs.form.clearValidate();
this.paForm = { status: "2" };
this.scrollTo("form");
this.showDialRecord = false;
setTimeout(function () {
_this.$refs.paForm.clearValidate();
}, 50);
......@@ -1450,6 +1470,17 @@ export default {
});
}
},
// 查看虚拟号拨打记录
lookDialRecord(){
this.showDialRecord = true;
},
// 关闭虚拟号拨打记录
closeDialRecord(){
this.showDialRecord = false;
}
},
};
</script>
......@@ -1655,6 +1686,14 @@ form.order-modal-form {
justify-content: flex-end;
}
}
.dial_record {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #fff;
}
</style>
<style lang="scss">
// .progress-box{
......@@ -1669,4 +1708,7 @@ form.order-modal-form {
.gray-cl {
color: #999;
}
.el-dialog__body {
position: relative;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!