调整修改库存逻辑

This commit is contained in:
weipengfei 2023-11-18 19:03:22 +08:00
parent aa019a2159
commit d58a4f3705
3 changed files with 7 additions and 4 deletions

View File

@ -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) {

View File

@ -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
}) })

View File

@ -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">
<view v-for="name in item.sku.split(',')">{{name}}</view> <block v-if="item.sku">
<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;
} }
} }
} }