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) {
// 分页查找园区店
export function commodityAddSeviceMerchant(data) {
data.method = `${path}servicemerchantref.page`
// data.method = `${path}servicemerchantref.page`
data.method = `${path}servicemerchantref.pageRef`
return request(data)
}
......
......@@ -38,3 +38,27 @@ export function staffMerchantUnbind(data) {
data.method = `${path}staff.merchant.unbind`
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)
}
......@@ -334,4 +334,8 @@ $prefix: d2;
right: -55px;
bottom: 0;
}
}
.remark-popper-class{
width: 50%;
}
\ No newline at end of file
......@@ -138,7 +138,7 @@ export const routerName = {
]
}
],
component: _import("systemConfig/inStoreManage/index")
component: _import("systemConfig/inStoreManage/inStoreControlList")
},
912050501: {
path: "/editStaff",
......
......@@ -193,11 +193,12 @@ export default {
},
mounted() {
if (this.scene == '0' || this.scene == '2' || this.scene == '3' || this.scene == '4') {
/** 1.0场景和1.3场景隐藏园区店对账单入口 */
console.log(this.scene)
if (this.scene == '2' || this.scene == '3' || this.scene == '4') {
/** 新改逻辑:园区店选项只对精品升级/会员权益可见 */
this.yqCheckVisible = false
}
this.selectMerchant()
// this.selectMerchant()
},
methods: {
......
......@@ -85,6 +85,9 @@
v-if="editRemarkFlag"
@click="editRemark">修改</el-button>
</el-form-item>
<el-form-item label="撤销原因:" v-if="detail.revokeReason">
{{ detail.revokeReason }}
</el-form-item>
<el-form-item label="战败原因:"
v-if="detail.status == 2">
{{ $$(detail, 'customer', 'refusalReason') }}
......
......@@ -46,7 +46,9 @@ export default {
label: '备注',
name: 'remark',
type: 'input',
maxlength: '20'
inputType: 'textarea',
maxlength: '200',
showLimit: true
}],
baseData: {
shippingEntityList: []
......@@ -160,9 +162,19 @@ export default {
font-size: 12px;
color: #999999;
}
.tips {
color: #999999;
}
}
.edit-form-container{
::v-deep .el-textarea {
width: 432px!important;
.el-textarea__inner{
height: 70px!important;
font-family: auto;
}
}
}
</style>
......@@ -56,7 +56,13 @@
</span>
<span class="span-txt-two">审核人:{{ item.reviewedBy }}</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>
</div>
<!-- <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 @@
</div>
<div class="type1">
<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 class="type1">
<div class="type-name">联系人:</div>
<div class="type-val">{{ items.shopMerchant.contactName }}</div>
<div class="type-val">
{{ items.shopMerchant.contactName }}
</div>
</div>
<div class="type1">
<div class="type-name">联系电话:</div>
......@@ -86,12 +91,15 @@
</div>
<div class="type1 type2">
<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">
<div class="address-box">{{ items.shopMerchant.address }}</div>
</template>
<div class="type-val">{{ items.shopMerchant.address }}</div>
</el-tooltip>
</el-tooltip> -->
</div>
<div class="type1">
<div class="type-name">创建时间:</div>
......@@ -192,7 +200,10 @@
<div class="type1">
<div class="type-name">园区店名称:</div>
<!-- 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 class="type1">
<div class="type-name">联系人:</div>
......@@ -208,12 +219,15 @@
<div class="type-name">地址:</div>
<!-- items.yqMerchant.address -->
<!-- <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">
<div class="address-box">{{ $$(items.yqMerchant, 'address') }}</div>
</template>
<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 class="type1">
<div class="type-name">创建时间:</div>
......@@ -380,6 +394,7 @@
import dayjs from "dayjs"
import { entrydateUpdate } from '@api/merchant'
import { goodsSourceList } from "@/common/constant/merchant"
import textPopover from './textPopover.vue'
export default {
name: 'LedgerAccount',
props: {
......@@ -608,7 +623,9 @@ export default {
return res
}
},
components: {},
components: {
textPopover
},
computed: {}
}
......
......@@ -299,12 +299,20 @@ $color: #2a58ad;
.type-name {
text-align: right;
width: 90px;
flex-shrink: 0;
}
.type-val {
flex: 1;
display: flex;
// flex: 1;
// display: flex;
// color: #1d1d1d;
flex-shrink: 0;
color: #1d1d1d;
display: inline-block !important;
width: calc(100% - 90px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.type-color {
......
......@@ -629,12 +629,20 @@ $color: #2a58ad;
.type-name {
text-align: right;
width: 90px;
flex-shrink: 0;
}
.type-val {
flex: 1;
display: flex;
// flex: 1;
// display: flex;
// 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 {
......
......@@ -7,14 +7,16 @@
<span>类型:{{ ruleReviewType[merchantRow.ruleType] }}</span>
<span>生效时间:{{ merchantRow.effectStartDateShow }}</span>
</div>
<div class="tips">说明:红色内容为本次规则的新增或修改部分</div>
<div class="merchant-info">
<!-- 分账 -->
<ledgerAccount v-if="merchantRow.ruleType == 1"
:items="checkDetailItem" />
:items="checkDetailItem" :effectDateType="effectDateType" />
<!-- 对账 -->
<reconciliation v-if="merchantRow.ruleType == 3"
:form-item="checkRecordList"
:items="checkRecordList.goodsTypeGroupReconciliationRules || []" />
:items="checkRecordList.goodsTypeGroupReconciliationRuleCTs || []"
:effectDateType="effectDateType"/>
</div>
<div class="btns">
<el-button @click="handleConfirm"
......@@ -30,8 +32,8 @@
</template>
<script>
import ledgerAccount from '../merchant/merchantStep/components/ledgerAccount.vue'
import reconciliation from '../merchant/merchantStep/components/reconciliation.vue'
import ledgerAccount from './components/ledgerAccount.vue'
import reconciliation from './components/reconciliation.vue'
import { ruleAuditDetail, ruleAuditPass } from '@api/ruleReview'
import { sceneList, ruleReview_type_show } from '@/common/constants.js'
import { Util, deepClone } from '@/common/util'
......@@ -47,7 +49,8 @@ export default {
// 对账数据
checkRecordList: {},
sceneList: deepClone(sceneList),
ruleReviewType: deepClone(ruleReview_type_show)
ruleReviewType: deepClone(ruleReview_type_show),
effectDateType: 0
}
},
created() {
......@@ -68,6 +71,7 @@ export default {
console.log('res: ', res)
this.checkDetailItem = res.merchantSettleDistributeRule
this.checkRecordList = res.merchantReconciliationRule
this.effectDateType = res.effectDateType // 是否有生效中的规则
},
getRowItem() {
const params = this.$route.query?.params
......@@ -122,6 +126,11 @@ $color: #2a58ad;
.title {
}
.tips{
margin: 15px 0;
color: #F56C6C;
}
.merchant-title {
font-weight: 500;
font-size: 16px;
......@@ -362,4 +371,7 @@ $color: #2a58ad;
align-items: center;
}
}
.isRed{
color: #F56C6C !important;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!