Commit 3dbf2410 by 胡悦
2 parents 6b3fc4d8 58e87c3a
......@@ -21,4 +21,15 @@ const updateHomeApi = params => {
})
}
export default { getHomeInfoListApi, updateHomeApi }
// 在线客服
const getConsultantListApi = params => {
params.method = 'scrm.api.carlife.config.consultant.list'
return http({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
sign: true
})
}
export default { getHomeInfoListApi, updateHomeApi, getConsultantListApi }
\ No newline at end of file
......@@ -8,12 +8,22 @@ html {
background-color: #F4F5FA;
}
.el-range-editor.is-active,
.el-range-editor.is-active:hover {
border-color: #5850ff;
width: 215px;
}
.marketing .container {
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px;
}
.marketing.edit-box .container {
padding: 20px 0 20px;
}
.live-room .container {
background: #FFFFFF;
margin: 20px 0px;
......@@ -21,6 +31,14 @@ html {
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.10);
}
//输入框后置文字(如 “元”)
.suffix-label {
font-size: 14px;
font-weight: 400;
color: #333333;
margin-right: 5px;
}
// 单行省略
.ellipsis-1 {
overflow: hidden;
......@@ -77,7 +95,7 @@ html {
}
.marketing .wechat-container {
width: 375px;
width: 290px;
margin-left: 32px;
background: #ffffff;
position: relative;
......@@ -88,7 +106,7 @@ html {
}
.marketing .wechat-container .wechat-box {
width: 375px;
width: 290px;
border: 1px solid #cecece;
// width: 100%;
border-radius: 2px;
......@@ -102,10 +120,6 @@ html {
margin-top: 20px;
}
.marketing .m-b-20 {
margin-bottom: 20px;
}
.marketing .footer-btns {
float: right;
margin-bottom: 18px;
......@@ -146,19 +160,40 @@ html {
height: 100px;
}
.marketing .img-120 {
width: 120px;
height: 120px;
}
.marketing .m-t-10 {
margin-top: 10px;
}
.marketing .m-b-20 {
margin-bottom: 20px;
}
.marketing .m-t-20 {
margin-top: 20px;
}
.marketing .m-b-60 {
margin-bottom: 60px;
}
.marketing .m-r-20 {
margin-right: 20px;
}
.marketing.p-t-20,
.marketing .p-t-20 {
padding-top: 20px;
}
.marketing .p-l-40 {
padding-left: 40px;
}
.marketing .txt-center {
text-align: center;
}
......@@ -175,6 +210,10 @@ html {
z-index: 999;
}
.marketing .flex-default {
display: flex;
}
.marketing .flex {
display: flex;
justify-content: space-between;
......@@ -186,13 +225,13 @@ html {
.marketing .edit-title {
font-size: 16px;
font-weight: bold;
height: 48px;
line-height: 48px;
// color: #0947C6;
font-weight: 500;
font-family: PingFangSC-Medium, PingFang SC;
height: 28px;
line-height: 28px;
border-bottom: 1px solid #E7EAEC;
// padding-left: 20px;
margin: 0 0;
padding: 0 0 11px 40px;
}
// .marketing .edit-sub-title::before {
......
......@@ -3,7 +3,8 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max
/* eslint-disable */
var reg = {
priceReg: /^\d[\d\.]*$/,
numReg: /^[1-9]\d*$/
numReg: /^[1-9]\d*$/,
zNumReg: /^\d*$/
}
/* eslint-enable */
regRule = regRule || 'priceReg'
......@@ -20,6 +21,9 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max
newValue = pointDigit ? intergerNum + '.' + pointNum : newValue.split('.')[0]
} else {
newValue = newValue.length > intergerDigit ? oldValue.slice(0, intergerDigit) : newValue
if (regRule == 'zNumReg') {
newValue = newValue.split('')[0] == '0' ? '0' : newValue
}
}
return newValue
} else {
......
......@@ -58,8 +58,8 @@
<p class="photo-top-tips">{{ item.topTips }}</p>
<div v-if="!item.isDisabled" :style="{ width: item.width || defaultWidth }">
<div v-if="Array.isArray(formObj[item.name]) ? formObj[item.name].length < item.maxPhotoNum : !formObj[item.name]" class="activity-img img-w-h">
<div class="add">+</div>
<span class="number">{{ formObj[item.name].length }} / {{ item.maxPhotoNum }}</span>
<div class="add" :style="{ top: item.maxPhotoNum == 1 ? '50%' : '40%' }">+</div>
<span v-show="item.maxPhotoNum > 1" class="number">{{ formObj[item.name].length }} / {{ item.maxPhotoNum }}</span>
<input v-if="item.uploadType == 'video'" type="file" style="opacity: 0;" :id="item.name + 'file'" ref="file" class="activity-img img-w-h" accept="video/mp4" @change="e => handleUploadChange(e, item)" />
<input v-else type="file" style="opacity: 0;" :id="item.name + 'file'" ref="file" class="activity-img img-w-h" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleUploadChange(e, item)" />
</div>
......@@ -322,7 +322,8 @@ export default {
.glsx-combi-form .activity-img {
position: relative;
color: #999999;
border: 1px dashed #d9d9d9;
background-color: #F7F7F7;
border: 1px solid #d9d9d9;
cursor: pointer;
}
......
......@@ -2,8 +2,7 @@
<template>
<div>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :modal-append-to-body="false" :width="width">
<div :style="{height:height,overflow:'auto'}">
<el-scrollbar v-if="hasScroll">
<el-scrollbar v-if="hasScroll">
<span slot="title">
<span class="main-title">{{ title }}</span>
<span class="dialog-sub-title">
......@@ -21,7 +20,6 @@
</span>
<slot></slot>
</template>
</div>
<div slot="footer">
<slot name="btn-start"></slot>
......@@ -96,11 +94,7 @@ export default {
btnSize: {
type: String,
default: 'mini'
},
height: {
type: String,
default: ''
},
}
},
methods: {
......
......@@ -7,25 +7,13 @@
<el-table ref="seletingTable" :data="selectingData" height="464px" class="table" border @select="handleChange" @select-all="handleAll">
<el-table-column type="selection" width="55" align="center" :selectable="selectable"></el-table-column>
<el-table-column prop="merchantName" label="商户名称" align="center">
<!-- <template slot-scope="scope">
<span :class="{ red: !scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage) }">{{ scope.row.yqMerchantName }}</span>
</template> -->
</el-table-column>
<!-- <el-table-column prop="merchantName" label="4S店名称" align="center">
<template slot-scope="scope">
<span :class="{ red: !scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage) }">{{ scope.row.merchantName }}</span>
<el-tooltip v-if="!scope.row.isSetUpgradeSettleRule" popper-class="tooltip-class" effect="dark" content="该门店无配置财务分润规则,无法关联!" placement="top">
<span v-if="!scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage)" class="tip-icon">?</span>
</el-tooltip>
</template>
</el-table-column> -->
</el-table>
<el-pagination small background @current-change="handleCurrentChange" :current-page.sync="pageNum" :page-size="pageSize" layout="total, prev, pager, next" :total="total"></el-pagination>
</el-col>
<el-col :span="12">
<el-table :data="selectedData" class="table" border height="464px">
<el-table-column prop="merchantName" label="商户名称" align="center"></el-table-column>
<!-- <el-table-column prop="merchantName" label="4S店名称" align="center"></el-table-column> -->
<el-table-column label="删除" align="center" width="50">
<template slot-scope="scope">
<el-button style="padding: 0;" class="el-icon-delete" @click="handleDelete(scope.row)" type="text"></el-button>
......@@ -88,22 +76,24 @@ export default {
mounted() {
this.selectedData = this.storeSelected
this.selectedData.forEach(item => {
item.merchantNo = item.merchantId ? (item.merchantId + '') : item.merchantNo
})
this.getSelectingList()
},
methods: {
selectable(row, index) {
var isSelect = row.hasOwnProperty('beServed') ? !row.beServed : true
// if (this.sourcePage === 'editProduct') {
// isSelect = row.isSetUpgradeSettleRule
// }
return isSelect
},
recoverySelection() {
var exitIds = this.selectedData.map(item => item.merchantNo + '')
this.selectingData.forEach(item => {
if (exitIds.includes(item.merchantNo)) {
if (exitIds.includes(item.merchantNo + '')) {
this.$refs.seletingTable.toggleRowSelection(item, true)
} else {
this.$refs.seletingTable.toggleRowSelection(item, false)
}
})
},
......@@ -138,7 +128,7 @@ export default {
},
handleDelete(row) {
this.selectedData = this.selectedData.filter(item => item.merchantNo !== row.merchantNo)
this.$refs.seletingTable.toggleRowSelection(row)
this.recoverySelection()
},
handleCurrentChange(val) {
this.pageNum = val
......
<!-- 选择商品弹窗 -->
<template>
<glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" :height="height" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose">
<el-form :inline="true" :model="searchProForm">
<el-form-item label="商品名称:">
<el-input :size="size" v-model="searchProForm.name" placeholder="请输入商品名称" maxlength="20" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button :size="size" type="primary" @click="handleConfigSearch">查询</el-button>
<el-button :size="size" @click="handleConfigReset">重置</el-button>
</el-form-item>
</el-form>
<GLTable ref="mutiProRef" :tableData="productList" :hasPage="false" :tableParams="tableParams" @refreshTable="getList">
<span slot="goodsImage" slot-scope="scope">
<img class="m-t-10 img-60" :src="scope.scope.goodsImage" />
</span>
</GLTable>
<div style="max-height:60vh">
<el-form :inline="true" :model="searchProForm">
<el-form-item label="商品名称:">
<el-input :size="size" v-model="searchProForm.name" placeholder="请输入商品名称" maxlength="20" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button :size="size" type="primary" @click="handleConfigSearch">查询</el-button>
<el-button :size="size" @click="handleConfigReset">重置</el-button>
</el-form-item>
</el-form>
<GLTable ref="mutiProRef" :tableData="productList" :hasPage="false" :tableParams="tableParams" @refreshTable="getList">
<span slot="goodsImage" slot-scope="scope">
<img class="m-t-10 img-60" :src="scope.scope.goodsImage" />
</span>
</GLTable>
</div>
</glsx-dialog>
</template>
......@@ -70,11 +72,7 @@ export default {
selectedProList: {
type: Array,
default: () => []
},
height: {
type: String,
default: ''
},
}
},
components: {
......
<!-- 编辑分类 -->
<template>
<div class="edit-classify marketing p-t-20">
<div class="edit-classify marketing p-t-20 edit-box">
<div class="container edit-container">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div slot="selectProBtn" slot-scope="scope" class="select-pro">
<el-button type="primary" @click="handleMutiProClose(scope)">{{ editForm.goodsRefList.length ? '更换' : '请选择' }}</el-button>
</div>
......
......@@ -32,13 +32,15 @@
</el-form-item>
<el-form-item label="售价" size="small" prop="price" style="width: 300px">
<el-input v-model="ruleForm.price" size="small" placeholder="请输入合理价格" @keyup.native="ruleForm.price = oninput(ruleForm.price)">
<template slot="append">元</template>
<!-- <template slot="append">元</template> -->
<span slot="suffix" class="suffix-label">元</span>
</el-input>
</el-form-item>
<el-form-item label="市场价" prop="marketPrice" size="small" style="width: 300px">
<!-- :onkeyup="(ruleForm.marketPrice = ruleForm.marketPrice.replace(/[^\-\d.]/g, ''))" -->
<el-input v-model="ruleForm.marketPrice" size="small" placeholder="请输入合理价格" @keyup.native="ruleForm.marketPrice = oninput(ruleForm.marketPrice)">
<template slot="append">元</template>
<!-- <template slot="append">元</template> -->
<span slot="suffix" class="suffix-label">元</span>
</el-input>
</el-form-item>
</el-form>
......
......@@ -77,12 +77,14 @@
</el-form-item>
<el-form-item size="small" label="会员价" prop="vipPrice" style="width: 315px">
<el-input size="small" :disabled="disabledContent" maxlength="9" v-model="ruleForm.vipPrice" placeholder="请输入" @keyup.native="ruleForm.vipPrice = oninput(ruleForm.vipPrice)">
<template slot="append">元</template>
<!-- <template slot="append">元</template> -->
<span slot="suffix" class="suffix-label">元</span>
</el-input>
</el-form-item>
<el-form-item size="small" label="门店价" prop="shopPrice" style="width: 315px">
<el-input size="small" :disabled="disabledContent" maxlength="9" v-model="ruleForm.shopPrice" placeholder="请输入" @keyup.native="ruleForm.shopPrice = oninput(ruleForm.shopPrice)">
<template slot="append">元</template>
<!-- <template slot="append">元</template> -->
<span slot="suffix" class="suffix-label">元</span>
</el-input>
</el-form-item>
<el-form-item size="small" label="库存" prop="stock" style="width: 315px">
......
......@@ -12,6 +12,7 @@
</span>
<span class="table-btns" slot="auth-button" slot-scope="scope" :data="scope.scope">
<template v-if="scope.scope.state === 0">
<el-button type="text" @click="handleEdit(scope.scope)">编辑</el-button>
<el-button type="text" @click="handleUpOption(scope.scope)">上架</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
</template>
......@@ -20,6 +21,7 @@
<el-button type="text" @click="handleEdit(scope.scope)">编辑</el-button>
</template>
<template v-else>
<el-button type="text" @click="handleEdit(scope.scope)">编辑</el-button>
<el-button type="text" @click="handleUpOption(scope.scope)">上架</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
</template>
......
......@@ -28,7 +28,8 @@
<el-form-item size="small" label="售价" prop="packagePrice" style="width: 315px">
<el-input size="small" v-model="ruleForm.packagePrice" placeholder="请输入" @keyup.native="ruleForm.packagePrice = oninput(ruleForm.packagePrice)">
<template slot="append">元</template>
<!-- <template slot="append">元</template> -->
<span slot="suffix" class="suffix-label">元</span>
</el-input>
</el-form-item>
......
<!-- 评论详情 -->
<template>
<div class="comment-detail marketing">
<div class="comment-detail marketing p-t-20 edit-box">
<div class="container edit-container">
<p class="edit-title">{{ title }}</p>
<div class="comment-container">
......
<!-- 评价管理-->
<template>
<div class="marketing">
<div class="marketing p-t-20">
<div class="container">
<div>
<glsx-combi-form ref="showSearch" labelWidth="90px" :formObj="searchForm" :formData="searchFormData">
......
<!-- 订单管理 -->
<template>
<div class="marketing">
<div class="marketing p-t-20">
<div class="container">
<div class="list-tips">
<img class="tips-img" src="@/assets/icon-info.png" />
......@@ -551,7 +551,7 @@ export default {
submitExamine(params) {
this.$apis.orderManage.examineAllowApi(params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : '操作失败',
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error',
customClass: 'message-Z-zinde'
})
......
<!-- 订单详情 -->
<template>
<div class="order-detail marketing">
<div class="order-detail marketing p-t-20 edit-box">
<div class="container m-b-20">
<p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true">
......@@ -18,15 +18,19 @@
<span>{{detailForm.deliveryCompany}}&nbsp;&nbsp;&nbsp;{{detailForm.deliveryNumber}}</span>
</el-form-item>
</el-form>
<div v-if="orderGoods.length">
<div v-if="orderGoods.length" class="p-l-40">
<table class="show-table">
<tbody>
<tr v-for="(item, index) in orderGoods" :key="index">
<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>
......@@ -175,12 +179,16 @@ export default {
},
getInfo() {
this.$apis.orderManage.getOrderDetailApi({ orderCode: this.routeInfo.orderCode }).then(res => {
console.log(res)
this.detailForm = res
this.orderRefund = res.orderRefund || null
if(this.orderRefund) {
this.orderRefund.refundTypeName = this.baseData.refundTypeList.map(item => item.confId).includes(res.orderRefund.refundType + '') ? this.baseData.refundTypeList.find(item => item.confId == res.orderRefund.refundType).confName : '-'
this.orderRefund.createdDateStr = dayjs(this.orderRefund.createdDate).format('YYYY-MM-DD HH:mm:ss')
}
if(this.detailForm.subOrderCoupon) {
this.detailForm.subOrderCoupon.discountAmount = (this.detailForm.subOrderCoupon.discountAmount / 100).toFixed(2)
}
this.orderGoods = res.orderGoods || []
this.detailForm.payPrice = res.payPrice ? (res.payPrice + '元') : '-'
this.detailForm.orderSourceName = this.baseData.orderSourceList.map(item => item.confId).includes(res.orderSource + '') ? this.baseData.orderSourceList.find(item => item.confId == res.orderSource).confName : '-'
......
<!-- 编辑晒单 -->
<template>
<div class="edit-share marketing">
<div class="edit-share marketing edit-box">
<div class="container edit-container">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="selectPro" slot-scope="scope">
<el-button type="primary" @click="handleRelateProClose(scope)">{{ editForm.goodsId ? '更换' : '请选择' }}</el-button>
<div class="m-t-10" v-show="editForm.goodsId">
......
......@@ -114,6 +114,7 @@ export default {
{
label: '浏览量(次)',
name: 'goodsStatistics',
width: '180',
formatter: cellValue => {
return cellValue.goodsStatistics ? cellValue.goodsStatistics.viewAmount || '0' : '0'
}
......@@ -128,6 +129,7 @@ export default {
{
label: '零售价(元)',
name: 'retailPrice',
width: '180',
formatter: cellValue => {
return (cellValue.retailPrice / 100).toFixed(2)
}
......
......@@ -148,7 +148,7 @@ export default {
this.routeInfo = this.$route.params
this.title = this.titleObj[this.routeInfo.addOrEdit]
this.isDisabled = this.routeInfo.addOrEdit == 3
this.editFormData[0].isDisabled = true
this.editFormData[0].isDisabled = this.isDisabled
this.routeInfo.addOrEdit != 1 ? this.getInfo() : ''
},
......
......@@ -118,6 +118,7 @@ export default {
{
label: '浏览量(次)',
name: 'goodsStatistics',
width: '180',
formatter: cellValue => {
return cellValue.goodsStatistics ? cellValue.goodsStatistics.viewAmount || '0' : '0'
}
......@@ -132,6 +133,7 @@ export default {
{
label: '零售价(元)',
name: 'retailPrice',
width: '180',
formatter: cellValue => {
return (cellValue.retailPrice / 100).toFixed(2)
}
......
<!-- 编辑专区 -->
<template>
<div class="edit-zone marketing p-t-20">
<div class="edit-zone marketing p-t-20 edit-box">
<div class="container edit-container">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div slot="selectMerchant" slot-scope="scope" class="select-merchant">
<el-button type="primary" @click="handleRelateStoreClose(scope)">{{ editForm.merchantList.length ? '更换' : '请选择' }}</el-button>
<el-button type="default" @click="handleRelateStoreClose(scope)">{{ editForm.merchantList.length ? '更换门店' : '+选择门店' }}</el-button>
</div>
<div slot="merchantTable" class="select-merchant">
<div slot="merchantTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<GLTable v-show="editForm.merchantList.length" ref="warehousListRef" :hasPage="false" :tableParams="tableParams" :tableData="editForm.merchantList">
<span slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleMerchantDelete(scope)">删除</el-button>
......@@ -57,6 +57,7 @@ export default {
addOrEdit: 1,
id: ''
},
labelWidth: '140px',
editForm: {
// 专区类型(1发现频道,2商城专区)
zoneType: '2',
......@@ -98,7 +99,7 @@ export default {
addHtml: 'selectMerchant'
},
{
// label: '门店',
// label: '',
name: '',
addHtml: 'merchantTable'
}
......
......@@ -19,9 +19,6 @@
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
<!-- <el-button type="text" @click="handleDelete(scope.scope)">隐藏</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">显示</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">置顶</el-button> -->
</div>
</GLTable>
<!-- 表格区域 end -->
......@@ -75,10 +72,6 @@ export default {
return dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss')
}
}
// {
// label: '专区来源',
// prop: ''
// }
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!