调整修改库存逻辑
This commit is contained in:
parent
aa019a2159
commit
d58a4f3705
|
@ -10,7 +10,7 @@ let wsApi
|
||||||
|
|
||||||
// 在打包之前请检查当前环境是否正确
|
// 在打包之前请检查当前环境是否正确
|
||||||
const env = 'dev'; // 开发
|
const env = 'dev'; // 开发
|
||||||
// const env = 'prod'; // 生产
|
// const env = 'prod'; // t生产
|
||||||
// const env = 'prew'; // 预上线
|
// const env = 'prew'; // 预上线
|
||||||
|
|
||||||
switch (env) {
|
switch (env) {
|
||||||
|
|
|
@ -389,7 +389,7 @@
|
||||||
Fline(item) {
|
Fline(item) {
|
||||||
this.checkboxList1 = item.attrValue
|
this.checkboxList1 = item.attrValue
|
||||||
// console.log(this.checkboxList1.length)
|
// console.log(this.checkboxList1.length)
|
||||||
if (this.checkboxList1.length>1){
|
if (this.checkboxList1.length>0){
|
||||||
navigateTo(1, '/pages/product/updateStock/updateStock', {
|
navigateTo(1, '/pages/product/updateStock/updateStock', {
|
||||||
product_id: item.product_id
|
product_id: item.product_id
|
||||||
})
|
})
|
||||||
|
|
|
@ -13,7 +13,10 @@
|
||||||
<image :src="item.image||short.image||defualtImg"></image>
|
<image :src="item.image||short.image||defualtImg"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="td sku">
|
<view class="td sku">
|
||||||
|
<block v-if="item.sku">
|
||||||
<view v-for="name in item.sku.split(',')">{{name}}</view>
|
<view v-for="name in item.sku.split(',')">{{name}}</view>
|
||||||
|
</block>
|
||||||
|
<view v-else>{{short.store_name}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="td stock">
|
<view class="td stock">
|
||||||
<input type="number" v-model="item.stock" />
|
<input type="number" v-model="item.stock" />
|
||||||
|
@ -156,7 +159,7 @@ import { Toast } from '../../../libs/uniApi';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.sku{
|
.sku{
|
||||||
padding: 16rpx 0;
|
padding: 16rpx 16rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue