Commit 731b89b9 by 胡悦

Merge branch 'v2.7.0' into huy_dev_v2.7.0

2 parents 4654a14e 2c45eae6
......@@ -230,7 +230,6 @@ function setMinHeight(calssName = '.edit-container') {
let height = document.querySelector('.header-wrap').clientHeight + 110 + 'px'
let minHeight = 'calc(100vh - ' + height + ')'
document.querySelector(calssName).style.minHeight = minHeight
console.log(minHeight)
}
export { limitPrice, getExplorer, exportFn, aToExport, downloadIamge, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, setMinHeight }
......@@ -32,7 +32,7 @@
<!-- radio -->
<div v-else-if="item.type === 'radio'">
<el-radio-group v-model="formObj[item.name]" v-bind="item.attrs ? item.attrs : {}" v-on="item.listeners ? item.listeners : {}" :disabled="item.isDisabled" @change="item.handleRadioChange">
<el-radio v-for="subItem in item.optionList" :key="subItem[item.optionId]" :disabled="subItem.isDisabled" :label="subItem[item.optionId]">{{ subItem[item.optionLabel] }}</el-radio>
<el-radio v-for="subItem in item.optionList" :key="subItem[item.optionId]" :disabled="subItem.isDisabled" :label="subItem[item.optionId]">{{ subItem[item.optionLabel] }} <slot :name="subItem.suffixSonSlot" :scope="subItem"></slot></el-radio>
</el-radio-group>
<slot :name="item.suffixSlot" :scope="item"></slot>
</div>
......
......@@ -121,12 +121,12 @@ export default {
})
},
handleChange(selection, row) {
var addOrDelete = !!selection.find(item => item.merchantNo === row.merchantNo)
var addOrDelete = !!selection.find(item => +item.merchantNo === +row.merchantNo)
addOrDelete ? this.selectedData.push(row) : (this.selectedData = this.selectedData.filter(item => item.merchantNo !== row.merchantNo))
},
handleAll(selection) {
this.selectingData.forEach(item => {
var isExit = this.selectedData.findIndex(subItem => subItem.merchantNo === item.merchantNo)
let isExit = this.selectedData.findIndex(subItem => +subItem.merchantNo === +item.merchantNo)
var isServed = item.hasOwnProperty('beServed') ? item.beServed : false
if (selection.length && isExit === -1 && !isServed) {
this.selectedData.push(item)
......@@ -136,7 +136,7 @@ export default {
})
},
handleDelete(row) {
this.selectedData = this.selectedData.filter(item => item.merchantNo !== row.merchantNo)
this.selectedData = this.selectedData.filter(item => +item.merchantNo !== +row.merchantNo)
this.recoverySelection()
},
handleCurrentChange(val) {
......
<!-- 礼包详情 -->
<template>
<div class="edit-gift marketing edit-box">
<div class="edit-gift detail-page marketing edit-box">
<!-- <div class="container approval-container">
<p class="edit-title">审批信息</p>
<div class="approval-info">
......@@ -41,16 +41,11 @@
<div slot="approveFlagBlock">
{{ editForm.approveFlag == 1 ? '赠送前需审批' : '无需审批' }}
</div>
<div slot="receiveDetails">
<span v-if="editForm.receiveRule != 1">{{ editForm.receiveRule == 2 ? '员工赠送时指定' : '直接领取' }}</span>
<div slot="receiveDetails" :class="editForm.receiveRule == 4 ? 'user' : ''">
<span v-if="editForm.receiveRule == 2 && editForm.receiveWay && editForm.receiveDetails">{{ `${editForm.receiveWay == '1' ? '手机号:' : '车架号后6位:'}${editForm.receiveDetails}` }}</span>
<span v-if="editForm.receiveRule == 1">{{ editForm.receiveWay == '1' ? '指定手机号' : '指定车架号后6位' }}:</span>
<div v-if="editForm.receiveRule == 1" class="phone-wrap">
<span :class="['phone', editForm.receiveWay == 1 ? 'realTel' : 'realNum']" v-for="(item, id) in receiveDetailList" :key="id">{{ item }}</span>
</div>
</div>
<div slot="phones">
<div v-if="receiveDetailList" class="phone-wrap">
<span v-if="editForm.receiveRule == 4"><span style="color: #f56c6c;margin-right: 4px;">*</span>用户手机号:</span>
<div v-if="editForm.receiveRule == 1 || editForm.receiveRule == 4" class="phone-wrap">
<span :class="['phone', editForm.receiveWay == 1 ? 'realTel' : 'realNum']" v-for="(item, id) in receiveDetailList" :key="id">{{ item }}</span>
</div>
</div>
......@@ -109,7 +104,8 @@ export default {
staffList: [],
// 优惠券类型(discountType) 1:满减券,2:折扣券,3:代金券,4:兑换券,5:购车代金券,6:商品折扣券,7:会员服务
// 优惠券状态(status):1:未生效,2:生效中,3:已失效
couponList: []
couponList: [],
receiveRule: 1
},
totalEstimatedCost: '',
orderShow: ['service', 'cash', 'discount', 'exchange'],
......@@ -153,7 +149,7 @@ export default {
staffList: [{ required: true, message: '请选择发放员工', trigger: 'change' }],
approveFlag: [{ required: true, message: '请选择审批要求', trigger: 'change' }],
stock: [{ required: true, message: '请选择库存数量', trigger: 'change' }],
phones: [{ required: true, message: '请选择用户手机号', trigger: 'change' }]
receiveRule: [{ required: true, message: '请选择领取规则设置', trigger: 'change' }],
},
isEdit: true,
editFormData: [
......@@ -184,11 +180,39 @@ export default {
addHtml: 'approveFlagBlock',
isHide: false
},
{
label: '领取规则设置',
name: 'receiveRule',
type: 'radio',
optionId: 'confId',
optionLabel: 'confName',
isDisabled: true,
optionList: [
{
confId: 1,
confName: '创建时指定',
suffixSonSlot: 'bubble'
},
{
confId: 2,
confName: '员工赠送时指定',
suffixSonSlot: 'giveAway'
},
{
confId: 3,
confName: '直接领取',
suffixSonSlot: 'receives'
},
{
confId: 4,
confName: '直接发送到小程序卡包',
suffixSonSlot: 'cardHolder'
}
]},
{
label: '领取规则',
label: '',
name: 'receiveWay',
addHtml: 'receiveDetails',
isHide: false
addHtml: 'receiveDetails'
},
{
label: '发放员工',
......@@ -196,12 +220,6 @@ export default {
addHtml: 'staffListBlock'
},
{
label: '用户手机号',
name: 'phones',
addHtml: 'phones',
isHide: true
},
{
label: '赠送原因',
name: 'giveReason',
type: 'showTxt'
......@@ -229,15 +247,15 @@ export default {
res.data.createdDate = dayjs(res.data.createdDate).format('YYYY-MM-DD HH:mm:ss')
res.data.updatedDate = dayjs(res.data.updatedDate).format('YYYY-MM-DD HH:mm:ss')
this.editForm = res.data
if(res?.data?.grantType==2){
if(res?.data?.receiveRule == 4){
let target = this.editFormData.find(item => item.name == 'stock')
let targets = this.editFormData.find(item => item.name == 'approveFlag')
let targetss = this.editFormData.find(item => item.name == 'receiveWay')
let targetsss = this.editFormData.find(item => item.name == 'phones')
target.isHide = true
targets.isHide = true
targetss.isHide = true
targetsss.isHide = false
}
if(res?.data?.receiveRule == 1){
let targetss = this.editFormData.find(item => item.name == 'receiveWay')
targetss.label = '领取条件'
}
let arr = []
res.data.receiveDetails && (arr = res.data.receiveDetails.split(','))
......@@ -300,6 +318,23 @@ export default {
border-radius: 4px;
border: 1px solid #e5e5e5;
}
.detail-page {
#receiveRule{
.el-radio-group{
.is-checked {
.el-radio__input.is-checked .el-radio__inner{
border-color:#5850ff;
&::after{
background-color: #5850ff;
}
}
}
.el-radio__label{
color: #333333!important;
}
}
}
}
.marketing.edit-gift {
// 礼包
.gift-block {
......@@ -475,4 +510,7 @@ export default {
}
}
}
.user {
margin-left: 144px;
}
</style>
......@@ -40,7 +40,7 @@
</GLTable>
<!-- 表格区域 end -->
</div>
<glsx-dialog class="qr-dialog" width="720px" title="生成二维码" btnOkLabel="下载" :isVisible.sync="isQrcodeVisible" @confirmDialog="handleCancelConfirm" @closeDialog="handleCancelClose">
<GLDialog class="qr-dialog" title="生成二维码" mode="mid" okText="下载" :visible.sync="isQrcodeVisible" @onOk="handleCancelConfirm" @onCancel="handleCancelClose">
<div class="qrcode-body">
<p>可生成对应发放员工的小程序领取二维码</p>
<el-select filterable v-model="curStaffId" @change="changeStaff" placeholder="请选择发放员工">
......@@ -50,7 +50,7 @@
<el-image :src="curQrcode" alt=""></el-image>
</div>
</div>
</glsx-dialog>
</GLDialog>
</div>
</template>
......@@ -58,12 +58,8 @@
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import { aToExport, downloadIamge } from '@/common/constant'
import glsxDialog from '@/components/glsx-dialog'
export default {
name: 'giftList',
components: {
glsxDialog
},
data() {
return {
isQrcodeVisible: false,
......@@ -138,7 +134,7 @@ export default {
name: 'name',
type: 'input',
maxlength: 30,
placeholder: '请输入礼包名称或备注名称',
placeholder: '请输入礼包/备注名称',
isClear: true
},
{
......@@ -512,7 +508,7 @@ export default {
.qr-dialog {
/deep/.el-dialog__body {
padding: 20px;
// padding: 20px;
.el-scrollbar__wrap {
overflow: hidden;
}
......
......@@ -123,7 +123,7 @@ export default {
label: '礼包名称',
name: 'giftName',
type: 'input',
placeholder: '请输入礼包名称或备注名称'
placeholder: '请输入礼包/备注名称'
},
{
label: '是否为企微客户',
......@@ -510,11 +510,14 @@ export default {
</script>
<style lang="scss" scoped>
.table-header {
::v-deep .table-header {
display: inline-flex !important;
align-items: center;
justify-content: center;
padding: 0 !important;
.el-button {
min-width: 0;
}
}
.marketing /deep/ .el-table th div {
line-height: normal !important;
......
......@@ -136,10 +136,6 @@
<el-checkbox v-for="(item, index) in baseData.clueList" :label="item.confId" :key="index">{{ item.confName }}</el-checkbox>
</el-checkbox-group>
</div>
<!-- <template slot="customerServerSuffix" slot-scope="scope">
<el-button v-show="!scope.scope.optionList.length" type="text"></el-button>
<p style="color: #5850ff" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
</template> -->
<!-- <div slot="serviceTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable>
</div> -->
......@@ -222,22 +218,6 @@
</el-form>
</el-row>
</relate-store-dialog>
<!-- 公告管理配置门店 -->
<!-- <relate-store-dialog v-if="relateStoreVisibles" ref="relateStores" :relateStoreVisible="relateStoreVisibles" :storeApi="storeApi" :storeSearchForm="storeSearchForms" :storeSelected="selectedLists" @handleRelateStoreConfirm="handleRelateStoreConfirms" @handleRelateStoreClose="handleRelateStoreCloses">
<el-row slot>
<el-form :model="storeSearchForms" ref="relate" :inline="true" label-width="90px">
<el-form-item label="商户ID:" prop="merchantId">
<el-input :size="size" v-model.trim="storeSearchForms.merchantId" placeholder="请输入商户ID" clearable></el-input>
</el-form-item>
<el-form-item label="门店名称:" prop="merchantName">
<el-input :size="size" v-model.trim="storeSearchForms.merchantName" placeholder="请输入门店名称" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button :size="size" type="primary" @click="handleSearchStores">搜索</el-button>
</el-form-item>
</el-form>
</el-row>
</relate-store-dialog> -->
</div>
</template>
......@@ -287,12 +267,7 @@ export default {
merchantId: '',
merchantName: ''
},
storeSearchForms: {
merchantId: '',
merchantName: ''
},
selectedList: [],
selectedLists: [],
// 门店表格
tableParams: {
tableOption: true,
......@@ -438,42 +413,6 @@ export default {
name: '',
addHtml: 'customerServerUserId'
}
// {
// label: '在线客服',
// name: 'customerServerUserId',
// type: 'select',
// optionList: [],
// optionId: 'userOneid',
// optionLabel: 'staffName',
// optionsName: 'consultantList',
// suffixSlot: 'customerServerSuffix',
// isClear: true,
// changeAttr: (value, targetItem) => {
// var tempObj = {
// customerServerName: '',
// customerServerUserTitle: ''
// }
// this.customerServerList = []
// this.editForm.customerServerId = ''
// this.editForm.customerServerName = ''
// this.editForm.customerServerUserTitle = ''
// if (value) {
// tempObj = this.baseData.consultantList.find(item => item.userOneid == value)
// this.editForm.customerServerId = tempObj.id
// this.editForm.customerServerName = tempObj.staffName
// this.editForm.customerServerUserTitle = tempObj.staffTitle
// this.customerServerList.push({
// customerServerName: tempObj.staffName,
// customerServerUserTitle: tempObj.staffTitle
// })
// }
// }
// }
// {
// label: '',
// addHtml: 'serviceTable'
// }
]
}
],
......@@ -601,7 +540,6 @@ export default {
},
// 选择门店
handleRelateStoreClose(v) {
console.log('v',v);
this.state = v
if(v == 'banner') {
this.selectedList = this.$common.utils.deepClone(this.editForm.bannerMerchantList)
......@@ -610,11 +548,8 @@ export default {
}
this.relateStoreVisible = !this.relateStoreVisible
},
// handleRelateStoreCloses() {
// this.selectedLists = this.$common.utils.deepClone(this.editForm.noticeMerchantList)
// this.relateStoreVisibles = !this.relateStoreVisibles
// },
handleRelateStoreConfirm(selectedData) {
console.log('selectedData',selectedData);
if(this.state == 'banner') {
this.editForm.bannerMerchantList = selectedData
} else if(this.state == 'notice') {
......@@ -623,22 +558,14 @@ export default {
this.selectedList = selectedData
this.handleRelateStoreClose(this.state)
},
// handleRelateStoreConfirms(selectedData) {
// this.editForm.noticeMerchantList = selectedData
// this.selectedLists = selectedData
// this.handleRelateStoreCloses()
// },
handleSearchStore() {
this.$refs.relateStore.handleCurrentChange(1)
},
// handleSearchStores() {
// this.$refs.relateStores.handleCurrentChange(1)
// },
handleMerchantDelete(obj) {
this.$messageBox.confirm('是否删除该门店?', '删除', {
confirmButtonText: '确定',
cancelButtonText: '取消',
// type: 'error',
type: 'warning',
callback: action => {
if (action == 'confirm') {
var idx = this.editForm.bannerMerchantList.findIndex(item => item.merchantNo == obj.scope.merchantNo)
......@@ -651,7 +578,7 @@ export default {
this.$messageBox.confirm('是否删除该门店?', '删除', {
confirmButtonText: '确定',
cancelButtonText: '取消',
// type: 'error',
type: 'warning',
callback: action => {
if (action == 'confirm') {
var idx = this.editForm.noticeMerchantList.findIndex(item => item.merchantNo == obj.scope.merchantNo)
......
<template>
<div class="introduct">
<el-dialog title="功能介绍" :visible.sync="introductionDialog" width="1080px" :before-close="handleClose">
<GLDialog bigTitle="功能介绍" mode="big" :visible.sync="introductionDialog" :before-close="handleClose" :hasFooter="false">
<p class="note">营销素材——将业务资料、经典案例、活动等以图文、PDF形式上传在营销素材中,企业成员可在企业微信聊天侧边栏或者嘀加企微管家工作台中一键发给客户。发送给客户的营销素材支持雷达追踪,将客户阅读行为记录到客户动态中,同时给客户打上指定标签并通知其对应的跟进员工。</p>
<h3>我的优势</h3>
<p class="list">1、门店可以为不同的业务部门提供不同的营销素材,规范营销内容;</p>
......@@ -9,10 +9,7 @@
<div class="img_div">
<img src="@/assets/material/introduction.png" alt="">
</div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="handleClose" class="btn-close">关闭</el-button>
</span>
</el-dialog>
</GLDialog>
</div>
</template>
......
<template>
<div class="tag-main">
<el-dialog title="选择标签" :visible.sync="dialogVisible" width="50%" :before-close="handleClose">
<GLDialog bigTitle="选择标签" mode="big" :visible.sync="dialogVisible" :before-close="handleClose">
<div class="tag-panel">
<div class="tag-panel-select">
<div class="tag-title">预选标签</div>
......@@ -45,7 +45,7 @@
<el-button size="small" @click="dialogVisible = false">取 消</el-button>
<el-button size="small" type="primary" @click="handleSelect">确 定</el-button>
</span>
</el-dialog>
</GLDialog>
</div>
</template>
......
......@@ -110,7 +110,7 @@
</span>
</GLTable>
</div>
<GLDialog :mode="mode" title="权益详情" :type="'error'" okText="关闭" @onOk="handleClose" @onCancel="handleClose" :visible.sync="isDialogVisible">
<GLDialog :mode="mode" title="权益详情" :hasFooter="hasFooter" :type="'error'" :visible.sync="isDialogVisible">
<div class="modal-body">
<div class="equity-name">汽车权益</div>
<div class="equity-panel">
......@@ -133,7 +133,7 @@
</div>
</GLDialog>
<!-- 推广弹窗 -->
<GLDialog :mode="mode" title="试用推广" :hasFooter="hasFooter" :type="'error'" @onOk="handleQRConfirm" @onCancel="handleQRClose" :visible.sync="isQRVisible">
<GLDialog :mode="mode" title="试用推广" @onOk="handleQRConfirm" @onCancel="handleQRClose" :visible.sync="isQRVisible">
<el-form class="proForm" :model="ruleForm" :rules="rules" ref="ruleForm" label-width="68px">
<div class="form">
<div class="main-qrcode">
......@@ -172,7 +172,7 @@ export default {
data() {
return {
mode: 'mid',
hasFooter: true,
hasFooter: false,
showGh: true,
promotionForm: {
QRurl: '',
......@@ -585,9 +585,6 @@ export default {
width: 53px;
margin: 0 3px;
}
/deep/ .btn-three {
display: none;
}
.lineCtn {
display: flex;
flex-direction: row;
......@@ -773,32 +770,9 @@ export default {
.el-range-editor--small.el-input__inner {
width: 215px;
}
// /deep/ .container .el-input--small .el-input__inner {
// width: 215px;
// }
/deep/ .el-dialog__header .el-dialog__title {
// font-size: 16px;
// color: #000;
// font-weight: 700;
// height: 24px;
// line-height: 24px;
font-size: 20px;
font-weight: 500;
color: #333;
line-height: 28px;
}
// ::v-deep .el-dialog__body {
// border-top: 1px solid #e6e6e6;
// border-bottom: 1px solid #e6e6e6;
// padding: 20px 25px;
// }
/deep/.el-dialog__body {
border-top: 1px solid #e6e6e6;
border-bottom: 1px solid #e6e6e6;
// padding: 20px 45px;
padding: 20px 20px 20px 45px;
.modal-body {
// overflow: auto;
max-height: 400px;
}
.equity-panel {
......@@ -852,10 +826,6 @@ export default {
overflow: hidden;
}
}
/deep/ .el-dialog__footer {
padding: 20px;
text-align: center;
}
.pricesMerge {
display: flex;
......
......@@ -540,8 +540,8 @@ export default {
padding-bottom: 12px;
}
}
::v-deep .el-dialog__footer {
text-align: center;
}
// ::v-deep .el-dialog__footer {
// text-align: center;
// }
}
</style>
......@@ -293,24 +293,6 @@ export default {
.el-range-editor--small.el-input__inner {
width: 215px;
}
/deep/.el-dialog__header {
padding-top: 20px;
padding-bottom: 20px;
}
/deep/ .el-dialog__body {
// border-bottom: 1px solid #e6e6e6;
// border-top: 1px solid #e6e6e6;
padding: 30px 20px;
.content-body {
.el-input--small .el-input__inner {
width: 300px;
}
}
}
/deep/ .el-dialog__footer {
// text-align: center;
padding-top: 12px;
padding-bottom: 12px;
}
</style>
<!-- 订单详情 -->
<template>
<div class="order-detail marketing edit-box">
<div class="container m-b-20">
<p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in detailFormDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label" class="row-item">
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
</el-row>
</el-form>
</div>
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']">
<p class="edit-title">发货信息</p>
<el-form label-width="100px" :inline="true">
<el-form-item label="物流信息">
<span>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{ detailForm.deliveryNumber }}</span>
</el-form-item>
</el-form>
<div v-if="orderGoods.length" class="p-l-40">
<table class="show-table">
<tbody>
<tr v-for="(item, index) in orderGoods" :key="index" style="height: 70px;">
<td><img :src="item.goodsImage" class="img-60" /></td>
<td>{{ item.goodsName }}</td>
<td>{{ item.specificationData }}</td>
<td>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 * {{ item.goodsNumber }}</td>
</tr>
<tr v-if="detailForm.subOrderCoupon" style="height: 40px;">
<td style="text-align: left;" colspan="3">优惠券</td>
<td>{{ detailForm.subOrderCoupon.discountAmount }}元</td>
</tr>
</tbody>
</table>
<div class="order-detail marketing">
<div class="edit-box">
<div class="container m-b-20">
<p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in detailFormDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label" class="row-item">
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
</el-row>
</el-form>
</div>
</div>
<div class="container edit-container" v-if="orderRefund">
<p class="edit-title">售后信息</p>
<el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in afterInfoDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label">
<span class="detail-txt ellipsis-1" :title="orderRefund[subItem.name]">{{ orderRefund[subItem.name] || '-' }}</span>
</el-form-item>
</el-row>
</el-form>
<div class="form-img">
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']">
<p class="edit-title">发货信息</p>
<el-form label-width="100px" :inline="true">
<el-form-item label="售后凭证">
<div class="flex">
<span v-for="(item, index) in orderRefund.imgUrls" :key="index">
<el-image class="img-60 comment-img" :src="item" :preview-src-list="[item]"></el-image>
</span>
</div>
<el-form-item label="物流信息">
<span>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{ detailForm.deliveryNumber }}</span>
</el-form-item>
</el-form>
<div v-if="orderGoods.length" class="p-l-40">
<table class="show-table">
<tbody>
<tr v-for="(item, index) in orderGoods" :key="index" style="height: 70px;">
<td><img :src="item.goodsImage" class="img-60" /></td>
<td>{{ item.goodsName }}</td>
<td>{{ item.specificationData }}</td>
<td>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 * {{ item.goodsNumber }}</td>
</tr>
<tr v-if="detailForm.subOrderCoupon" style="height: 40px;">
<td style="text-align: left;" colspan="3">优惠券</td>
<td>{{ detailForm.subOrderCoupon.discountAmount }}元</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="container edit-container" v-if="orderRefund">
<p class="edit-title">售后信息</p>
<el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in afterInfoDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label">
<span class="detail-txt ellipsis-1" :title="orderRefund[subItem.name]">{{ orderRefund[subItem.name] || '-' }}</span>
</el-form-item>
</el-row>
</el-form>
<div class="form-img">
<el-form label-width="100px" :inline="true">
<el-form-item label="售后凭证">
<div class="flex">
<span v-for="(item, index) in orderRefund.imgUrls" :key="index">
<el-image class="img-60 comment-img" :src="item" :preview-src-list="[item]"></el-image>
</span>
</div>
</el-form-item>
</el-form>
</div>
</div>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="default" @click="handleCancel">返回</el-button>
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button>
</GLFooter>
</div>
</template>
......@@ -71,8 +73,6 @@ export default {
return {
size: 'small',
title: '查看订单',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
routeInfo: {
orderCode: ''
......@@ -201,8 +201,7 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.setMinHeight('.edit-box')
this.routeInfo = this.$route.query
this.getInfo()
},
......
......@@ -210,7 +210,7 @@
<el-button :disabled="isDisabled" v-show="editForm.takeAllMerchant == '0'" type="default" @click="handleRelateStoreClose(scope)">{{ editForm.supplyMerchantList.length ? '更换门店' : '+选择门店' }}</el-button>
</div>
<div slot="merchantTable" class="select-merchant" v-show="editForm.takeAllMerchant == '0'" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} - 10px )` }">
<GLTable v-show="editForm.supplyMerchantList.length" ref="merchantTableRef" :tableParams="tableParams" :tableData="editForm.supplyMerchantList">
<GLTable v-show="editForm.supplyMerchantList.length" ref="merchantTableRef" :tableParams="tableParams" :tableData="editForm.supplyMerchantList" :hasPage="false">
<span slot="auth-button" slot-scope="scope">
<el-button :disabled="isDisabled" type="text" @click="handleMerchantDelete(scope)">删除</el-button>
</span>
......
......@@ -105,14 +105,17 @@
<div slot="activityBigImg" class="edit-tips m-t-8">建议尺寸750*1258</div>
<div slot="activityVideos" class="edit-tips m-t-8">最多上传6个视频</div>
<div slot="posterImg" class="edit-tips m-t-8">建议尺寸640*1008</div>
<div class="form-describe flex-default" slot="formDescribe" v-for="(item, index) in formDescribeList" :key="index">
<el-input class="describe-input" v-model="item.value" placeholder="请输入" maxlength="20">
<el-button v-show="index == formDescribeList.length - 1 && formDescribeList.length < describeNum" slot="suffix" :size="size" type="text" @click="handleDescribeAdd">
<span class="describe-plus">+</span>
</el-button>
</el-input>
<el-button class="describe-delete" v-show="index != formDescribeList.length - 1 || index == describeNum - 1" icon="el-icon-delete" type="text" @click="handleDescribeDelete(index)"></el-button>
<!-- <el-button v-show="index == formDescribeList.length - 1 && formDescribeList.length < describeNum" :size="size" type="default" class="default-blue-btn el-icon-plus" @click="handleDescribeAdd">新增</el-button> -->
<div class="form-describe-box" slot="formDescribe">
<div v-for="(item, index) in formDescribeList" :key="index" class="form-describe flex-default">
<el-input class="describe-input" v-model="item.value" placeholder="请输入" maxlength="20"></el-input>
<p class="describe-delete">
<img v-show="!(index == 0 && formDescribeList.length == 1)" @click="handleDescribeDelete(index)" src="@/assets/icon-delete.png" />
</p>
</div>
<el-button class="describe-btn" v-show="formDescribeList.length < describeNum" :size="size" type="text" @click="handleDescribeAdd">
<img class="icon-add" src="@/assets/seckillActivity/icon-add.png" />
新增表单
</el-button>
</div>
</glsx-combi-form>
</div>
......@@ -1356,20 +1359,40 @@ export default {
padding: 20px 20px 0 20px;
background: #f9f9f9;
}
.edit-activity .form-describe {
width: 560px;
padding: 0 20px 20px;
.edit-activity .form-describe-box {
width: 597px;
background: #f9f9f9;
}
.edit-activity .describe-btn {
color: #5850ff;
cursor: pointer;
padding: 0 0 20px 20px;
}
.edit-activity .form-describe-box .icon-add {
width: 20px;
height: 20px;
vertical-align: middle;
}
.edit-activity .form-describe {
padding: 0 20px 10px;
}
.edit-activity .form-describe:first-child {
padding: 20px;
padding: 20px 20px 10px;
}
.edit-activity .describe-input {
width: 474px;
}
.edit-activity .describe-delete {
line-height: 42px;
}
.edit-activity .describe-delete img {
width: 20px;
height: 20px;
color: #999999;
margin-left: 8px;
padding: 0;
line-height: 32px;
cursor: pointer;
}
.edit-activity .describe-plus {
font-size: 18px;
......
File mode changed
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!