Commit 2bcb95f5 by wangql
2 parents 3a82a1e8 9348f159
...@@ -107,9 +107,6 @@ html { ...@@ -107,9 +107,6 @@ html {
.marketing .wechat-container .wechat-box { .marketing .wechat-container .wechat-box {
width: 290px; width: 290px;
border: 1px solid #cecece;
// width: 100%;
border-radius: 2px;
} }
.marketing .edit-container { .marketing .edit-container {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="classifyRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="classifyRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<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>
...@@ -132,6 +132,11 @@ export default { ...@@ -132,6 +132,11 @@ export default {
handleTop(row) { handleTop(row) {
this.secondConfirm('置顶', '确定置顶此分类?', 'classifyList', 'topClassifyApi', { id: row.id }) this.secondConfirm('置顶', '确定置顶此分类?', 'classifyList', 'topClassifyApi', { id: row.id })
}, },
setTableFinishFun() {
//接收到的数据为空
this.$refs.classifyRef.data.length ? (this.$refs.classifyRef.tableHeightValues = '') : this.$refs.classifyRef.setTableHeightFun()
},
handleSearch() { handleSearch() {
this.$refs.classifyRef.refreshTable() this.$refs.classifyRef.refreshTable()
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="content-text"> <div class="content-text">
<div class="detail-item"> <div class="detail-item">
<div class="detail-label">创建者:</div> <div class="detail-label">创建者:</div>
<div class="detail-value">{{basicInfo.createdBy ? basicInfo.createdBy : '-'}}</div> <div class="detail-value">{{basicInfo.createdName ? basicInfo.createdName : '-'}}</div>
</div> </div>
<div class="detail-item"> <div class="detail-item">
<div class="detail-label">群发类型:</div> <div class="detail-label">群发类型:</div>
......
...@@ -14,8 +14,13 @@ ...@@ -14,8 +14,13 @@
</div> </div>
<div v-if="activeIndex == 1" class="container"> <div v-if="activeIndex == 1" class="container">
<div class="container-header"> <div class="container-header">
<el-button
type="primary"
size="small"
icon="el-icon-plus"
@click="btnClick('create', 1)"
>新建群发</el-button>
<div class="text">企业统一选择要发送的客户,由添加客户的成员确认后发送给客户,消息内容仅管理员和负责人可创建。</div> <div class="text">企业统一选择要发送的客户,由添加客户的成员确认后发送给客户,消息内容仅管理员和负责人可创建。</div>
<el-button type="primary" icon="el-icon-plus" @click="btnClick('create', 1)">新建群发</el-button>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable <GLTable
...@@ -46,7 +51,12 @@ ...@@ -46,7 +51,12 @@
<div v-if="activeIndex == 2" class="container"> <div v-if="activeIndex == 2" class="container">
<div class="container-header"> <div class="container-header">
<div class="text">管理员或负责人统一创建内容,群主收到通知后,可选择他管理的客户群并群发。</div> <div class="text">管理员或负责人统一创建内容,群主收到通知后,可选择他管理的客户群并群发。</div>
<el-button type="primary" icon="el-icon-plus" @click="btnClick('create', 2)">新建群发</el-button> <el-button
type="primary"
size="small"
icon="el-icon-plus"
@click="btnClick('create', 2)"
>新建群发</el-button>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable <GLTable
...@@ -298,12 +308,13 @@ export default { ...@@ -298,12 +308,13 @@ export default {
margin-top: 2px; margin-top: 2px;
&-header { &-header {
display: flex; display: flex;
justify-content: space-between; // justify-content: space-between;
align-items: center; align-items: center;
padding-bottom: 25px; padding-bottom: 20px;
.text { .text {
font-size: 14px; font-size: 14px;
color: #999; color: #999;
margin-left: 20px;
} }
} }
} }
......
...@@ -109,8 +109,22 @@ ...@@ -109,8 +109,22 @@
</div> </div>
<div class="wechat-container m-r-20" style="margin-top: 40px;"> <div class="wechat-container m-r-20" style="margin-top: 40px;">
<div class="wechat-box"> <div class="wechat-box">
<img class="w-100-per" src="./images/home-set-head.png" /> <img class="w-100-per" src="@/assets/phone.png" />
<img class="w-100-per" src="./images/home-set-footer.png" /> <img class="wechant-back" src="@/assets/home-set.png" />
<div class="wechant-banner-img img-w-h">
<img v-if="!editForm.bannerList.length" src="@/assets/home-set-default.png" />
<el-carousel v-else height="90px">
<el-carousel-item v-for="item in editForm.bannerList" :key="item">
<img class="img-w-h" :src="item.bannerImg" />
</el-carousel-item>
</el-carousel>
</div>
<div class="wechant-notice">
<img class="img-14" src="@/assets/icon_notice.png">
<span>
<marquee width="200px" height="14px" scrolldelay="160">{{editForm.noticeContent}}</marquee>
</span>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -555,7 +569,7 @@ export default { ...@@ -555,7 +569,7 @@ export default {
} }
} }
</script> </script>
<style scoped> <style>
/* .home-set .container { /* .home-set .container {
padding: 20px 24px 20px 0; padding: 20px 24px 20px 0;
} */ } */
...@@ -577,6 +591,40 @@ export default { ...@@ -577,6 +591,40 @@ export default {
width: 100%; width: 100%;
border-radius: 2px; border-radius: 2px;
} */ } */
.home-set .wechat-container .wechat-box .wechant-back {
width: 252px;
box-sizing: border-box;
position: absolute;
top: 56px;
left: 19px;
border: 1px solid #D8D8D8;
}
.home-set .wechat-container .wechat-box .wechant-banner-img {
position: absolute;
top: 141px;
left: 35px;
}
.img-14 {
width: 14px;
height: 14px;
margin-right: 4px;
}
.home-set .wechat-container .wechat-box .img-w-h {
width: 220px;
height: 90px;
}
.home-set .wechat-container .wechat-box .wechant-notice {
position: absolute;
top: 237px;
left: 35px;
font-size: 12px;
height: 14px;
line-height: 14px;
color: #333333;
}
.home-set .wechat-container .wechat-box .el-carousel__button {
width: 5px !important;
}
.home-set .banner-upload-box { .home-set .banner-upload-box {
width: 264px; width: 264px;
/* margin: 0 10px 10px 0; */ /* margin: 0 10px 10px 0; */
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
</span> </span>
</GLTable> </GLTable>
</div> </div>
<glsx-dialog title="权益详情" width="712px" :noBtnOk="true" :noCancel="true" :noClose="false" btnCancelLabel="关闭" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose"> <glsx-dialog title="权益详情" width="712px" :noBtnOk="true" :noCancel="true" :noClose="false" typeName="primary" btnCancelLabel="关闭" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose">
<!-- <el-scrollbar> --> <!-- <el-scrollbar> -->
<div class="modal-body"> <div class="modal-body">
<div class="equity-name">汽车权益</div> <div class="equity-name">汽车权益</div>
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</GLTable> </GLTable>
</div> </div>
<!-- btnCancelLabel="关闭" --> <!-- btnCancelLabel="关闭" -->
<glsx-dialog title="示例效果" width="1142px" :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose"> <glsx-dialog title="示例效果" width="1142px" :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" typeName="primary" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose">
<div class="content-body"> <div class="content-body">
<div class="content-item col1"> <div class="content-item col1">
<div class="subTitle">1、管理后台先创建套餐</div> <div class="subTitle">1、管理后台先创建套餐</div>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="commentRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="commentRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="scope.scope.commentStatus == '0'" type="text" @click="handleRevoke(scope.scope)">发布</el-button> <el-button v-if="scope.scope.commentStatus == '0'" type="text" @click="handleRevoke(scope.scope)">发布</el-button>
<el-button v-if="scope.scope.commentStatus == '1'" type="text" @click="handleRevoke(scope.scope)">撤回</el-button> <el-button v-if="scope.scope.commentStatus == '1'" type="text" @click="handleRevoke(scope.scope)">撤回</el-button>
...@@ -188,6 +188,11 @@ export default { ...@@ -188,6 +188,11 @@ export default {
}) })
} }
}, },
setTableFinishFun() {
//接收到的数据为空
this.$refs.commentRef.data.length ? (this.$refs.commentRef.tableHeightValues = '') : this.$refs.commentRef.setTableHeightFun()
},
handleSearch() { handleSearch() {
this.$refs.commentRef.refreshTable() this.$refs.commentRef.refreshTable()
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</el-tabs> </el-tabs>
<!-- 表格区域 - 全部订单/售后订单 - 开始 --> <!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<GLTable ref="allOrderRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="allOrderRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<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="handleDetail(scope.scope)">查看订单</el-button> <el-button type="text" @click="handleDetail(scope.scope)">查看订单</el-button>
<el-button v-if="scope.scope.deliveryType == 1 && scope.scope.orderStatus == 14" type="text" @click="handleWriteOff(scope.scope)">订单核销</el-button> <el-button v-if="scope.scope.deliveryType == 1 && scope.scope.orderStatus == 14" type="text" @click="handleWriteOff(scope.scope)">订单核销</el-button>
...@@ -614,6 +614,11 @@ export default { ...@@ -614,6 +614,11 @@ export default {
}) })
}, },
// 确认收货 - end // 确认收货 - end
setTableFinishFun() {
//接收到的数据为空
this.$refs.allOrderRef.data.length ? (this.$refs.allOrderRef.tableHeightValues = '') : this.$refs.allOrderRef.setTableHeightFun()
},
handleSearch() { handleSearch() {
this.$refs.allOrderRef.refreshTable() this.$refs.allOrderRef.refreshTable()
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="shareRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="shareRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="scope.scope.shareStatus == 0" type="text" @click="handleEdit(2, scope.scope)">发布</el-button> <el-button v-if="scope.scope.shareStatus == 0" type="text" @click="handleEdit(2, scope.scope)">发布</el-button>
<el-button v-if="scope.scope.shareStatus == 1" type="text" @click="handleRevoke(scope.scope)">撤回</el-button> <el-button v-if="scope.scope.shareStatus == 1" type="text" @click="handleRevoke(scope.scope)">撤回</el-button>
...@@ -205,6 +205,11 @@ export default { ...@@ -205,6 +205,11 @@ export default {
}) })
} }
}, },
setTableFinishFun() {
//接收到的数据为空
this.$refs.shareRef.data.length ? (this.$refs.shareRef.tableHeightValues = '') : this.$refs.shareRef.setTableHeightFun()
},
handleSearch() { handleSearch() {
this.$refs.shareRef.refreshTable() this.$refs.shareRef.refreshTable()
......
...@@ -7,30 +7,64 @@ ...@@ -7,30 +7,64 @@
<div class="home-set-form flex-grow"> <div class="home-set-form flex-grow">
<div v-for="(item, index) in externalFormList" :key="index"> <div v-for="(item, index) in externalFormList" :key="index">
<p class="edit-title">{{ item.title }}</p> <p class="edit-title">{{ item.title }}</p>
<glsx-combi-form class="edit-form-container p-l-40 m-b-60" ref="editFormRef" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule"> <glsx-combi-form
class="edit-form-container p-l-40 m-b-60"
ref="editFormRef"
:labelWidth="labelWidth"
defaultWidth="320px"
:isBlock="true"
:formRef="item.editChildRef"
:formObj="editForm"
:formData="item.editFormData"
:formRules="item.editRule"
@handleImgDelete="handleFormImgDelete"
>
<template slot="describeBtn"> <template slot="describeBtn">
<el-button :disabled="isDisabled" type="primary" @click="handleDescribeImgAdd">添加图片</el-button> <el-button :disabled="isDisabled" type="primary" @click="handleDescribeImgAdd">添加图片</el-button>
</template> </template>
<div :style="{ 'margin-left': labelWidth }" slot="descImgs" slot-scope="scope"> <div :style="{ 'margin-left': labelWidth }" slot="descImgs" slot-scope="scope">
<div v-for="(subItem, subIndex) in editForm[scope.scope.name]" :key="subIndex" class="flex"> <div
v-for="(subItem, subIndex) in editForm[scope.scope.name]"
:key="subIndex"
class="flex"
>
<!-- 上传图片 --> <!-- 上传图片 -->
<div class="banner-upload-box"> <div class="banner-upload-box">
<div class="p-t-12"> <div class="p-t-12">
<div class="flex"> <div class="flex">
<div v-show="!subItem.content" class="activity-img img-w-h" style="margin-bottom: 11px;"> <div
v-show="!subItem.content"
class="activity-img img-w-h"
style="margin-bottom: 11px;"
>
<div class="add">+</div> <div class="add">+</div>
<span class="number">上传</span> <span class="number">上传</span>
<input type="file" style="opacity: 0;" ref="file" class="activity-img img-w-h" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleImgChange(e, subIndex)" /> <input
type="file"
style="opacity: 0;"
ref="file"
class="activity-img img-w-h"
accept="image/png, image/jpeg, image/gif, image/jpg"
@change="e => handleImgChange(e, subIndex)"
/>
</div> </div>
<div v-show="!subItem.content"> <div v-show="!subItem.content">
<el-button type="text" class="el-icon-delete" @click="handleEmptyDelete(subIndex)"></el-button> <el-button
type="text"
class="el-icon-delete"
@click="handleEmptyDelete(subIndex)"
></el-button>
</div> </div>
</div> </div>
<span v-show="subItem.content" class="muti-imgs"> <span v-show="subItem.content" class="muti-imgs">
<img class="img-w-h" :src="subItem.content" /> <img class="img-w-h" :src="subItem.content" />
<span class="img-btns"> <span class="img-btns">
<span class="btn-item"> <span class="btn-item">
<i v-if="!isDisabled" class="el-icon-delete" @click="handleImgDelete(scope.scope.name, subIndex)"></i> <i
v-if="!isDisabled"
class="el-icon-delete"
@click="handleImgDelete(scope.scope.name, subIndex)"
></i>
<i class="el-icon-zoom-in" @click="handleImgLook(subItem.content)"></i> <i class="el-icon-zoom-in" @click="handleImgLook(subItem.content)"></i>
</span> </span>
</span> </span>
...@@ -48,14 +82,26 @@ ...@@ -48,14 +82,26 @@
<div> <div>
<span>规格名:</span> <span>规格名:</span>
<span>{{ subItem.specificationName }}</span> <span>{{ subItem.specificationName }}</span>
<el-button v-show="!isDisabled" type="text" @click="handleSpecsEdit(2, subItem, subIndex)">编辑</el-button> <el-button
<el-button v-show="!isDisabled" type="text" @click="handleSpecsDelete(subIndex)">删除</el-button> v-show="!isDisabled"
type="text"
@click="handleSpecsEdit(2, subItem, subIndex)"
>编辑</el-button>
<el-button
v-show="!isDisabled"
type="text"
@click="handleSpecsDelete(subIndex)"
>删除</el-button>
</div> </div>
<div class="flex"> <div class="flex">
<span style="width: 56px;">规格值:</span> <span style="width: 56px;">规格值:</span>
<div style="width: calc(100% - 56px);"> <div style="width: calc(100% - 56px);">
<div> <div>
<span class="specs-label" v-for="(n, idx) in subItem.specificationValueList" :key="idx">{{ n.specificationValue }}</span> <span
class="specs-label"
v-for="(n, idx) in subItem.specificationValueList"
:key="idx"
>{{ n.specificationValue }}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -67,7 +113,11 @@ ...@@ -67,7 +113,11 @@
<table class="table-spesc"> <table class="table-spesc">
<tbody> <tbody>
<tr> <tr>
<td :style="{ width: specsWidth }" v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">{{ subItem.specificationName }}</td> <td
:style="{ width: specsWidth }"
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 }">库存(件)</td>
</tr> </tr>
...@@ -75,21 +125,63 @@ ...@@ -75,21 +125,63 @@
</table> </table>
<table class="table-spesc" style="max-height: 400px;"> <table class="table-spesc" style="max-height: 400px;">
<tbody> <tbody>
<tr style="border-bottom: 1px solid rgb(235, 235, 235);" v-for="(subItem, subIndex) in nameToValSpecsList" :key="subIndex"> <tr
<td :style="{ width: specsWidth }" v-for="(n, idx) in subItem.specsValueList" :key="idx">{{ n }}</td> style="border-bottom: 1px solid rgb(235, 235, 235);"
v-for="(subItem, subIndex) in nameToValSpecsList"
:key="subIndex"
>
<td
:style="{ width: specsWidth }"
v-for="(n, idx) in subItem.specsValueList"
:key="idx"
>{{ n }}</td>
<td :style="{ width: specsWidth }"> <td :style="{ width: specsWidth }">
<div v-if="routeInfo.groupOrStore == 1"> <div v-if="routeInfo.groupOrStore == 1">
<el-input :disabled="isDisabled" :class="{ 'border-red': (!(subItem.retailPrice + '') || +editForm.supplyPrice > +subItem.retailPrice) && submitted }" placeholder="零售价" v-model="subItem.retailPrice" @input.native="e => handleRetailPriceInput(e, subIndex)"> <el-input
<el-popover v-show="(!(subItem.retailPrice + '') || +editForm.supplyPrice > +subItem.retailPrice) && submitted" slot="suffix" placement="top" title="" width="90" trigger="hover" :content="!(subItem.retailPrice + '') ? '零售价是必填项' : '零售价要大于供货价'"> :disabled="isDisabled"
:class="{ 'border-red': (!(subItem.retailPrice + '') || +editForm.supplyPrice > +subItem.retailPrice) && submitted }"
placeholder="零售价"
v-model="subItem.retailPrice"
@input.native="e => handleRetailPriceInput(e, subIndex)"
>
<el-popover
v-show="(!(subItem.retailPrice + '') || +editForm.supplyPrice > +subItem.retailPrice) && submitted"
slot="suffix"
placement="top"
title
width="90"
trigger="hover"
:content="!(subItem.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>
</div> </div>
<el-input :disabled="isDisabled" v-else placeholder="零售价" v-model="subItem.retailPrice" @input.native="e => handleRetailPriceInput(e, subIndex)"></el-input> <el-input
:disabled="isDisabled"
v-else
placeholder="零售价"
v-model="subItem.retailPrice"
@input.native="e => handleRetailPriceInput(e, subIndex)"
></el-input>
</td> </td>
<td :style="{ width: specsWidth }"> <td :style="{ width: specsWidth }">
<el-input :disabled="isDisabled" placeholder="库存" v-model="subItem.stock" :class="{ 'border-red': !(subItem.stock + '') && submitted }" @input.native="e => handleStockInput(e, subIndex)"> <el-input
<el-popover v-show="!(subItem.stock + '') && submitted" slot="suffix" placement="top" title="" width="90" trigger="hover" content="库存是必填项"> :disabled="isDisabled"
placeholder="库存"
v-model="subItem.stock"
:class="{ 'border-red': !(subItem.stock + '') && submitted }"
@input.native="e => handleStockInput(e, subIndex)"
>
<el-popover
v-show="!(subItem.stock + '') && submitted"
slot="suffix"
placement="top"
title
width="90"
trigger="hover"
content="库存是必填项"
>
<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>
...@@ -109,72 +201,97 @@ ...@@ -109,72 +201,97 @@
<p>作为货源供给门店的价格</p> <p>作为货源供给门店的价格</p>
</template> </template>
<div slot="selectMerchant" slot-scope="scope" class="select-merchant"> <div slot="selectMerchant" slot-scope="scope" class="select-merchant">
<el-button :disabled="isDisabled" type="primary" @click="handleRelateStoreClose(scope)">{{ editForm.supplyMerchantList.length ? '更换' : '请选择' }}</el-button> <el-button
:disabled="isDisabled"
type="primary"
@click="handleRelateStoreClose(scope)"
>{{ editForm.supplyMerchantList.length ? '更换' : '请选择' }}</el-button>
</div> </div>
<div slot="merchantTable" class="select-merchant" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }"> <div
<GLTable v-show="editForm.supplyMerchantList.length" :hasPage="false" :tableParams="tableParams" :tableData="editForm.supplyMerchantList"> slot="merchantTable"
class="select-merchant"
:style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }"
>
<GLTable
v-show="editForm.supplyMerchantList.length"
:hasPage="false"
:tableParams="tableParams"
:tableData="editForm.supplyMerchantList"
>
<span slot="auth-button" slot-scope="scope"> <span slot="auth-button" slot-scope="scope">
<el-button :disabled="isDisabled" type="text" @click="handleMerchantDelete(scope)">删除</el-button> <el-button
:disabled="isDisabled"
type="text"
@click="handleMerchantDelete(scope)"
>删除</el-button>
</span> </span>
</GLTable> </GLTable>
</div> </div>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
</div> </div>
<div class="wechat-container m-r-20"> <div class="wechat-container m-r-20" style="margin-top: 40px;">
<div class="wechat-box"> <div class="wechat-box">
<img class="w-100-per" src="./images/pro-header.png" /> <img class="w-100-per" src="@/assets/phone.png" />
<!-- <div class="home-banner wechant-conf-box home-bg" style="border: none;margin-top: 0;"> <div class="wechant-back">
<ul ng-show="wechatImgList.length != 0" class="home-banner-box wechant-config" :style="{'width':wechatImgList.length * 100 + '%'}"> <div class="wechat-inner-box">
<li ng-repeat="item in wechatImgList" ng-show="item.content"> <div class="wechant-banner-img img-w-h">
<video ng-show="item.resType == 3" class="videoUpload" ng-src="{{trustUrl(formData.goodsVideo)}}" controls="controls"></video> <img
<img ng-show="item.resType == 1" ng-src="{{item.content}}" /> v-if="!wechatImgList.length"
</li> class="inner-img"
</ul> src="@/assets/product-default.png"
<img ng-show="(wechatImgList.length == 1 && !wechatImgList[0].content) || wechatImgList.length == 0 || !wechatImgList" style="width: 100%;height: 100%;" src="images/upload.png" alt=""> />
<ul class="indicator-dots-box align-center" ng-show="wechatImgList[0].length != 0 && wechatImgList.length != 1"> <el-carousel v-else height="250px">
<li class="indicator-dots-box-radius" ng-show="item.content" ng-class="{'active':$index == 0}" ng-click="bannerClick($index, 0)" ng-repeat="item in wechatImgList"></li> <el-carousel-item v-for="item in wechatImgList" :key="item">
</ul> <video v-if="item.resType == 3" class="inner-img" :src="item.content"></video>
</div> --> <img class="inner-img" :src="item.content" />
<!-- <div class="wechat-box"> </el-carousel-item>
<span ng-show="!specificationDetailList.length"> </el-carousel>
<span class="price">¥{{formData.retailPrice}}</span> <div>
</span> <div class="inner-block" style="margin-bottom: 4px;">
<span ng-show="specificationDetailList.length"> <span v-show="!specificationDetailList.length">
<span class="price">¥{{minRetailPrice}}</span> <span class="price">¥{{editForm.retailPrice}}</span>
<span ng-show="specificationDetailList.length > 1">起</span> </span>
</span> <span v-show="specificationDetailList.length">
<span class="old" ng-show="formData.originalPrice">{{formData.originalPrice}}</span> <span class="price">¥{{minRetailPrice}}</span>
<p class="good-name txt-ellipsis">{{formData.goodsName}}</p> <span v-show="specificationDetailList.length > 1">起</span>
<p> </span>
<span class="txt-tips">剩余:</span> <span class="old" v-show="editForm.originalPrice">¥{{editForm.originalPrice}}</span>
<span class="txt-tips" style="margin-left: 20px;">销售:0</span> <p class="good-name one-line-ellipsis">{{editForm.goodsName}}</p>
</p> <p>
</div> <span class="txt-tips">剩余:</span>
<div class="wechat-box"> <span class="txt-tips" style="margin-left: 20px;">销售:0</span>
<div class="line right-arrow" ng-if="nameToValSpecsList.length"> </p>
<span class="line-label">已选</span> </div>
<span class="line-txt">{{nameToValSpecsList[0].specificationData}}</span> <div class="inner-block" style="margin-bottom: 8px;">
</div> <div class="line" v-if="nameToValSpecsList.length">
<div class="line right-arrow" style="display: flex;"> <span class="line-label">已选</span>
<span class="line-label">配送</span> <span class="line-txt">{{nameToValSpecsList[0].specificationData}}</span>
<div> </div>
<div style="height: 25px; line-height: 30px;" class="line-txt">填写地址</div> <div class="line" style="display: flex;">
<div style="height: 25px; line-height: 18px;" class="line-txt">支付后,预计48小时内发货</div> <span class="line-label">配送</span>
<div>
<div style="height: 25px; line-height: 30px;" class="line-txt">填写地址</div>
<div style="height: 25px; line-height: 18px;" class="line-txt">支付后,预计48小时内发货</div>
</div>
</div>
<div class="line">
<span class="line-label">运费</span>
<span v-show="editForm.deliveryType == 1" class="line-txt">免运费</span>
<span v-show="editForm.deliveryType == 2" class="line-txt">{{editForm.expressFee}}元</span>
</div>
</div>
<div class="inner-block" style="margin-bottom: 0;">
<div style="word-wrap: break-word;padding-bottom: 8px;">{{editForm.describeTxt}}</div>
<div v-for="(item, index) in editForm.descImgList" :key="index">
<img class="inner-img" v-show="item.content" :src="item.content">
</div>
</div>
</div>
</div> </div>
</div> </div>
<div class="line"> <img class="wechat-footer" src="@/assets/product-footer.png" />
<span class="line-label">运费</span>
<span ng-show="formData.deliveryType == 1" class="line-txt">免运费</span>
<span ng-show="formData.deliveryType == 2" class="line-txt">{{formData.expressFee}}元</span>
</div>
</div> </div>
<div class="wechat-box" style="margin-bottom: 0;">
<div style="word-wrap: break-word;">{{formData.describe}}</div>
<div ng-repeat="item in textAndput">
<img ng-show="item.content" ng-src="{{item.content}}">
</div>
</div> -->
</div> </div>
</div> </div>
</div> </div>
...@@ -184,28 +301,75 @@ ...@@ -184,28 +301,75 @@
<el-button type="default" @click="handleCancel">取消</el-button> <el-button type="default" @click="handleCancel">取消</el-button>
</div> </div>
<el-dialog :visible.sync="isImgVisible"> <el-dialog :visible.sync="isImgVisible">
<img class="dialog-img" width="100%" :src="dialogImageUrl" alt="" /> <img class="dialog-img" width="100%" :src="dialogImageUrl" alt />
</el-dialog> </el-dialog>
<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="10"
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
<el-input class="input-new-tag" v-if="specsInputVisible" v-model="spescInputVal" ref="saveSpescInput" maxlength="30" :size="size" @keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm"></el-input> 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-input
class="input-new-tag"
v-if="specsInputVisible"
v-model="spescInputVal"
ref="saveSpescInput"
maxlength="30"
:size="size"
@keyup.enter.native="handleInputConfirm"
@blur="handleInputConfirm"
></el-input>
<el-button v-else class="button-new-tag" size="small" @click="showInput">+ 规格值</el-button> <el-button v-else class="button-new-tag" size="small" @click="showInput">+ 规格值</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</glsx-dialog> </glsx-dialog>
<relate-store-dialog v-if="relateStoreVisible" ref="relateStore" :relateStoreVisible="relateStoreVisible" :storeApi="storeApi" :storeSearchForm="storeSearchForm" :storeSelected="selectedList" @handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose"> <relate-store-dialog
v-if="relateStoreVisible"
ref="relateStore"
:relateStoreVisible="relateStoreVisible"
:storeApi="storeApi"
:storeSearchForm="storeSearchForm"
:storeSelected="selectedList"
@handleRelateStoreConfirm="handleRelateStoreConfirm"
@handleRelateStoreClose="handleRelateStoreClose"
>
<el-row slot> <el-row slot>
<el-form :model="storeSearchForm" ref="relate" :inline="true" label-width="90px"> <el-form :model="storeSearchForm" ref="relate" :inline="true" label-width="90px">
<el-form-item label="商户ID:" prop="merchantId"> <el-form-item label="商户ID:" prop="merchantId">
<el-input :size="size" v-model.trim="storeSearchForm.merchantId" placeholder="请输入商户ID" clearable></el-input> <el-input
:size="size"
v-model.trim="storeSearchForm.merchantId"
placeholder="请输入商户ID"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="门店名称:" prop="merchantName"> <el-form-item label="门店名称:" prop="merchantName">
<el-input :size="size" v-model.trim="storeSearchForm.merchantName" placeholder="请输入门店名称" clearable></el-input> <el-input
:size="size"
v-model.trim="storeSearchForm.merchantName"
placeholder="请输入门店名称"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button :size="size" type="primary" @click="handleSearchStore">搜索</el-button> <el-button :size="size" type="primary" @click="handleSearchStore">搜索</el-button>
...@@ -233,6 +397,7 @@ export default { ...@@ -233,6 +397,7 @@ export default {
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
submitted: false, submitted: false,
isDisabled: false, isDisabled: false,
wechatImgList: [],
routeInfo: { routeInfo: {
// 1-新增;2-编辑;3-查看 // 1-新增;2-编辑;3-查看
addOrEdit: 1, addOrEdit: 1,
...@@ -362,6 +527,7 @@ export default { ...@@ -362,6 +527,7 @@ export default {
bizType: 1 bizType: 1
}) })
this.$refs.editFormRef[0].$refs.editProRef0.validateField(targetItem.name) this.$refs.editFormRef[0].$refs.editProRef0.validateField(targetItem.name)
this.getWechatImgList()
}) })
} }
}, },
...@@ -378,6 +544,7 @@ export default { ...@@ -378,6 +544,7 @@ export default {
const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1] const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1]
this.$apis.common.uploadVideoApi({ file: base64 }).then(res => { this.$apis.common.uploadVideoApi({ file: base64 }).then(res => {
this.editForm[targetItem.name] = res this.editForm[targetItem.name] = res
this.getWechatImgList()
}) })
} }
}, },
...@@ -615,6 +782,26 @@ export default { ...@@ -615,6 +782,26 @@ export default {
}) })
}) })
}, },
// 小程序展示
getWechatImgList() {
this.wechatImgList = []
if (this.editForm.goodsVideo) {
this.wechatImgList.push({
content: this.editForm.goodsVideo,
// 资源类型(1:图片;2:文本,3:视频)
resType: 3,
bizType: 1
})
}
if (this.editForm.goodsDetailImageList.length) {
this.editForm.goodsDetailImageList.forEach(item => {
this.wechatImgList.push(item)
})
}
},
handleFormImgDelete() {
this.getWechatImgList()
},
handleTypeChange(val) { handleTypeChange(val) {
// this.externalFormList[2].editRule.expressFee[0].required = val == 2 // this.externalFormList[2].editRule.expressFee[0].required = val == 2
var idx = this.externalFormList[2].editFormData.findIndex(item => item.name == 'expressFee') var idx = this.externalFormList[2].editFormData.findIndex(item => item.name == 'expressFee')
...@@ -627,7 +814,7 @@ export default { ...@@ -627,7 +814,7 @@ export default {
}) })
}) })
}, },
hideOrShowAttr(obj, isHide=true) { hideOrShowAttr(obj, isHide = true) {
var idx = '' var idx = ''
obj.forEach(item => { obj.forEach(item => {
idx = this.externalFormList[item.pIdx].editFormData.findIndex(subItem => subItem.name == item.name) idx = this.externalFormList[item.pIdx].editFormData.findIndex(subItem => subItem.name == item.name)
...@@ -874,7 +1061,7 @@ export default { ...@@ -874,7 +1061,7 @@ export default {
curSpeceNameList: curSpeceNameList curSpeceNameList: curSpeceNameList
} }
this.spescEditForm = status == 2 ? this.$common.utils.deepClone(targetItem) : { specificationName: '', specificationValueList: [] } this.spescEditForm = status == 2 ? this.$common.utils.deepClone(targetItem) : { specificationName: '', specificationValueList: [] }
console.log(this.spescEditForm) // console.log(this.spescEditForm)
this.handleSpescClose() this.handleSpescClose()
}, },
...@@ -941,6 +1128,7 @@ export default { ...@@ -941,6 +1128,7 @@ export default {
this.editForm.goodsDescList.length && this.recoveryDescribe() this.editForm.goodsDescList.length && this.recoveryDescribe()
this.editForm.supplyMerchantList.length && this.recoveryMerchantList() this.editForm.supplyMerchantList.length && this.recoveryMerchantList()
this.handleTypeChange(this.editForm.deliveryType) this.handleTypeChange(this.editForm.deliveryType)
this.getWechatImgList()
// console.log(this.editForm) // console.log(this.editForm)
}) })
}, },
...@@ -1057,7 +1245,10 @@ export default { ...@@ -1057,7 +1245,10 @@ export default {
params.id = this.routeInfo.id params.id = this.routeInfo.id
} }
// 描述 // 描述
params.goodsDescList = this.$common.utils.deepClone(this.editForm.descImgList) params.goodsDescList = []
this.editForm.descImgList.forEach(item => {
item.content && params.goodsDescList.push(item)
})
if (this.editForm.describeTxt) { if (this.editForm.describeTxt) {
params.goodsDescList.unshift({ params.goodsDescList.unshift({
content: this.editForm.describeTxt, content: this.editForm.describeTxt,
...@@ -1161,6 +1352,79 @@ export default { ...@@ -1161,6 +1352,79 @@ export default {
.edit-pro .w-320 { .edit-pro .w-320 {
width: 320px; width: 320px;
} }
.edit-pro .wechat-container .wechat-footer {
position: absolute;
width: 252px;
height: 35px;
top: 470px;
left: 19px;
}
.edit-pro .wechat-container .wechant-back {
/* border: 1px solid #D8D8D8; */
}
.edit-pro .wechat-container .wechat-inner-box {
position: absolute;
top: 56px;
left: 19px;
width: 253px;
height: 413px;
background-color: #F7F7F7;
overflow-y: scroll;
overflow-x: hidden;
}
.edit-pro .wechat-container .inner-block {
background-color: #FFFFFF;
padding: 6px 11px;
}
.edit-pro .wechat-container .price {
font-size: 28px;
color: #fc5b32;
margin-right: 4px;
}
.edit-pro .wechat-container .old {
font-size: 12px;
color: #b1b1b3;
text-decoration: line-through;
}
.edit-pro .wechat-container .good-name {
font-size: 18px;
width: 200px;
font-weight: bold;
margin: 8px 0 6px;
}
.edit-pro .wechat-container .txt-tips {
color: #b1b1b3;
font-size: 12px;
}
.edit-pro .wechat-container .line {
height: 50px;
line-height: 50px;
border-bottom: 1px solid #eff0f2;
}
.edit-pro .wechat-container .line-label {
font-size: 12px;
color: #656566;
margin-right: 44px;
}
.edit-pro .wechat-container .line-txt {
font-size: 12px;
color: #3b3b3d;
}
.edit-pro .wechat-container .inner-img {
width: 250px;
height: 250px;
}
.edit-pro .right-arrow::after {
content: '>';
position: absolute;
right: 20px;
}
/* .el-tag + .el-tag { /* .el-tag + .el-tag {
margin-left: 10px; margin-left: 10px;
} */ } */
...@@ -1181,4 +1445,15 @@ export default { ...@@ -1181,4 +1445,15 @@ export default {
color: #eb4e4e; color: #eb4e4e;
cursor: pointer; cursor: pointer;
} }
::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
height: 3px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
}
</style> </style>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="proGroupRef" class="table-img" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="proGroupRef" class="table-img" :getListApi="getListApi" :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">
<img class="img-60" :src="scope.scope.goodsImage" /> <img class="img-60" :src="scope.scope.goodsImage" />
</div> </div>
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
name: 'retailPrice', name: 'retailPrice',
width: '180', width: '180',
formatter: cellValue => { formatter: cellValue => {
return (cellValue.retailPrice / 100).toFixed(2) return cellValue.retailPrice
} }
}, },
{ {
...@@ -303,6 +303,40 @@ export default { ...@@ -303,6 +303,40 @@ export default {
}) })
} }
}, },
setTableFinishFun() {
//接收到的数据为空
if (!this.$refs.proGroupRef.data.length) {
this.$refs.proGroupRef.setTableHeightFun()
} else {
this.$refs.proGroupRef.tableHeightValues = ''
this.$refs.proGroupRef.data.forEach(item => {
item.saleAmount = item.goodsStatistics.saleAmount
if (item.specificationDetailList.length > 1) {
let retailPriceList = item.specificationDetailList.sort(function(a, b) {
return a.retailPrice - b.retailPrice
})
let stockeList = item.specificationDetailList.sort(function(a, b) {
return a.stock - b.stock
})
let minRatilPrice = retailPriceList[0].retailPrice / 100
let maxRatilPrice = retailPriceList[retailPriceList.length - 1].retailPrice / 100
let minStock = stockeList[0].stock
let maxStock = stockeList[stockeList.length - 1].stock
item.retailPrice = minRatilPrice == maxRatilPrice ? minRatilPrice.toFixed(2) : minRatilPrice.toFixed(2) + '-' + maxRatilPrice.toFixed(2)
item.minRatilPrice = minRatilPrice.toFixed(2)
item.goodsStock = minStock == maxStock ? minStock : minStock + '-' + maxStock
} else if (item.specificationDetailList.length == 1) {
item.retailPrice = (item.specificationDetailList[0].retailPrice / 100).toFixed(2)
item.minRatilPrice = item.retailPrice
item.goodsStock = item.specificationDetailList[0].stock
} else {
item.retailPrice = (item.retailPrice / 100).toFixed(2)
item.minRatilPrice = item.retailPrice
}
})
}
},
handleSearch() { handleSearch() {
this.$refs.proGroupRef.refreshTable() this.$refs.proGroupRef.refreshTable()
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="proGroupRef" class="table-img" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="proGroupRef" class="table-img" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<template slot="goodsImage" slot-scope="scope"> <template slot="goodsImage" slot-scope="scope">
<img class="img-60" :src="scope.scope.goodsImage" /> <img class="img-60" :src="scope.scope.goodsImage" />
</template> </template>
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
name: 'retailPrice', name: 'retailPrice',
width: '180', width: '180',
formatter: cellValue => { formatter: cellValue => {
return (cellValue.retailPrice / 100).toFixed(2) return cellValue.retailPrice
} }
}, },
{ {
...@@ -336,6 +336,40 @@ export default { ...@@ -336,6 +336,40 @@ export default {
}) })
} }
}, },
setTableFinishFun() {
//接收到的数据为空
if (!this.$refs.proGroupRef.data.length) {
this.$refs.proGroupRef.setTableHeightFun()
} else {
this.$refs.proGroupRef.tableHeightValues = ''
this.$refs.proGroupRef.data.forEach(item => {
item.saleAmount = item.goodsStatistics.saleAmount
if (item.specificationDetailList.length > 1) {
let retailPriceList = item.specificationDetailList.sort(function(a, b) {
return a.retailPrice - b.retailPrice
})
let stockeList = item.specificationDetailList.sort(function(a, b) {
return a.stock - b.stock
})
let minRatilPrice = retailPriceList[0].retailPrice / 100
let maxRatilPrice = retailPriceList[retailPriceList.length - 1].retailPrice / 100
let minStock = stockeList[0].stock
let maxStock = stockeList[stockeList.length - 1].stock
item.retailPrice = minRatilPrice == maxRatilPrice ? minRatilPrice.toFixed(2) : minRatilPrice.toFixed(2) + '-' + maxRatilPrice.toFixed(2)
item.minRatilPrice = minRatilPrice.toFixed(2)
item.goodsStock = minStock == maxStock ? minStock : minStock + '-' + maxStock
} else if (item.specificationDetailList.length == 1) {
item.retailPrice = (item.specificationDetailList[0].retailPrice / 100).toFixed(2)
item.minRatilPrice = item.retailPrice
item.goodsStock = item.specificationDetailList[0].stock
} else {
item.retailPrice = (item.retailPrice / 100).toFixed(2)
item.minRatilPrice = item.retailPrice
}
})
}
},
handleSearch() { handleSearch() {
this.$refs.proGroupRef.refreshTable() this.$refs.proGroupRef.refreshTable()
......
...@@ -129,6 +129,8 @@ export default { ...@@ -129,6 +129,8 @@ export default {
this.tableParams.checkSelectVal.push(item.goodsId) this.tableParams.checkSelectVal.push(item.goodsId)
} }
}) })
//接收到的数据为空
this.$refs.takeGoodRef.data.length ? (this.$refs.takeGoodRef.tableHeightValues = '') : this.$refs.takeGoodRef.setTableHeightFun()
}, },
secondConfirm(title, txt, apiModule, apiName, apiParams, fn) { secondConfirm(title, txt, apiModule, apiName, apiParams, fn) {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="zoneRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="zoneRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<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>
...@@ -128,6 +128,11 @@ export default { ...@@ -128,6 +128,11 @@ export default {
handleDelete(row) { handleDelete(row) {
this.secondConfirm('删除', '是否确认删除该专区?', 'zoneList', 'deleteZoneApi', { id: row.id }) this.secondConfirm('删除', '是否确认删除该专区?', 'zoneList', 'deleteZoneApi', { id: row.id })
}, },
setTableFinishFun() {
//接收到的数据为空
this.$refs.zoneRef.data.length ? (this.$refs.zoneRef.tableHeightValues = '') : this.$refs.zoneRef.setTableHeightFun()
},
handleSearch() { handleSearch() {
this.$refs.zoneRef.refreshTable() this.$refs.zoneRef.refreshTable()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!