Commit c2d1720f by 前端

Merge branch 'SAAS+V4.41-0708' into 'develop'

上线合并

See merge request !339
2 parents e65e5289 a36afa50
...@@ -10,7 +10,8 @@ export function getList(data) { ...@@ -10,7 +10,8 @@ export function getList(data) {
// 分页查找园区店 // 分页查找园区店
export function commodityAddSeviceMerchant(data) { export function commodityAddSeviceMerchant(data) {
data.method = `${path}servicemerchantref.page` // data.method = `${path}servicemerchantref.page`
data.method = `${path}servicemerchantref.pageRef`
return request(data) return request(data)
} }
......
...@@ -38,3 +38,27 @@ export function staffMerchantUnbind(data) { ...@@ -38,3 +38,27 @@ export function staffMerchantUnbind(data) {
data.method = `${path}staff.merchant.unbind` data.method = `${path}staff.merchant.unbind`
return request(data, RequestMethods.POST) return request(data, RequestMethods.POST)
} }
// 驻店员工4S店商户列表
export function getResidentMerchant(data) {
data.method = `${path}staff.getResidentMerchant`
return request(data, RequestMethods.POST)
}
// 驻店员工4S店商户主营一级品牌
export function getResidentMerchantBrand(data) {
data.method = `${path}staff.getResidentMerchantBrand`
return request(data, RequestMethods.POST)
}
// 驻店员工角色筛选项列表
export function getRoleList(data) {
data.method = `${path}staff.getRoleList`
return request(data, RequestMethods.POST)
}
// 驻店员工详情(手机号唯一)
export function detailByUniquePhone(data) {
data.method = `${path}staff.detailByUniquePhone`
return request(data, RequestMethods.POST)
}
...@@ -335,3 +335,7 @@ $prefix: d2; ...@@ -335,3 +335,7 @@ $prefix: d2;
bottom: 0; bottom: 0;
} }
} }
.remark-popper-class{
width: 50%;
}
\ No newline at end of file \ No newline at end of file
<!-- 关联门店弹窗 --> <!-- 关联门店弹窗 -->
<template> <template>
<d2-dialog title="关联门店" <d2-dialog
title="关联门店"
:is-visible.sync="relateStoreVisible" :is-visible.sync="relateStoreVisible"
width="70%" width="70%"
btn-ok-label="关联" btn-ok-label="关联"
@confirmDialog="handleRelateStoreConfirm" @confirmDialog="handleRelateStoreConfirm"
@closeDialog="handleRelateStoreClose" @closeDialog="handleRelateStoreClose"
class="relateStore"> class="relateStore"
>
<slot /> <slot />
<el-row class="tableCon"> <el-row class="tableCon">
<!-- <el-col :span="12"> --> <!-- <el-col :span="12"> -->
<div class="tableBox"> <div class="tableBox">
<el-table ref="seletingTable" <el-table
ref="seletingTable"
:data="selectingData" :data="selectingData"
height="464px" height="464px"
class="table" class="table"
border border
@select="handleChange" @select="handleChange"
@select-all="handleAll"> @select-all="handleAll"
<el-table-column type="selection" >
<el-table-column
type="selection"
width="55" width="55"
align="center" align="center"
:selectable="selectable" /> :selectable="selectable"
<el-table-column v-if="sourcePage != 'serviceStore'" />
<el-table-column
v-if="sourcePage != 'serviceStore'"
prop="yqMerchantName" prop="yqMerchantName"
label="园区店名称" label="园区店名称"
align="center"> align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span <span
:class="{'red': !scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage)}">{{ scope.row.yqMerchantName }}</span> :class="{
red:
!scope.row.isSetUpgradeSettleRule &&
needTip.includes(sourcePage)
}"
>{{ scope.row.yqMerchantName }}</span
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="merchantName" <el-table-column prop="merchantName" label="4S店名称" align="center">
label="4S店名称"
align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span <span
:class="{'red': !scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage)}">{{ scope.row.merchantName }}</span> :class="{
<el-tooltip v-if="!scope.row.isSetUpgradeSettleRule" red:
!scope.row.isSetUpgradeSettleRule &&
needTip.includes(sourcePage)
}"
>{{ scope.row.merchantName }}</span
>
<el-tooltip
v-if="!scope.row.isSetUpgradeSettleRule"
popper-class="tooltip-class" popper-class="tooltip-class"
effect="dark" effect="dark"
content="该门店无配置财务分润规则,无法关联!" content="该门店无配置财务分润规则,无法关联!"
placement="top"> placement="top"
<span v-if="!scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage)" >
class="tip-icon">?</span> <span
v-if="
!scope.row.isSetUpgradeSettleRule &&
needTip.includes(sourcePage)
"
class="tip-icon"
>?</span
>
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination small <el-pagination
small
background background
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pageSize" :page-size="pageSize"
layout="total, prev, pager, next" layout="total, prev, pager, next"
:total="total" /> :total="total"
/>
</div> </div>
<!-- </el-col> --> <!-- </el-col> -->
<!-- <el-col :span="12"> --> <!-- <el-col :span="12"> -->
<el-table :data="selectedData" <el-table
:data="selectedData"
class="table tableBox" class="table tableBox"
border border
height="464px"> height="464px"
<el-table-column v-if="sourcePage != 'serviceStore'" >
<el-table-column
v-if="sourcePage != 'serviceStore'"
prop="yqMerchantName" prop="yqMerchantName"
label="园区店名称" label="园区店名称"
align="center" />
<el-table-column prop="merchantName"
label="4S店名称"
align="center" />
<el-table-column label="删除"
align="center" align="center"
width="50px"> />
<el-table-column prop="merchantName" label="4S店名称" align="center" />
<el-table-column label="删除" align="center" width="50px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button class="el-icon-delete" <el-button
class="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
type="text" /> type="text"
/>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -86,12 +116,12 @@ ...@@ -86,12 +116,12 @@
<script> <script>
export default { export default {
name: 'RelateStoreDialog', name: "RelateStoreDialog",
data() { data() {
return { return {
selectedData: [], selectedData: [],
selectingData: [], selectingData: [],
needTip: ['editProduct'], needTip: ["editProduct"],
// 分页 // 分页
total: 0, total: 0,
currentPage: 1, currentPage: 1,
...@@ -107,11 +137,11 @@ export default { ...@@ -107,11 +137,11 @@ export default {
// 页面来源 // 页面来源
sourcePage: { sourcePage: {
type: String, type: String,
default: '' default: ""
}, },
storeApi: { storeApi: {
type: Function, type: Function,
default: () => { } default: () => {}
}, },
storeSelected: { storeSelected: {
type: Array, type: Array,
...@@ -119,7 +149,7 @@ export default { ...@@ -119,7 +149,7 @@ export default {
}, },
storeSearchForm: { storeSearchForm: {
type: Object, type: Object,
default: () => { } default: () => {}
} }
// 去掉表格中某些字段 // 去掉表格中某些字段
// noTableField: { // noTableField: {
...@@ -135,8 +165,8 @@ export default { ...@@ -135,8 +165,8 @@ export default {
methods: { methods: {
selectable(row, index) { selectable(row, index) {
var isSelect = row.hasOwnProperty('beServed') ? !row.beServed : true var isSelect = row.hasOwnProperty("beServed") ? !row.beServed : true
if (this.sourcePage === 'editProduct') { if (this.sourcePage === "editProduct") {
// 不能选的判断 // 不能选的判断
// console.log('??') // console.log('??')
isSelect = row.isSetUpgradeSettleRule isSelect = row.isSetUpgradeSettleRule
...@@ -144,9 +174,10 @@ export default { ...@@ -144,9 +174,10 @@ export default {
return isSelect return isSelect
}, },
recoverySelection() { recoverySelection() {
var exitIds = this.selectedData.map(item => item.merchantId) var exitIds = this.selectedData.map((item) => item.merchantId)
this.selectingData.forEach(item => { this.selectingData.forEach((item) => {
exitIds.includes(item.merchantId) && this.$refs.seletingTable.toggleRowSelection(item, true) exitIds.includes(item.merchantId) &&
this.$refs.seletingTable.toggleRowSelection(item, true)
}) })
}, },
getSelectingList() { getSelectingList() {
...@@ -154,7 +185,23 @@ export default { ...@@ -154,7 +185,23 @@ export default {
...this.storeSearchForm, ...this.storeSearchForm,
currentPage: this.currentPage, currentPage: this.currentPage,
pageSize: this.pageSize pageSize: this.pageSize
}).then(res => { }).then((res) => {
console.log(this.storeApi, "storeApi")
// if (this.storeApi == "getList") {
res.list = res.list.map((item) => {
// item.merchantId = item.id
let yqMerchant = item?.sceneList[0]?.yqMerchant || {}
console.log(yqMerchant)
item = {
// ...yqMerchant,
yqMerchantName: yqMerchant?.merchantName,
yqMerchantId: yqMerchant?.merchantId,
...item
}
return item
})
console.log("res.list", res.list)
// }
this.selectingData = res.list this.selectingData = res.list
this.total = res.total this.total = res.total
this.$nextTick(() => { this.$nextTick(() => {
...@@ -163,24 +210,32 @@ export default { ...@@ -163,24 +210,32 @@ export default {
}) })
}, },
handleChange(selection, row) { handleChange(selection, row) {
var addOrDelete = !!selection.find(item => item.merchantId === row.merchantId) var addOrDelete = !!selection.find(
(item) => item.merchantId === row.merchantId
)
addOrDelete addOrDelete
? this.selectedData.push(row) ? this.selectedData.push(row)
: (this.selectedData = this.selectedData.filter(item => item.merchantId !== row.merchantId)) : (this.selectedData = this.selectedData.filter(
(item) => item.merchantId !== row.merchantId
))
}, },
handleAll(selection) { handleAll(selection) {
this.selectingData.forEach(item => { this.selectingData.forEach((item) => {
var isExit = this.selectedData.findIndex(subItem => subItem.merchantId === item.merchantId) var isExit = this.selectedData.findIndex(
var isServed = item.hasOwnProperty('beServed') ? item.beServed : false (subItem) => subItem.merchantId === item.merchantId
if (selection.length && (isExit === -1) && !isServed) { )
var isServed = item.hasOwnProperty("beServed") ? item.beServed : false
if (selection.length && isExit === -1 && !isServed) {
this.selectedData.push(item) this.selectedData.push(item)
} else if (!selection.length && (isExit !== -1)) { } else if (!selection.length && isExit !== -1) {
this.selectedData.splice(isExit, 1) this.selectedData.splice(isExit, 1)
} }
}) })
}, },
handleDelete(row) { handleDelete(row) {
this.selectedData = this.selectedData.filter(item => item.merchantId !== row.merchantId) this.selectedData = this.selectedData.filter(
(item) => item.merchantId !== row.merchantId
)
this.$refs.seletingTable.toggleRowSelection(row) this.$refs.seletingTable.toggleRowSelection(row)
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
...@@ -188,14 +243,13 @@ export default { ...@@ -188,14 +243,13 @@ export default {
this.getSelectingList() this.getSelectingList()
}, },
handleRelateStoreConfirm() { handleRelateStoreConfirm() {
this.$emit('handleRelateStoreConfirm', this.selectedData) this.$emit("handleRelateStoreConfirm", this.selectedData)
}, },
handleRelateStoreClose() { handleRelateStoreClose() {
this.$emit('handleRelateStoreClose') this.$emit("handleRelateStoreClose")
} }
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.relateStore .table { .relateStore .table {
......
...@@ -138,7 +138,7 @@ export const routerName = { ...@@ -138,7 +138,7 @@ export const routerName = {
] ]
} }
], ],
component: _import("systemConfig/inStoreManage/index") component: _import("systemConfig/inStoreManage/inStoreControlList")
}, },
912050501: { 912050501: {
path: "/editStaff", path: "/editStaff",
......
...@@ -193,11 +193,12 @@ export default { ...@@ -193,11 +193,12 @@ export default {
}, },
mounted() { mounted() {
if (this.scene == '0' || this.scene == '2' || this.scene == '3' || this.scene == '4') { console.log(this.scene)
/** 1.0场景和1.3场景隐藏园区店对账单入口 */ if (this.scene == '2' || this.scene == '3' || this.scene == '4') {
/** 新改逻辑:园区店选项只对精品升级/会员权益可见 */
this.yqCheckVisible = false this.yqCheckVisible = false
} }
this.selectMerchant() // this.selectMerchant()
}, },
methods: { methods: {
......
...@@ -2,46 +2,49 @@ ...@@ -2,46 +2,49 @@
<template> <template>
<div> <div>
<d2-container> <d2-container>
<div class="header" slot="header" style="background: #E7EAEC;"> <div class="header"
slot="header"
style="background: #E7EAEC;">
<el-tabs v-model="searchForm.sceneType"> <el-tabs v-model="searchForm.sceneType">
<el-tab-pane :label="sceneList['0']" <el-tab-pane :label="sceneList['0']"
name="0" /> name="0" />
<el-tab-pane :label="sceneList['1']" <el-tab-pane :label="sceneList['1']"
name="1" /> name="1" />
</el-tabs> </el-tabs>
<d2-search <d2-search ref="showSearch"
ref="showSearch"
class="show-search" class="show-search"
label-width="175px" label-width="175px"
:search-form="searchForm" :search-form="searchForm"
:form-data="showFormData" :form-data="showFormData"
style="background: #fff;" style="background: #fff;">
>
<div class="up-btns"> <div class="up-btns">
<el-button size="small" type="primary" @click="handleSearch"> <el-button size="small"
type="primary"
@click="handleSearch">
查询 查询
</el-button> </el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button> <el-button size="small"
@click="handleReset"> 重置 </el-button>
</div> </div>
</d2-search> </d2-search>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<div class="date-container"> <div class="date-container">
<el-radio-group v-model="totalType" type="info" size="mini"> <el-radio-group v-model="totalType"
type="info"
size="mini">
<el-radio-button label="today"> 今日 </el-radio-button> <el-radio-button label="today"> 今日 </el-radio-button>
<el-radio-button label="Week"> 本周 </el-radio-button> <el-radio-button label="Week"> 本周 </el-radio-button>
<el-radio-button label="Month"> 本月 </el-radio-button> <el-radio-button label="Month"> 本月 </el-radio-button>
</el-radio-group> </el-radio-group>
<el-date-picker <el-date-picker size="mini"
size="mini"
v-model="dateValue" v-model="dateValue"
type="daterange" type="daterange"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
:picker-options="pickerOptions" :picker-options="pickerOptions" />
/>
<!-- <el-button <!-- <el-button
size="small" size="small"
class="default-blue-btn" class="default-blue-btn"
...@@ -51,51 +54,46 @@ ...@@ -51,51 +54,46 @@
> --> > -->
<span style="margin-left: auto;"> <span style="margin-left: auto;">
<span style="margin-right: 10px;"> <span style="margin-right: 10px;">
<auth-button category="Button" v-if="searchForm.sceneType == '0'" :show-btn-ids="['9070401']" /> <auth-button category="Button"
v-if="searchForm.sceneType == '0'"
:show-btn-ids="['9070401']" />
</span> </span>
<auth-button category="Button" :show-btn-ids="['9070403']" /> <auth-button category="Button"
:show-btn-ids="['9070403']" />
</span> </span>
</div> </div>
<d2-table <d2-table :key="searchForm.sceneType"
:key="searchForm.sceneType"
:has-num="false" :has-num="false"
:array-span-method="arraySpanMethod" :array-span-method="arraySpanMethod"
:table-params="searchForm.sceneType == '0' ? tableParams : boutiqueTableParams" :table-params="searchForm.sceneType == '0' ? tableParams : boutiqueTableParams"
ref="table" ref="table"
@refreshTable="getList" @refreshTable="getList"
:table-data="tableData" :table-data="tableData"
:table-total="tableTotal" :table-total="tableTotal">
> <div slot="newCar"
<div slot="newCar" slot-scope="scope"> slot-scope="scope">
<span <span v-if="isShowJump(scope.scope)"
v-if="isShowJump(scope.scope)"
@click="showDialog(scope.scope)" @click="showDialog(scope.scope)"
class="jump-a" class="jump-a">{{ scope.scope.deliveryCount || "--" }}</span>
>{{ scope.scope.deliveryCount || "--" }}</span
>
<span v-else> <span v-else>
{{ scope.scope.deliveryCount || "--" }} {{ scope.scope.deliveryCount || "--" }}
</span> </span>
</div> </div>
<auth-button <auth-button slot="auth-button"
slot="auth-button"
slot-scope="scope" slot-scope="scope"
:data="scope.scope" :data="scope.scope" />
/>
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
<!-- 查看 --> <!-- 查看 -->
<car-dialog <car-dialog :detail-visible="detailVisible"
:detail-visible="detailVisible"
:merchant-id="merchantId" :merchant-id="merchantId"
:select-date="selectDate" :select-date="selectDate"
:merchant-name="merchantName" :merchant-name="merchantName"
:sceneType="searchForm.sceneType" :scene-type="searchForm.sceneType"
v-if="detailVisible" v-if="detailVisible"
@dialogClose="dialogClose" @dialogClose="dialogClose" />
/>
</div> </div>
</template> </template>
...@@ -197,7 +195,7 @@ export default { ...@@ -197,7 +195,7 @@ export default {
optionId: "id", optionId: "id",
optionLabel: "label", optionLabel: "label",
optionsName: "secondBrandIdList" optionsName: "secondBrandIdList"
}, }
], ],
tableData: [], tableData: [],
// 会员权益表格 // 会员权益表格
...@@ -268,6 +266,62 @@ export default { ...@@ -268,6 +266,62 @@ export default {
formatter: (cellValue) => { formatter: (cellValue) => {
return (cellValue.upgradeRate ?? '') === '' ? '-' : cellValue.upgradeRate return (cellValue.upgradeRate ?? '') === '' ? '-' : cellValue.upgradeRate
} }
},
{
label: "是否分配平板",
prop: "padPlatform",
formatter: (cellValue) => {
return (cellValue.padPlatform ?? '') === '' ? '-' : cellValue.padPlatform
}
},
{
label: "到店量",
prop: "totalEquityToShopCount",
formatter: (cellValue) => {
return (cellValue.totalEquityToShopCount ?? '') === '' ? '-' : cellValue.totalEquityToShopCount
}
},
{
label: "APP接待数",
prop: "receptionCount",
formatter: (cellValue) => {
return (cellValue.receptionCount ?? '') === '' ? '-' : cellValue.receptionCount
}
},
{
label: "质检进度",
prop: "status",
formatter: (cellValue) => {
return (cellValue.status ?? '') === '' ? '-' : cellValue.status
}
},
{
label: "非真实接待数",
prop: "inauthenticReceptionCount",
formatter: (cellValue) => {
return (cellValue.inauthenticReceptionCount ?? '') === '' ? '-' : cellValue.inauthenticReceptionCount
}
},
{
label: "质检平均分",
prop: "averageScore",
formatter: (cellValue) => {
return (cellValue.averageScore ?? '') === '' ? '-' : cellValue.averageScore
}
},
{
label: "战败且低于平均分",
prop: "unqualifiedCount",
formatter: (cellValue) => {
return (cellValue.unqualifiedCount ?? '') === '' ? '-' : cellValue.unqualifiedCount
}
},
{
label: "质检0分",
prop: "zeroCount",
formatter: (cellValue) => {
return (cellValue.zeroCount ?? '') === '' ? '-' : cellValue.zeroCount
}
} }
] ]
}, },
...@@ -346,8 +400,8 @@ export default { ...@@ -346,8 +400,8 @@ export default {
pickerOptions: { pickerOptions: {
disabledDate: (time) => { disabledDate: (time) => {
// 可选范围是今天及之前且最大可选跨度是31天 // 可选范围是今天及之前且最大可选跨度是31天
const secondNum = 30 * 24 * 60 * 60 * 1000; const secondNum = 30 * 24 * 60 * 60 * 1000
const today = new Date(); const today = new Date()
const [year, month, date] = [today.getFullYear(), today.getMonth(), today.getDate()] const [year, month, date] = [today.getFullYear(), today.getMonth(), today.getDate()]
const yesterdayStamp = new Date(year, month, date).getTime() const yesterdayStamp = new Date(year, month, date).getTime()
if (timeOptionRange) { if (timeOptionRange) {
...@@ -424,16 +478,16 @@ export default { ...@@ -424,16 +478,16 @@ export default {
...page, ...page,
...params ...params
} }
//是否排除出单商户 0-不排除 1-排除 // 是否排除出单商户 0-不排除 1-排除
if (this.search_num == 0) { if (this.search_num == 0) {
params.excludeNoOrderMerchant = 1 params.excludeNoOrderMerchant = 1
} }
this.search_num++ this.search_num++
this.tableData = [] this.tableData = []
let res = this.searchForm?.sceneType == 0 ? await permeabilityList(params) : await permeabilityBoutiqueList(params) const res = this.searchForm?.sceneType == 0 ? await permeabilityList(params) : await permeabilityBoutiqueList(params)
// permeabilityList(params).then((res) => { // permeabilityList(params).then((res) => {
let list = res?.list || [] const list = res?.list || []
let arr = [] const arr = []
list.forEach((i) => { list.forEach((i) => {
i.staffList.forEach((j) => { i.staffList.forEach((j) => {
arr.push({ ...i, ...j, count: i.staffList.length }) arr.push({ ...i, ...j, count: i.staffList.length })
...@@ -448,7 +502,7 @@ export default { ...@@ -448,7 +502,7 @@ export default {
this.getOptionsList() this.getOptionsList()
}, },
getShop4sByRef(num) { getShop4sByRef(num) {
listShop4sByRef({ sceneList: [num ? num : 0] }).then((res) => { listShop4sByRef({ sceneList: [num || 0] }).then((res) => {
this.addOptions("merchantId", res) this.addOptions("merchantId", res)
this.addOptions("merchantName", res) this.addOptions("merchantName", res)
}) })
...@@ -460,7 +514,7 @@ export default { ...@@ -460,7 +514,7 @@ export default {
if (findData) findData.optionList = optionList if (findData) findData.optionList = optionList
}, },
getBrandList() { getBrandList() {
brandList({containsChildren: true}).then((res) => { brandList({ containsChildren: true }).then((res) => {
this.addOptions("brandIdList", res) this.addOptions("brandIdList", res)
this.filterSecondBrandIdList() this.filterSecondBrandIdList()
}) })
...@@ -468,7 +522,7 @@ export default { ...@@ -468,7 +522,7 @@ export default {
// 处理子品牌选择项 // 处理子品牌选择项
filterSecondBrandIdList() { filterSecondBrandIdList() {
let list = [] let list = []
let _brandIdList = this.searchForm.brandIdList const _brandIdList = this.searchForm.brandIdList
const findData = this.showFormData.find( const findData = this.showFormData.find(
(item) => item.optionsName == 'brandIdList' (item) => item.optionsName == 'brandIdList'
) )
...@@ -485,10 +539,10 @@ export default { ...@@ -485,10 +539,10 @@ export default {
const findData = this.showFormData.find( const findData = this.showFormData.find(
(item) => item.optionsName == 'secondBrandIdList' (item) => item.optionsName == 'secondBrandIdList'
) )
let secondBrandIdList = findData?.optionList || [] const secondBrandIdList = findData?.optionList || []
let _secondBrandIdList = deepClone(this.searchForm.secondBrandIdList) const _secondBrandIdList = deepClone(this.searchForm.secondBrandIdList)
let filSecondBrandIdList = _secondBrandIdList.filter(val => { const filSecondBrandIdList = _secondBrandIdList.filter(val => {
let index = secondBrandIdList.findIndex(subV => subV.id == val) const index = secondBrandIdList.findIndex(subV => subV.id == val)
if (index > -1) return true if (index > -1) return true
}) })
this.searchForm.secondBrandIdList = filSecondBrandIdList this.searchForm.secondBrandIdList = filSecondBrandIdList
......
...@@ -85,6 +85,9 @@ ...@@ -85,6 +85,9 @@
v-if="editRemarkFlag" v-if="editRemarkFlag"
@click="editRemark">修改</el-button> @click="editRemark">修改</el-button>
</el-form-item> </el-form-item>
<el-form-item label="撤销原因:" v-if="detail.revokeReason">
{{ detail.revokeReason }}
</el-form-item>
<el-form-item label="战败原因:" <el-form-item label="战败原因:"
v-if="detail.status == 2"> v-if="detail.status == 2">
{{ $$(detail, 'customer', 'refusalReason') }} {{ $$(detail, 'customer', 'refusalReason') }}
......
...@@ -46,7 +46,9 @@ export default { ...@@ -46,7 +46,9 @@ export default {
label: '备注', label: '备注',
name: 'remark', name: 'remark',
type: 'input', type: 'input',
maxlength: '20' inputType: 'textarea',
maxlength: '200',
showLimit: true
}], }],
baseData: { baseData: {
shippingEntityList: [] shippingEntityList: []
...@@ -161,8 +163,18 @@ export default { ...@@ -161,8 +163,18 @@ export default {
color: #999999; color: #999999;
} }
.tips { .tips {
color: #999999; color: #999999;
} }
} }
.edit-form-container{
::v-deep .el-textarea {
width: 432px!important;
.el-textarea__inner{
height: 70px!important;
font-family: auto;
}
}
}
</style> </style>
...@@ -56,7 +56,13 @@ ...@@ -56,7 +56,13 @@
</span> </span>
<span class="span-txt-two">审核人:{{ item.reviewedBy }}</span> <span class="span-txt-two">审核人:{{ item.reviewedBy }}</span>
<span class="span-txt-two">审核时间:{{ item.reviewedDateFormat }}</span> <span class="span-txt-two">审核时间:{{ item.reviewedDateFormat }}</span>
<span v-if="item.remark" class="span-txt-two">备注:{{ item.remark }}</span> <span v-if="item.remark" class="span-txt-two">备注:
<el-tooltip class="item" popper-class="remark-popper-class" effect="dark" :content="item.remark" placement="right">
<el-button type="text">
{{ item.remark ? (item.remark.length > 15 ? (item.remark.slice(0, 15) + '...') : item.remark) : '' }}
</el-button>
</el-tooltip>
</span>
<span class="span-txt-two" v-if="[4, 6, 7].includes(item.status)">驳回原因:{{ item.rejectCause }}</span> <span class="span-txt-two" v-if="[4, 6, 7].includes(item.status)">驳回原因:{{ item.rejectCause }}</span>
</div> </div>
<!-- <div class="record-div-d"><span class="dot"></span><span <!-- <div class="record-div-d"><span class="dot"></span><span
......
<template>
<div class="layout">
<div class="tab"
ref="tabbox">
<div :class="['tab-item', { 'item-active': windowId == -1 }]"
@click="windowId = -1">
驻店管理
</div>
<template v-for="(i, index) in tab">
<template>
<div :key="i.id"
:class="['tab-item', { 'item-active': windowId == i.id }]"
@click="windowId = i.id"
:ref="`tab-${index}`">
{{ i.text }}
<div class="close"
@click.stop="close(index)">
<i class="el-icon-close"></i>
</div>
</div>
</template>
</template>
<template v-if="dropdownList.length">
<div class="arrow-box">
<el-dropdown trigger="click"
@command="windowId = $event">
<div class="dropdown-link">
<i class="el-icon-arrow-down"></i>
</div>
<el-dropdown-menu slot="dropdown">
<template v-for="(i, index) in dropdownList">
<el-dropdown-item :class="{ 'dropdown-item-active': windowId == i.id }"
:key="i.id"
:command="i.id">
<div class="dropdown-item">
{{ i.text }}
<div class="close"
@click.stop="closeDrop(index)">
<i class="el-icon-close"></i>
</div>
</div>
</el-dropdown-item>
</template>
</el-dropdown-menu>
</el-dropdown>
</div>
</template>
</div>
<div class="content">
<InStoreManageIndex v-show="windowId == -1"
@openWindow="openWindow" />
<template v-for="i in [...tab, ...dropdownList]">
<editStaff :ref="`recep-${i.id}`"
:key="i.id"
v-show="windowId == i.id"
:query-data="i.data"
@backIndex="backIndex" />
</template>
</div>
</div>
</template>
<script type='text/ecmascript-6'>
import InStoreManageIndex from "./index"
import editStaff from "./editStaff"
export default {
name: "",
components: {
InStoreManageIndex,
editStaff
},
data() {
return {
tab: [],
dropdownList: [],
windowId: -1,
tabboxWidth: 0
}
},
// 在beforeDestroy钩子中移除事件监听
beforeDestroy() {
window.removeEventListener('popstate', this.preventBack)
},
// 在你的Vue组件的mounted钩子中添加事件监听
mounted() {
history.pushState(null, null, document.URL)
window.addEventListener('popstate', this.preventBack)
if (this.tabboxWidth == 0) this.tabboxWidth = this.$refs.tabbox.offsetWidth
},
methods: {
preventBack() {
if (this.windowId !== -1) {
const [recep] = this.$refs[`recep-${this.windowId}`]
if (recep && recep.isQualityVisible) recep.isQualityVisible = false
else this.windowId = -1
history.pushState(null, null, document.URL)
} else this.$router.go(-1)
},
openWindow(data) {
const id = `${data.staffName}_${data.phoneNumber}`
const windowList = [...this.tab, ...this.dropdownList]
const windowItem = windowList.find((e) => e.id == id)
if (windowItem) return this.windowId = id
if (windowList.length == 20) return this.$message.error("最多同时打开20个tabs")
const item = {
text: data.staffName || '-',
data,
id
}
if (this.dropdownList.length) this.dropdownList.push(item)
else {
this.tab.push(item)
this.checkEl()
}
this.windowId = id
},
close(index) {
this.tab.splice(index, 1)
if (this.dropdownList.length) {
this.tab.push(this.dropdownList[0])
this.closeDrop(0)
}
this.windowId = -1
this.checkEl()
},
closeDrop(index) {
this.dropdownList.splice(index, 1)
},
checkEl() {
const { tab, tabboxWidth } = this
const len = tab.length - 1
this.$nextTick(() => {
const [el] = this.$refs[`tab-${len}`]
if (el) {
const { offsetWidth, offsetLeft } = el
if (offsetLeft + offsetWidth / 2 > tabboxWidth - 54) {
this.dropdownList.push(tab[len])
this.tab.splice(len, 1)
}
}
})
},
backIndex() {
this.windowId = -1
}
}
}
</script>
<style scoped lang='scss'>
.layout {
.tab {
display: flex;
align-items: center;
margin-left: 20px;
width: calc(100% - 54px);
box-sizing: border-box;
&-item {
width: fit-content;
height: 40px;
padding: 0 20px;
background: #fafafa;
border-radius: 4px 4px 0 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
color: #666666;
cursor: pointer;
line-height: 40px;
margin-right: 1px;
flex-shrink: 0;
.close {
border-radius: 100%;
padding: 4px;
margin-left: 4px;
display: flex;
align-items: center;
justify-content: center;
&:hover {
background-color: #666;
.el-icon-close {
color: #fff;
}
}
}
.el-icon-close {
font-size: 12px;
display: flex;
align-items: center;
justify-content: center;
color: #666666;
transform: translateY(1px);
}
}
.item-active {
font-weight: 500;
color: #2a58ad;
background: #ffffff;
}
.arrow-box {
width: 32px;
height: 40px;
line-height: 40px;
text-align: center;
background: #fafafa;
cursor: pointer;
flex-shrink: 0;
.el-dropdown {
width: 100%;
}
}
}
.content {
position: relative;
width: 100%;
height: calc(100vh - 110px);
// overflow-y: scroll;
box-sizing: border-box;
padding-bottom: 70px;
}
}
::v-deep.dropdown-item {
display: flex;
align-items: center;
justify-content: center;
.close {
border-radius: 100%;
padding: 4px;
margin-left: 4px;
display: flex;
align-items: center;
justify-content: center;
&:hover {
background-color: #666;
.el-icon-close {
color: #fff;
}
}
i {
margin-right: 0;
}
}
.el-icon-close {
font-size: 12px;
color: #666666;
}
}
.dropdown-item-active {
background-color: #eaeef7;
color: #5579bd;
}
</style>
...@@ -74,11 +74,16 @@ ...@@ -74,11 +74,16 @@
</div> </div>
<div class="type1"> <div class="type1">
<div class="type-name">商户名称:</div> <div class="type-name">商户名称:</div>
<div class="type-val">{{ items.shopMerchant.merchantName }}</div> <div class="type-val">
<!-- {{ items.shopMerchant.merchantName }} -->
<text-popover :refName="'shopMerchantName'" :content="items.shopMerchant.merchantName || '-'" />
</div>
</div> </div>
<div class="type1"> <div class="type1">
<div class="type-name">联系人:</div> <div class="type-name">联系人:</div>
<div class="type-val">{{ items.shopMerchant.contactName }}</div> <div class="type-val">
{{ items.shopMerchant.contactName }}
</div>
</div> </div>
<div class="type1"> <div class="type1">
<div class="type-name">联系电话:</div> <div class="type-name">联系电话:</div>
...@@ -86,12 +91,15 @@ ...@@ -86,12 +91,15 @@
</div> </div>
<div class="type1 type2"> <div class="type1 type2">
<div class="type-name">地址:</div> <div class="type-name">地址:</div>
<el-tooltip class="item" effect="dark" placement="top"> <div class="type-val">
<text-popover :refName="'shopMerchantAddress'" :content="items.shopMerchant.address || '-'" />
</div>
<!-- <el-tooltip class="item" effect="dark" placement="top">
<template slot="content"> <template slot="content">
<div class="address-box">{{ items.shopMerchant.address }}</div> <div class="address-box">{{ items.shopMerchant.address }}</div>
</template> </template>
<div class="type-val">{{ items.shopMerchant.address }}</div> <div class="type-val">{{ items.shopMerchant.address }}</div>
</el-tooltip> </el-tooltip> -->
</div> </div>
<div class="type1"> <div class="type1">
<div class="type-name">创建时间:</div> <div class="type-name">创建时间:</div>
...@@ -192,7 +200,10 @@ ...@@ -192,7 +200,10 @@
<div class="type1"> <div class="type1">
<div class="type-name">园区店名称:</div> <div class="type-name">园区店名称:</div>
<!-- items.yqMerchant.merchantName --> <!-- items.yqMerchant.merchantName -->
<div class="type-val">{{ $$(items.yqMerchant, 'merchantName') }}</div> <div class="type-val">
<!-- {{ $$(items.yqMerchant, 'merchantName') }} -->
<text-popover :refName="'yqMerchantName'" :content="$$(items.yqMerchant, 'merchantName') || '-'" />
</div>
</div> </div>
<div class="type1"> <div class="type1">
<div class="type-name">联系人:</div> <div class="type-name">联系人:</div>
...@@ -208,12 +219,15 @@ ...@@ -208,12 +219,15 @@
<div class="type-name">地址:</div> <div class="type-name">地址:</div>
<!-- items.yqMerchant.address --> <!-- items.yqMerchant.address -->
<!-- <div class="type-val">{{ $$(items.yqMerchant, 'address') }}</div> --> <!-- <div class="type-val">{{ $$(items.yqMerchant, 'address') }}</div> -->
<el-tooltip class="item" effect="dark" placement="top"> <!-- <el-tooltip class="item" effect="dark" placement="top">
<template slot="content"> <template slot="content">
<div class="address-box">{{ $$(items.yqMerchant, 'address') }}</div> <div class="address-box">{{ $$(items.yqMerchant, 'address') }}</div>
</template> </template>
<div class="type-val">{{ $$(items.yqMerchant, 'address') }}</div> <div class="type-val">{{ $$(items.yqMerchant, 'address') }}</div>
</el-tooltip> </el-tooltip> -->
<div class="type-val">
<text-popover :refName="'yqMerchantAddress'" :content="$$(items.yqMerchant, 'address') || '-'" />
</div>
</div> </div>
<div class="type1"> <div class="type1">
<div class="type-name">创建时间:</div> <div class="type-name">创建时间:</div>
...@@ -380,6 +394,7 @@ ...@@ -380,6 +394,7 @@
import dayjs from "dayjs" import dayjs from "dayjs"
import { entrydateUpdate } from '@api/merchant' import { entrydateUpdate } from '@api/merchant'
import { goodsSourceList } from "@/common/constant/merchant" import { goodsSourceList } from "@/common/constant/merchant"
import textPopover from './textPopover.vue'
export default { export default {
name: 'LedgerAccount', name: 'LedgerAccount',
props: { props: {
...@@ -608,7 +623,9 @@ export default { ...@@ -608,7 +623,9 @@ export default {
return res return res
} }
}, },
components: {}, components: {
textPopover
},
computed: {} computed: {}
} }
......
...@@ -299,12 +299,20 @@ $color: #2a58ad; ...@@ -299,12 +299,20 @@ $color: #2a58ad;
.type-name { .type-name {
text-align: right; text-align: right;
width: 90px; width: 90px;
flex-shrink: 0;
} }
.type-val { .type-val {
flex: 1; // flex: 1;
display: flex; // display: flex;
// color: #1d1d1d;
flex-shrink: 0;
color: #1d1d1d; color: #1d1d1d;
display: inline-block !important;
width: calc(100% - 90px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
.type-color { .type-color {
......
...@@ -629,12 +629,20 @@ $color: #2a58ad; ...@@ -629,12 +629,20 @@ $color: #2a58ad;
.type-name { .type-name {
text-align: right; text-align: right;
width: 90px; width: 90px;
flex-shrink: 0;
} }
.type-val { .type-val {
flex: 1; // flex: 1;
display: flex; // display: flex;
// color: #1d1d1d;
color: #1d1d1d; color: #1d1d1d;
flex-shrink: 0;
display: inline-block !important;
width: calc(100% - 90px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
.type-color { .type-color {
......
...@@ -7,14 +7,16 @@ ...@@ -7,14 +7,16 @@
<span>类型:{{ ruleReviewType[merchantRow.ruleType] }}</span> <span>类型:{{ ruleReviewType[merchantRow.ruleType] }}</span>
<span>生效时间:{{ merchantRow.effectStartDateShow }}</span> <span>生效时间:{{ merchantRow.effectStartDateShow }}</span>
</div> </div>
<div class="tips">说明:红色内容为本次规则的新增或修改部分</div>
<div class="merchant-info"> <div class="merchant-info">
<!-- 分账 --> <!-- 分账 -->
<ledgerAccount v-if="merchantRow.ruleType == 1" <ledgerAccount v-if="merchantRow.ruleType == 1"
:items="checkDetailItem" /> :items="checkDetailItem" :effectDateType="effectDateType" />
<!-- 对账 --> <!-- 对账 -->
<reconciliation v-if="merchantRow.ruleType == 3" <reconciliation v-if="merchantRow.ruleType == 3"
:form-item="checkRecordList" :form-item="checkRecordList"
:items="checkRecordList.goodsTypeGroupReconciliationRules || []" /> :items="checkRecordList.goodsTypeGroupReconciliationRuleCTs || []"
:effectDateType="effectDateType"/>
</div> </div>
<div class="btns"> <div class="btns">
<el-button @click="handleConfirm" <el-button @click="handleConfirm"
...@@ -30,8 +32,8 @@ ...@@ -30,8 +32,8 @@
</template> </template>
<script> <script>
import ledgerAccount from '../merchant/merchantStep/components/ledgerAccount.vue' import ledgerAccount from './components/ledgerAccount.vue'
import reconciliation from '../merchant/merchantStep/components/reconciliation.vue' import reconciliation from './components/reconciliation.vue'
import { ruleAuditDetail, ruleAuditPass } from '@api/ruleReview' import { ruleAuditDetail, ruleAuditPass } from '@api/ruleReview'
import { sceneList, ruleReview_type_show } from '@/common/constants.js' import { sceneList, ruleReview_type_show } from '@/common/constants.js'
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
...@@ -47,7 +49,8 @@ export default { ...@@ -47,7 +49,8 @@ export default {
// 对账数据 // 对账数据
checkRecordList: {}, checkRecordList: {},
sceneList: deepClone(sceneList), sceneList: deepClone(sceneList),
ruleReviewType: deepClone(ruleReview_type_show) ruleReviewType: deepClone(ruleReview_type_show),
effectDateType: 0
} }
}, },
created() { created() {
...@@ -68,6 +71,7 @@ export default { ...@@ -68,6 +71,7 @@ export default {
console.log('res: ', res) console.log('res: ', res)
this.checkDetailItem = res.merchantSettleDistributeRule this.checkDetailItem = res.merchantSettleDistributeRule
this.checkRecordList = res.merchantReconciliationRule this.checkRecordList = res.merchantReconciliationRule
this.effectDateType = res.effectDateType // 是否有生效中的规则
}, },
getRowItem() { getRowItem() {
const params = this.$route.query?.params const params = this.$route.query?.params
...@@ -122,6 +126,11 @@ $color: #2a58ad; ...@@ -122,6 +126,11 @@ $color: #2a58ad;
.title { .title {
} }
.tips{
margin: 15px 0;
color: #F56C6C;
}
.merchant-title { .merchant-title {
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;
...@@ -362,4 +371,7 @@ $color: #2a58ad; ...@@ -362,4 +371,7 @@ $color: #2a58ad;
align-items: center; align-items: center;
} }
} }
.isRed{
color: #F56C6C !important;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!