Commit e950fe9a by chenwq

秒杀活动样式;订单管理联调

1 parent ec964a95
...@@ -7,8 +7,9 @@ ...@@ -7,8 +7,9 @@
<p class="noproP">系统暂无已创建的商品</p> <p class="noproP">系统暂无已创建的商品</p>
</div> </div>
<el-radio-group v-model="infoId" v-if="productList.length"> <el-radio-group v-model="infoId" v-if="productList.length">
<el-radio class="pro-box" v-for="item in productList" :key="item.id" :label="item.id"> <el-radio :class="['pro-box', item.id == infoId ? 'active' : '']" v-for="item in productList" :key="item.id" :label="item.id">
<img :src="item.goodsImage" /> <img v-show="item.id == infoId" class="icon-check" src="@/assets/icon-check.png" />
<img class="goods-img" :src="item.goodsImage" />
<div class="txt-box"> <div class="txt-box">
<p :title="item.goodsName" class="ellipsis">{{ item.goodsName }}</p> <p :title="item.goodsName" class="ellipsis">{{ item.goodsName }}</p>
<p class="f-s-12">销量:{{ item.saleAmount }}</p> <p class="f-s-12">销量:{{ item.saleAmount }}</p>
...@@ -44,7 +45,7 @@ export default { ...@@ -44,7 +45,7 @@ export default {
}, },
selectedProInfo: { selectedProInfo: {
type: Object, type: Object,
default: () => {} default: () => { }
} }
}, },
...@@ -73,13 +74,13 @@ export default { ...@@ -73,13 +74,13 @@ export default {
// console.log(res) // console.log(res)
this.fnCallBack = true this.fnCallBack = true
this.productList = res.list this.productList = res.list
this.productList.forEach(function(item) { this.productList.forEach(function (item) {
item.saleAmount = item.goodsStatistics.saleAmount item.saleAmount = item.goodsStatistics.saleAmount
if (item.specificationDetailList.length > 1) { if (item.specificationDetailList.length > 1) {
let retailPriceList = item.specificationDetailList.sort(function(a, b) { let retailPriceList = item.specificationDetailList.sort(function (a, b) {
return a.retailPrice - b.retailPrice return a.retailPrice - b.retailPrice
}) })
let stockeList = item.specificationDetailList.sort(function(a, b) { let stockeList = item.specificationDetailList.sort(function (a, b) {
return a.stock - b.stock return a.stock - b.stock
}) })
let minRatilPrice = retailPriceList[0].retailPrice / 100 let minRatilPrice = retailPriceList[0].retailPrice / 100
...@@ -133,18 +134,34 @@ export default { ...@@ -133,18 +134,34 @@ export default {
<style> <style>
.single-pro .pro-box { .single-pro .pro-box {
width: 202px; width: 202px;
border: 1px solid #cccccc; border: 1px solid #e5e5e5;
border-radius: 6px;
margin: 0 10px 10px 0; margin: 0 10px 10px 0;
} }
.single-pro .pro-box.active {
box-shadow: 0px 6px 20px 0px rgba(122, 122, 122, 0.2);
border: 1px solid #5850ff;
}
.single-pro .el-radio__inner {
display: none;
}
.single-pro .icon-check {
position: absolute;
top: 10px;
right: 10px;
width: 32px;
height: 32px;
}
.single-pro p { .single-pro p {
margin: 0 0 8px 0; margin: 0 0 8px 0;
} }
.single-pro .f-s-12 { .single-pro .f-s-12 {
font-size: 12px; font-size: 12px;
} }
.single-pro .pro-box img { .single-pro .pro-box .goods-img {
width: 202px; width: 202px;
height: 202px; height: 202px;
border-radius: 6px 6px 0 0;
} }
.single-pro .el-radio__input { .single-pro .el-radio__input {
position: absolute; position: absolute;
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
<div> <div>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData1"></glsx-combi-form> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData1"></glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData2"></glsx-combi-form> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData2"></glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData3"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData3"></glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData4">
<span slot="footer" class="footer-btns"> <span slot="footer" class="footer-btns">
<el-button :size="size" type="default" @click="handleReset">重置</el-button> <el-button :size="size" type="default" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
...@@ -35,11 +36,11 @@ ...@@ -35,11 +36,11 @@
<!-- 表格区域 - 全部订单/售后订单 - 开始 --> <!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<template slot="carNo" slot-scope="scope"> <template slot="vinNo" slot-scope="scope">
{{ Array.isArray(scope.scope.carNo) ? scope.scope.carNo[0] : scope.scope.carNo }} {{ Array.isArray(scope.scope.vinNo) ? scope.scope.vinNo[0] : scope.scope.vinNo }}
<el-popover popper-class="order-table-popover" placement="right-start" trigger="click"> <el-popover popper-class="order-table-popover" placement="right-start" trigger="click">
<p v-for="(item, index) in scope.scope.carNo" :key="index">{{ item }}</p> <p v-for="(item, index) in scope.scope.vinNo" :key="index">{{ item }}</p>
<span class="car-no" slot="reference" v-show="Array.isArray(scope.scope.carNo)">...({{ scope.scope.carNo.length - 1 }})</span> <span class="car-no" slot="reference" v-show="Array.isArray(scope.scope.vinNo)">...({{ scope.scope.vinNo.length - 1 }})</span>
</el-popover> </el-popover>
</template> </template>
<div slot="orderStatus" slot-scope="scope"> <div slot="orderStatus" slot-scope="scope">
...@@ -148,7 +149,7 @@ export default { ...@@ -148,7 +149,7 @@ export default {
createDate: [], createDate: [],
orderSource: '', orderSource: '',
deliveryType: '', deliveryType: '',
carNo: '' vin: ''
}, },
tableSearchForm: {}, tableSearchForm: {},
statisticsInfo: { statisticsInfo: {
...@@ -199,6 +200,7 @@ export default { ...@@ -199,6 +200,7 @@ export default {
label: '售后状态', label: '售后状态',
name: 'afterSaleStatuses', name: 'afterSaleStatuses',
type: 'select', type: 'select',
labelWidth: 72,
multiple: true, multiple: true,
optionList: [], optionList: [],
optionId: 'confId', optionId: 'confId',
...@@ -244,6 +246,7 @@ export default { ...@@ -244,6 +246,7 @@ export default {
label: '订单日期', label: '订单日期',
name: 'createDate', name: 'createDate',
type: 'datePicker', type: 'datePicker',
labelWidth: 72,
isClear: true, isClear: true,
pickerOptions: 'beforeRangePickerOptions' pickerOptions: 'beforeRangePickerOptions'
} }
...@@ -268,10 +271,19 @@ export default { ...@@ -268,10 +271,19 @@ export default {
optionsName: 'deliveryTypeList' optionsName: 'deliveryTypeList'
}, },
{ {
label: '商户订单号',
name: 'outTradeNo',
type: 'input',
maxlength: 50
}
],
searchFormData4: [
{
label: '车架号', label: '车架号',
name: 'carNo', name: 'vin',
labelWidth: 56, labelWidth: 56,
type: 'input' type: 'input',
maxlength: 50
} }
], ],
// 快递信息 // 快递信息
...@@ -372,6 +384,14 @@ export default { ...@@ -372,6 +384,14 @@ export default {
width: '160' width: '160'
}, },
{ {
label: '商户订单号',
prop: 'outTradeNo',
width: '160',
formatter: cellValue => {
return cellValue.outTradeNo || '-'
}
},
{
label: '订单时间', label: '订单时间',
prop: 'createdDate', prop: 'createdDate',
width: '180', width: '180',
...@@ -382,13 +402,16 @@ export default { ...@@ -382,13 +402,16 @@ export default {
{ {
label: '客户名称', label: '客户名称',
prop: 'customerName', prop: 'customerName',
line: 2 line: 2,
formatter: cellValue => {
return cellValue.customerName || '-'
}
}, },
{ {
label: '车架号', label: '车架号',
prop: 'carNo', prop: 'vinNo',
width: 120, width: 120,
addHtml: 'carNo' addHtml: 'vinNo'
}, },
{ {
label: '订单状态', label: '订单状态',
...@@ -710,8 +733,7 @@ export default { ...@@ -710,8 +733,7 @@ export default {
setTableFinishFun() { setTableFinishFun() {
this.$refs.allOrderRef.data.forEach(item => { this.$refs.allOrderRef.data.forEach(item => {
item.carNum = Math.floor(Math.random() * 10) % 2 ? '999999,222222,333333' : '999999' item.vinNo = item.vin ? (item.vin.split(',').length > 1 ? item.vin.split(',') : item.vin) : '-'
item.carNo = item.carNum.split(',').length > 1 ? item.carNum.split(',') : item.carNum
}) })
//接收到的数据为空 //接收到的数据为空
this.$refs.allOrderRef.data.length ? (this.$refs.allOrderRef.tableHeightValues = '') : this.$refs.allOrderRef.setTableHeightFun() this.$refs.allOrderRef.data.length ? (this.$refs.allOrderRef.tableHeightValues = '') : this.$refs.allOrderRef.setTableHeightFun()
...@@ -743,7 +765,7 @@ export default { ...@@ -743,7 +765,7 @@ export default {
createDate: [], createDate: [],
orderSource: '', orderSource: '',
deliveryType: '', deliveryType: '',
carNo: '' vin: ''
} }
this.handleSearch() this.handleSearch()
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<p class="edit-title">订单信息</p> <p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true"> <el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in detailFormDataRow" :key="index"> <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"> <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> <span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
...@@ -44,12 +44,17 @@ ...@@ -44,12 +44,17 @@
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<div class="flex" style="padding: 0 30px;"> <div class="form-img">
<!-- <img v-for="(item, index) in orderRefund.imgUrls" :key="index" class="img-60" :src="item"/> --> <el-form label-width="100px" :inline="true">
<el-form-item label="售后凭证">
<div class="flex">
<span v-for="(item, index) in orderRefund.imgUrls" :key="index"> <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> <el-image class="img-60 comment-img" :src="item" :preview-src-list="[item]"></el-image>
</span> </span>
</div> </div>
</el-form-item>
</el-form>
</div>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="default" @click="handleCancel">返回</el-button> <el-button type="default" @click="handleCancel">返回</el-button>
...@@ -84,7 +89,7 @@ export default { ...@@ -84,7 +89,7 @@ export default {
}, },
{ {
label: '商户订单号', label: '商户订单号',
name: '' name: 'outTradeNo'
}, },
{ {
label: '订单时间', label: '订单时间',
...@@ -96,7 +101,7 @@ export default { ...@@ -96,7 +101,7 @@ export default {
}, },
{ {
label: '车架号', label: '车架号',
name: '' name: 'vin'
}, },
{ {
label: '门店信息', label: '门店信息',
...@@ -154,11 +159,11 @@ export default { ...@@ -154,11 +159,11 @@ export default {
{ {
label: '快递单号', label: '快递单号',
name: 'deliveryNumber' name: 'deliveryNumber'
},
{
label: '售后凭证',
name: ''
} }
// {
// label: '售后凭证',
// name: ''
// }
], ],
// 基本数据 // 基本数据
baseData: { baseData: {
...@@ -238,9 +243,15 @@ export default { ...@@ -238,9 +243,15 @@ export default {
.marketing.order-detail .el-form--inline .el-form-item__content { .marketing.order-detail .el-form--inline .el-form-item__content {
height: 30px; height: 30px;
} }
.marketing.order-detail .form-img .el-form--inline .el-form-item__content {
height: auto !important;
}
.marketing.order-detail .flex { .marketing.order-detail .flex {
justify-content: flex-start; justify-content: flex-start;
} }
.marketing.order-detail .row-item {
width: 33%;
}
.detail-txt { .detail-txt {
display: inline-block; display: inline-block;
width: 220px; width: 220px;
......
...@@ -4,13 +4,12 @@ ...@@ -4,13 +4,12 @@
<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" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div slot="activityImg" class="edit-tips m-t-8">展示在首页的活动详情页</div>
<template slot="activityTimeHtml"> <template slot="activityTimeHtml">
<!-- <el-form-item> --> <el-date-picker style="width: 474px" v-model="editForm.activityTime" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="pickerOptions" :default-time="['00:00:00', '23:59:59']" :disabled="isDisabled" clearable></el-date-picker>
<el-date-picker v-model="editForm.activityTime" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="pickerOptions" :default-time="['00:00:00', '23:59:59']" :disabled="isDisabled" clearable></el-date-picker>
<!-- </el-form-item> -->
</template> </template>
<div slot="goodsHtml"> <div slot="goodsHtml">
<el-button type="primary" v-if="apear != 'see'" @click="handleRelateProClose">选择商品</el-button> <el-button type="default" class="default-blue-btn el-icon-plus" v-if="apear != 'see'" @click="handleRelateProClose">选择商品</el-button>
<div v-if="selectedProInfo.id && !specificationDetailList.length" style="margin-top: 10px"> <div v-if="selectedProInfo.id && !specificationDetailList.length" style="margin-top: 10px">
<p> <p>
<img class="img-60" :src="selectedProInfo.goodsImage" /> <img class="img-60" :src="selectedProInfo.goodsImage" />
...@@ -195,7 +194,7 @@ export default { ...@@ -195,7 +194,7 @@ export default {
{ {
label: '活动名称', label: '活动名称',
name: 'activityName', name: 'activityName',
width: '320px', width: '474px',
type: 'input', type: 'input',
maxlength: 20, maxlength: 20,
isDisabled: false isDisabled: false
...@@ -208,6 +207,7 @@ export default { ...@@ -208,6 +207,7 @@ export default {
limitSize: 10, limitSize: 10,
maxPhotoNum: 1, maxPhotoNum: 1,
isDisabled: false, isDisabled: false,
suffixSlot: 'activityImg',
handleUpload: (e, file, targetItem) => { handleUpload: (e, file, targetItem) => {
const imgFile = e.target.result const imgFile = e.target.result
const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1] const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1]
...@@ -220,7 +220,7 @@ export default { ...@@ -220,7 +220,7 @@ export default {
{ {
label: '活动宣传语', label: '活动宣传语',
name: 'promotion', name: 'promotion',
width: '320px', width: '474px',
type: 'input', type: 'input',
maxlength: 20, maxlength: 20,
isDisabled: false isDisabled: false
...@@ -650,6 +650,9 @@ export default { ...@@ -650,6 +650,9 @@ export default {
.edit-product-dh .w-320 { .edit-product-dh .w-320 {
width: 320px; width: 320px;
} }
.w-474 {
width: 474px;
}
.color-red { .color-red {
color: #eb4e4e; color: #eb4e4e;
cursor: pointer; cursor: pointer;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!