Commit 4690f122 by chenwq

带货管理-详情样式;bug修复

1 parent cc154e63
......@@ -129,6 +129,10 @@ html {
margin-top: 20px;
}
.marketing .f-right {
float: right;
}
.marketing .footer-btns {
float: right;
margin-bottom: 18px;
......
......@@ -99,7 +99,7 @@
</div>
</div>
</div>
<p class="edit-tips">最多支持4张banner,图片格式仅支持JPG,PNG格式</p>
<p class="edit-tips">最多支持6张banner,图片格式仅支持JPG,PNG格式</p>
<p class="edit-tips">建议尺寸660*270px,大小10M以内</p>
</div>
<!-- 金刚区管理 -->
......@@ -136,8 +136,8 @@
<marquee width="200px" height="14px" scrolldelay="160">{{ editForm.noticeContent }}</marquee>
</span>
</div>
<img class="p-absolute icon-wbyy" :src="editForm.clueList.indexOf(1) != -1 ? require('@/assets/homeSet/icon-wbyy.png') : require('@/assets/homeSet/icon-wbyy-default.png')" />
<img class="p-absolute icon-jyfw" :src="editForm.clueList.indexOf(2) != -1 ? require('@/assets/homeSet/icon-jyfw.png') : require('@/assets/homeSet/icon-jyfw-default.png')" />
<img class="p-absolute icon-jyfw" :src="editForm.clueList.indexOf(1) != -1 ? require('@/assets/homeSet/icon-jyfw.png') : require('@/assets/homeSet/icon-jyfw-default.png')" />
<img class="p-absolute icon-wbyy" :src="editForm.clueList.indexOf(2) != -1 ? require('@/assets/homeSet/icon-wbyy.png') : require('@/assets/homeSet/icon-wbyy-default.png')" />
<img class="p-absolute icon-xcpd" :src="editForm.clueList.indexOf(3) != -1 ? require('@/assets/homeSet/icon-xcpd.png') : require('@/assets/homeSet/icon-xcpd-default.png')" />
</div>
</div>
......@@ -342,11 +342,11 @@ export default {
clueList: [
{
confId: 1,
confName: '维保预约'
confName: '救援服务'
},
{
confId: 2,
confName: '救援服务'
confName: '维保预约'
},
{
confId: 3,
......
......@@ -289,7 +289,7 @@
<glsx-dialog title="规格" :isVisible.sync="isSpescVisible" width="70%" @confirmDialog="handleSpescConfirm" @closeDialog="handleSpescClose">
<el-form label-width="120px" :model="spescEditForm" :rules="spescRules" ref="spescRef">
<el-form-item label="规格名:" prop="specificationName">
<el-input class="w-320" :size="size" maxlength="10" v-model="spescEditForm.specificationName" placeholder="请输入规格名"></el-input>
<el-input class="w-320" :size="size" maxlength="30" v-model="spescEditForm.specificationName" placeholder="请输入规格名"></el-input>
</el-form-item>
<el-form-item label="规格值:" prop="specificationValueList">
<el-tag style="margin-right: 10px;" v-for="(tag, i) in spescEditForm.specificationValueList" :key="i" closable :type="tag.type" @close="handleSpescDelete(tag)">{{ tag.specificationValue }}</el-tag>
......
......@@ -41,9 +41,9 @@
</p>
</div>
</div>
<div v-if="specificationDetailList.length" class="flex" style="margin-top: 20px;" id="specificationDetailList">
<span class="spesc-label" :style="{ width: labelWidth }">规格明细:</span>
<div style="width: calc(100% - 100px); padding-right: 20px;">
<div v-if="specificationDetailList.length" style="margin: 20px;" id="specificationDetailList">
<div class="spesc-label" :style="{ width: labelWidth }">规格明细:</div>
<div style="width: 100%;">
<table class="table-spesc">
<tbody>
<tr style="background: #F4F6FC; box-shadow: 0px 1px 5px 0px rgba(38, 38, 38, 0.1);">
......@@ -296,22 +296,22 @@ export default {
this.mainImgUrl = this.editForm.goodsDetailImageList[idx].content
},
// 移动图片
handleMoveImg(dirction) {
var el = document.getElementsByClassName('small-box')[0]
if (dirction == 'left') {
if (this.curMoveNum == 0) {
return true
}
this.curMoveNum = this.curMoveNum - 1
el.style.left = '-' + this.curMoveNum * 90 + 'px'
} else {
if (this.curMoveNum == this.moveNum) {
return true
}
this.curMoveNum = this.curMoveNum + 1
el.style.left = '-' + this.curMoveNum * 90 + 'px'
}
},
// handleMoveImg(dirction) {
// var el = document.getElementsByClassName('small-box')[0]
// if (dirction == 'left') {
// if (this.curMoveNum == 0) {
// return true
// }
// this.curMoveNum = this.curMoveNum - 1
// el.style.left = '-' + this.curMoveNum * 90 + 'px'
// } else {
// if (this.curMoveNum == this.moveNum) {
// return true
// }
// this.curMoveNum = this.curMoveNum + 1
// el.style.left = '-' + this.curMoveNum * 90 + 'px'
// }
// },
handleInput(e, idx) {
var newValue = e.target.value
if (!this.reg.priceReg.test(newValue)) {
......@@ -441,7 +441,6 @@ export default {
.edit-product-dh .main-img-box {
width: 440px;
/* height: 440px; */
text-align: center;
padding: 0 20px;
}
......@@ -450,7 +449,7 @@ export default {
display: flex;
} */
.edit-product-dh .arrow {
/* .edit-product-dh .arrow {
width: 0;
height: 0;
border-width: 20px;
......@@ -465,27 +464,27 @@ export default {
.edit-product-dh .right-arrow {
border-color: transparent transparent transparent #999999;
}
} */
.edit-product-dh .small-block {
/* .edit-product-dh .small-block {
position: relative;
overflow: hidden;
width: 344px;
height: 80px;
margin: 0 10px;
}
} */
.edit-product-dh .small-box {
/* .edit-product-dh .small-box {
position: absolute;
left: 0;
}
} */
.edit-product-dh .small-img {
/* .edit-product-dh .small-img {
width: 80px;
height: 80px;
margin-right: 8px;
cursor: pointer;
}
} */
.edit-product-dh .pro-name {
width: 100%;
......@@ -513,12 +512,10 @@ export default {
}
/* 规格 */
.edit-product-dh .spesc-label {
padding: 1px 10px;
box-sizing: border-box;
width: 110px;
color: #666;
text-align: right;
padding-right: 12px;
font-weight: 600;
margin-bottom: 10px;
}
.edit-product-dh .table-spesc {
width: 100%;
......
......@@ -25,7 +25,7 @@
<GLButton v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 1" type="text" fn="自建编辑" @click="handleEdit(2, scope.scope)">编辑</GLButton>
<GLButton v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 2 && scope.scope.takeType == '1'" type="text" fn="带货编辑" @click="handleEditDh(2, scope.scope)">编辑</GLButton>
<el-button v-if="!scope.scope.goodsStatus && (scope.scope.goodsSource == 1 || (scope.scope.goodsSource == 2 && scope.scope.originGoodsStatus))" type="text" @click="handleUpOrDown(scope.scope)">上架</el-button>
<el-button v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 2 && !scope.scope.originGoodsStatus" type="text" @click="handleDwonNotice(scope.scope)">下架通知</el-button>
<el-button v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 2 && !scope.scope.originGoodsStatus && scope.scope.offReason" type="text" @click="handleDwonNotice(scope.scope)">下架通知</el-button>
<el-button v-if="scope.scope.goodsStatus" type="text" @click="handleUpOrDown(scope.scope)">下架</el-button>
<el-button v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 2" type="text" @click="handleTakeGood(scope.scope)">取消带货</el-button>
<el-button v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 1" type="text" @click="handleTop(scope.scope)">置顶</el-button>
......
<!-- 带货管理 -->
<template>
<div class="marketing p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" @click="handleTakeGood()">一键带货</el-button>
</div>
<div class="marketing take-good">
<div class="container">
<div>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
<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>
<el-button :size="size" type="default" @click="handleReset">重置</el-button>
</span>
</glsx-combi-form>
</div>
<el-button :size="size" class="default-blue-btn f-right m-b-10" type="default" @click="handleTakeGood()">一键带货</el-button>
<!-- 表格区域 开始 -->
<GLTable ref="takeGoodRef" class="table-img" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="goodsImage" class="table-image" slot-scope="scope">
......
......@@ -33,37 +33,39 @@
</p>
</div>
</div>
<div v-if="specificationDetailList.length" class="flex" style="margin-top: 20px;" id="specificationDetailList">
<span class="spesc-label" :style="{ width: labelWidth }">规格明细:</span>
<div style="width: calc(100% - 100px);">
<div v-if="specificationDetailList.length" style="margin: 20px;" id="specificationDetailList">
<div class="spesc-label" :style="{ width: labelWidth }">规格明细:</div>
<div style="width: 100%;">
<table class="table-spesc">
<tbody>
<tr>
<td :style="{ width: specsWidth }" v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">{{ subItem.specificationName }}</td>
<tr style="background: #F4F6FC; box-shadow: 0px 1px 5px 0px rgba(38, 38, 38, 0.1);">
<td :style="{ width: specsWidth, padding: '17px 0' }" v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">{{ subItem.specificationName }}</td>
<!-- <td :style="{ width: specsWidth }">零售价(元)</td> -->
<td :style="{ width: specsWidth }">供货价</td>
<td :style="{ width: specsWidth, padding: '17px 0' }">供货价</td>
<!-- <td :style="{ width: specsWidth }">利润</td> -->
<td :style="{ width: specsWidth }">库存</td>
<td :style="{ width: specsWidth, padding: '17px 0' }">库存</td>
</tr>
</tbody>
</table>
<table class="table-spesc" style="max-height: 400px;">
<tbody>
<tr style="border-bottom: 1px solid rgb(235, 235, 235);" v-for="(item, index) in nameToValSpecsList" :key="index">
<td :style="{ width: specsWidth }" v-for="(n, idx) in item.specsValueList" :key="idx">{{ n }}</td>
<!-- <td :style="{ width: specsWidth }">
<div style="max-height: 400px; overflow: scroll;">
<table class="table-spesc">
<tbody>
<tr style="border-bottom: 1px solid rgb(235, 235, 235); height: 54px; line-height: 54px;" v-for="(item, index) in nameToValSpecsList" :key="index">
<td :style="{ width: specsWidth }" v-for="(n, idx) in item.specsValueList" :key="idx">{{ n }}</td>
<!-- <td :style="{ width: specsWidth }">
<el-input :disabled="isDisabled" :class="{ 'border-red': (!(item.retailPrice + '') || +item.supplyPrice > +item.retailPrice) && submitted }" placeholder="零售价" v-model="item.retailPrice" @input.native="e => handleInput(e, index)">
<el-popover v-show="(!(item.retailPrice + '') || +item.supplyPrice > +item.retailPrice) && submitted" slot="suffix" placement="top" title="" width="90" trigger="hover" :content="!(item.retailPrice + '') ? '零售价是必填项' : '零售价要大于供货价'">
<i class="el-icon-warning color-red" slot="reference"></i>
</el-popover>
</el-input>
</td> -->
<td :style="{ width: specsWidth }">{{ item.supplyPrice }}元</td>
<!-- <td :style="{ width: specsWidth }">{{ (item.retailPrice - item.supplyPrice).toFixed(2) }}元</td> -->
<td :style="{ width: specsWidth }">{{ item.stock }}件</td>
</tr>
</tbody>
</table>
<td :style="{ width: specsWidth }">{{ item.supplyPrice }}元</td>
<!-- <td :style="{ width: specsWidth }">{{ (item.retailPrice - item.supplyPrice).toFixed(2) }}元</td> -->
<td :style="{ width: specsWidth }">{{ item.stock }}件</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<glsx-combi-form v-if="!specificationDetailList.length" class="edit-form-container" ref="editFormRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
......@@ -256,22 +258,22 @@ export default {
this.mainImgUrl = this.editForm.goodsDetailImageList[idx].content
},
// 移动图片
handleMoveImg(dirction) {
var el = document.getElementsByClassName('small-box')[0]
if (dirction == 'left') {
if (this.curMoveNum == 0) {
return true
}
this.curMoveNum = this.curMoveNum - 1
el.style.left = '-' + this.curMoveNum * 90 + 'px'
} else {
if (this.curMoveNum == this.moveNum) {
return true
}
this.curMoveNum = this.curMoveNum + 1
el.style.left = '-' + this.curMoveNum * 90 + 'px'
}
},
// handleMoveImg(dirction) {
// var el = document.getElementsByClassName('small-box')[0]
// if (dirction == 'left') {
// if (this.curMoveNum == 0) {
// return true
// }
// this.curMoveNum = this.curMoveNum - 1
// el.style.left = '-' + this.curMoveNum * 90 + 'px'
// } else {
// if (this.curMoveNum == this.moveNum) {
// return true
// }
// this.curMoveNum = this.curMoveNum + 1
// el.style.left = '-' + this.curMoveNum * 90 + 'px'
// }
// },
// handleInput(e, idx) {
// var newValue = e.target.value
// if (!this.reg.priceReg.test(newValue)) {
......@@ -374,16 +376,16 @@ export default {
vertical-align: top;
}
.edit-product-dh .main-img {
/* .edit-product-dh .main-img {
width: 375px;
height: 375px;
}
} */
/* .edit-product-dh .flex {
display: flex;
} */
.edit-product-dh .arrow {
/* .edit-product-dh .arrow {
width: 0;
height: 0;
border-width: 20px;
......@@ -398,9 +400,9 @@ export default {
.edit-product-dh .right-arrow {
border-color: transparent transparent transparent #999999;
}
} */
.edit-product-dh .small-block {
/* .edit-product-dh .small-block {
position: relative;
overflow: hidden;
width: 344px;
......@@ -411,14 +413,14 @@ export default {
.edit-product-dh .small-box {
position: absolute;
left: 0;
}
} */
.edit-product-dh .small-img {
/* .edit-product-dh .small-img {
width: 80px;
height: 80px;
margin-right: 8px;
cursor: pointer;
}
} */
.edit-product-dh .pro-name {
width: 100%;
......@@ -446,12 +448,10 @@ export default {
}
/* 规格 */
.edit-product-dh .spesc-label {
padding: 1px 10px;
box-sizing: border-box;
width: 110px;
color: #666;
text-align: right;
padding-right: 12px;
font-weight: 600;
margin-bottom: 10px;
}
.edit-product-dh .table-spesc {
width: 100%;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!