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 { ...@@ -982,7 +982,9 @@ export default {
this.dialogTableVisible = false this.dialogTableVisible = false
}, },
handleJumpCoupon() { handleJumpCoupon() {
this.$history.push('/couponManage/index') this.$router.push({
path: '/couponManage/index'
})
}, },
getCouponInfo() { getCouponInfo() {
//获取选中数据 //获取选中数据
......
...@@ -35,7 +35,10 @@ ...@@ -35,7 +35,10 @@
</div> </div>
<div style="width: calc(100% - 440px);"> <div style="width: calc(100% - 440px);">
<p class="pro-name txt-ellipsis">{{ editForm.goodsName }}</p> <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> </div>
<div v-if="specificationDetailList.length" class="flex" style="margin-top: 20px;" id="specificationDetailList"> <div v-if="specificationDetailList.length" class="flex" style="margin-top: 20px;" id="specificationDetailList">
...@@ -395,7 +398,7 @@ export default { ...@@ -395,7 +398,7 @@ export default {
.then(() => { .then(() => {
this.cancelJump() this.cancelJump()
}) })
.catch(() => {}) .catch(() => { })
} else { } else {
this.cancelJump() this.cancelJump()
} }
...@@ -486,14 +489,15 @@ export default { ...@@ -486,14 +489,15 @@ export default {
.edit-product-dh .pro-name { .edit-product-dh .pro-name {
width: 100%; width: 100%;
font-size: 20px; font-size: 16px;
color: #3a3a3a; color: #3a3a3a;
font-weight: 500;
margin-bottom: 14px;
} }
.edit-product-dh .supply-price { .edit-product-dh .supply-price {
font-size: 26px; font-size: 26px;
color: #ff6d00; color: #ff6d00;
margin-top: 10px;
} }
.edit-product-dh .border-red { .edit-product-dh .border-red {
......
...@@ -21,7 +21,9 @@ ...@@ -21,7 +21,9 @@
</div> </div>
<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.taked" type="text" @click="handleSingleTakeGood(scope.scope)">带货</el-button> <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> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
...@@ -103,7 +105,7 @@ export default { ...@@ -103,7 +105,7 @@ export default {
} }
}, },
mounted() {}, mounted() { },
methods: { methods: {
getParams() { getParams() {
...@@ -174,7 +176,13 @@ export default { ...@@ -174,7 +176,13 @@ export default {
}, },
handleDetail(row) { 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() { handleSearch() {
......
...@@ -27,7 +27,10 @@ ...@@ -27,7 +27,10 @@
</div> </div>
<div style="width: calc(100% - 440px);"> <div style="width: calc(100% - 440px);">
<p class="pro-name txt-ellipsis">{{ editForm.goodsName }}</p> <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> </div>
<div v-if="specificationDetailList.length" class="flex" style="margin-top: 20px;" id="specificationDetailList"> <div v-if="specificationDetailList.length" class="flex" style="margin-top: 20px;" id="specificationDetailList">
...@@ -101,7 +104,7 @@ export default { ...@@ -101,7 +104,7 @@ export default {
/* eslint-enable */ /* eslint-enable */
routeInfo: { routeInfo: {
// 1-新增;2-编辑;3-查看 // 1-新增;2-编辑;3-查看
addOrEdit: 1, // addOrEdit: 1,
id: '' id: ''
}, },
specificationDetailList: [], specificationDetailList: [],
...@@ -147,7 +150,7 @@ export default { ...@@ -147,7 +150,7 @@ export default {
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft 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.title = this.titleObj[this.routeInfo.addOrEdit]
this.isDisabled = true this.isDisabled = true
this.editFormData[0].isDisabled = true this.editFormData[0].isDisabled = true
...@@ -419,8 +422,10 @@ export default { ...@@ -419,8 +422,10 @@ export default {
.edit-product-dh .pro-name { .edit-product-dh .pro-name {
width: 100%; width: 100%;
font-size: 20px; font-size: 16px;
color: #3a3a3a; color: #3a3a3a;
font-weight: 500;
margin-bottom: 14px;
} }
.edit-product-dh .supply-price { .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!