Commit 8e5d6051 by 张立顺

Merge branch 'SAAS+V4.38.5-0522' into 'develop'

上线合并

See merge request !319
2 parents 18c33514 a9fa8383
...@@ -78,3 +78,10 @@ export function getProductInfo(data) { ...@@ -78,3 +78,10 @@ export function getProductInfo(data) {
data.method = `${path}goodsinfo.get.byId` data.method = `${path}goodsinfo.get.byId`
return request(data, "post") return request(data, "post")
} }
/**导出 */
export function exportReclistList(data) {
data.method = 'dj.api.mindworkplate.badge.employeeBadgeReclistExport'
return request(data, "post")
}
import request from "./request" import request from "./request"
const path = "dj.api.quotation.smartcarlife." const path = "dj.api.quotation.smartcarlife."
const path2 = "dj.api.smartcarlife.vd.orders."
// 分页列表 // 分页列表
export function getList(data) { export function getList(data) {
data.method = `${path}quotation.page` data.method = `${path}quotation.page`
...@@ -43,3 +43,47 @@ export function quotationFindById(data) { ...@@ -43,3 +43,47 @@ export function quotationFindById(data) {
data.method = `dj.api.quotation.smartcarlife.quotation.detail` data.method = `dj.api.quotation.smartcarlife.quotation.detail`
return request(data) return request(data)
} }
// 车损报价单导入任务错误订单异步导出
export function ordersExportAsync(data) {
data.method = `${path2}import.error.orders.export.async`
return request(data)
}
// 导入任务列表分页查询
export function importTaskPage(data) {
data.method = `${path2}import.task.page`
return request(data)
}
// 任务订单详情列表分页查询
export function importTaskOrderDetailPage(data) {
data.method = `${path2}import.task.order.detail.page`
return request(data)
}
// 门店列表查询
export function importMerchantList(data) {
data.method = `${path2}import.merchant.list`
return request(data)
}
// 车损报价单导入(错误数据重新导入)
export function reimportData(data) {
data.method = `${path2}reimport.data`
return request(data, "post", ["file"])
// return request(data)
}
// 车损报价单导入模板异步导出
export function importTemplateExportAsync(data) {
data.method = `${path2}import.template.export.async`
return request(data)
}
// 车损报价单导入
export function importData(data) {
data.method = `${path2}import.data`
return request(data, "post", ["file"])
// return request(data)
}

1.08 KB | W: | H:

1.14 KB | W: | H:

src/assets/pause.png
src/assets/pause.png
src/assets/pause.png
src/assets/pause.png
  • 2-up
  • Swipe
  • Onion skin

527 Bytes | W: | H:

1.23 KB | W: | H:

src/assets/play.png
src/assets/play.png
src/assets/play.png
src/assets/play.png
  • 2-up
  • Swipe
  • Onion skin

2.2 KB | W: | H:

5.39 KB | W: | H:

src/assets/role-one.png
src/assets/role-one.png
src/assets/role-one.png
src/assets/role-one.png
  • 2-up
  • Swipe
  • Onion skin

2.16 KB | W: | H:

4.94 KB | W: | H:

src/assets/role-two.png
src/assets/role-two.png
src/assets/role-two.png
src/assets/role-two.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -302,4 +302,14 @@ $prefix: d2; ...@@ -302,4 +302,14 @@ $prefix: d2;
.scrollHeight{ .scrollHeight{
max-height:200px!important; max-height:200px!important;
overflow-y: scroll; overflow-y: scroll;
}
.el-tooltip__popper.is-light {
width: 177px;
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08) !important;
border: 1px solid #e4e7ed !important;
color: #666;
}
.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow{
border-color: #e4e7ed !important;
} }
\ No newline at end of file \ No newline at end of file
export const taskStatusList = [
// 1-失败,0-待执行,1-部分成功,2-全部成功
{
id: "-1",
label: "失败"
},
{
id: "0",
label: "执行中"
},
{
id: "1",
label: "部分成功"
},
{
id: "2",
label: "全部成功"
}
]
export const checkStatusList = [
// -1-失败,0-待执行,1-部分上架,2-全部上架
{
id: "-1",
label: "失败"
},
{
id: "0",
label: "执行中"
},
{
id: "1",
label: "部分成功"
},
{
id: "2",
label: "全部成功"
}
]
export const taskOrderStatusList = [
// -1-导入失败,0-待导入,1-导入失败,2-导入成功
{
id: "-1",
label: "失败"
},
{
id: "0",
label: "待导入"
},
{
id: "1",
label: "失败"
},
{
id: "2",
label: "成功"
}
]
...@@ -196,7 +196,7 @@ export const Util = { ...@@ -196,7 +196,7 @@ export const Util = {
txt = type txt = type
} }
const m = dayjs(str).format(txt) const m = dayjs(str).format(txt)
return m return m == "Invalid Date" ? "-" : m
}, },
/** /**
......
...@@ -6,23 +6,26 @@ ...@@ -6,23 +6,26 @@
:data="getListApi ? data : tableData" :data="getListApi ? data : tableData"
:row-key="tableParams.mutiSelectUniqueKey || ''" :row-key="tableParams.mutiSelectUniqueKey || ''"
v-loading="loading" v-loading="loading"
border :border="border"
:highlight-current-row="true" :highlight-current-row="true"
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelect" @selection-change="handleSelect"
:tree-props="{ children: 'upgradeGoodsList' }" :tree-props="{ children: 'upgradeGoodsList' }"
:span-method="arraySpanMethod" :span-method="arraySpanMethod"
v-bind="$attrs"> v-bind="$attrs"
>
<el-table-column <el-table-column
v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName" v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
type="selection" type="selection"
align="center" align="center"
:selectable="selectableFn" :selectable="selectableFn"
width="55" /> width="55"
/>
<el-table-column <el-table-column
v-if="tableParams.singleSelectUniqueKey" v-if="tableParams.singleSelectUniqueKey"
align="center" align="center"
width="55"> width="55"
>
<template slot-scope="scope"> <template slot-scope="scope">
<slot name="single-button" :scope="scope.row" /> <slot name="single-button" :scope="scope.row" />
</template> </template>
...@@ -40,9 +43,10 @@ ...@@ -40,9 +43,10 @@
? pagination.currentPage ? pagination.currentPage
: page.currentPage) - : page.currentPage) -
1) * 1) *
(pagination.pageSize ? pagination.pageSize : page.pageSize) + (pagination.pageSize ? pagination.pageSize : page.pageSize) +
1 1
" /> "
/>
<el-table-column <el-table-column
v-for="(item, index) in tableParams.tableColumns" v-for="(item, index) in tableParams.tableColumns"
:key="index" :key="index"
...@@ -53,7 +57,8 @@ ...@@ -53,7 +57,8 @@
:align="item.align || 'center'" :align="item.align || 'center'"
:sortable="item.sortable" :sortable="item.sortable"
:render-header="item.renderHeader" :render-header="item.renderHeader"
:show-overflow-tooltip="item.showOverFlow"> :show-overflow-tooltip="item.showOverFlow"
>
<template slot="header"> <template slot="header">
<span>{{ item.label }}</span> <span>{{ item.label }}</span>
<table-head-search <table-head-search
...@@ -61,7 +66,8 @@ ...@@ -61,7 +66,8 @@
:search-form="headSearchForm" :search-form="headSearchForm"
:option-config="item.optionConfig" :option-config="item.optionConfig"
:base-data="baseData" :base-data="baseData"
@handleTableHeadChange="handleTableHeadChange" /> @handleTableHeadChange="handleTableHeadChange"
/>
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<slot <slot
...@@ -70,7 +76,8 @@ ...@@ -70,7 +76,8 @@
:scope="scope.row" :scope="scope.row"
:index="scope.$index" :index="scope.$index"
:prop="item.prop" :prop="item.prop"
:width="item.width" /> :width="item.width"
/>
<template v-else-if="item.type == 'ownSerialNum'"> <template v-else-if="item.type == 'ownSerialNum'">
<span>{{ <span>{{
scope.row[item.prop] >= 0 scope.row[item.prop] >= 0
...@@ -79,9 +86,9 @@ ...@@ -79,9 +86,9 @@
? pagination.currentPage ? pagination.currentPage
: page.currentPage) - : page.currentPage) -
1) * 1) *
(pagination.pageSize (pagination.pageSize
? pagination.pageSize ? pagination.pageSize
: page.pageSize) + : page.pageSize) +
1 1
: "" : ""
}}</span> }}</span>
...@@ -90,11 +97,13 @@ ...@@ -90,11 +97,13 @@
<el-tag <el-tag
v-if="!item.tagName" v-if="!item.tagName"
:type="tableParams.tag.type[scope.row[item.prop]]" :type="tableParams.tag.type[scope.row[item.prop]]"
v-text="tableParams.tag.label[scope.row[item.prop]]" /> v-text="tableParams.tag.label[scope.row[item.prop]]"
/>
<el-tag <el-tag
v-else v-else
:type="tableParams[item.tagName].type[scope.row[item.prop]]" :type="tableParams[item.tagName].type[scope.row[item.prop]]"
v-text="tableParams[item.tagName].label[scope.row[item.prop]]" /> v-text="tableParams[item.tagName].label[scope.row[item.prop]]"
/>
</template> </template>
<template v-else-if="item.formatter"> <template v-else-if="item.formatter">
<span v-if="item.html" v-html="item.formatter(scope.row)" /> <span v-if="item.html" v-html="item.formatter(scope.row)" />
...@@ -110,10 +119,20 @@ ...@@ -110,10 +119,20 @@
? scope.row[item.parentProp][item.prop] ? scope.row[item.parentProp][item.prop]
: "" : ""
}}</span> }}</span>
<span v-else>{{ scope.row[item.prop] || "-" }}</span> <span v-else>{{
scope.row[item.prop] != null || scope.row[item.prop] != ""
? scope.row[item.prop]
: "-"
}}</span>
</template> </template>
<template v-else> <template v-else>
<span v-text="tableData[scope.$index][item.prop]" /> <span
v-text="
tableData[scope.$index][item.prop] != null
? tableData[scope.$index][item.prop]
: '-'
"
/>
</template> </template>
<template v-if="item.addSymbol"> <template v-if="item.addSymbol">
<span v-text="item.addSymbol" /> <span v-text="item.addSymbol" />
...@@ -125,15 +144,22 @@ ...@@ -125,15 +144,22 @@
label="操作" label="操作"
fixed="right" fixed="right"
:align="tableParams.tableOption.align || 'center'" :align="tableParams.tableOption.align || 'center'"
:width="tableParams.tableOption.width || 'auto'"> :width="tableParams.tableOption.width || 'auto'"
>
<template slot-scope="scope"> <template slot-scope="scope">
<slot name="auth-button" :scope="scope.row" :index="scope.$index" /> <slot name="auth-button" :scope="scope.row" :index="scope.$index" />
<slot <slot
name="auth-button-other" name="auth-button-other"
:scope="scope.row" :scope="scope.row"
:index="scope.$index" /> :index="scope.$index"
/>
</template> </template>
</el-table-column> </el-table-column>
<div slot="empty" class="emptyBg">
<img class="noDataImg" :src="noDataImg" v-if="noDataImg" />
{{ noDataText }}
</div>
</el-table> </el-table>
<el-pagination <el-pagination
v-if="hasPage" v-if="hasPage"
...@@ -144,7 +170,8 @@ ...@@ -144,7 +170,8 @@
:page-sizes="[10, 20, 30, 40]" :page-sizes="[10, 20, 30, 40]"
:page-size="page.pageSize" :page-size="page.pageSize"
:total="getListApi ? total : tableTotal" :total="getListApi ? total : tableTotal"
:layout="layout" /> :layout="layout"
/>
</div> </div>
</template> </template>
...@@ -292,6 +319,20 @@ export default { ...@@ -292,6 +319,20 @@ export default {
arraySpanMethod: { arraySpanMethod: {
type: Function, type: Function,
default: () => {} default: () => {}
},
//边框
border: {
type: Boolean,
default: true
},
noDataImg: {
type: String,
default: ""
},
noDataText: {
type: String,
default: "暂无数据"
} }
}, },
...@@ -508,4 +549,18 @@ export default { ...@@ -508,4 +549,18 @@ export default {
@include spotBase(); @include spotBase();
background: #5850ff; background: #5850ff;
} }
.deepBlueSpot {
@include spotBase();
background: #185efe;
}
.emptyBg {
display: flex;
flex-direction: column;
align-items: center;
.noDataImg {
width: 270px;
height: 120px;
margin-bottom: 8px;
}
}
</style> </style>
...@@ -447,7 +447,7 @@ export const routerName = { ...@@ -447,7 +447,7 @@ export const routerName = {
label: "编辑", // 编辑备注信息 label: "编辑", // 编辑备注信息
category: "Button", category: "Button",
type: "primary" type: "primary"
}, }
], ],
component: _import("orderManage/orderDetail") component: _import("orderManage/orderDetail")
}, },
...@@ -476,8 +476,10 @@ export const routerName = { ...@@ -476,8 +476,10 @@ export const routerName = {
component: _import("orderManage/crowdfundDetail") component: _import("orderManage/crowdfundDetail")
}, },
90406: { 90406: {
path: "/vehicleDamageList", path: "/vehicleDamageTabList",
name: "vehicleDamageList", name: "vehicleDamageTabList",
// path: "/vehicleDamageList",
// name: "vehicleDamageList",
meta: { meta: {
title: "车损报价单", title: "车损报价单",
authId: "90406", authId: "90406",
...@@ -527,13 +529,47 @@ export const routerName = { ...@@ -527,13 +529,47 @@ export const routerName = {
{ {
authId: "9040606", authId: "9040606",
parentId: "90406", parentId: "90406",
label: "导出", label: "新建任务",
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "handleExport" handle: "newTask"
},
{
authId: "9040607",
parentId: "90406",
label: "下载模板",
category: "Button",
type: "primary",
handle: "downloadTemplate"
},
{
authId: "9040608",
parentId: "90406",
label: "详情",
addRoutePath: [
{
authId: "9040611",
name: "vehicleDamageOderImportDetail",
parentId: "90406"
}
],
handle: "viewDetail"
}, },
{
authId: "9040609",
parentId: "90406",
label: "导入",
// handle: "importCurrentData"
handle: "handleImportRest"
},
{
authId: "90406010",
parentId: "90406",
label: "下载错误数据",
handle: "downloadIncorrectData"
}
], ],
component: _import("vehicleDamage/vehicleDamageList") component: _import("vehicleDamage/vehicleDamageTabList")
}, },
9040604: { 9040604: {
path: "/vehicleDamageDetail", path: "/vehicleDamageDetail",
...@@ -547,6 +583,18 @@ export const routerName = { ...@@ -547,6 +583,18 @@ export const routerName = {
}, },
component: _import("vehicleDamage/vehicleDamageDetail") component: _import("vehicleDamage/vehicleDamageDetail")
}, },
9040611: {
path: "/vehicleDamageOderImportDetail",
name: "vehicleDamageOderImportDetail",
meta: {
title: "详情",
authId: "9040611",
parentId: "90406",
cache: false,
activePath: "/vehicleDamageOderImportDetail"
},
component: _import("vehicleDamage/vehicleDamageOderImportDetail")
},
90407: { 90407: {
path: "/configUpgradationDetail", path: "/configUpgradationDetail",
name: "configUpgradationDetail", name: "configUpgradationDetail",
......
...@@ -11,8 +11,10 @@ export const routerName = { ...@@ -11,8 +11,10 @@ export const routerName = {
} }
}, },
91101: { 91101: {
path: "/vehicleDamageList", path: "/vehicleDamageTabList",
name: "vehicleDamageList", // path: "/vehicleDamageList",
// name: "vehicleDamageList",
name: "vehicleDamageTabList",
meta: { meta: {
title: "车损报价单", title: "车损报价单",
authId: "91101", authId: "91101",
......
/* /*
* @Description: * @Description:
* @Author: huyue * @Author: huyue
* @Date: 2024-04-01 15:03:31 * @Date: 2024-04-01 15:03:31
* @LastEditors: huyue * @LastEditors: huyue
...@@ -26,47 +26,32 @@ export const routerName = { ...@@ -26,47 +26,32 @@ export const routerName = {
parentId: "912", parentId: "912",
cache: false cache: false
}, },
auth: [
{
authId: "9120101",
parentId: "91201",
label: "接待明细",
handle: "recepDetail",
addRoutePath: [
{
authId: "91202",
name: "接待明细",
parentId: "91201"
}
]
}
],
component: _import("residentManage/qualityControlList") component: _import("residentManage/qualityControlList")
}, },
91202: { // 91202: {
path: "/recepDetail", // path: "/recepDetail",
name: "recepDetail", // name: "recepDetail",
meta: { // meta: {
title: "接待明细", // title: "接待明细",
authId: "91202", // authId: "91202",
parentId: "91201", // parentId: "91201",
// sideHidden: true, // // sideHidden: true,
cache: false, // cache: false,
activePath: "/qualityControlList" // activePath: "/qualityControlList"
}, // },
auth: [ // auth: [
{ // {
authId: "9120201", // authId: "9120201",
parentId: "91202", // parentId: "91202",
label: "质检详情", // label: "质检详情",
category: "Button", // category: "Button",
type: "primary", // type: "primary",
handle: "handleQuality" // handle: "handleQuality"
} // }
], // ],
component: _import("residentManage/recepDetail") // component: _import("residentManage/recepDetail")
}, // },
91203: { 91203: {
path: "/wordCard", path: "/wordCard",
name: "wordCard", name: "wordCard",
......
<template>
<div class="empty-box">
<div class="icon">
<img src="@/assets/empty-1.png">
</div>
<div class="text">数据分析中,请稍等…</div>
</div>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'Empty',
props: {
},
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.empty-box {
display: flex;
flex-direction: column;
font-size: 12px;
color: #999999;
padding-top: 96px;
text-align: center;
width: 100%;
height: 100%;
box-sizing: border-box;
background: #F6F9FF;
border-radius: 0 4px 4px 4px;
.icon {
width: 270px;
height: 120px;
margin: 0 auto 8px;
img {
width: 100%;
height: 100%;
}
}
}
</style>
<!-- 关联活动订单弹窗 -->
<template>
<d2-dialog
title="查看结果"
:is-visible="isQualityVisible"
class="qualityDailog"
width="100%"
@closeDialog="handleClose"
@confirmDialog="handleClose"
:isShowFooter="false"
:noCancel="true"
>
<div class="quality-box">
<template v-if="qualityDetailList.length">
<div class="overview">
<template v-for="(i,index) in overviewObject">
<div
:key="index"
class="overview-item"
>
<div class="label">{{i.label}}</div>
<div class="value">
<template v-if="i.formatter">
<div v-html="i.formatter(qualityDetailList[currentNum])">
</div>
</template>
<template v-else>
{{qualityDetailList[currentNum][i.key] || '-'}}
</template>
</div>
</div>
</template>
</div>
<div
class="content"
:key="currentNum"
>
<div class="dialogue-box">
<dialogue-detail :detailObj="qualityDetailList[currentNum]" />
</div>
<div class="analyse-box">
<quality-analyse :detailObj="qualityDetailList[currentNum]" />
</div>
</div>
</template>
<div class="footer-box">
<el-button
size="small"
:class="{opacity:currentNum == 0}"
@click="jump(-1)"
>上一条</el-button>
<div class="text">{{currentNum + 1}}/{{qualityDetailList.length}}</div>
<el-button
type="primary"
size="small"
:class="{opacity:currentNum == qualityDetailList.length - 1}"
@click="jump(1)"
>下一条</el-button>
</div>
</div>
</d2-dialog>
</template>
<script>
import { Util, deepClone } from "@/common/util"
import { shopmallOrderList, relatedActivityOrder } from "@api/order"
import QualityAnalyse from "./qualityAnalyse"
import DialogueDetail from "./dialogueDetail"
const toMinutesAndSeconds = (seconds) => {
seconds = Math.floor(seconds / 1000)
let formattedTime = ''
if (seconds < 60) {
return seconds + '<span class="unit">秒</span>'
} else if (seconds > 3600) {
let hours = Math.floor(seconds / 3600),
minutes = Math.floor((seconds % 3600) / 60)
if (hours > 0) formattedTime += hours + '<span class="unit">小时</span>'
if (minutes > 0 || hours > 0) formattedTime += minutes + '<span class="unit">分钟</span>'
return formattedTime
} else {
let hours = Math.floor(seconds / 3600),
minutes = Math.floor((seconds % 3600) / 60),
remainingSeconds = seconds % 60
if (hours > 0) formattedTime += hours + '<span class="unit">小时</span>'
if (minutes > 0 || hours > 0) formattedTime += minutes + '<span class="unit">分钟</span>'
if (remainingSeconds > 0) formattedTime += remainingSeconds + '<span class="unit">秒</span>'
return formattedTime
}
}
export default {
name: "RelatActivityOrderDialog",
components: {
QualityAnalyse,
DialogueDetail
},
data () {
return {
overviewObject: [
{
label: '客户姓名',
key: 'customerName',
},
{
label: '车型',
key: 'carModel',
},
{
label: 'APP接待结果',
formatter (row) {
const val = {
1: '成交',
0: '战败'
}[row.receptionStatus],
color = {
1: '#2CCA74',
0: '#EB4E4E'
}[row.receptionStatus]
return `<span style="font-size:22px;color:${color}">${val || '-'}</span>`
}
},
{
label: '预计营销结果',
formatter (row) {
const color = {
'成交': '#2CCA74',
'战败': '#EB4E4E'
}[row.estimatedResult] || '#999999'
return `<span style="font-size:22px;color:${color}">${row.estimatedResult || '分析中'}</span>`
}
},
{
label: '话术评分',
formatter (row) {
return row.score != null
? `<div class="num">${row.score}<span class="unit">分</span></div>`
: `<span style="font-size:22px;color:#999">分析中</span>`
}
},
{
label: '接待时长',
formatter (row) {
return `<div class="num">${row.duration ? toMinutesAndSeconds(row.duration) : '-'}</div>`
}
}
],
activeName: 'analyse',
}
},
props: {
isQualityVisible: {
type: Boolean,
default: false
},
currentNum: {
type: Number,
default: 0
},
qualityDetailList: {
type: Array,
default: () => []
}
},
computed: {},
mounted () {
},
methods: {
handleClose () {
this.$emit("closeDialog", false)
},
jump (num) {
try {
const { qualityDetailList, currentNum } = this,
max = qualityDetailList.length - 1
if ((currentNum == 0 && num == -1) || (currentNum == max && num == 1)) throw '无更多接待记录'
this.currentNum += num
} catch (error) {
if (error) this.$message.error(error)
}
}
}
}
</script>
<style lang="scss" scoped>
::v-deep.qualityDailog {
.el-dialog {
height: 100vh !important;
margin: 0 !important;
background-color: #f0f1f7;
}
.el-dialog__header {
padding: 16px 20px !important;
font-weight: 500;
font-size: 16px;
color: #1d1d1d;
line-height: 24px;
border-bottom: 1px solid #e8e8e8;
background: #fff;
}
.el-dialog__body {
padding: 0 !important;
}
.el-dialog__footer {
display: none;
}
.quality-box {
.overview {
display: flex;
align-items: center;
background: #ffffff;
padding: 20px;
justify-content: space-between;
&-item {
width: calc((100% - 40px) / 6);
background: #f7f9fa;
border-radius: 4px;
box-sizing: border-box;
height: 92px;
padding: 16px;
font-size: 14px;
color: #333333;
.label {
line-height: 20px;
}
.value {
font-weight: 600;
font-size: 20px;
color: #333333;
margin-top: 8px;
line-height: 32px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
.num {
font-weight: 700;
font-size: 26px;
.unit {
font-weight: 400;
font-size: 14px;
color: #333333;
}
}
}
}
}
.content {
display: flex;
margin-top: 16px;
height: calc(100vh - 270px);
overflow: hidden;
.dialogue-box {
width: 40%;
}
.analyse-box {
width: calc(60% - 16px);
margin-left: auto;
}
}
.footer-box {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
height: 64px;
font-size: 14px;
color: #666666;
display: flex;
align-items: center;
justify-content: center;
.text {
margin: 0 16px;
}
.opacity {
opacity: 0.5;
}
}
}
}
</style>
<template>
<div class="dialogue">
<div class="record">
<audio id="audio1">
<source :src="detailObj.fileUrl" type="audio/mpeg" />
<source :src="detailObj.fileUrl" type="audio/ogg" />
您的浏览器不支持 audio 标签。
</audio>
<div class="play" v-if="isPlay" @click="handleAudio">
<img src="@/assets/play.png" />
</div>
<div class="play" v-else @click="handleAudio">
<img src="@/assets/pause.png" />
</div>
<div class="times">{{ currentTime }}/{{ totalTime }}</div>
<div
id="progressBar"
@mousemove="isCircle = true"
@mouseout="isCircle = false">
<div id="progress">
<div
class="circle"
@mousemove="isCircle = true"
draggable="true"
v-if="isCircle"></div>
</div>
</div>
<div class="trumpet" @click="handleMute">
<img src="@/assets/trumpet.png" v-if="isMuted"/>
<img src="@/assets/mute.png" v-if="!isMuted" />
</div>
</div>
<div class="record-info">
<div class="dialog">
<template v-for="item in dialogList">
<div :class="{ 'dialog-detail': true, 'nth-child': item.role % 2 === 1 }" :key="item.id">
<div class="name">
<img class="role" src="@/assets/role-one.png" v-if=" item.role % 2 === 0"/>
{{item.role % 2 === 0?'车主':'销售'}}
<img class="role" src="@/assets/role-two.png" v-if=" item.role % 2 === 1"/>
</div>
<div class="dig-content" @click="currentDialog(item)">
{{ item.content }}
</div>
</div>
</template>
</div>
<div class="abstract">
<div class="title">
<img class="robot" src="@/assets/robot.png" />
AI对话摘要
</div>
<div class="abText" v-html="formatSrt(detailObj.digest)">
</div>
</div>
</div>
</div>
</template>
<script>
import { conversationDetailPage, getPointCategory } from "@api/resident"
export default {
props: {
detailObj: {
type: Object,
default: {}
}
},
data() {
return {
myAud: "",
isPlay: true,
isMuted:true,
dialogList: [],
totalTime: "0:00",
currentTime: "0:00",
isCircle: false
}
},
mounted() {
this.myAud = document.getElementById("audio1")
this.handleprogress()
this.conversationDetailPage()
},
methods: {
formatSrt(str) {
return str.replace(/\n/g, "<br/>")
},
currentDialog(data) {
this.myAud.currentTime = data.mergedOffset
},
toMinutesAndSeconds(seconds) {
let minutes = Math.floor(seconds / 60)
let remainingSeconds = parseInt(seconds % 60)
minutes = minutes > 10 ? minutes : `0${minutes}`
remainingSeconds = remainingSeconds > 10 ? remainingSeconds : `0${remainingSeconds}`
return `${minutes}:${remainingSeconds}`
},
handleprogress() {
const progress = document.getElementById("progress")
const progressBar = document.getElementById("progressBar")
this.myAud.addEventListener("canplay", () => {
if (this.myAud.duration > 0) {
this.totalTime = this.toMinutesAndSeconds(this.myAud.duration)
}
})
this.myAud.addEventListener("timeupdate", () => {
if (this.myAud.duration > 0) {
this.currentTime = this.toMinutesAndSeconds(this.myAud.currentTime)
const progressDur =
(this.myAud.currentTime / this.myAud.duration) * 100
progress.style.width = `${progressDur}%`
}
})
this.myAud.addEventListener("ended", () => {
this.isPlay = !this.isPlay
})
progress.addEventListener(
"click",
(e) => {
const x = e.offsetX / 370
const currentWidth = x * this.myAud.duration
this.myAud.currentTime = currentWidth
},
false
)
progressBar.addEventListener(
"click",
(e) => {
const x = e.offsetX / 370
const currentWidth = x * this.myAud.duration
this.myAud.currentTime = currentWidth
},
false
)
},
handleAudio() {
this.isPlay = !this.isPlay
if (!this.isPlay) {
this.myAud.play()
} else {
this.myAud.pause()
}
},
handleMute() {
this.isMuted = !this.isMuted
this.myAud.muted=!this.isMuted
},
conversationDetailPage() {
console.log(this.detailObj)
conversationDetailPage({
batchId: this.detailObj.id,
currentPage: 1,
pageSize: 9999
}).then((res) => {
console.log(res)
this.dialogList = res.list
})
}
}
}
</script>
<style scoped lang="scss">
.dialogue {
margin: auto;
.record {
width: 600px;
margin: 5px auto 0px;
height: 56px;
background: #f7f9fa;
border-radius: 32px;
display: flex;
align-items: center;
audio {
width: 600px;
height: 56px;
background: #f7f9fa;
border-radius: 32px;
}
}
.play {
width: 24px;
height: 24px;
margin: 0 20px 0 24px;
img {
width: 100%;
}
}
.trumpet {
width: 16px;
height: 16px;
margin-left: 24px;
img {
width: 100%;
}
}
.times {
font-size: 14px;
color: #666666;
min-width: 80px;
text-align: center;
margin-right: 19px;
}
#progressBar {
// position: absolute;
height: 6px;
width: 370px;
background-color: #e7e7e7; /* 进度条背景颜色 */
border-radius: 6px;
}
#progress {
width: 0; /* 初始进度为0 */
height: 6px;
background-image: linear-gradient(90deg, #9662ff 0%, #5850ff 100%); /* 进度条颜色 */
transition: width 0.5s; /* 进度条宽度变化动画 */
border-radius: 6px;
position: relative;
}
.circle {
width: 16px;
height: 16px;
background: #5850ff;
border: 4.5px solid #ffffff;
border-radius: 50%;
position: absolute;
right: -14px;
top: -4px;
box-sizing: border-box;
}
.record-info {
width: 100%;
float: left;
position: relative;
padding-right: 354px;
box-sizing: border-box;
height: 544px;
margin: 20px 0;
// display: flex;
// align-items: center;
.dialog {
width: 100%;
min-width: 588px;
height: 544px;
background: #f7f9fa;
border-radius: 4px;
overflow-y: scroll;
padding: 20px;
box-sizing: border-box;
.dialog-detail {
margin-bottom: 8px;
text-align: left;
.name {
font-size: 12px;
color: #666666;
letter-spacing: 0;
line-height: 16px;
.role {
width: 40px;
height: 40px;
vertical-align: top;
margin-right: 10px;
}
}
.dig-content {
width: 404px;
background: #EBEBFF;
border-radius: 4px;
font-size: 14px;
color: #333333;
padding: 10px 12px;
white-space: pre-wrap;
text-align: left;
margin-left: 50px;
margin-top: -20px;
line-height: 20px;
}
}
.nth-child {
text-align: right;
.dig-content {
display: inline-block;
background: #FFFFFF;
margin-right: 58px;
}
}
}
.abstract {
width: 334px;
height: 544px;
padding: 12px 20px;
position: absolute;
right: 0;
top: 0;
background-image: linear-gradient(180deg, #f6f4ff 0%, #f0f3ff 100%);
border: 1px solid #5850ff80;
border-radius: 4px;
box-sizing: border-box;
.title {
font-weight: 700;
font-size: 16px;
color: #333333;
.robot {
width: 28px;
height: 28px;
margin-right: 8px;
display: inline-block;
vertical-align: middle;
}
}
.abText {
margin-top: 14px;
width: 294px;
height: 472px;
padding: 12px;
box-sizing: border-box;
background: #ffffff;
border-radius: 4px;
overflow: scroll;
line-height: 20px;
}
}
}
}
</style>
<!-- 关联活动订单弹窗 -->
<template>
<d2-dialog
title="质检详情"
:is-visible="isQualityVisible"
class="qualityDailog"
width="80%"
@closeDialog="handleClose"
@confirmDialog="handleClose">
<div>
<el-tabs v-model="activeName" @tab-click="handleReset">
<el-tab-pane label="质检分析" name="analyse">
<quality-analyse v-if="activeName == 'analyse'" v-bind="$attrs" ref="analyseList" />
</el-tab-pane>
<el-tab-pane label="对话详情" name="dialogue">
<dialogue-detail
v-if="activeName == 'dialogue'"
ref="dialogueDetail"
v-bind="$attrs" />
</el-tab-pane>
</el-tabs>
</div>
</d2-dialog>
</template>
<script>
import { Util, deepClone } from "@/common/util"
import { mapActions, mapState } from "vuex"
import { shopmallOrderList, relatedActivityOrder } from "@api/order"
import QualityAnalyse from "./qualityAnalyse"
import DialogueDetail from "./dialogueDetail"
export default {
name: "RelatActivityOrderDialog",
components: {
QualityAnalyse,
DialogueDetail
},
data() {
return {
activeName: "analyse",
userInfo: this.$store.state.d2admin.user.info,
countObj: {},
searchForm: {
merchantName: "",
activityName: ""
},
searchFormSearch: {},
searchSelectObj: {
orderOrTrade: {
attr: "inputtedOrderCode",
value: ""
}
},
showFormData: [
{
label: "支付时间",
name: "orderDate",
type: "datePicker",
isClear: true,
pickerOptions: "rangePickerOptions"
},
{
label: "商户名称",
name: "merchantName",
type: "input",
maxlength: 20,
isClear: true,
keyFn: this.keyDowmGetList
},
{
label: "所属活动",
name: "activityName",
type: "input",
maxlength: 20,
isClear: true,
keyFn: this.keyDowmGetList
},
{
label: "客户名称",
name: "customerName",
type: "input",
maxlength: 20,
isClear: true,
keyFn: this.keyDowmGetList
},
{
label: "手机号",
name: "customerPhone",
type: "input",
inputType: "number",
maxlength: 11,
isClear: true,
keyFn: this.keyDowmGetList
}
],
getListApi: shopmallOrderList,
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: "list",
singleSelectUniqueKey: "id",
tableOption: false,
tableColumns: [
{
label: "订单编号",
prop: "orderCode",
width: "200px"
},
{
label: "订单时间",
prop: "orderTime",
width: "150px",
formatter: (cellValue) => {
return cellValue.orderTime
? Util.dateFormate(cellValue.orderTime, "YYYY-MM-DD HH:mm:ss")
: ""
}
},
{
label: "客户名称",
prop: "customerName"
},
{
label: "手机号",
prop: "customerPhone",
width: "120px"
},
{
label: "商品名称",
prop: "goodsName",
formatter: (cellValue) => {
if (cellValue.subOrderList && cellValue.subOrderList.length > 0) {
return cellValue.subOrderList.reduce((str, item, index) => {
// return item.goodsName
if (index) {
str += "/" + item.goodsName
} else {
str += item.goodsName
}
return str
}, "")
// return cellValue.subOrderList[0].goodsName
} else {
return ""
}
}
},
{
label: "活动名称",
prop: "activityName"
// width: '200px'
},
{
label: "所属门店",
prop: "merchantName"
// width: '200px'
},
{
label: "尾款总额",
prop: "balancePaymentPrice",
formatter: (cellValue) => {
return cellValue.balancePaymentPrice
? "¥" + cellValue.balancePaymentPrice
: ""
}
},
{
label: "支付时间",
prop: "payDate",
width: "150px",
formatter: (cellValue) => {
return cellValue.payDate
? Util.dateFormate(cellValue.payDate, "YYYY-MM-DD HH:mm:ss")
: ""
}
}
]
},
baseData: {},
merchantDialogVisible: false,
ids: [],
radio: ""
}
},
props: {
isQualityVisible: {
type: Boolean,
default: false
}
},
computed: {},
mounted() {
console.log(111, this.$attrs)
},
methods: {
handleReset() {},
handleClose() {
this.$emit("closeDialog", false)
}
}
}
</script>
<style scoped>
</style>
<!-- 车损报价单 --> <!-- 车损报价单 -->
<template> <template>
<div> <div>
<d2-container> <d2-container class="m-t-40">
<div class="header" <div class="header" slot="header" style="padding: 10px 20px">
slot="header" <d2-search
style="padding: 10px 20px"> ref="showSearch"
<d2-search ref="showSearch" class="show-search"
class="show-search" :search-form="searchForm"
:search-form="searchForm" :form-data="showFormData"
:form-data="showFormData" /> />
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" <el-button :id="tableParams.btnId" size="small" type="primary">
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset"> 重置 </el-button>
@click="handleReset"> 重置 </el-button>
</div> </div>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
...@@ -26,47 +22,62 @@ ...@@ -26,47 +22,62 @@
plain plain
@click="handleExport" @click="handleExport"
size="small">导出</el-button> --> size="small">导出</el-button> -->
<auth-button :show-btn-ids="['9040606']" <auth-button :show-btn-ids="['9040606']" category="Button" />
category="Button" />
</d2-table-header> </d2-table-header>
<d2-table ref="damageTable" <d2-table
:get-list-api="getListApi" ref="damageTable"
:search-form="searchFormSearch" :get-list-api="getListApi"
:table-params="tableParams" :search-form="searchFormSearch"
:before-search-fn="beforeSearchFn"> :table-params="tableParams"
<div slot-scope="scope" :before-search-fn="beforeSearchFn"
slot="auth-button" >
class="btnClass"> <div slot-scope="scope" slot="auth-button" class="btnClass">
<!-- 查看 --> <!-- 查看 -->
<!-- <auth-button <!-- <auth-button
v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)" v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
:show-btn-ids="['9040601']" :data="scope.scope" /> --> :show-btn-ids="['9040601']" :data="scope.scope" /> -->
<!-- 打印报价单 --> <!-- 打印报价单 -->
<auth-button v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)" <auth-button
:show-btn-ids="['9040603']" v-if="
:data="scope.scope" /> [1, 2, 3, -1, 5].includes(scope.scope.orderStatus) ||
[2].includes(scope.scope.equityOrderStatus)
"
:show-btn-ids="['9040603']"
:data="scope.scope"
/>
<!-- 打印合同 --> <!-- 打印合同 -->
<auth-button v-if="[2].includes(scope.scope.equityOrderStatus) && [3, 5].includes(scope.scope.orderStatus)" <auth-button
:show-btn-ids="['9040605']" v-if="
:data="scope.scope" /> [2].includes(scope.scope.equityOrderStatus) &&
<auth-button :show-btn-ids="['9040602']" [3, 5].includes(scope.scope.orderStatus)
:data="scope.scope" /> "
:show-btn-ids="['9040605']"
:data="scope.scope"
/>
<auth-button :show-btn-ids="['9040602']" :data="scope.scope" />
</div> </div>
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
<baseDialog :is-show.sync="previewVisible" <baseDialog
:dialog-config="dialogConfig.config" :is-show.sync="previewVisible"
:config="dialogConfig.setting"> :dialog-config="dialogConfig.config"
<div class="previewItem" :config="dialogConfig.setting"
v-for="(item, index) in previewList" >
:key="index"> <div
class="previewItem"
v-for="(item, index) in previewList"
:key="index"
>
<span v-if="!item.goodName">合同{{ index + 1 }}</span> <span v-if="!item.goodName">合同{{ index + 1 }}</span>
<span class="goodName one-line-ellipsis" <span class="goodName one-line-ellipsis" v-else
v-else>合同名称: {{ item.goodName }}</span> >合同名称: {{ item.goodName }}</span
<i class="el-icon-download downloadIcon" >
@click="exportFile({ contractNo: item.contractNo })"></i> <i
class="el-icon-download downloadIcon"
@click="exportFile({ contractNo: item.contractNo })"
></i>
</div> </div>
</baseDialog> </baseDialog>
<!-- 查看 --> <!-- 查看 -->
...@@ -81,7 +92,13 @@ ...@@ -81,7 +92,13 @@
<script> <script>
import { mapActions, mapState } from "vuex" import { mapActions, mapState } from "vuex"
import { getList, quotationPrint, quotationExport, contractExport, listContracts } from "@api/vehicleDamage" import {
getList,
quotationPrint,
quotationExport,
contractExport,
listContracts
} from "@api/vehicleDamage"
export default { export default {
name: "VehicleDamageList", name: "VehicleDamageList",
data() { data() {
...@@ -140,7 +157,7 @@ export default { ...@@ -140,7 +157,7 @@ export default {
getListApi: getList, getListApi: getList,
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: "list",
tableOption: true, tableOption: true,
tableColumns: [ tableColumns: [
{ {
...@@ -157,8 +174,8 @@ export default { ...@@ -157,8 +174,8 @@ export default {
label: "客户来源", label: "客户来源",
prop: "salesType", prop: "salesType",
width: "100px", width: "100px",
formatter:(cellValue)=>{ formatter: (cellValue) => {
return cellValue.salesType==1?'售后':'售前' return cellValue.salesType == 1 ? "售后" : "售前"
} }
}, },
{ {
...@@ -182,8 +199,8 @@ export default { ...@@ -182,8 +199,8 @@ export default {
.map((item) => item.severType) .map((item) => item.severType)
.includes(cellValue.orderStatus) .includes(cellValue.orderStatus)
? this.baseData.severTypeList.find( ? this.baseData.severTypeList.find(
(item) => item.severType === cellValue.orderStatus (item) => item.severType === cellValue.orderStatus
).severName ).severName
: "-" : "-"
} }
} }
...@@ -204,7 +221,11 @@ export default { ...@@ -204,7 +221,11 @@ export default {
if (cellValue.vdQuotationGoodsList) { if (cellValue.vdQuotationGoodsList) {
return cellValue.vdQuotationGoodsList.reduce( return cellValue.vdQuotationGoodsList.reduce(
(merchString, item) => { (merchString, item) => {
merchString = merchString + (item.packageName ? `<p>${item.packageName}</p>` : `<p>-</p>`) merchString =
merchString +
(item.packageName
? `<p>${item.packageName}</p>`
: `<p>-</p>`)
return merchString return merchString
}, },
"" ""
...@@ -227,7 +248,11 @@ export default { ...@@ -227,7 +248,11 @@ export default {
if (cellValue.vdQuotationGoodsList) { if (cellValue.vdQuotationGoodsList) {
return cellValue.vdQuotationGoodsList.reduce( return cellValue.vdQuotationGoodsList.reduce(
(merchString, item) => { (merchString, item) => {
merchString = merchString + (item.goodsName ? `<p>${item.goodsName}</p>` : `<p>-</p>`) merchString =
merchString +
(item.goodsName
? `<p>${item.goodsName}</p>`
: `<p>-</p>`)
return merchString return merchString
}, },
"" ""
...@@ -250,7 +275,11 @@ export default { ...@@ -250,7 +275,11 @@ export default {
if (cellValue.vdQuotationGoodsList) { if (cellValue.vdQuotationGoodsList) {
return cellValue.vdQuotationGoodsList.reduce( return cellValue.vdQuotationGoodsList.reduce(
(merchString, item) => { (merchString, item) => {
merchString = merchString + (item.goodsNameAlias ? `<p>${item.goodsNameAlias}</p>` : `<p>-</p>`) merchString =
merchString +
(item.goodsNameAlias
? `<p>${item.goodsNameAlias}</p>`
: `<p>-</p>`)
return merchString return merchString
}, },
"" ""
...@@ -266,7 +295,9 @@ export default { ...@@ -266,7 +295,9 @@ export default {
prop: "quotedPrice", prop: "quotedPrice",
width: "200px", width: "200px",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.quotedPrice ? (cellValue.quotedPrice / 100).toFixed(2) : "-" return cellValue.quotedPrice
? (cellValue.quotedPrice / 100).toFixed(2)
: "-"
} }
}, },
{ {
...@@ -274,7 +305,9 @@ export default { ...@@ -274,7 +305,9 @@ export default {
prop: "estEquityPrice", prop: "estEquityPrice",
width: "250px", width: "250px",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.estEquityPrice ? (cellValue.estEquityPrice / 100).toFixed(2) : "-" return cellValue.estEquityPrice
? (cellValue.estEquityPrice / 100).toFixed(2)
: "-"
} }
}, },
{ {
...@@ -283,7 +316,9 @@ export default { ...@@ -283,7 +316,9 @@ export default {
prop: "quotedPriceUpdate", prop: "quotedPriceUpdate",
width: "250px", width: "250px",
formatter: (cellValue) => { formatter: (cellValue) => {
return !isNaN(cellValue.quotedPriceUpdate) ? (cellValue.quotedPriceUpdate / 100).toFixed(2) : "-" return !isNaN(cellValue.quotedPriceUpdate)
? (cellValue.quotedPriceUpdate / 100).toFixed(2)
: "-"
} }
}, },
{ {
...@@ -314,8 +349,8 @@ export default { ...@@ -314,8 +349,8 @@ export default {
// appendToBody: true, // appendToBody: true,
}, },
config: { config: {
title: '打印合同', title: "打印合同",
width: '480px' width: "480px"
} }
}, },
previewList: [], previewList: [],
...@@ -366,7 +401,7 @@ export default { ...@@ -366,7 +401,7 @@ export default {
// 打印权益合同 // 打印权益合同
async handlePrintContract(row) { async handlePrintContract(row) {
const res = await listContracts({ orderId: row.orderId }) const res = await listContracts({ orderId: row.orderId })
console.log(res, 'res') console.log(res, "res")
if (res.length == 1) { if (res.length == 1) {
// 获取权益合同PDF 用订单号 // 获取权益合同PDF 用订单号
// this.exportFile({ orderId: row.orderId }) // this.exportFile({ orderId: row.orderId })
...@@ -411,7 +446,7 @@ export default { ...@@ -411,7 +446,7 @@ export default {
if ( if (
this.baseData[item.optionsName].length && this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][ this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel this.showFormData[index].optionLabel
] !== "全部" ] !== "全部"
) { ) {
const temp = {} const temp = {}
...@@ -465,7 +500,7 @@ export default { ...@@ -465,7 +500,7 @@ export default {
handleView(row) { handleView(row) {
this.close({ tagName: "/vehicleDamageDetail" }) this.close({ tagName: "/vehicleDamageDetail" })
this.$router.push({ this.$router.push({
name: 'vehicleDamageDetail', name: "vehicleDamageDetail",
params: { params: {
detail: row detail: row
} }
...@@ -515,4 +550,8 @@ export default { ...@@ -515,4 +550,8 @@ export default {
margin-left: 10px; margin-left: 10px;
color: #185efe; color: #185efe;
} }
.m-t-40 {
margin-top: 40px;
}
</style> </style>
<!-- 车损报价单 -->
<template>
<d2-container class="m-t-40 d2-con">
<div class="header" slot="header"></div>
<div class="d2-container-content">
<d2-table
ref="damageTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
>
</d2-table>
</div>
</d2-container>
</template>
<script>
import { taskOrderStatusList } from "@/common/constant/vehicle"
import { Util, deepClone } from "@/common/util"
import { importTaskOrderDetailPage } from "@api/vehicleDamage"
export default {
name: "VehicleDamageList",
data() {
return {
getListApi: importTaskOrderDetailPage,
searchFormSearch: {
taskId: ""
},
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: "list",
tableOption: false,
tableColumns: [
{
label: "门店名称",
prop: "merchantName4s"
// width: "160px"
},
{
label: "客户姓名",
prop: "customerName"
// width: "250px"
},
{
label: "支付时间",
prop: "payTime"
// width: "100px",
// formatter: (cellValue) => {
// return Util.dateFormate(cellValue.payTime, "YYYY-MM-DD HH:mm:ss")
// }
},
{
label: "交易参考号",
prop: "transactionNo",
width: "250px"
},
{
label: "单价",
prop: "goodsPrice"
},
{
label: "总价",
prop: "goodsTotalPrice"
},
{
label: "任务状态",
prop: "taskOrderStatus",
formatter: (cellValue) => {
return (
taskOrderStatusList.find(
(item) => item.id == cellValue.taskOrderStatus
)?.label || "-"
)
},
className: (cellValue) => {
return (
{
"-1": "redSpot",
0: "yellowSpot",
1: "deepBlueSpot",
2: "greenSpot"
}[cellValue.taskOrderStatus] || "ashSpot"
)
}
},
// {
// label: "创建时间",
// prop: "createTime",
// formatter: (cellValue) => {
// return Util.dateFormate(
// cellValue.createdTime,
// "YYYY-MM-DD HH:mm:ss"
// )
// }
// },
{
label: "更新时间",
prop: "updateTime"
// formatter: (cellValue) => {
// return Util.dateFormate(
// cellValue.updatedTime,
// "YYYY-MM-DD HH:mm:ss"
// )
// }
},
{
label: "任务状态描述",
prop: "errorMsg"
}
]
}
}
},
computed: {
taskId() {
return this.$route.query.taskId
}
},
mounted() {
this.searchFormSearch.taskId = this.taskId
// this.
},
methods: {
handleDetail(row) {
quotationPrint({ id: row.id }).then((res) => {
window.open(res)
})
}
}
}
</script>
<style scoped lang="scss">
.d2-con {
.d2-header-switch {
display: none;
}
}
</style>
<template>
<div class="order-list-wrap">
<div class="header" slot="header" style="background: #e7eaec">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane
v-for="(item, index) in tabPaneList"
:label="item.label"
:name="item.name"
:key="index"
>
</el-tab-pane>
</el-tabs>
<components :is="tabName"></components>
</div>
</div>
</template>
<script>
import vehicleDamageList from "./vehicleDamageList.vue"
import vehicleDamageOderImport from "./vehicleDamageOderImport.vue"
// import carDamage from "./carDamage.vue"
// import configUpgradation from "./configUpgradation.vue"
// import integralShopping from "./integralShopping.vue"
export default {
name: "OrderList",
components: {
vehicleDamageList,
vehicleDamageOderImport
// carDamage,
// configUpgradation,
// integralShopping
},
data() {
return {
activeName: "1",
tabPaneList: [
{
label: "车损报价单",
name: "1"
},
{
label: "导入订单",
name: "2"
}
],
tabName: "vehicleDamageList"
// tabName: "vehicleDamageOderImport"
}
},
mounted() {
if (this.$route.query.activeName == 2) {
this.tabName = "vehicleDamageOderImport"
this.activeName = "2"
}
},
watch: {},
methods: {
handleClick() {
const arr = {
1: "vehicleDamageList",
2: "vehicleDamageOderImport"
}
this.tabName = arr[+this.activeName]
// 获取当前的路由信息
const currentQuery = this.$route.query
// 更新query参数
const updatedQuery = { ...currentQuery, activeName: this.activeName }
// 使用`push`方法,Vue Router会处理跳转,并更新浏览器的地址栏
this.$router.push({ path: this.$route.path, query: updatedQuery })
// }
}
}
}
</script>
<style lang="scss" scoped>
.order-list-wrap {
padding: 0 24px;
.header {
::v-deep .el-tabs__header {
margin: 0;
padding: 0 20px;
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!