Commit 5ca9cb2d by 前端

v1.27.0版本需求

1 parent 17ba7b33
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
"core-js": "3.6.5", "core-js": "3.6.5",
"downloadjs": "^1.4.7", "downloadjs": "^1.4.7",
"echarts": "^5.2.1", "echarts": "^5.2.1",
"element-ui": "2.13.2", "element-ui": "^2.15.4",
"font-awesome": "^4.7.0", "font-awesome": "^4.7.0",
"js-cookie": "2.2.0", "js-cookie": "2.2.0",
"js-md5": "^0.7.3", "js-md5": "^0.7.3",
......
...@@ -188,3 +188,8 @@ export const REPUSH_WORK_ORDER = params => { ...@@ -188,3 +188,8 @@ export const REPUSH_WORK_ORDER = params => {
export const UPDATE_THREECODE_IMAGE = params => { export const UPDATE_THREECODE_IMAGE = params => {
return api.post('vehicle/updateThreeCodeImage', params, 'object') 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 \ 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 \ No newline at end of file
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
</el-form-item> </el-form-item>
</div> </div>
<el-form-item label="是否加装" v-if="showFormItem"> <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>
<el-form-item label="结算主体"> <el-form-item label="结算主体">
<el-input :value="form.tradeEntityStr" disabled /> <el-input :value="form.tradeEntityStr" disabled />
...@@ -579,6 +579,16 @@ ...@@ -579,6 +579,16 @@
@click="getFeedList" @click="getFeedList"
>日志刷新</el-button >日志刷新</el-button
> >
<el-button
type="default"
icon="el-icon-phone-outline"
round
plain
size="mini"
class="btn"
@click="lookDialRecord"
>虚拟号拨打记录</el-button
>
</div> </div>
<el-timeline> <el-timeline>
<el-timeline-item v-for="(item, index) in feedList" :key="index"> <el-timeline-item v-for="(item, index) in feedList" :key="index">
...@@ -600,6 +610,12 @@ ...@@ -600,6 +610,12 @@
</div> </div>
<!-- 平安工单 end --> <!-- 平安工单 end -->
<!-- 虚拟号拨打记录 开始 -->
<div class="dial_record" v-if="showDialRecord">
<dial-detail :id="orderId" @close="closeDialRecord()" />
</div>
<!-- 虚拟号拨打记录 end -->
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<div class="left"> <div class="left">
<template v-if="form.orderType == 'PAZL' && form.businessStatus == 4"> <template v-if="form.orderType == 'PAZL' && form.businessStatus == 4">
...@@ -676,6 +692,7 @@ import { ...@@ -676,6 +692,7 @@ import {
REPUSH_WORK_ORDER, REPUSH_WORK_ORDER,
} from "@/api/services/business"; } from "@/api/services/business";
import { showModal, showToast } from "@/utils/util"; import { showModal, showToast } from "@/utils/util";
import DialDetail from "./dial.vue";
const BUSINESS_SERVICE = services.business; const BUSINESS_SERVICE = services.business;
export default { export default {
...@@ -685,6 +702,7 @@ export default { ...@@ -685,6 +702,7 @@ export default {
vAreaSelect, vAreaSelect,
snValidate, snValidate,
plateNumberInput, plateNumberInput,
DialDetail,
}, },
props: [ props: [
"orderModalVisible", "orderModalVisible",
...@@ -821,7 +839,7 @@ export default { ...@@ -821,7 +839,7 @@ export default {
orderSourceStr: "", orderSourceStr: "",
specialTagStr: "", specialTagStr: "",
tradeEntityStr: "", tradeEntityStr: "",
addFlag:"" addFlag: "",
}, },
rules: { rules: {
shopName: [ shopName: [
...@@ -953,7 +971,8 @@ export default { ...@@ -953,7 +971,8 @@ export default {
freshLoading: false, freshLoading: false,
pushTime: 120, pushTime: 120,
pushInterval: null, pushInterval: null,
showFormItem:false , // 是否展示加装工单选项 showFormItem: false, // 是否展示加装工单选项
showDialRecord:false, // 是否展示虚拟号拨打记录
}; };
}, },
computed: { computed: {
...@@ -1019,14 +1038,14 @@ export default { ...@@ -1019,14 +1038,14 @@ export default {
form.orderSourceStr = ""; form.orderSourceStr = "";
form.specialTagStr = ""; form.specialTagStr = "";
form.tradeEntityStr = ""; form.tradeEntityStr = "";
form.addFlag = 0 form.addFlag = 0;
}, },
openDialog() { openDialog() {
console.log(this.progressShow); console.log(this.progressShow);
let user = sessionStorage.getItem('user'); let user = sessionStorage.getItem("user");
let info = user?JSON.parse(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.showFormItem = true;
} }
this.$emit("onOrderModalChange", true); this.$emit("onOrderModalChange", true);
...@@ -1070,6 +1089,7 @@ export default { ...@@ -1070,6 +1089,7 @@ export default {
this.$refs.form.clearValidate(); this.$refs.form.clearValidate();
this.paForm = { status: "2" }; this.paForm = { status: "2" };
this.scrollTo("form"); this.scrollTo("form");
this.showDialRecord = false;
setTimeout(function () { setTimeout(function () {
_this.$refs.paForm.clearValidate(); _this.$refs.paForm.clearValidate();
}, 50); }, 50);
...@@ -1450,6 +1470,17 @@ export default { ...@@ -1450,6 +1470,17 @@ export default {
}); });
} }
}, },
// 查看虚拟号拨打记录
lookDialRecord(){
this.showDialRecord = true;
},
// 关闭虚拟号拨打记录
closeDialRecord(){
this.showDialRecord = false;
}
}, },
}; };
</script> </script>
...@@ -1655,6 +1686,14 @@ form.order-modal-form { ...@@ -1655,6 +1686,14 @@ form.order-modal-form {
justify-content: flex-end; justify-content: flex-end;
} }
} }
.dial_record {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #fff;
}
</style> </style>
<style lang="scss"> <style lang="scss">
// .progress-box{ // .progress-box{
...@@ -1669,4 +1708,7 @@ form.order-modal-form { ...@@ -1669,4 +1708,7 @@ form.order-modal-form {
.gray-cl { .gray-cl {
color: #999; color: #999;
} }
.el-dialog__body {
position: relative;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!