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) {
// 分页查询驻店管理
export function staffPage(data) {
data.method = `${path}staff.page`
// data.method = `${path}staff.page`
data.method = `${path}staff.listWithPage`
return request(data, RequestMethods.POST)
}
......
......@@ -236,3 +236,22 @@ export function shipmentTerminate(data) {
data.method = "dj.api.smarcarlife.purchaseOrder.shipmentTerminate"
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 @@
<span class="phone">电话:<span class="label">{{ detailInfo.contactPhone }}</span></span>
<span class="address">收货地址:<span class="label">{{ detailInfo.contactAddress }}</span></span>
</div>
<div class="address-info"
v-if="detailInfo.purchaseOrderRemark">
<span class="address">备注:<span class="label">{{ detailInfo.purchaseOrderRemark }}</span></span>
</div>
<div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage"
@refreshTable="refreshTable" :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal">
......@@ -114,6 +118,11 @@ export default {
},
{
label: '规格',
prop: 'specificationData'
},
{
label: '系列',
prop: 'goodsName'
},
......
<!-- 审核 -->
<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">
<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>
<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>
</div>
</baseDialog>
</template>
<script>
import { operatorreviewOperatorAudit, businessreviewBusinessAudit } from '@/api/purchaseShopping.js'
import {
operatorreviewOperatorAudit,
businessreviewBusinessAudit
} from "@/api/purchaseShopping.js"
import { getShippingEntityInfoAll } from "@api/serviceManage"
import { deepClone } from '@/common/util'
import { deepClone } from "@/common/util"
export default {
name: 'CheckDialog',
name: "CheckDialog",
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
txtObj: {
procurementReview: '说明:订单审核后会自动流转至商务进行复审',
procurementBusiness: '说明:订单审核后会自动流转至供应商进行确认并发货'
procurementReview: "说明:订单审核后会自动流转至商务进行复审",
procurementBusiness: "说明:订单审核后会自动流转至供应商进行确认并发货"
},
infoForm: {
sendOutMerchantId: ''
sendOutMerchantId: ""
},
dialogConfig: {
title: '审核',
width: '750px'
title: "审核",
width: "750px"
},
editChildRef: 'editChildRef',
editChildRef: "editChildRef",
formRules: {
sendOutMerchantId: [{ required: true, message: '请选择发货主体', trigger: 'change' }]
sendOutMerchantId: [
{ required: true, message: "请选择发货主体", trigger: "change" }
]
},
editFormData: [{
label: '发货主体',
name: 'sendOutMerchantId',
isHide: true,
type: 'select',
optionList: [],
optionId: 'shippingEntityId',
optionLabel: 'shippingEntity',
optionsName: 'shippingEntityList'
}, {
label: '备注',
name: 'remark',
type: 'input',
inputType: 'textarea',
maxlength: '200',
showLimit: true
}],
editFormData: [
{
label: "发货主体",
name: "sendOutMerchantId",
isHide: true,
type: "select",
optionList: [],
optionId: "shippingEntityId",
optionLabel: "shippingEntity",
optionsName: "shippingEntityList"
},
{
label: "备注",
name: "remark",
type: "input",
inputType: "textarea",
maxlength: "200",
showLimit: true
}
],
baseData: {
shippingEntityList: []
}
......@@ -59,7 +80,7 @@ export default {
props: {
fromPage: {
type: String,
default: 'procurementReview'
default: "procurementReview"
},
checkVisible: {
type: Boolean,
......@@ -76,46 +97,73 @@ export default {
return this.checkVisible
},
set(newVal) {
this.$emit('dialogClose', { flag: newVal, attrName: 'checkVisible' })
this.$emit("dialogClose", { flag: newVal, attrName: "checkVisible" })
}
}
},
mounted() {
this.showOrHideAttr('editFormData', '发货主体', this.fromPage == 'procurementBusiness')
if (this.fromPage != 'procurementBusiness') {
this.showOrHideAttr(
"editFormData",
"发货主体",
this.fromPage == "procurementBusiness"
)
if (this.fromPage != "procurementBusiness") {
// 获取发货主体数据
getShippingEntityInfoAll({}).then(res => {
getShippingEntityInfoAll({}).then((res) => {
this.baseData.shippingEntityList = res || []
this.getOptionsList('editFormData', false)
this.getOptionsList("editFormData", false)
})
}
},
methods: {
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
},
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle)
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] !== '全部') {
var item = this[formName].find((k) => k.name == refreshSigle)
var index = this[formName].findIndex((k) => k.name == refreshSigle)
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 = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
temp[this[formName][index].optionId] = ""
temp[this[formName][index].optionLabel] = "全部"
this[formName][index].optionList.unshift(temp)
}
} else {
this[formName].forEach((item, index) => {
if (item.type === 'select' && 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] !== '全部') {
if (
item.type === "select" &&
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 = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
temp[this[formName][index].optionId] = ""
temp[this[formName][index].optionLabel] = "全部"
this[formName][index].optionList.unshift(temp)
}
}
......@@ -125,7 +173,7 @@ export default {
handleAddConfirm() {
// return
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) {
// console.log(valid)
// return
......@@ -134,10 +182,13 @@ export default {
params.sendOutMerchantId = infoForm.sendOutMerchantId
params.remark = infoForm.remark
params.orderCode = this.paramsObj.orderCode
const _api = this.fromPage == 'procurementBusiness' ? businessreviewBusinessAudit : operatorreviewOperatorAudit
const _api =
this.fromPage == "procurementBusiness"
? businessreviewBusinessAudit
: operatorreviewOperatorAudit
_api(params).then(res => {
this.notice.okTips('操作成功')
_api(params).then((res) => {
this.notice.okTips("操作成功")
this.visible = true
})
}
......@@ -162,17 +213,16 @@ export default {
font-size: 12px;
color: #999999;
}
.tips {
color: #999999;
}
}
.edit-form-container{
.edit-form-container {
::v-deep .el-textarea {
width: 432px!important;
.el-textarea__inner{
height: 70px!important;
width: 432px !important;
.el-textarea__inner {
height: 70px !important;
font-family: auto;
}
}
......
......@@ -9,6 +9,10 @@
<span>{{ detailInfo.deliveryNumber }}</span>
</div>
<div>
发货仓库:
<span>{{ detailInfo.shippingWarehouseName }}</span>
</div>
<div>
承运公司:
<span>{{ detailInfo.deliveryCompany }}</span>
</div>
......@@ -22,7 +26,7 @@
<div class="detail-info">
<div>
商品名称:
<span>{{ item.upgradeGoodsName }}</span>
<span>{{ item.upgradeGoodsName }}&nbsp;&nbsp;&nbsp;&nbsp; {{item.specificationData}}</span>
</div>
<div>
发货数量:
......
......@@ -24,6 +24,10 @@
<span class="address">收货地址:<span
class="label">{{ detailInfo[0].contactAddress }}</span></span>
</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"
:key="index">
<div class="detail-info">
......@@ -148,10 +152,14 @@ export default {
prop: 'type'
},
{
label: '规格',
prop: 'specificationData'
},
{
label: '发货数量',
prop: 'purchaseNumber',
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 @@
<span class="phone">电话:<span class="label">{{ detailInfo.contactPhone }}</span></span>
<span class="address">收货地址:<span class="label">{{ detailInfo.contactAddress }}</span></span>
</div>
<!-- <div class="address-info"
v-if="detailInfo.rejectCause">
<span class="address">驳回原因:<span class="label">{{ detailInfo.rejectCause }}</span></span>
</div> -->
<div class="address-info"
v-if="detailInfo.purchaseOrderRemark">
<span class="address">备注:<span class="label">{{ detailInfo.purchaseOrderRemark }}</span></span>
</div>
<div class="address-info"
v-if="detailInfo.terminateDeliveryInstruction">
<span class="address">结束发货说明:<span class="label">{{ detailInfo.terminateDeliveryInstruction }}</span></span>
</div>
<div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" @refreshTable="refreshTable"
:table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal">
......@@ -143,6 +147,11 @@ export default {
},
{
label: '规格',
prop: 'specificationData'
},
{
label: '系列',
prop: 'goodsName'
},
......
......@@ -63,7 +63,7 @@
:show-btn-ids="['9090104']" />
</span>
<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"
:show-btn-ids="['9090105']" />
</span>
......
// 雷达图
const radarChartOption = {
tooltip: {},
radar: {
// 初始指示器
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}
],
indicator: [],
name: {
rich: {
star: {
fontSize: 16,
color: '#FFD700', // 金色
fontSize: 12,
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'
}
},
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',
fontSize: 12,
align: 'center'
}
},
textStyle: {
color: '#333',
}
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',
axisLine: {
show: false
......@@ -34,9 +67,11 @@ const radarChartOption = {
color: ['#fff', '#fff', '#fff', '#fff', '#fff']
}
},
startAngle: 90
},
series: [{
type: 'radar',
silent: false,
// 数据
data: [
{
......@@ -59,60 +94,12 @@ const radarChartOption = {
}
}
]
}]
}
const wordCloudOption = {
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 },
],
},
]
}],
tooltip: {
show: false
}
}
// 流利度
const waveChartOption = {
title: {
text: '语速变化曲线',
......@@ -131,39 +118,57 @@ const waveChartOption = {
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'],
nameTextStyle: {
color: '#999EA8',
axisLabel: {
color: '#999EA8'
},
axisTick: {
show: false, // 隐藏x轴刻度
},
axisLine: {
lineStyle: {
color: '#999EA8'
color: '#F2F1FF',
width: 1
}
}
},
yAxis: {
type: 'value',
show: false, // 隐藏y轴
min: 0,
max: 1,
show: true, // 隐藏y轴
axisLine: {
show: false
},
axisLabel: {
show: false
},
splitLine: {
show: true,
interval: 0.2,
lineStyle: {
type: 'dashed',
color: '#E5E5EF'
color: '#E5E5EF',
width: 1
}
},
splitArea: {
show: true,
}
},
series: [
{
......@@ -186,11 +191,12 @@ const waveChartOption = {
smooth: true, // 使线条平滑
lineStyle: {
color: '#496CB5',
width: 2,
width: 1,
},
},
]
}
// 冗余词
const pieChartOption = {
title: {
text: '冗余词统计',
......@@ -206,7 +212,7 @@ const pieChartOption = {
legend: {
orient: 'vertical',
top: 'middle',
right: 120,
right: 40,
formatter: function(name) {
const data = pieChartOption.series[0].data;
let value = 0;
......@@ -216,11 +222,14 @@ const pieChartOption = {
}
}
return `${name}\u2003\u2003\u2003\u2003${value}`;
}
},
width: 60,
itemWidth: 10,
itemHeight: 10
},
graphic: {
type: 'text',
left: 'center',
left: 180,
top: 'center',
style: {
text: '冗余词',
......@@ -234,7 +243,8 @@ const pieChartOption = {
name: '冗余词',
type: 'pie',
radius: ['50%', '70%'],
avoidLabelOverlap: false,
center: [200, '50%'],
avoidLabelOverlap: true,
itemStyle: {
borderColor: '#fff',
borderWidth: 2
......@@ -259,14 +269,209 @@ const pieChartOption = {
{ value: 3, 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 {
radarChartOption: radarChartOption,
wordCloudOption: wordCloudOption,
waveChartOption: waveChartOption,
pieChartOption: pieChartOption
pieChartOption: pieChartOption,
waveChartOption1: waveChartOption1,
waveChartOption2: waveChartOption2
}
\ No newline at end of file
......@@ -14,7 +14,21 @@
<div class="tips">80%的使用者在1分30秒-3分10秒之间</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 class="tabs-content">
<el-tabs v-model="activeName" type="card">
......@@ -47,7 +61,6 @@ import proficiency from './proficiency.vue'
import serviceAttitude from './serviceAttitude.vue'
import * as echarts from 'echarts'
import chartOption from './chartOption'
// import 'echarts-wordcloud'
export default {
name: 'EvaluatingReport',
components: {
......@@ -60,8 +73,18 @@ export default {
data() {
return {
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() {
......@@ -72,37 +95,28 @@ export default {
// 初始化雷达图
this.radarChart = echarts.init(document.getElementById('radar-chart'))
this.drawRadarChart()
// 初始化词云图
// this.wordCloudChart = echarts.init(document.getElementById('word-cloud'))
// this.drawWordCloud()
window.addEventListener("resize", () => this.resize())
},
resize() {
this.radarChart.resize()
},
drawRadarChart() {
console.log(this.radarChartOption)
const createStarRating = (rating) => {
const fullStars = Math.floor(rating / 20)
const halfStar = rating % 1 === 0.5
const emptyStars = 5 - fullStars - (halfStar ? 1 : 0)
let stars = ''
for (let i = 0; i < fullStars; i++) {
stars += '★'
}
if (halfStar) {
stars += '⯨' // 使用半星字符
}
for (let i = 0; i < emptyStars; i++) {
stars += '☆'
}
return stars
}
this.radarChartOption.radar.indicator?.map(v => {
v.name = `${v.name}\n{star|${createStarRating(v.score)}}`
chartOption.radarChartOption.radar.indicator = [
{ name: '流利度', max: 100, score: 70 },
{ name: '销售技巧', max: 100, score: 90},
{ name: '语音表达', max: 100, score: 75 },
{ name: '熟练度', max: 100, score: 75 },
{ name: '熟练度1', max: 100, score: 75 },
]
// 有4个项目时 旋转45度
if (chartOption.radarChartOption.radar.indicator?.length == 4) chartOption.radarChartOption.radar.startAngle = 45
else chartOption.radarChartOption.radar.startAngle = 90
this.radarChart.setOption(chartOption.radarChartOption)
this.radarChart.on('finished', () => {
// 防止初次渲染导致五角星部分未加载出来
this.resize()
})
this.radarChart.setOption(this.radarChartOption)
},
drawWordCloud() {
this.wordCloudChart.setOption(this.wordCloudOption)
},
}
}
}
</script>
......@@ -122,7 +136,7 @@ export default {
height: 100%;
background: #FFFFFF;
border-radius: 4px;
padding: 16px;
padding: 16px 12px 20px 16px;
}
.static{
flex: 1;
......@@ -154,11 +168,95 @@ export default {
}
}
}
.word-cloud{
.word-cloud {
flex: 1;
margin-right: 16px;
box-sizing: border-box;
height: 100%;
background: #FFFFFF;
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{
......
......@@ -21,7 +21,18 @@
</div>
<div class="chart-box">
<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>
</template>
......@@ -70,7 +81,8 @@ export default {
margin: 0;
}
.left{
flex: 1;
flex-shrink: 0;
width: 80px;
.title{
font-weight: 14px;
margin-bottom: 8px;
......@@ -87,6 +99,7 @@ export default {
margin: 0 32px;
}
.content-text{
flex-shrink: 0;
color: #999EA8;
font-size: 12px;
}
......@@ -107,5 +120,25 @@ export default {
height: 100%;
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>
\ No newline at end of file
......@@ -32,7 +32,7 @@ export default {
name: 'fluency',
data() {
return {
waveChartOption: chartOption.waveChartOption
}
},
mounted() {
......@@ -40,10 +40,10 @@ export default {
},
methods: {
initWaveChart() {
const waveChart1 = echarts.init(document.getElementById('wave-chart'))
waveChart1.setOption(this.waveChartOption)
const waveChart1 = echarts.init(document.getElementById('wave-chart-1'))
waveChart1.setOption(chartOption.waveChartOption1)
const waveChart2 = echarts.init(document.getElementById('wave-chart-2'))
waveChart2.setOption(this.waveChartOption)
waveChart2.setOption(chartOption.waveChartOption2)
},
}
}
......@@ -66,6 +66,8 @@ export default {
margin: 0;
}
.left{
flex-shrink: 0;
width: 80px;
.title{
font-weight: 14px;
margin-bottom: 8px;
......@@ -82,6 +84,7 @@ export default {
margin: 0 32px;
}
.content-text{
flex-shrink: 0;
color: #999EA8;
font-size: 12px;
}
......
<!-- 服务态度 -->
<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>
<script>
export default {
......@@ -12,4 +21,45 @@ export default {
}
</script>
<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>
\ No newline at end of file
......@@ -160,7 +160,7 @@ export default {
}
]
},
isQualityVisible: true,
isQualityVisible: false,
detailObj: {},
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!