|
@@ -31,7 +31,7 @@
|
|
|
</div>
|
|
|
<div class="flex-align-center" style="margin-bottom:30px">
|
|
|
<p>数量: </p>
|
|
|
- <el-input-number v-model="count" :min="selectProduct.orderminqty" :step="selectProduct.orderaddqty" size="small" label="描述文字"></el-input-number>
|
|
|
+ <el-input-number v-model="count" :min="selectProduct.orderminqty" step-strictly :step="selectProduct.orderaddqty" size="small" label="描述文字"></el-input-number>
|
|
|
<span style="color:#888;font-size: 14px;margin-left: 10px">起订量:{{selectProduct.orderminqty}}</span>
|
|
|
<span style="color:#888;font-size: 14px;margin-left: 10px">增量:{{selectProduct.orderaddqty}}</span>
|
|
|
<span style="color:#888;font-size: 14px;margin-left: 10px">库存:
|
|
@@ -153,14 +153,12 @@ export default {
|
|
|
"sa_itemgroupid": this.$route.query.id
|
|
|
}
|
|
|
})
|
|
|
- console.log(res.data.itemextend)
|
|
|
-
|
|
|
this.detail = res.data
|
|
|
this.selectProduct = this.detail ? this.detail[0] : ''
|
|
|
this.actImage = this.detail ? this.detail[0].attinfos[0] : {}
|
|
|
this.tradefield = this.detail ? this.detail[0].tradefield : []
|
|
|
this.actTradefield = this.detail[0].tradefield[0].tradefield
|
|
|
-
|
|
|
+ this.count = this.detail ? this.detail[0].orderminqty : []
|
|
|
},
|
|
|
countChange (num) {
|
|
|
this.count = num
|
|
@@ -170,7 +168,7 @@ export default {
|
|
|
this.selectProduct = data
|
|
|
this.actImage = data.attinfos[0]
|
|
|
this.actTradefield = data.tradefield[0].tradefield
|
|
|
- this.count = 1
|
|
|
+ this.count = data.orderminqty
|
|
|
},
|
|
|
|
|
|
async addCart () {
|