Commit eae98458 by 前端

Merge branch 'SAAS+V4.55.0-0730' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.55.0-0730
2 parents 3a60fed0 156ce09c
......@@ -17,6 +17,7 @@
:tableData="tableData"
:search-form="searchForm"
:table-params="tableParams"
v-if="show"
>
<div slot="mainBrand" slot-scope="scope">
<template
......@@ -70,6 +71,7 @@ export default {
name: "indicatorInfo",
data() {
return {
show: false,
isFlag:true,
hasPage:false,
noDataImg,
......@@ -147,11 +149,18 @@ export default {
}
},
watch: {
'queryData.isDisabled':{
handler(val){
}
},
queryData: {
handler(val) {
if(val.isDisabled){
console.log(val.isDisabled,'isDisabled')
// if(val.isDisabled){
console.log('watch')
this.refreshTable()
}
// }
// this.findStoreInfoByMerchantNoData()
},
......@@ -165,6 +174,7 @@ export default {
methods: {
refreshTable() {
console.log(this.queryData.isDisabled)
this.show = false
let arr=[ {
label: "驻店人数",
prop: "staffCount"
......@@ -173,10 +183,62 @@ export default {
label: "已配课程人数",
prop: "courseConfiguredCount"
}]
let tableColumns= [
{
label: "门店名称",
prop: "storeName"
},
{
label: "商户号",
prop: "merchantNo"
// minWidth: 144,
},
{
label: "是否直营",
prop: "isDirectOperated",
formatter: (cellValue) => {
return this.baseData.directOperateOpt.find(
(item) => item.confId === cellValue.isDirectOperated
)?.confValue
}
},
{
label: "展业时间",
prop: "businessDevDate",
formatter: (cellValue) => {
return cellValue.businessDevDate
? Util.dateFormate(cellValue.businessDevDate, "YYYY-MM-DD")
: ""
}
},
{
label: "归属业务",
formatter: (cellValue) => {
return this.baseData.businessOpt.find(
(item) => item.confId ==this.queryData.scene
)?.confValue
}
},
{
label: "主营品牌",
prop: "mainBrand",
addHtml: "mainBrand"
},
{
label: "区域运营经理",
prop: "regionalManager"
}
]
if(this.queryData.isDisabled){
this.tableParams.mutiSelectName='indicatorIndex'
this.tableParams.tableColumns=[...this.tableParams.tableColumns, ...arr]
this.tableParams.tableColumns=[...tableColumns, ...arr]
}else{
this.tableParams.mutiSelectName=''
this.tableParams.tableColumns=[...tableColumns]
}
this.$nextTick(() => {
this.show = true
})
},
findStoreInfoByMerchantNoData() {
console.log(this.queryData, "queryData")
......
......@@ -70,6 +70,7 @@
<!-- 查看课程 -->
</d2-table>
<long-detail-dialog
:longForm="longForm"
:longVisible.sync="detailVisible"
v-if="detailVisible"
:params-obj="recordInfo"
......
......@@ -185,6 +185,24 @@
环 {{ scope.scope.customerUnitPriceRate === 0 ? 0 + "%" : "-" }}
</div>
</div>
<div class="text-box" slot="courseName" slot-scope="scope">
<el-tooltip
class="item"
effect="dark"
:content="scope.scope[scope.prop]"
placement="right"
>
<span>
{{
scope.scope[scope.prop]
? scope.scope[scope.prop].length > 23
? scope.scope[scope.prop].slice(0, 23) + "..."
: scope.scope[scope.prop]
: "-"
}}
</span>
</el-tooltip>
</div>
</d2-table>
</div>
</div>
......@@ -240,6 +258,10 @@ export default {
{
title: "导师:",
key: "mentors"
},
{
title: "最后出单门店:",
key: "latestSuccessMerchant"
}
],
hasNum: false,
......@@ -274,7 +296,8 @@ export default {
tableColumns: [
{
label: "课程名称",
prop: "courseName"
prop: "courseName",
addHtml: "courseName"
},
{
label: "课程时长",
......@@ -330,6 +353,10 @@ export default {
paramsObj: {
type: Object,
default: {}
},
longForm: {
type: Object,
default: () => ({})
}
},
computed: {
......@@ -358,7 +385,10 @@ export default {
getStaffInfo() {
var params = {
staffPhone: this.paramsObj.staffPhone,
queryIndicator: true
queryIndicator: true,
bizs: this.longForm.scene,
startTime: this.longForm.startTime + " 00:00:00",
endTime: this.longForm.endTime + " 23:59:59"
}
staffInfo(params).then((res) => {
if (res) {
......@@ -381,7 +411,7 @@ export default {
]
},
{
staffName: this.paramsObj.staffPhone,
staffName: this.paramsObj.staffName,
merchantName: this.paramsObj.merchantName,
staffPhone: this.paramsObj.staffPhone
}
......@@ -465,4 +495,8 @@ export default {
.normal {
font-size: 12px;
}
.text-box {
font-size: 14px;
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!