Commit 79cf7b88 by 张立顺

Merge branch 'SAAS+V4.42' of http://192.168.3.233:8090/saas_plus/dj-car-life-system into SAAS+V4.42

2 parents 2fa8de2c 7de5341a
...@@ -11,7 +11,8 @@ export function staffLabelDetail(data) { ...@@ -11,7 +11,8 @@ export function staffLabelDetail(data) {
// 分页查询驻店管理 // 分页查询驻店管理
export function staffPage(data) { export function staffPage(data) {
data.method = `${path}staff.page` // data.method = `${path}staff.page`
data.method = `${path}staff.listWithPage`
return request(data, RequestMethods.POST) return request(data, RequestMethods.POST)
} }
......
...@@ -236,3 +236,22 @@ export function shipmentTerminate(data) { ...@@ -236,3 +236,22 @@ export function shipmentTerminate(data) {
data.method = "dj.api.smarcarlife.purchaseOrder.shipmentTerminate" data.method = "dj.api.smarcarlife.purchaseOrder.shipmentTerminate"
return request(data, "post") return request(data, "post")
} }
export function getShipWarehousePage(data) {
data.method = `dj.api.smartcarlife.shipWarehouse.page`
return request(data,'post')
}
/**
* 仓库/工厂发货-保存
* @param {*} data
*/
export function saveShipWarehouse(data){
data.method = `dj.api.smartcarlife.shipWarehouse.save`
return request(data,'post')
}
/**
* 删除发货仓库
*/
export function deleteShipWarehouse(data){
data.method = `dj.api.smartcarlife.shipWarehouse.remove`
return request(data,'post')
}
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
<span class="phone">电话:<span class="label">{{ detailInfo.contactPhone }}</span></span> <span class="phone">电话:<span class="label">{{ detailInfo.contactPhone }}</span></span>
<span class="address">收货地址:<span class="label">{{ detailInfo.contactAddress }}</span></span> <span class="address">收货地址:<span class="label">{{ detailInfo.contactAddress }}</span></span>
</div> </div>
<div class="address-info"
v-if="detailInfo.purchaseOrderRemark">
<span class="address">备注:<span class="label">{{ detailInfo.purchaseOrderRemark }}</span></span>
</div>
<div class="table-class"> <div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage" <d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage"
@refreshTable="refreshTable" :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal"> @refreshTable="refreshTable" :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal">
...@@ -114,6 +118,11 @@ export default { ...@@ -114,6 +118,11 @@ export default {
}, },
{ {
label: '规格',
prop: 'specificationData'
},
{
label: '系列', label: '系列',
prop: 'goodsName' prop: 'goodsName'
}, },
......
<!-- 审核 --> <!-- 审核 -->
<template> <template>
<baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog" @handleClick="handleAddConfirm"> <baseDialog
:dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm"
>
<div class="reject-dialog"> <div class="reject-dialog">
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="150px" default-width="350px" <glsx-combi-form
:form-ref="editChildRef" :form-obj="infoForm" :form-data="editFormData" :form-rules="formRules"></glsx-combi-form> class="edit-form-container"
ref="editFormRef"
label-width="150px"
default-width="350px"
:form-ref="editChildRef"
:form-obj="infoForm"
:form-data="editFormData"
:form-rules="formRules"
></glsx-combi-form>
<span :style="{ 'margin-left': '150px' }">{{ txtObj[fromPage] }}</span> <span :style="{ 'margin-left': '150px' }">{{ txtObj[fromPage] }}</span>
</div> </div>
</baseDialog> </baseDialog>
</template> </template>
<script> <script>
import { operatorreviewOperatorAudit, businessreviewBusinessAudit } from '@/api/purchaseShopping.js' import {
operatorreviewOperatorAudit,
businessreviewBusinessAudit
} from "@/api/purchaseShopping.js"
import { getShippingEntityInfoAll } from "@api/serviceManage" import { getShippingEntityInfoAll } from "@api/serviceManage"
import { deepClone } from '@/common/util' import { deepClone } from "@/common/util"
export default { export default {
name: 'CheckDialog', name: "CheckDialog",
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
txtObj: { txtObj: {
procurementReview: '说明:订单审核后会自动流转至商务进行复审', procurementReview: "说明:订单审核后会自动流转至商务进行复审",
procurementBusiness: '说明:订单审核后会自动流转至供应商进行确认并发货' procurementBusiness: "说明:订单审核后会自动流转至供应商进行确认并发货"
}, },
infoForm: { infoForm: {
sendOutMerchantId: '' sendOutMerchantId: ""
}, },
dialogConfig: { dialogConfig: {
title: '审核', title: "审核",
width: '750px' width: "750px"
}, },
editChildRef: 'editChildRef', editChildRef: "editChildRef",
formRules: { formRules: {
sendOutMerchantId: [{ required: true, message: '请选择发货主体', trigger: 'change' }] sendOutMerchantId: [
{ required: true, message: "请选择发货主体", trigger: "change" }
]
}, },
editFormData: [{ editFormData: [
label: '发货主体', {
name: 'sendOutMerchantId', label: "发货主体",
name: "sendOutMerchantId",
isHide: true, isHide: true,
type: 'select', type: "select",
optionList: [], optionList: [],
optionId: 'shippingEntityId', optionId: "shippingEntityId",
optionLabel: 'shippingEntity', optionLabel: "shippingEntity",
optionsName: 'shippingEntityList' optionsName: "shippingEntityList"
}, { },
label: '备注', {
name: 'remark', label: "备注",
type: 'input', name: "remark",
inputType: 'textarea', type: "input",
maxlength: '200', inputType: "textarea",
maxlength: "200",
showLimit: true showLimit: true
}], }
],
baseData: { baseData: {
shippingEntityList: [] shippingEntityList: []
} }
...@@ -59,7 +80,7 @@ export default { ...@@ -59,7 +80,7 @@ export default {
props: { props: {
fromPage: { fromPage: {
type: String, type: String,
default: 'procurementReview' default: "procurementReview"
}, },
checkVisible: { checkVisible: {
type: Boolean, type: Boolean,
...@@ -76,46 +97,73 @@ export default { ...@@ -76,46 +97,73 @@ export default {
return this.checkVisible return this.checkVisible
}, },
set(newVal) { set(newVal) {
this.$emit('dialogClose', { flag: newVal, attrName: 'checkVisible' }) this.$emit("dialogClose", { flag: newVal, attrName: "checkVisible" })
} }
} }
}, },
mounted() { mounted() {
this.showOrHideAttr('editFormData', '发货主体', this.fromPage == 'procurementBusiness') this.showOrHideAttr(
if (this.fromPage != 'procurementBusiness') { "editFormData",
"发货主体",
this.fromPage == "procurementBusiness"
)
if (this.fromPage != "procurementBusiness") {
// 获取发货主体数据 // 获取发货主体数据
getShippingEntityInfoAll({}).then(res => { getShippingEntityInfoAll({}).then((res) => {
this.baseData.shippingEntityList = res || [] this.baseData.shippingEntityList = res || []
this.getOptionsList('editFormData', false) this.getOptionsList("editFormData", false)
}) })
} }
}, },
methods: { methods: {
showOrHideAttr(formName, label, isHide) { showOrHideAttr(formName, label, isHide) {
const idx = this[formName].findIndex(item => item.label == label) const idx = this[formName].findIndex((item) => item.label == label)
this[formName][idx].isHide = isHide this[formName][idx].isHide = isHide
}, },
getOptionsList(formName, hasAll = true, refreshSigle) { getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) { if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle) var item = this[formName].find((k) => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle) var index = this[formName].findIndex((k) => k.name == refreshSigle)
this.$set(this[formName][index], 'optionList', deepClone(this.baseData[item.optionsName])) this.$set(
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') { this[formName][index],
"optionList",
deepClone(this.baseData[item.optionsName])
)
if (
hasAll &&
this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][
this[formName][index].optionLabel
] !== "全部"
) {
const temp = {} const temp = {}
temp[this[formName][index].optionId] = '' temp[this[formName][index].optionId] = ""
temp[this[formName][index].optionLabel] = '全部' temp[this[formName][index].optionLabel] = "全部"
this[formName][index].optionList.unshift(temp) this[formName][index].optionList.unshift(temp)
} }
} else { } else {
this[formName].forEach((item, index) => { this[formName].forEach((item, index) => {
if (item.type === 'select' && this.baseData[item.optionsName].length) { if (
this.$set(this[formName][index], 'optionList', deepClone(this.baseData[item.optionsName])) item.type === "select" &&
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') { this.baseData[item.optionsName].length
) {
this.$set(
this[formName][index],
"optionList",
deepClone(this.baseData[item.optionsName])
)
if (
hasAll &&
this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][
this[formName][index].optionLabel
] !== "全部"
) {
const temp = {} const temp = {}
temp[this[formName][index].optionId] = '' temp[this[formName][index].optionId] = ""
temp[this[formName][index].optionLabel] = '全部' temp[this[formName][index].optionLabel] = "全部"
this[formName][index].optionList.unshift(temp) this[formName][index].optionList.unshift(temp)
} }
} }
...@@ -125,7 +173,7 @@ export default { ...@@ -125,7 +173,7 @@ export default {
handleAddConfirm() { handleAddConfirm() {
// return // return
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => { this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) { if (valid) {
// console.log(valid) // console.log(valid)
// return // return
...@@ -134,10 +182,13 @@ export default { ...@@ -134,10 +182,13 @@ export default {
params.sendOutMerchantId = infoForm.sendOutMerchantId params.sendOutMerchantId = infoForm.sendOutMerchantId
params.remark = infoForm.remark params.remark = infoForm.remark
params.orderCode = this.paramsObj.orderCode params.orderCode = this.paramsObj.orderCode
const _api = this.fromPage == 'procurementBusiness' ? businessreviewBusinessAudit : operatorreviewOperatorAudit const _api =
this.fromPage == "procurementBusiness"
? businessreviewBusinessAudit
: operatorreviewOperatorAudit
_api(params).then(res => { _api(params).then((res) => {
this.notice.okTips('操作成功') this.notice.okTips("操作成功")
this.visible = true this.visible = true
}) })
} }
...@@ -163,16 +214,15 @@ export default { ...@@ -163,16 +214,15 @@ export default {
color: #999999; color: #999999;
} }
.tips { .tips {
color: #999999; color: #999999;
} }
} }
.edit-form-container{ .edit-form-container {
::v-deep .el-textarea { ::v-deep .el-textarea {
width: 432px!important; width: 432px !important;
.el-textarea__inner{ .el-textarea__inner {
height: 70px!important; height: 70px !important;
font-family: auto; font-family: auto;
} }
} }
......
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
<span>{{ detailInfo.deliveryNumber }}</span> <span>{{ detailInfo.deliveryNumber }}</span>
</div> </div>
<div> <div>
发货仓库:
<span>{{ detailInfo.shippingWarehouseName }}</span>
</div>
<div>
承运公司: 承运公司:
<span>{{ detailInfo.deliveryCompany }}</span> <span>{{ detailInfo.deliveryCompany }}</span>
</div> </div>
...@@ -22,7 +26,7 @@ ...@@ -22,7 +26,7 @@
<div class="detail-info"> <div class="detail-info">
<div> <div>
商品名称: 商品名称:
<span>{{ item.upgradeGoodsName }}</span> <span>{{ item.upgradeGoodsName }}&nbsp;&nbsp;&nbsp;&nbsp; {{item.specificationData}}</span>
</div> </div>
<div> <div>
发货数量: 发货数量:
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
<span class="address">收货地址:<span <span class="address">收货地址:<span
class="label">{{ detailInfo[0].contactAddress }}</span></span> class="label">{{ detailInfo[0].contactAddress }}</span></span>
</div> </div>
<div class="address-info"
v-if="detailInfo[0].purchaseOrderRemark">
<span class="address">备注:<span class="label">{{ detailInfo[0].purchaseOrderRemark }}</span></span>
</div>
<div v-for="(itemList, index) in detailInfo" <div v-for="(itemList, index) in detailInfo"
:key="index"> :key="index">
<div class="detail-info"> <div class="detail-info">
...@@ -148,10 +152,14 @@ export default { ...@@ -148,10 +152,14 @@ export default {
prop: 'type' prop: 'type'
}, },
{ {
label: '规格',
prop: 'specificationData'
},
{
label: '发货数量', label: '发货数量',
prop: 'purchaseNumber', prop: 'purchaseNumber',
formatter: cellValue => { formatter: cellValue => {
return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.purchaseNumber}卷` : `${cellValue.purchaseNumber}件` return this.membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.purchaseNumber}卷` : `${cellValue.purchaseNumber}件`
} }
}, },
{ {
......
...@@ -11,10 +11,14 @@ ...@@ -11,10 +11,14 @@
<span class="phone">电话:<span class="label">{{ detailInfo.contactPhone }}</span></span> <span class="phone">电话:<span class="label">{{ detailInfo.contactPhone }}</span></span>
<span class="address">收货地址:<span class="label">{{ detailInfo.contactAddress }}</span></span> <span class="address">收货地址:<span class="label">{{ detailInfo.contactAddress }}</span></span>
</div> </div>
<!-- <div class="address-info" <div class="address-info"
v-if="detailInfo.rejectCause"> v-if="detailInfo.purchaseOrderRemark">
<span class="address">驳回原因:<span class="label">{{ detailInfo.rejectCause }}</span></span> <span class="address">备注:<span class="label">{{ detailInfo.purchaseOrderRemark }}</span></span>
</div> --> </div>
<div class="address-info"
v-if="detailInfo.terminateDeliveryInstruction">
<span class="address">结束发货说明:<span class="label">{{ detailInfo.terminateDeliveryInstruction }}</span></span>
</div>
<div class="table-class"> <div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" @refreshTable="refreshTable" <d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" @refreshTable="refreshTable"
:table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal"> :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal">
...@@ -143,6 +147,11 @@ export default { ...@@ -143,6 +147,11 @@ export default {
}, },
{ {
label: '规格',
prop: 'specificationData'
},
{
label: '系列', label: '系列',
prop: 'goodsName' prop: 'goodsName'
}, },
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
:show-btn-ids="['9090104']" /> :show-btn-ids="['9090104']" />
</span> </span>
<span style="margin-right: 10px;" <span style="margin-right: 10px;"
v-show="(scope.scope.purchaseType == 1 && scope.scope.deliveryStatus == 2) || (scope.scope.purchaseType == 1 && scope.scope.deliveryStatus == 3)"> v-show="(scope.scope.purchaseType == 1 && scope.scope.deliveryStatus == 2) || (scope.scope.purchaseType == 1 && scope.scope.deliveryStatus == 3)||(scope.scope.purchaseType == 1 && scope.scope.deliveryStatus == 4)">
<auth-button :data="scope.scope" <auth-button :data="scope.scope"
:show-btn-ids="['9090105']" /> :show-btn-ids="['9090105']" />
</span> </span>
......
// 雷达图
const radarChartOption = { const radarChartOption = {
tooltip: {}, tooltip: {},
radar: { radar: {
// 初始指示器 // 初始指示器
indicator: [ indicator: [],
{ name: '销售技巧', max: 100, score: 70},
{ name: '流利度', max: 100, score: 90},
{ name: '语音表达', max: 100, score: 75 },
{ name: '熟练度', max: 100, score: 80 },
// { name: '服务态度', max: 100, score: 100}
],
name: { name: {
rich: { rich: {
star: { star: {
fontSize: 16, fontSize: 12,
color: '#FFD700', // 金色 backgroundColor: {
image: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/aiCheck/star-1.png'
}
}, },
halfStar: {
fontSize: 12,
backgroundColor: {
image: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/aiCheck/pc-star-2.png'
}
}, },
textStyle: { emptyStar: {
fontSize: 12,
backgroundColor: {
image: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/aiCheck/pc-star-0.png'
}
},
name: {
color: '#333', color: '#333',
fontSize: 12,
align: 'center'
} }
}, },
formatter: function (v, indicator) {
const createStarRating = (rating) => {
const fullStars = Math.floor(rating / 20)
const halfStar = (rating / 20) % 1 === 0.5
const emptyStars = 5 - fullStars - (halfStar ? 1 : 0)
let stars = ''
for (let i = 0; i < fullStars; i++) {
stars += '{star|}'
}
if (halfStar) {
stars += '{halfStar|}'
}
for (let i = 0; i < emptyStars; i++) {
stars += '{emptyStar|}'
}
return stars
}
return `{name|${v}}\n${createStarRating(indicator.score)}`
},
width: 65,
height: 28
},
nameGap: 0,
shape: 'polygon', shape: 'polygon',
axisLine: { axisLine: {
show: false show: false
...@@ -34,9 +67,11 @@ const radarChartOption = { ...@@ -34,9 +67,11 @@ const radarChartOption = {
color: ['#fff', '#fff', '#fff', '#fff', '#fff'] color: ['#fff', '#fff', '#fff', '#fff', '#fff']
} }
}, },
startAngle: 90
}, },
series: [{ series: [{
type: 'radar', type: 'radar',
silent: false,
// 数据 // 数据
data: [ data: [
{ {
...@@ -59,60 +94,12 @@ const radarChartOption = { ...@@ -59,60 +94,12 @@ const radarChartOption = {
} }
} }
] ]
}] }],
} tooltip: {
const wordCloudOption = { show: false
tooltip: {}, }
series: [
{
type: 'wordCloud',
shape: 'circle',
left: 'center',
top: 'center',
width: '100%',
height: '100%',
right: null,
bottom: null,
sizeRange: [12, 50],
rotationRange: [-90, 90],
rotationStep: 45,
gridSize: 8,
drawOutOfBound: false,
textStyle: {
fontFamily: 'sans-serif',
fontWeight: 'bold',
color: function () {
return (
'rgb(' +
Math.round(Math.random() * 160) +
', ' +
Math.round(Math.random() * 160) +
', ' +
Math.round(Math.random() * 160) +
')'
);
},
},
emphasis: {
textStyle: {
shadowBlur: 10,
shadowColor: '#333',
},
},
data: [
{ name: '对话总结', value: 10000 },
{ name: '清晰度', value: 6181 },
{ name: '语速', value: 4386 },
{ name: '活泼', value: 4055 },
{ name: '敏感词', value: 2467 },
{ name: '服务态度', value: 2244 },
{ name: '冗余词', value: 1898 },
{ name: '熟练度', value: 1484 },
{ name: '销售技巧', value: 1112 },
],
},
]
} }
// 流利度
const waveChartOption = { const waveChartOption = {
title: { title: {
text: '语速变化曲线', text: '语速变化曲线',
...@@ -131,39 +118,57 @@ const waveChartOption = { ...@@ -131,39 +118,57 @@ const waveChartOption = {
data: ['目标范围'], data: ['目标范围'],
right: 'right', right: 'right',
top: 'top', top: 'top',
itemWidth: 0,
itemHeight: 0,
formatter: function(name) {
return '{name|} ' + name
},
textStyle: {
rich: {
name: {
width: 12,
height: 6,
backgroundColor: '#E5EDFE',
}
}
},
selectedMode: false
}, },
xAxis: { xAxis: {
type: 'category', type: 'category',
boundaryGap: false, boundaryGap: false,
data: ['0:00', '0:20', '0:40', '1:00', '1:20', '1:40', '2:00'], data: ['0:00', '0:20', '0:40', '1:00', '1:20', '1:40', '2:00'],
nameTextStyle: { axisLabel: {
color: '#999EA8', color: '#999EA8'
}, },
axisTick: { axisTick: {
show: false, // 隐藏x轴刻度 show: false, // 隐藏x轴刻度
}, },
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: '#999EA8' color: '#F2F1FF',
width: 1
} }
} }
}, },
yAxis: { yAxis: {
type: 'value', type: 'value',
show: false, // 隐藏y轴 show: true, // 隐藏y轴
min: 0, axisLine: {
max: 1, show: false
},
axisLabel: {
show: false
},
splitLine: { splitLine: {
show: true, show: true,
interval: 0.2, interval: 0.2,
lineStyle: { lineStyle: {
type: 'dashed', type: 'dashed',
color: '#E5E5EF' color: '#E5E5EF',
width: 1
} }
}, },
splitArea: {
show: true,
}
}, },
series: [ series: [
{ {
...@@ -186,11 +191,12 @@ const waveChartOption = { ...@@ -186,11 +191,12 @@ const waveChartOption = {
smooth: true, // 使线条平滑 smooth: true, // 使线条平滑
lineStyle: { lineStyle: {
color: '#496CB5', color: '#496CB5',
width: 2, width: 1,
}, },
}, },
] ]
} }
// 冗余词
const pieChartOption = { const pieChartOption = {
title: { title: {
text: '冗余词统计', text: '冗余词统计',
...@@ -206,7 +212,7 @@ const pieChartOption = { ...@@ -206,7 +212,7 @@ const pieChartOption = {
legend: { legend: {
orient: 'vertical', orient: 'vertical',
top: 'middle', top: 'middle',
right: 120, right: 40,
formatter: function(name) { formatter: function(name) {
const data = pieChartOption.series[0].data; const data = pieChartOption.series[0].data;
let value = 0; let value = 0;
...@@ -216,11 +222,14 @@ const pieChartOption = { ...@@ -216,11 +222,14 @@ const pieChartOption = {
} }
} }
return `${name}\u2003\u2003\u2003\u2003${value}`; return `${name}\u2003\u2003\u2003\u2003${value}`;
} },
width: 60,
itemWidth: 10,
itemHeight: 10
}, },
graphic: { graphic: {
type: 'text', type: 'text',
left: 'center', left: 180,
top: 'center', top: 'center',
style: { style: {
text: '冗余词', text: '冗余词',
...@@ -234,7 +243,8 @@ const pieChartOption = { ...@@ -234,7 +243,8 @@ const pieChartOption = {
name: '冗余词', name: '冗余词',
type: 'pie', type: 'pie',
radius: ['50%', '70%'], radius: ['50%', '70%'],
avoidLabelOverlap: false, center: [200, '50%'],
avoidLabelOverlap: true,
itemStyle: { itemStyle: {
borderColor: '#fff', borderColor: '#fff',
borderWidth: 2 borderWidth: 2
...@@ -259,14 +269,209 @@ const pieChartOption = { ...@@ -259,14 +269,209 @@ const pieChartOption = {
{ value: 3, name: '嗯' }, { value: 3, name: '嗯' },
{ value: 1, name: '呀' }, { value: 1, name: '呀' },
{ value: 1, name: '呢' }, { value: 1, name: '呢' },
{ value: 1, name: '呃' }, { value: 1, name: '呃' }
]
}
]
}
// 语音表达-清晰度
const waveChartOption1 = {
title: {
text: '清晰度变化曲线',
left: 'left',
textStyle: {
color: '#333333',
fontSize: 14
}
},
grid: {
left: 20,
right: 20,
bottom: 20
},
legend: {
data: ['目标范围'],
right: 'right',
top: 'top',
itemWidth: 0,
itemHeight: 0,
formatter: function(name) {
return '{name|} ' + name
},
textStyle: {
rich: {
name: {
width: 12,
height: 6,
backgroundColor: '#E5EDFE',
}
}
},
selectedMode: false
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ['0:00', '0:20', '0:40', '1:00', '1:20', '1:40', '2:00'],
axisLabel: {
color: '#999EA8'
},
axisTick: {
show: false, // 隐藏x轴刻度
},
axisLine: {
lineStyle: {
color: '#F2F1FF',
width: 1
}
}
},
yAxis: {
type: 'value',
show: true, // 隐藏y轴
axisLine: {
show: false
},
axisLabel: {
show: false
},
splitLine: {
show: true,
interval: 0.2,
lineStyle: {
type: 'dashed',
color: '#E5E5EF',
width: 1
}
},
},
series: [
{
name: '目标范围',
type: 'line',
data: [0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5], // 设置目标范围的y轴数据,这里假设为0.5
lineStyle: {
color: '#3275FA',
opacity: 0.1,
width: 64, // 设置目标范围的宽度
},
symbol: 'none', // 隐藏数据点
smooth: true, // 使线条平滑
},
{
name: '语速',
type: 'line',
data: [0.2, 0.8, 0.9, 0.3, 0.1, 0.6, 0.3], // 设置语速数据的y轴数据
symbol: 'none', // 隐藏数据点
smooth: true, // 使线条平滑
lineStyle: {
color: '#496CB5',
width: 1,
},
},
] ]
}
// 语音表达-语调
const waveChartOption2 = {
title: {
text: '语调变化曲线',
left: 'left',
textStyle: {
color: '#333333',
fontSize: 14
}
},
grid: {
left: 20,
right: 20,
bottom: 20
},
legend: {
data: ['目标范围'],
right: 'right',
top: 'top',
itemWidth: 0,
itemHeight: 0,
formatter: function(name) {
return '{name|} ' + name
},
textStyle: {
rich: {
name: {
width: 12,
height: 6,
backgroundColor: '#E5EDFE',
}
}
},
selectedMode: false
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ['0:00', '0:20', '0:40', '1:00', '1:20', '1:40', '2:00'],
axisLabel: {
color: '#999EA8'
},
axisTick: {
show: false, // 隐藏x轴刻度
},
axisLine: {
lineStyle: {
color: '#F2F1FF',
width: 1
}
}
},
yAxis: {
type: 'value',
show: true, // 隐藏y轴
axisLine: {
show: false
},
axisLabel: {
show: false
},
splitLine: {
show: true,
interval: 0.2,
lineStyle: {
type: 'dashed',
color: '#E5E5EF',
width: 1
} }
},
},
series: [
{
name: '目标范围',
type: 'line',
data: [0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5], // 设置目标范围的y轴数据,这里假设为0.5
lineStyle: {
color: '#3275FA',
opacity: 0.1,
width: 64, // 设置目标范围的宽度
},
symbol: 'none', // 隐藏数据点
smooth: true, // 使线条平滑
},
{
name: '语速',
type: 'line',
data: [0.2, 0.8, 0.9, 0.3, 0.1, 0.6, 0.3], // 设置语速数据的y轴数据
symbol: 'none', // 隐藏数据点
smooth: true, // 使线条平滑
lineStyle: {
color: '#496CB5',
width: 1,
},
},
] ]
} }
export default { export default {
radarChartOption: radarChartOption, radarChartOption: radarChartOption,
wordCloudOption: wordCloudOption,
waveChartOption: waveChartOption, waveChartOption: waveChartOption,
pieChartOption: pieChartOption pieChartOption: pieChartOption,
waveChartOption1: waveChartOption1,
waveChartOption2: waveChartOption2
} }
\ No newline at end of file \ No newline at end of file
...@@ -14,7 +14,21 @@ ...@@ -14,7 +14,21 @@
<div class="tips">80%的使用者在1分30秒-3分10秒之间</div> <div class="tips">80%的使用者在1分30秒-3分10秒之间</div>
</div> </div>
</div> </div>
<div class="word-cloud" id="word-cloud"></div> <div class="word-cloud">
<div class="center-circle" v-for="num in 4" :key="num+'num'">
<div :class="'center-circle' + num"><span v-if="num == 1">对练<br>总结</span></div>
</div>
<div class="center-circle">
<div
v-for="(item, index) in items"
:key="index"
:class="['item-circle', `item-${index+1}`]"
>
<div class="title" :class="item.title == '敏感词' ? 'color-red' : ''">{{ item.title }}</div>
<div class="content">{{ item.content }}</div>
</div>
</div>
</div>
</div> </div>
<div class="tabs-content"> <div class="tabs-content">
<el-tabs v-model="activeName" type="card"> <el-tabs v-model="activeName" type="card">
...@@ -47,7 +61,6 @@ import proficiency from './proficiency.vue' ...@@ -47,7 +61,6 @@ import proficiency from './proficiency.vue'
import serviceAttitude from './serviceAttitude.vue' import serviceAttitude from './serviceAttitude.vue'
import * as echarts from 'echarts' import * as echarts from 'echarts'
import chartOption from './chartOption' import chartOption from './chartOption'
// import 'echarts-wordcloud'
export default { export default {
name: 'EvaluatingReport', name: 'EvaluatingReport',
components: { components: {
...@@ -60,8 +73,18 @@ export default { ...@@ -60,8 +73,18 @@ export default {
data() { data() {
return { return {
activeName: 'saleSkills', activeName: 'saleSkills',
wordCloudOption: chartOption.wordCloudOption, radarChartOption: chartOption.radarChartOption,
radarChartOption: chartOption.radarChartOption centerText: '对话\n总结',
items: [
{ title: '适速', content: '适中' },
{ title: '清晰度', content: '稍模糊' },
{ title: '活泼', content: '丰富' },
{ title: '敏感词', content: '' },
{ title: '服务态度', content: '积极' },
{ title: '冗余词', content: '罗嗦' },
{ title: '熟练度', content: '精通' },
{ title: '销售技巧', content: '积极' }
]
} }
}, },
mounted() { mounted() {
...@@ -72,37 +95,28 @@ export default { ...@@ -72,37 +95,28 @@ export default {
// 初始化雷达图 // 初始化雷达图
this.radarChart = echarts.init(document.getElementById('radar-chart')) this.radarChart = echarts.init(document.getElementById('radar-chart'))
this.drawRadarChart() this.drawRadarChart()
// 初始化词云图 window.addEventListener("resize", () => this.resize())
// this.wordCloudChart = echarts.init(document.getElementById('word-cloud')) },
// this.drawWordCloud() resize() {
this.radarChart.resize()
}, },
drawRadarChart() { drawRadarChart() {
console.log(this.radarChartOption) chartOption.radarChartOption.radar.indicator = [
const createStarRating = (rating) => { { name: '流利度', max: 100, score: 70 },
const fullStars = Math.floor(rating / 20) { name: '销售技巧', max: 100, score: 90},
const halfStar = rating % 1 === 0.5 { name: '语音表达', max: 100, score: 75 },
const emptyStars = 5 - fullStars - (halfStar ? 1 : 0) { name: '熟练度', max: 100, score: 75 },
let stars = '' { name: '熟练度1', max: 100, score: 75 },
for (let i = 0; i < fullStars; i++) { ]
stars += '★' // 有4个项目时 旋转45度
} if (chartOption.radarChartOption.radar.indicator?.length == 4) chartOption.radarChartOption.radar.startAngle = 45
if (halfStar) { else chartOption.radarChartOption.radar.startAngle = 90
stars += '⯨' // 使用半星字符 this.radarChart.setOption(chartOption.radarChartOption)
} this.radarChart.on('finished', () => {
for (let i = 0; i < emptyStars; i++) { // 防止初次渲染导致五角星部分未加载出来
stars += '☆' this.resize()
}
return stars
}
this.radarChartOption.radar.indicator?.map(v => {
v.name = `${v.name}\n{star|${createStarRating(v.score)}}`
}) })
this.radarChart.setOption(this.radarChartOption) }
},
drawWordCloud() {
this.wordCloudChart.setOption(this.wordCloudOption)
},
} }
} }
</script> </script>
...@@ -122,7 +136,7 @@ export default { ...@@ -122,7 +136,7 @@ export default {
height: 100%; height: 100%;
background: #FFFFFF; background: #FFFFFF;
border-radius: 4px; border-radius: 4px;
padding: 16px; padding: 16px 12px 20px 16px;
} }
.static{ .static{
flex: 1; flex: 1;
...@@ -154,11 +168,95 @@ export default { ...@@ -154,11 +168,95 @@ export default {
} }
} }
} }
.word-cloud{ .word-cloud {
flex: 1; flex: 1;
margin-right: 16px;
box-sizing: border-box;
height: 100%; height: 100%;
background: #FFFFFF; background: #FFFFFF;
border-radius: 4px; border-radius: 4px;
padding: 16px;
position: relative;
margin: auto;
display: flex;
justify-content: center;
align-items: center;
.center-circle{
width: 216px;
height: 216px;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
position: absolute;
}
.center-circle1 {
background-image: radial-gradient(circle at 45% 31%, #7497DA 0%, #3667C2 60%);
color: white;
width: 56px;
height: 56px;
border-radius: 50%;
font-size: 12px;
z-index: 4;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.center-circle2{
background: #D1DBED;
width: 113px;
height: 113px;
border-radius: 50%;
z-index: 3;
}
.center-circle3{
background: #DFE6F2;
width: 161px;
height: 161px;
border-radius: 50%;
z-index: 2;
}
.center-circle4{
background: #EEF2F9;
width: 216px;
height: 216px;
border-radius: 50%;
z-index: 1;
}
.item-circle {
position: absolute;
width: 64px;
height: 64px;
border-radius: 50%;
background: #FFFFFF;
box-shadow: 0 2px 8px 0 #3768c21a;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
flex-direction: column;
z-index: 10;
color: #2A58AD;
.title {
font-size: 14px;
&.color-red{
color: #EB4E4E;
}
}
.content {
font-size: 10px;
font-weight: 600;
}
}
.item-1 { top: -12px; left: 47px; }
.item-2 { top: 16px; right: 18px; }
.item-3 { top: 80px; right: -36px; }
.item-4 { bottom: -6px; right: -10px; }
.item-5 { bottom: 0; right: 72px; }
.item-6 { bottom: -8px; left: -17px; }
.item-7 { bottom: 69px; left: 0; }
.item-8 { top: 12px; left: -36px; }
} }
} }
.tabs-content{ .tabs-content{
......
...@@ -21,7 +21,18 @@ ...@@ -21,7 +21,18 @@
</div> </div>
<div class="chart-box"> <div class="chart-box">
<div class="wave-chart" id="wave-chart"></div> <div class="wave-chart" id="wave-chart"></div>
<div class="pie-chart" id="pie-chart"></div> <div class="pie-chart">
<div v-if="true" class="pie-chart" id="pie-chart"></div>
<div class="empty-box" v-else>
<div class="icon">
<img src="@/assets/empty-3.png" />
</div>
<div class="text">
无冗余词
</div>
</div>
</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -70,7 +81,8 @@ export default { ...@@ -70,7 +81,8 @@ export default {
margin: 0; margin: 0;
} }
.left{ .left{
flex: 1; flex-shrink: 0;
width: 80px;
.title{ .title{
font-weight: 14px; font-weight: 14px;
margin-bottom: 8px; margin-bottom: 8px;
...@@ -87,6 +99,7 @@ export default { ...@@ -87,6 +99,7 @@ export default {
margin: 0 32px; margin: 0 32px;
} }
.content-text{ .content-text{
flex-shrink: 0;
color: #999EA8; color: #999EA8;
font-size: 12px; font-size: 12px;
} }
...@@ -107,5 +120,25 @@ export default { ...@@ -107,5 +120,25 @@ export default {
height: 100%; height: 100%;
flex: 1; flex: 1;
} }
.empty-box {
display: flex;
flex-direction: column;
font-size: 12px;
color: #999999;
text-align: center;
width: 100%;
height: 100%;
box-sizing: border-box;
border-radius: 0 4px 4px 4px;
.icon {
width: 270px;
height: 120px;
margin: 0 auto 8px;
img {
width: 100%;
height: 100%;
}
}
}
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
name: 'fluency', name: 'fluency',
data() { data() {
return { return {
waveChartOption: chartOption.waveChartOption
} }
}, },
mounted() { mounted() {
...@@ -40,10 +40,10 @@ export default { ...@@ -40,10 +40,10 @@ export default {
}, },
methods: { methods: {
initWaveChart() { initWaveChart() {
const waveChart1 = echarts.init(document.getElementById('wave-chart')) const waveChart1 = echarts.init(document.getElementById('wave-chart-1'))
waveChart1.setOption(this.waveChartOption) waveChart1.setOption(chartOption.waveChartOption1)
const waveChart2 = echarts.init(document.getElementById('wave-chart-2')) const waveChart2 = echarts.init(document.getElementById('wave-chart-2'))
waveChart2.setOption(this.waveChartOption) waveChart2.setOption(chartOption.waveChartOption2)
}, },
} }
} }
...@@ -66,6 +66,8 @@ export default { ...@@ -66,6 +66,8 @@ export default {
margin: 0; margin: 0;
} }
.left{ .left{
flex-shrink: 0;
width: 80px;
.title{ .title{
font-weight: 14px; font-weight: 14px;
margin-bottom: 8px; margin-bottom: 8px;
...@@ -82,6 +84,7 @@ export default { ...@@ -82,6 +84,7 @@ export default {
margin: 0 32px; margin: 0 32px;
} }
.content-text{ .content-text{
flex-shrink: 0;
color: #999EA8; color: #999EA8;
font-size: 12px; font-size: 12px;
} }
......
<!-- 服务态度 --> <!-- 服务态度 -->
<template> <template>
<div class="box">
<div class="box-item">
<div class="left">
<div class="title">积极程度</div>
<div class="value">主动</div>
</div>
<div class="line"></div>
<div class="content-text">您对延保业务的全流程场景较熟悉,礼貌接待客户并向客户详细介绍了车辆使用与延保产品!</div>
</div>
</div>
</template> </template>
<script> <script>
export default { export default {
...@@ -12,4 +21,45 @@ export default { ...@@ -12,4 +21,45 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.box{
display: flex;
.box-item{
width: calc(50% - 8px);
box-sizing: border-box;
height: 92px;
padding: 16px 20px;
margin-right: 16px;
display: flex;
align-items: center;
color: #333333;
background: #FBFBFB;
border-radius: 4px;
&:last-child{
margin: 0;
}
.left{
flex-shrink: 0;
width: 80px;
.title{
font-weight: 14px;
margin-bottom: 8px;
}
.value{
font-weight: 700;
font-size: 22px;
}
}
.line{
width: 1px;
height: 44px;
background: #E5E5E5;
margin: 0 32px;
}
.content-text{
flex-shrink: 0;
color: #999EA8;
font-size: 12px;
}
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -160,7 +160,7 @@ export default { ...@@ -160,7 +160,7 @@ export default {
} }
] ]
}, },
isQualityVisible: true, isQualityVisible: false,
detailObj: {}, detailObj: {},
taskInfo: {} taskInfo: {}
} }
......
代码合并记录
dj_dev_19.0版本
代码合并操作人:张晓玮
代码合并检查人:张杰
### 需求列表
dev_v4.19.0 版本功能需求
#### 涉及应用列表版本应用信息
| gitlab地址 | 分支标识 | 分支创建人 | 分支合并人 | 代码检查人 |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ---------- | ---------- | ---------- |
| http://192.168.3.233:8090/saas_plus/dj-car-boutique-work-wechat | [dev_v4.19.0](http://qcimg01.glsx.com.cn:7060/group1/M00/04/57/wKgD3mP9oNyAF5L3AAFf6CsJYvg142.png) | 张立顺 | 张晓玮 | 张杰 |
| http://192.168.3.233:8090/saas_plus/dj-car-life-system | dev_v4.19.0 | 王琦琳 | 张晓玮 | 张杰 |
代码合并记录
dj_dev_15.8版本
代码合并操作人:张晓玮,张立顺
代码合并检查人:张杰
### 需求列表
1.素材管理中心供应商字段为必填
2.分账逻辑完善
3.质保卡查询新增供应商条形码
4.精品升级sentry报错修复
#### 涉及应用列表版本应用信息
| gitlab地址 | 分支标识 | 分支创建人 | 分支合并人 | 代码检查人 |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ---------- | ---------- | ---------- |
| http://192.168.3.233:8090/glsx-business/dj-car-boutique-work-wechat | [dev_v4.15.8](http://qcimg01.glsx.com.cn:7060/group1/M00/04/57/wKgD3mP9oNyAF5L3AAFf6CsJYvg142.png) | 张立顺 | 张立顺 | 张杰 |
| http://192.168.3.233:8090/saas_plus/dj-car-life-system | dev_v4.15.8 | 张晓玮 | 张晓玮 | 张杰 |
| http://192.168.3.233:8090/saas_plus/dj-car-boutique-work-wechat | dev_v4.15.6 | 张晓玮 | 张晓玮 | 张杰 |
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!