Commit e7d1c829 by 前端

Merge branch 'chenwq_dev_v2.1.0' into 'v2.1.0'

带货详情,带货列表

See merge request !110
2 parents 21fa1a46 16703bd0
......@@ -982,7 +982,9 @@ export default {
this.dialogTableVisible = false
},
handleJumpCoupon() {
this.$history.push('/couponManage/index')
this.$router.push({
path: '/couponManage/index'
})
},
getCouponInfo() {
//获取选中数据
......
......@@ -35,7 +35,10 @@
</div>
<div style="width: calc(100% - 440px);">
<p class="pro-name txt-ellipsis">{{ editForm.goodsName }}</p>
<p v-show="!specificationDetailList.length" class="supply-price txt-ellipsis">{{ editForm.retailPrice }}元</p>
<p v-show="!specificationDetailList.length" class="txt-ellipsis">
供货价:
<span class="supply-price">{{ editForm.retailPrice }}元</span>
</p>
</div>
</div>
<div v-if="specificationDetailList.length" class="flex" style="margin-top: 20px;" id="specificationDetailList">
......@@ -395,7 +398,7 @@ export default {
.then(() => {
this.cancelJump()
})
.catch(() => {})
.catch(() => { })
} else {
this.cancelJump()
}
......@@ -486,14 +489,15 @@ export default {
.edit-product-dh .pro-name {
width: 100%;
font-size: 20px;
font-size: 16px;
color: #3a3a3a;
font-weight: 500;
margin-bottom: 14px;
}
.edit-product-dh .supply-price {
font-size: 26px;
color: #ff6d00;
margin-top: 10px;
}
.edit-product-dh .border-red {
......
......@@ -21,7 +21,9 @@
</div>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="!scope.scope.taked" type="text" @click="handleSingleTakeGood(scope.scope)">带货</el-button>
<el-button type="text" @click="handleDetail(scope.scope)">详情</el-button>
<!-- <GLButton v-if="!scope.scope.taked" fn="带货" type="text" @click="handleSingleTakeGood(scope.scope)">带货</GLButton> -->
<!-- <el-button type="text" @click="handleDetail(scope.scope)">详情</el-button> -->
<GLButton type="text" fn="详情" @click="handleDetail(scope.scope)">详情</GLButton>
</div>
</GLTable>
<!-- 表格区域 end -->
......@@ -103,7 +105,7 @@ export default {
}
},
mounted() {},
mounted() { },
methods: {
getParams() {
......@@ -174,7 +176,13 @@ export default {
},
handleDetail(row) {
this.$router.push('/takeGood/takeGoodDetail/' + row.goodsId)
// this.$router.push('/takeGood/takeGoodDetail/' + row.goodsId)
this.$router.push({
path: '/takeGood/takeGoodDetail',
query: {
id: row.goodsId
}
})
},
handleSearch() {
......
......@@ -27,7 +27,10 @@
</div>
<div style="width: calc(100% - 440px);">
<p class="pro-name txt-ellipsis">{{ editForm.goodsName }}</p>
<!-- <p v-show="!specificationDetailList.length" class="supply-price txt-ellipsis">{{ editForm.retailPrice }}元</p> -->
<p v-show="!specificationDetailList.length" class="txt-ellipsis">
供货价:
<span class="supply-price">{{ editForm.retailPrice }}元</span>
</p>
</div>
</div>
<div v-if="specificationDetailList.length" class="flex" style="margin-top: 20px;" id="specificationDetailList">
......@@ -101,7 +104,7 @@ export default {
/* eslint-enable */
routeInfo: {
// 1-新增;2-编辑;3-查看
addOrEdit: 1,
// addOrEdit: 1,
id: ''
},
specificationDetailList: [],
......@@ -147,7 +150,7 @@ export default {
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.params
this.routeInfo = this.$route.query
// this.title = this.titleObj[this.routeInfo.addOrEdit]
this.isDisabled = true
this.editFormData[0].isDisabled = true
......@@ -419,8 +422,10 @@ export default {
.edit-product-dh .pro-name {
width: 100%;
font-size: 20px;
font-size: 16px;
color: #3a3a3a;
font-weight: 500;
margin-bottom: 14px;
}
.edit-product-dh .supply-price {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!