Commit e950fe9a by chenwq

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

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