Commit 3dbf2410 by 胡悦
2 parents 6b3fc4d8 58e87c3a
...@@ -21,4 +21,15 @@ const updateHomeApi = params => { ...@@ -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 \ No newline at end of file
...@@ -8,12 +8,22 @@ html { ...@@ -8,12 +8,22 @@ html {
background-color: #F4F5FA; background-color: #F4F5FA;
} }
.el-range-editor.is-active,
.el-range-editor.is-active:hover {
border-color: #5850ff;
width: 215px;
}
.marketing .container { .marketing .container {
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px; padding: 20px;
} }
.marketing.edit-box .container {
padding: 20px 0 20px;
}
.live-room .container { .live-room .container {
background: #FFFFFF; background: #FFFFFF;
margin: 20px 0px; margin: 20px 0px;
...@@ -21,6 +31,14 @@ html { ...@@ -21,6 +31,14 @@ html {
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.10); 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 { .ellipsis-1 {
overflow: hidden; overflow: hidden;
...@@ -77,7 +95,7 @@ html { ...@@ -77,7 +95,7 @@ html {
} }
.marketing .wechat-container { .marketing .wechat-container {
width: 375px; width: 290px;
margin-left: 32px; margin-left: 32px;
background: #ffffff; background: #ffffff;
position: relative; position: relative;
...@@ -88,7 +106,7 @@ html { ...@@ -88,7 +106,7 @@ html {
} }
.marketing .wechat-container .wechat-box { .marketing .wechat-container .wechat-box {
width: 375px; width: 290px;
border: 1px solid #cecece; border: 1px solid #cecece;
// width: 100%; // width: 100%;
border-radius: 2px; border-radius: 2px;
...@@ -102,10 +120,6 @@ html { ...@@ -102,10 +120,6 @@ html {
margin-top: 20px; margin-top: 20px;
} }
.marketing .m-b-20 {
margin-bottom: 20px;
}
.marketing .footer-btns { .marketing .footer-btns {
float: right; float: right;
margin-bottom: 18px; margin-bottom: 18px;
...@@ -146,19 +160,40 @@ html { ...@@ -146,19 +160,40 @@ html {
height: 100px; height: 100px;
} }
.marketing .img-120 {
width: 120px;
height: 120px;
}
.marketing .m-t-10 { .marketing .m-t-10 {
margin-top: 10px; margin-top: 10px;
} }
.marketing .m-b-20 {
margin-bottom: 20px;
}
.marketing .m-t-20 { .marketing .m-t-20 {
margin-top: 20px; 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,
.marketing .p-t-20 { .marketing .p-t-20 {
padding-top: 20px; padding-top: 20px;
} }
.marketing .p-l-40 {
padding-left: 40px;
}
.marketing .txt-center { .marketing .txt-center {
text-align: center; text-align: center;
} }
...@@ -175,6 +210,10 @@ html { ...@@ -175,6 +210,10 @@ html {
z-index: 999; z-index: 999;
} }
.marketing .flex-default {
display: flex;
}
.marketing .flex { .marketing .flex {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
...@@ -186,13 +225,13 @@ html { ...@@ -186,13 +225,13 @@ html {
.marketing .edit-title { .marketing .edit-title {
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: 500;
height: 48px; font-family: PingFangSC-Medium, PingFang SC;
line-height: 48px; height: 28px;
// color: #0947C6; line-height: 28px;
border-bottom: 1px solid #E7EAEC; border-bottom: 1px solid #E7EAEC;
// padding-left: 20px;
margin: 0 0; margin: 0 0;
padding: 0 0 11px 40px;
} }
// .marketing .edit-sub-title::before { // .marketing .edit-sub-title::before {
......
...@@ -3,7 +3,8 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max ...@@ -3,7 +3,8 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max
/* eslint-disable */ /* eslint-disable */
var reg = { var reg = {
priceReg: /^\d[\d\.]*$/, priceReg: /^\d[\d\.]*$/,
numReg: /^[1-9]\d*$/ numReg: /^[1-9]\d*$/,
zNumReg: /^\d*$/
} }
/* eslint-enable */ /* eslint-enable */
regRule = regRule || 'priceReg' regRule = regRule || 'priceReg'
...@@ -20,6 +21,9 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max ...@@ -20,6 +21,9 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max
newValue = pointDigit ? intergerNum + '.' + pointNum : newValue.split('.')[0] newValue = pointDigit ? intergerNum + '.' + pointNum : newValue.split('.')[0]
} else { } else {
newValue = newValue.length > intergerDigit ? oldValue.slice(0, intergerDigit) : newValue newValue = newValue.length > intergerDigit ? oldValue.slice(0, intergerDigit) : newValue
if (regRule == 'zNumReg') {
newValue = newValue.split('')[0] == '0' ? '0' : newValue
}
} }
return newValue return newValue
} else { } else {
......
...@@ -58,8 +58,8 @@ ...@@ -58,8 +58,8 @@
<p class="photo-top-tips">{{ item.topTips }}</p> <p class="photo-top-tips">{{ item.topTips }}</p>
<div v-if="!item.isDisabled" :style="{ width: item.width || defaultWidth }"> <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 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> <div class="add" :style="{ top: item.maxPhotoNum == 1 ? '50%' : '40%' }">+</div>
<span class="number">{{ formObj[item.name].length }} / {{ item.maxPhotoNum }}</span> <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-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)" /> <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> </div>
...@@ -322,7 +322,8 @@ export default { ...@@ -322,7 +322,8 @@ export default {
.glsx-combi-form .activity-img { .glsx-combi-form .activity-img {
position: relative; position: relative;
color: #999999; color: #999999;
border: 1px dashed #d9d9d9; background-color: #F7F7F7;
border: 1px solid #d9d9d9;
cursor: pointer; cursor: pointer;
} }
......
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
<template> <template>
<div> <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"> <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 slot="title">
<span class="main-title">{{ title }}</span> <span class="main-title">{{ title }}</span>
<span class="dialog-sub-title"> <span class="dialog-sub-title">
...@@ -21,7 +20,6 @@ ...@@ -21,7 +20,6 @@
</span> </span>
<slot></slot> <slot></slot>
</template> </template>
</div>
<div slot="footer"> <div slot="footer">
<slot name="btn-start"></slot> <slot name="btn-start"></slot>
...@@ -96,11 +94,7 @@ export default { ...@@ -96,11 +94,7 @@ export default {
btnSize: { btnSize: {
type: String, type: String,
default: 'mini' default: 'mini'
}, }
height: {
type: String,
default: ''
},
}, },
methods: { methods: {
......
...@@ -7,25 +7,13 @@ ...@@ -7,25 +7,13 @@
<el-table ref="seletingTable" :data="selectingData" height="464px" class="table" border @select="handleChange" @select-all="handleAll"> <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 type="selection" width="55" align="center" :selectable="selectable"></el-table-column>
<el-table-column prop="merchantName" label="商户名称" align="center"> <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>
<!-- <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-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-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>
<el-col :span="12"> <el-col :span="12">
<el-table :data="selectedData" class="table" border height="464px"> <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="商户名称" 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"> <el-table-column label="删除" align="center" width="50">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button style="padding: 0;" class="el-icon-delete" @click="handleDelete(scope.row)" type="text"></el-button> <el-button style="padding: 0;" class="el-icon-delete" @click="handleDelete(scope.row)" type="text"></el-button>
...@@ -88,22 +76,24 @@ export default { ...@@ -88,22 +76,24 @@ export default {
mounted() { mounted() {
this.selectedData = this.storeSelected this.selectedData = this.storeSelected
this.selectedData.forEach(item => {
item.merchantNo = item.merchantId ? (item.merchantId + '') : item.merchantNo
})
this.getSelectingList() this.getSelectingList()
}, },
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') {
// isSelect = row.isSetUpgradeSettleRule
// }
return isSelect return isSelect
}, },
recoverySelection() { recoverySelection() {
var exitIds = this.selectedData.map(item => item.merchantNo + '') var exitIds = this.selectedData.map(item => item.merchantNo + '')
this.selectingData.forEach(item => { this.selectingData.forEach(item => {
if (exitIds.includes(item.merchantNo)) { if (exitIds.includes(item.merchantNo + '')) {
this.$refs.seletingTable.toggleRowSelection(item, true) this.$refs.seletingTable.toggleRowSelection(item, true)
} else {
this.$refs.seletingTable.toggleRowSelection(item, false)
} }
}) })
}, },
...@@ -138,7 +128,7 @@ export default { ...@@ -138,7 +128,7 @@ export default {
}, },
handleDelete(row) { handleDelete(row) {
this.selectedData = this.selectedData.filter(item => item.merchantNo !== row.merchantNo) this.selectedData = this.selectedData.filter(item => item.merchantNo !== row.merchantNo)
this.$refs.seletingTable.toggleRowSelection(row) this.recoverySelection()
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.pageNum = val this.pageNum = val
......
<!-- 选择商品弹窗 --> <!-- 选择商品弹窗 -->
<template> <template>
<glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" :height="height" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose"> <glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" :height="height" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose">
<el-form :inline="true" :model="searchProForm"> <div style="max-height:60vh">
<el-form-item label="商品名称:"> <el-form :inline="true" :model="searchProForm">
<el-input :size="size" v-model="searchProForm.name" placeholder="请输入商品名称" maxlength="20" clearable></el-input> <el-form-item label="商品名称:">
</el-form-item> <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-form-item>
<el-button :size="size" @click="handleConfigReset">重置</el-button> <el-button :size="size" type="primary" @click="handleConfigSearch">查询</el-button>
</el-form-item> <el-button :size="size" @click="handleConfigReset">重置</el-button>
</el-form> </el-form-item>
<GLTable ref="mutiProRef" :tableData="productList" :hasPage="false" :tableParams="tableParams" @refreshTable="getList"> </el-form>
<span slot="goodsImage" slot-scope="scope"> <GLTable ref="mutiProRef" :tableData="productList" :hasPage="false" :tableParams="tableParams" @refreshTable="getList">
<img class="m-t-10 img-60" :src="scope.scope.goodsImage" /> <span slot="goodsImage" slot-scope="scope">
</span> <img class="m-t-10 img-60" :src="scope.scope.goodsImage" />
</GLTable> </span>
</GLTable>
</div>
</glsx-dialog> </glsx-dialog>
</template> </template>
...@@ -70,11 +72,7 @@ export default { ...@@ -70,11 +72,7 @@ export default {
selectedProList: { selectedProList: {
type: Array, type: Array,
default: () => [] default: () => []
}, }
height: {
type: String,
default: ''
},
}, },
components: { components: {
......
<!-- 编辑分类 --> <!-- 编辑分类 -->
<template> <template>
<div class="edit-classify marketing p-t-20"> <div class="edit-classify marketing p-t-20 edit-box">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <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"> <div slot="selectProBtn" slot-scope="scope" class="select-pro">
<el-button type="primary" @click="handleMutiProClose(scope)">{{ editForm.goodsRefList.length ? '更换' : '请选择' }}</el-button> <el-button type="primary" @click="handleMutiProClose(scope)">{{ editForm.goodsRefList.length ? '更换' : '请选择' }}</el-button>
</div> </div>
......
...@@ -32,13 +32,15 @@ ...@@ -32,13 +32,15 @@
</el-form-item> </el-form-item>
<el-form-item label="售价" size="small" prop="price" style="width: 300px"> <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)"> <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-input>
</el-form-item> </el-form-item>
<el-form-item label="市场价" prop="marketPrice" size="small" style="width: 300px"> <el-form-item label="市场价" prop="marketPrice" size="small" style="width: 300px">
<!-- :onkeyup="(ruleForm.marketPrice = ruleForm.marketPrice.replace(/[^\-\d.]/g, ''))" --> <!-- :onkeyup="(ruleForm.marketPrice = ruleForm.marketPrice.replace(/[^\-\d.]/g, ''))" -->
<el-input v-model="ruleForm.marketPrice" size="small" placeholder="请输入合理价格" @keyup.native="ruleForm.marketPrice = oninput(ruleForm.marketPrice)"> <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-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
......
...@@ -77,12 +77,14 @@ ...@@ -77,12 +77,14 @@
</el-form-item> </el-form-item>
<el-form-item size="small" label="会员价" prop="vipPrice" style="width: 315px"> <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)"> <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-input>
</el-form-item> </el-form-item>
<el-form-item size="small" label="门店价" prop="shopPrice" style="width: 315px"> <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)"> <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-input>
</el-form-item> </el-form-item>
<el-form-item size="small" label="库存" prop="stock" style="width: 315px"> <el-form-item size="small" label="库存" prop="stock" style="width: 315px">
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
</span> </span>
<span class="table-btns" slot="auth-button" slot-scope="scope" :data="scope.scope"> <span class="table-btns" slot="auth-button" slot-scope="scope" :data="scope.scope">
<template v-if="scope.scope.state === 0"> <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="handleUpOption(scope.scope)">上架</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> <el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
</template> </template>
...@@ -20,6 +21,7 @@ ...@@ -20,6 +21,7 @@
<el-button type="text" @click="handleEdit(scope.scope)">编辑</el-button> <el-button type="text" @click="handleEdit(scope.scope)">编辑</el-button>
</template> </template>
<template v-else> <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="handleUpOption(scope.scope)">上架</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> <el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
</template> </template>
......
...@@ -28,7 +28,8 @@ ...@@ -28,7 +28,8 @@
<el-form-item size="small" label="售价" prop="packagePrice" style="width: 315px"> <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)"> <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-input>
</el-form-item> </el-form-item>
......
<!-- 评论详情 --> <!-- 评论详情 -->
<template> <template>
<div class="comment-detail marketing"> <div class="comment-detail marketing p-t-20 edit-box">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<div class="comment-container"> <div class="comment-container">
......
<!-- 评价管理--> <!-- 评价管理-->
<template> <template>
<div class="marketing"> <div class="marketing p-t-20">
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="90px" :formObj="searchForm" :formData="searchFormData"> <glsx-combi-form ref="showSearch" labelWidth="90px" :formObj="searchForm" :formData="searchFormData">
......
<!-- 订单管理 --> <!-- 订单管理 -->
<template> <template>
<div class="marketing"> <div class="marketing p-t-20">
<div class="container"> <div class="container">
<div class="list-tips"> <div class="list-tips">
<img class="tips-img" src="@/assets/icon-info.png" /> <img class="tips-img" src="@/assets/icon-info.png" />
...@@ -551,7 +551,7 @@ export default { ...@@ -551,7 +551,7 @@ export default {
submitExamine(params) { submitExamine(params) {
this.$apis.orderManage.examineAllowApi(params).then(res => { this.$apis.orderManage.examineAllowApi(params).then(res => {
this.$message({ this.$message({
message: res.code == '0' ? '操作成功' : '操作失败', message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error', type: res.code == '0' ? 'success' : 'error',
customClass: 'message-Z-zinde' customClass: 'message-Z-zinde'
}) })
......
<!-- 订单详情 --> <!-- 订单详情 -->
<template> <template>
<div class="order-detail marketing"> <div class="order-detail marketing p-t-20 edit-box">
<div class="container m-b-20"> <div class="container m-b-20">
<p class="edit-title">订单信息</p> <p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true"> <el-form label-width="100px" :inline="true">
...@@ -18,15 +18,19 @@ ...@@ -18,15 +18,19 @@
<span>{{detailForm.deliveryCompany}}&nbsp;&nbsp;&nbsp;{{detailForm.deliveryNumber}}</span> <span>{{detailForm.deliveryCompany}}&nbsp;&nbsp;&nbsp;{{detailForm.deliveryNumber}}</span>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div v-if="orderGoods.length"> <div v-if="orderGoods.length" class="p-l-40">
<table class="show-table"> <table class="show-table">
<tbody> <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><img :src="item.goodsImage" class="img-60" /></td>
<td>{{ item.goodsName }}</td> <td>{{ item.goodsName }}</td>
<td>{{ item.specificationData }}</td> <td>{{ item.specificationData }}</td>
<td>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 * {{item.goodsNumber}}</td> <td>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 * {{item.goodsNumber}}</td>
</tr> </tr>
<tr v-if="detailForm.subOrderCoupon" style="height: 40px;">
<td style="text-align: left;" colspan="3">优惠券</td>
<td>{{detailForm.subOrderCoupon.discountAmount}}元</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
...@@ -175,12 +179,16 @@ export default { ...@@ -175,12 +179,16 @@ export default {
}, },
getInfo() { getInfo() {
this.$apis.orderManage.getOrderDetailApi({ orderCode: this.routeInfo.orderCode }).then(res => { this.$apis.orderManage.getOrderDetailApi({ orderCode: this.routeInfo.orderCode }).then(res => {
console.log(res)
this.detailForm = res this.detailForm = res
this.orderRefund = res.orderRefund || null this.orderRefund = res.orderRefund || null
if(this.orderRefund) { 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.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') 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.orderGoods = res.orderGoods || []
this.detailForm.payPrice = res.payPrice ? (res.payPrice + '元') : '-' 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 : '-' this.detailForm.orderSourceName = this.baseData.orderSourceList.map(item => item.confId).includes(res.orderSource + '') ? this.baseData.orderSourceList.find(item => item.confId == res.orderSource).confName : '-'
......
<!-- 编辑晒单 --> <!-- 编辑晒单 -->
<template> <template>
<div class="edit-share marketing"> <div class="edit-share marketing edit-box">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <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"> <template slot="selectPro" slot-scope="scope">
<el-button type="primary" @click="handleRelateProClose(scope)">{{ editForm.goodsId ? '更换' : '请选择' }}</el-button> <el-button type="primary" @click="handleRelateProClose(scope)">{{ editForm.goodsId ? '更换' : '请选择' }}</el-button>
<div class="m-t-10" v-show="editForm.goodsId"> <div class="m-t-10" v-show="editForm.goodsId">
......
...@@ -114,6 +114,7 @@ export default { ...@@ -114,6 +114,7 @@ export default {
{ {
label: '浏览量(次)', label: '浏览量(次)',
name: 'goodsStatistics', name: 'goodsStatistics',
width: '180',
formatter: cellValue => { formatter: cellValue => {
return cellValue.goodsStatistics ? cellValue.goodsStatistics.viewAmount || '0' : '0' return cellValue.goodsStatistics ? cellValue.goodsStatistics.viewAmount || '0' : '0'
} }
...@@ -128,6 +129,7 @@ export default { ...@@ -128,6 +129,7 @@ export default {
{ {
label: '零售价(元)', label: '零售价(元)',
name: 'retailPrice', name: 'retailPrice',
width: '180',
formatter: cellValue => { formatter: cellValue => {
return (cellValue.retailPrice / 100).toFixed(2) return (cellValue.retailPrice / 100).toFixed(2)
} }
......
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
this.routeInfo = this.$route.params this.routeInfo = this.$route.params
this.title = this.titleObj[this.routeInfo.addOrEdit] this.title = this.titleObj[this.routeInfo.addOrEdit]
this.isDisabled = this.routeInfo.addOrEdit == 3 this.isDisabled = this.routeInfo.addOrEdit == 3
this.editFormData[0].isDisabled = true this.editFormData[0].isDisabled = this.isDisabled
this.routeInfo.addOrEdit != 1 ? this.getInfo() : '' this.routeInfo.addOrEdit != 1 ? this.getInfo() : ''
}, },
......
...@@ -118,6 +118,7 @@ export default { ...@@ -118,6 +118,7 @@ export default {
{ {
label: '浏览量(次)', label: '浏览量(次)',
name: 'goodsStatistics', name: 'goodsStatistics',
width: '180',
formatter: cellValue => { formatter: cellValue => {
return cellValue.goodsStatistics ? cellValue.goodsStatistics.viewAmount || '0' : '0' return cellValue.goodsStatistics ? cellValue.goodsStatistics.viewAmount || '0' : '0'
} }
...@@ -132,6 +133,7 @@ export default { ...@@ -132,6 +133,7 @@ export default {
{ {
label: '零售价(元)', label: '零售价(元)',
name: 'retailPrice', name: 'retailPrice',
width: '180',
formatter: cellValue => { formatter: cellValue => {
return (cellValue.retailPrice / 100).toFixed(2) return (cellValue.retailPrice / 100).toFixed(2)
} }
......
<!-- 编辑专区 --> <!-- 编辑专区 -->
<template> <template>
<div class="edit-zone marketing p-t-20"> <div class="edit-zone marketing p-t-20 edit-box">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <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"> <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>
<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"> <GLTable v-show="editForm.merchantList.length" ref="warehousListRef" :hasPage="false" :tableParams="tableParams" :tableData="editForm.merchantList">
<span slot="auth-button" slot-scope="scope"> <span slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleMerchantDelete(scope)">删除</el-button> <el-button type="text" @click="handleMerchantDelete(scope)">删除</el-button>
...@@ -57,6 +57,7 @@ export default { ...@@ -57,6 +57,7 @@ export default {
addOrEdit: 1, addOrEdit: 1,
id: '' id: ''
}, },
labelWidth: '140px',
editForm: { editForm: {
// 专区类型(1发现频道,2商城专区) // 专区类型(1发现频道,2商城专区)
zoneType: '2', zoneType: '2',
...@@ -98,7 +99,7 @@ export default { ...@@ -98,7 +99,7 @@ export default {
addHtml: 'selectMerchant' addHtml: 'selectMerchant'
}, },
{ {
// label: '门店', // label: '',
name: '', name: '',
addHtml: 'merchantTable' addHtml: 'merchantTable'
} }
......
...@@ -19,9 +19,6 @@ ...@@ -19,9 +19,6 @@
<div class="table-btns" slot="auth-button" slot-scope="scope"> <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="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>
<el-button type="text" @click="handleDelete(scope.scope)">置顶</el-button> -->
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
...@@ -75,10 +72,6 @@ export default { ...@@ -75,10 +72,6 @@ export default {
return dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss') return dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss')
} }
} }
// {
// label: '专区来源',
// prop: ''
// }
] ]
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' } 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!