Commit 4690f122 by chenwq

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

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