Commit 44483511 by 王志慧

fixed

1 parent e7e4a5bf
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<div class="goodsItemCon" v-for="(item, index) in purchaseList" <div class="goodsItemCon" v-for="(item, index) in purchaseList"
:class="[{ active: item.active }, { last: index === purchaseList.length - 1 }]" :key="index"> :class="[{ active: item.active }, { last: index === purchaseList.length - 1 }]" :key="index">
<!-- 图片{{ item.thumbUrl }} --> <!-- 图片{{ item.thumbUrl }} -->
<img :src="item.goodsInfo.thumbUrl?item.goodsInfo.thumbUrl:defaultImg" class="img" alt="" /> <img :src="item.goodsInfo.thumbUrl ? item.goodsInfo.thumbUrl : defaultImg" class="img" alt="" />
<span class="goodsName one-line-ellipsis">{{ item.upgradeGoods.upgradeGoodsName }}</span> <span class="goodsName one-line-ellipsis">{{ item.upgradeGoods.upgradeGoodsName }}</span>
<!-- 名称{{ item.goodsName }} --> <!-- 名称{{ item.goodsName }} -->
<span class="purchaseOrderCount">编码:{{ item.upgradeGoods.type }}</span> <span class="purchaseOrderCount">编码:{{ item.upgradeGoods.type }}</span>
...@@ -70,8 +70,9 @@ ...@@ -70,8 +70,9 @@
<el-form ref="form" label-width="94px" size="small"> <el-form ref="form" label-width="94px" size="small">
<el-form-item label="购买数量/卷:"> <el-form-item label="购买数量/卷:">
<el-input-number v-model="goodsNumber" @change="handleChange" :min="1" <el-input-number v-model="goodsNumber" @change="handleChange" :min="1"
:max="9999"></el-input-number> {{ membraneTypeList.includes(goodsInfo.goodsInfo&&goodsInfo.goodsInfo.goodsType) ? :max="9999"></el-input-number> {{
`卷(1卷=${goodsInfo.goodsInfo&&goodsInfo.goodsInfo.convertedValue || 30}米)` : '件' }} membraneTypeList.includes(goodsInfo.goodsInfo && goodsInfo.goodsInfo.goodsType) ?
`卷(1卷=${goodsInfo.goodsInfo && goodsInfo.goodsInfo.convertedValue || 30}米)` : '件' }}
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -130,7 +131,7 @@ export default { ...@@ -130,7 +131,7 @@ export default {
data() { data() {
return { return {
emptyImgUrl: require('@/assets/empty.png'), emptyImgUrl: require('@/assets/empty.png'),
defaultImg:require('@/assets/default.png'), defaultImg: require('@/assets/default.png'),
addressComVisible: false, addressComVisible: false,
addressInfo: {}, addressInfo: {},
purchaseList: [], purchaseList: [],
...@@ -212,7 +213,6 @@ export default { ...@@ -212,7 +213,6 @@ export default {
this.$apis.purchase this.$apis.purchase
.listWithPagePurchaseInfo(params) .listWithPagePurchaseInfo(params)
.then(result => { .then(result => {
console.log(result)
const { list, total } = result const { list, total } = result
this.purchaseList = list this.purchaseList = list
this.total = total this.total = total
...@@ -231,11 +231,17 @@ export default { ...@@ -231,11 +231,17 @@ export default {
this.listWithPagePurchaseInfo() this.listWithPagePurchaseInfo()
}, },
handleDetail(item) { handleDetail(item) {
const { provinceName } = this.addressInfo
if (provinceName == null) {
this.$message.error('请先完善收货地址')
return
}
this.goodsInfo = item this.goodsInfo = item
this.totalPrice = new BigNumber(this.goodsInfo.shopPurchasePrice) this.totalPrice = new BigNumber(this.goodsInfo.shopPurchasePrice)
.times(this.goodsNumber) .times(this.goodsNumber)
.dp(2) .dp(2)
.toNumber() .toNumber()
this.isBuy = true this.isBuy = true
}, },
// 每页条数 // 每页条数
...@@ -266,7 +272,7 @@ export default { ...@@ -266,7 +272,7 @@ export default {
areaName areaName
} }
if (provinceName == null) { if (provinceName == null) {
this.$message.error('请先完善发货地址') this.$message.error('请先完善收货地址')
return return
} }
this.throttleSubmit = true this.throttleSubmit = true
...@@ -562,16 +568,19 @@ export default { ...@@ -562,16 +568,19 @@ export default {
} }
} }
} }
.gl-form-page{
.gl-form-page {
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.searchCon{
.searchCon {
/deep/ .el-input__inner { /deep/ .el-input__inner {
width:284px; width: 284px;
} }
/deep/ .el-form-item{
margin-right:12px; /deep/ .el-form-item {
margin-right: 12px;
} }
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!