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)
}
...@@ -334,4 +334,8 @@ $prefix: d2; ...@@ -334,4 +334,8 @@ $prefix: d2;
right: -55px; right: -55px;
bottom: 0; bottom: 0;
} }
}
.remark-popper-class{
width: 50%;
} }
\ No newline at end of file \ No newline at end of file
...@@ -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: {
......
...@@ -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: []
...@@ -160,9 +162,19 @@ export default { ...@@ -160,9 +162,19 @@ export default {
font-size: 12px; font-size: 12px;
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!