Commit 7080f9e1 by 张权

第二轮bug修复

1 parent 1aae782b
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<span v-if="editForm.receiveRule == 2 && editForm.receiveWay">{{ `${editForm.receiveWay == '1' ? '手机号:' : '车架号后6位:'}${editForm.receiveDetails}` }}</span> <span v-if="editForm.receiveRule == 2 && editForm.receiveWay">{{ `${editForm.receiveWay == '1' ? '手机号:' : '车架号后6位:'}${editForm.receiveDetails}` }}</span>
<span v-if="editForm.receiveRule == 1">{{ editForm.receiveWay == '1' ? '指定手机号' : '指定车架号后6位' }}:</span> <span v-if="editForm.receiveRule == 1">{{ editForm.receiveWay == '1' ? '指定手机号' : '指定车架号后6位' }}:</span>
<div v-if="editForm.receiveRule == 1" class="phone-wrap"> <div v-if="editForm.receiveRule == 1" class="phone-wrap">
<span :class="['phone',editForm.receiveWay==1?'realTel':'realNum']" v-for="(item, id) in receiveDetailList" :key="id">{{ item }}</span> <span :class="['phone', editForm.receiveWay == 1 ? 'realTel' : 'realNum']" v-for="(item, id) in receiveDetailList" :key="id">{{ item }}</span>
</div> </div>
</div> </div>
<div slot="staffListBlock" class="sale-select" v-show="editForm.staffList && editForm.staffList.length != 0"> <div slot="staffListBlock" class="sale-select" v-show="editForm.staffList && editForm.staffList.length != 0">
...@@ -261,7 +261,8 @@ export default { ...@@ -261,7 +261,8 @@ export default {
handleCancel() { handleCancel() {
this.$router.push({ this.$router.push({
path: '/giftBag/index' path: '/giftBag/index',
query: { type: this.routeInfo.type }
}) })
} }
} }
...@@ -343,10 +344,10 @@ export default { ...@@ -343,10 +344,10 @@ export default {
display: inline-block; display: inline-block;
margin: 5px 16px 5px 0; margin: 5px 16px 5px 0;
} }
.realTel{ .realTel {
width: 120px; width: 120px;
} }
.realNum{ .realNum {
width: 80px; width: 80px;
} }
} }
......
...@@ -28,13 +28,16 @@ export default { ...@@ -28,13 +28,16 @@ export default {
receivedGiftList receivedGiftList
}, },
created() { created() {
this.activeName = sessionStorage.getItem('GIFTNAME') ? sessionStorage.getItem('GIFTNAME') : 'giftList' // this.activeName = sessionStorage.getItem('GIFTNAME') ? sessionStorage.getItem('GIFTNAME') : 'giftList'
if (this.$route.query.type == 'received') {
this.activeName = 'receivedGiftList'
}
}, },
mounted() {}, mounted() {},
methods: { methods: {
handleTabClick() { handleTabClick() {
sessionStorage.setItem('GIFTNAME', this.activeName) this.$router.push({ path: this.$route.path, query: { type: this.activeName == 'receivedGiftList' ? 'received' : 'gift' } })
} }
} }
} }
......
...@@ -22,9 +22,13 @@ ...@@ -22,9 +22,13 @@
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="receivedGiftListRef" :getListApi="getListApi" :hasNum="false" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="receivedGiftListRef" :getListApi="getListApi" :hasNum="false" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<span slot="directionalGiftName" slot-scope="scope"> <span slot="directionalGiftName" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">{{ scope.scope.directionalGiftName }}</el-button> <el-tooltip effect="dark" :content="scope.scope.directionalGiftName" placement="top-start">
<p class="gift-name" @click="handleDetail(scope.scope)">
{{ scope.scope.directionalGiftName }}
</p>
</el-tooltip>
<span v-if="scope.scope.receiveStatus == 2" class="void-label">已作废</span> <span v-if="scope.scope.receiveStatus == 2" class="void-label">已作废</span>
<el-tooltip class="item" effect="dark" :content="scope.scope.cancelReason" placement="top-start"> <el-tooltip effect="dark" :content="scope.scope.cancelReason" placement="top-start">
<p class="void-reason" v-if="scope.scope.receiveStatus == 2">作废原因:{{ scope.scope.cancelReason || '--' }}</p> <p class="void-reason" v-if="scope.scope.receiveStatus == 2">作废原因:{{ scope.scope.cancelReason || '--' }}</p>
</el-tooltip> </el-tooltip>
</span> </span>
...@@ -197,7 +201,7 @@ export default { ...@@ -197,7 +201,7 @@ export default {
{ {
label: '礼包明细', label: '礼包明细',
prop: 'couponName', prop: 'couponName',
width: 200, width: 200
}, },
{ {
label: '数量', label: '数量',
...@@ -372,7 +376,8 @@ export default { ...@@ -372,7 +376,8 @@ export default {
this.$router.push({ this.$router.push({
path: '/giftBag/giftDetail', path: '/giftBag/giftDetail',
query: { query: {
id: row.directionalGiftId id: row.directionalGiftId,
type: 'received'
} }
}) })
}, },
...@@ -516,9 +521,18 @@ export default { ...@@ -516,9 +521,18 @@ export default {
.marketing /deep/ .el-table th div { .marketing /deep/ .el-table th div {
line-height: normal !important; line-height: normal !important;
} }
.secondTable{ .secondTable {
padding-left: 10px; padding-left: 10px;
} }
.gift-name {
color: #5850ff;
margin: 0;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
}
.void-label { .void-label {
width: 44px; width: 44px;
height: 18px; height: 18px;
...@@ -529,7 +543,7 @@ export default { ...@@ -529,7 +543,7 @@ export default {
text-align: center; text-align: center;
line-height: 18px; line-height: 18px;
background: #eeeded; background: #eeeded;
margin-left: 4px; margin-top: 2px;
} }
.void-reason { .void-reason {
font-size: 10px; font-size: 10px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!