Commit fbda47aa by 前端

Merge branch 'dev_v4.21.1' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into dev_v4.21.1
2 parents a782a69f f954a3ea
...@@ -24,7 +24,15 @@ export const routerName = { ...@@ -24,7 +24,15 @@ export const routerName = {
authId: "9100101", authId: "9100101",
parentId: "91001", parentId: "91001",
label: "查看", label: "查看",
handle: "handleDetail" handle: "handleDetail",
ruleObj: {
attr: "status",
rule: {
0: "查看",
1: "查看"
},
disabledStatusList: [0]
}
}, },
{ {
authId: "9100102", authId: "9100102",
......
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
: res.map((i) => i.authId) : res.map((i) => i.authId)
// console.log(res, "res") // console.log(res, "res")
// console.log(userInfo.beSuper, "userInfo.beSuper") // console.log(userInfo.beSuper, "userInfo.beSuper")
console.log(targetRoutes, "targetRoutes") // console.log(targetRoutes, "targetRoutes")
// 先处理园区店角色是不能拿到 订单审批和发货的页面 // 先处理园区店角色是不能拿到 订单审批和发货的页面
// console.log("userInfo.beYQMerchant", userInfo.beYQMerchant) // console.log("userInfo.beYQMerchant", userInfo.beYQMerchant)
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
if (userInfo.beServerMerchant) { if (userInfo.beServerMerchant) {
targetRoutes.push("90904") targetRoutes.push("90904")
} }
console.log("targetRoutes", targetRoutes) // console.log("targetRoutes", targetRoutes)
routeAll routeAll
.map((i) => i.authId) .map((i) => i.authId)
...@@ -142,7 +142,7 @@ export default { ...@@ -142,7 +142,7 @@ export default {
// .map(obj => ({ authId: obj.authId, parentId: obj.parentId })) : // .map(obj => ({ authId: obj.authId, parentId: obj.parentId })) :
// tempAuths // tempAuths
// console.log(tempAuths) // console.log(tempAuths)
console.log("tempAuths", tempAuths) // console.log("tempAuths", tempAuths)
// debugger // debugger
const authes = tempAuths const authes = tempAuths
await dispatch("d2admin/auth/set", authes, { root: true }) await dispatch("d2admin/auth/set", authes, { root: true })
......
...@@ -143,12 +143,19 @@ export default { ...@@ -143,12 +143,19 @@ export default {
_initRoutes({ state }, source) { _initRoutes({ state }, source) {
return new Promise(async (resolve) => { return new Promise(async (resolve) => {
try { try {
const { route, btn } = util.permision.packRoutesBtns( let { route, btn } = util.permision.packRoutesBtns(
localRoutes, localRoutes,
source source
) )
// 过滤掉重复的路由
const obj = {}
route = route.reduce(function (item, next) {
obj[next.name] ? "" : (obj[next.name] = true && item.push(next))
return item
}, [])
router.matcher = ResetRouter().matcher // 重置基础路由 解决切换用户 保留上一个用户路由问题 router.matcher = ResetRouter().matcher // 重置基础路由 解决切换用户 保留上一个用户路由问题
frameInRoutes[0].children = [...route, ...sys] frameInRoutes[0].children = [...route, ...sys]
// console.log("frameInRoutes", frameInRoutes)
router.addRoutes(frameInRoutes) router.addRoutes(frameInRoutes)
state.btns = btn state.btns = btn
} catch (error) { } catch (error) {
......
<!-- 客户列表 --> <!-- 客户列表 -->
<template> <template>
<d2-container class="customer-list"> <d2-container class="customer-list">
<div class="header" <div class="header" slot="header">
slot="header"> <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" />
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData" />
<div class="up-btns"> <div class="up-btns">
<el-button size="small" <el-button size="small" type="primary" @click="handleSearch">
type="primary"
@click="handleSearch">
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset">
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
...@@ -25,99 +18,73 @@ ...@@ -25,99 +18,73 @@
<auth-button category="Button" /> <auth-button category="Button" />
</d2-table-header> </d2-table-header>
<el-table :data="tableData"> <el-table :data="tableData">
<el-table-column label="序号" <el-table-column label="序号" width="60px" type="index" align="center" />
width="60px"
type="index"
align="center" />
<el-table-column label="客户信息"> <el-table-column label="客户信息">
<el-table-column label="客户姓名" <el-table-column label="客户姓名" prop="customerName" align="center" />
prop="customerName" <el-table-column label="性别" align="center">
align="center" />
<el-table-column label="性别"
align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.customerSex === 1 ? '男' : '女' }}</span> <span>{{ scope.row.customerSex === 1 ? '男' : '女' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="品牌车型" <el-table-column label="品牌车型" align="center" width="150px">
align="center"
width="150px">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.carBrand || '' }}{{ scope.row.carSeriesName ? ('-' + scope.row.carSeriesName) : '' }}{{ scope.row.carTypeName ? ( '-' + scope.row.carTypeName) : '' }}</span> <span>{{ scope.row.carBrand || '' }}{{ scope.row.carSeriesName ? ('-' + scope.row.carSeriesName) : '' }}{{
scope.row.carTypeName ? ('-' + scope.row.carTypeName) : '' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="车架号" <!-- <el-table-column label="车架号"
align="center" align="center"
prop="standNo" /> --> prop="standNo" /> -->
<el-table-column label="客户状态" <el-table-column label="客户状态" align="center">
align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <span <!-- <span
class="red" class="red"
v-if="customerStatusObj[1].includes(scope.row.status)" v-if="customerStatusObj[1].includes(scope.row.status)"
>未完成</span> >未完成</span>
<span v-else>已完成</span> --> <span v-else>已完成</span> -->
<span <span :class="{ 'red': scope.row.status === 1 }">{{ baseData.customerStatusList.find(item => item.confId ==
:class="{ 'red': scope.row.status === 1 }">{{ baseData.customerStatusList.find(item => item.confId == scope.row.status).confLabel }}</span> scope.row.status).confLabel }}</span>
<!-- <span>{{scope.row.status}}</span> --> <!-- <span>{{scope.row.status}}</span> -->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="服务时间" <el-table-column label="服务时间" align="center">
align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.order ? (!scope.row.order.installUpgradeTime ? '' : new Date(scope.row.order.installUpgradeTime).toLocaleDateString()) : '' }}</span> <span>{{ scope.row.order ? (!scope.row.order.installUpgradeTime ? '' : new
Date(scope.row.order.installUpgradeTime).toLocaleDateString()) : '' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注信息" <el-table-column label="备注信息" align="center" prop="order.remark">
align="center"
prop="order.remark">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.order ? (scope.row.order.upgradeFlag === 'N' ? (scope.row.order.customer ? (scope.row.order.customer.refusalReason || '无') : '无') : (scope.row.order.remark || '无')) : '无' }}</span> <span>{{ scope.row.order ? (scope.row.order.upgradeFlag === 'N' ? (scope.row.order.customer ?
(scope.row.order.customer.refusalReason || '无') : '无') : (scope.row.order.remark || '无')) : '无' }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="关联信息"> <el-table-column label="关联信息">
<el-table-column label="流量来源" <el-table-column label="流量来源" align="center" prop="merchantName" width="170" />
align="center" <el-table-column label="推荐人" align="center" prop="employeeName">
prop="merchantName"
width="170" />
<el-table-column label="推荐人"
align="center"
prop="employeeName">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.order ? scope.row.order.employeeName : '' }}</span> <span>{{ scope.row.order ? scope.row.order.employeeName : '' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="园区店" <el-table-column label="园区店" align="center" prop="yqMerchantName" width="170px" />
align="center" <el-table-column label="转化专员" align="center" prop="order.sellerName" />
prop="yqMerchantName"
width="170px" />
<el-table-column label="转化专员"
align="center"
prop="order.sellerName" />
</el-table-column> </el-table-column>
<el-table-column label="创建时间" <el-table-column label="创建时间" align="center">
align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ new Date(scope.row.createdDate).toLocaleDateString() }}</span> <span>{{ new Date(scope.row.createdDate).toLocaleDateString() }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建方式" <el-table-column label="创建方式" align="center" prop="source">
align="center"
prop="source">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.order ? (scope.row.order.source === 3 ? '现场升级' : (scope.row.order.source === 5 ? '核销抵扣' : '系统录入')): (scope.row.source === 3 ? '现场升级' : (scope.row.source === 5 ? '核销抵扣' : '系统录入')) }}</span> <span>{{ scope.row.order ? (scope.row.order.source === 3 ? '现场升级' : (scope.row.order.source === 5 ? '核销抵扣' :
'系统录入')) : (scope.row.source === 3 ? '现场升级' : (scope.row.source === 5 ? '核销抵扣' : '系统录入')) }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination background <el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange"
@size-change="handleSizeChange" :current-page="page.pageNum" :page-sizes="[10, 20, 30, 40]" :page-size="page.pageSize" :total="total"
@current-change="handleCurrentChange" layout="sizes,total,->,prev,pager,next,jumper" />
:current-page="page.pageNum"
:page-sizes="[10,20,30,40]"
:page-size="page.pageSize"
:total="total"
layout="sizes,total,->,prev,pager,next,jumper" />
</div> </div>
</d2-container> </d2-container>
</template> </template>
...@@ -270,7 +237,7 @@ export default { ...@@ -270,7 +237,7 @@ export default {
}, },
mounted() { mounted() {
console.log(this.$router) // console.log(this.$router)
if (this.userInfo.beSuper) { if (this.userInfo.beSuper) {
getParkStore({}).then(res => { getParkStore({}).then(res => {
res.forEach(item => { res.forEach(item => {
...@@ -414,6 +381,7 @@ export default { ...@@ -414,6 +381,7 @@ export default {
.customer-list { .customer-list {
position: relative; position: relative;
} }
.search-icon { .search-icon {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
...@@ -421,16 +389,20 @@ export default { ...@@ -421,16 +389,20 @@ export default {
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
} }
.customer-list .custom-input { .customer-list .custom-input {
display: inline-block; display: inline-block;
width: 220px; width: 220px;
} }
.customer-list .custom-input:first-child { .customer-list .custom-input:first-child {
margin-right: 20px; margin-right: 20px;
} }
.customer-list .red { .customer-list .red {
color: red; color: red;
} }
.customer-list p { .customer-list p {
margin: 0 0; margin: 0 0;
} }
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<auth-button :data="scope.scope" :show-btn-ids="['9090401']" /> <auth-button :data="scope.scope" :show-btn-ids="['9090401']" />
</span> </span>
<!-- 确认发货 --> <!-- 确认发货 -->
<span v-show="scope.scope.status == 2"> <span v-show="scope.scope.status == 2" style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9090402']" /> <auth-button :data="scope.scope" :show-btn-ids="['9090402']" />
</span> </span>
<!-- 驳回 --> <!-- 驳回 -->
...@@ -102,7 +102,7 @@ export default { ...@@ -102,7 +102,7 @@ export default {
}, },
// 搜索 // 搜索
searchForm: { searchForm: {
status: '', // status: '',
deliveryStatus: '', deliveryStatus: '',
putStatus: '', putStatus: '',
merchantName: '', merchantName: '',
...@@ -143,15 +143,15 @@ export default { ...@@ -143,15 +143,15 @@ export default {
optionLabel: 'label', optionLabel: 'label',
optionsName: 'defaultDeliveryStatusOptions' optionsName: 'defaultDeliveryStatusOptions'
}, },
{ // {
label: '订单状态', // label: '订单状态',
name: 'status', // name: 'status',
type: 'select', // type: 'select',
optionList: [], // optionList: [],
optionId: 'id', // optionId: 'id',
optionLabel: 'label', // optionLabel: 'label',
optionsName: 'defaultStatusOptions' // optionsName: 'defaultStatusOptions'
}, // },
{ {
label: '采购模式', label: '采购模式',
name: 'purchasingPattern', name: 'purchasingPattern',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!