新增商品位置移动

This commit is contained in:
weipengfei 2023-11-04 17:26:47 +08:00
parent 36b31d2852
commit 4f180abff3
2 changed files with 36 additions and 18 deletions

View File

@ -196,7 +196,9 @@
} from '@/api/api.js' } from '@/api/api.js'
import { import {
chooseImage, chooseImage,
Toast Toast,
getStorage,
navigateTo
} from '@/libs/uniApi' } from '@/libs/uniApi'
export default { export default {
data() { data() {
@ -215,12 +217,12 @@
// src: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/saoma.png' // src: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/saoma.png'
src: '/static/images/SMRK/bar.png' src: '/static/images/SMRK/bar.png'
}, },
// { {
// name: '', name: '非标手动入库',
// type: 3, type: 3,
// // src: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/saoma.png' // src: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/saoma.png'
// src: '/static/images/SMRK/img.png' src: '/static/images/SMRK/img.png'
// } }
], ],
shadowStyle: { shadowStyle: {
backgroundImage: "none", backgroundImage: "none",
@ -551,8 +553,9 @@
this.scanCode(); this.scanCode();
this.pageType = 1; this.pageType = 1;
}else { }else {
this.photograph(); // this.photograph();
this.pageType = 2; // this.pageType = 2;
this.jumpAddGoods();
} }
}, },
// //
@ -645,7 +648,23 @@
this.showModel = false; this.showModel = false;
} }
}) })
} },
//
jumpAddGoods() {
const data = getStorage('addGoodsFormData');
if (data && data.product_id) {
let waitDeleteData = ['addGoodsFormData', 'singleSpecification', 'attrValue', 'modifyPriceData',
'addGoodsSecoundData', 'goodsDis', 'editGoodsDetils'];
waitDeleteData.forEach(item => {
if (getStorage(item)) {
removeStorage(item);
}
})
}
navigateTo(1, '/pages/product/addGoods/index', {
mer_id: this.mer_id
});
},
}, },
onPullDownRefresh() { onPullDownRefresh() {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
@ -688,8 +707,8 @@
} }
.select_item { .select_item {
// width: 220.84rpx; width: 220.84rpx;
width: 336rpx; // width: 336rpx;
height: 189.47rpx; height: 189.47rpx;
border-radius: 8px; border-radius: 8px;
background-color: #eee; background-color: #eee;

View File

@ -9,11 +9,11 @@
<block> <block>
<swiper-item :class="{ active: 0 == swiperCur }"> <swiper-item :class="{ active: 0 == swiperCur }">
<view class="slide-navigator"> <view class="slide-navigator">
<view class="item" hover-class='none' @click="jumpAddGoods"> <!-- <view class="item" hover-class='none' @click="jumpAddGoods">
<image mode='widthFix' class="image" src="../static/images/product_add.png"> <image mode='widthFix' class="image" src="../static/images/product_add.png">
</image> </image>
<text class="text">添加商品</text> <text class="text">添加商品</text>
</view> </view> -->
<navigator class="item" <navigator class="item"
:url="`/pages/product/goodsOnSale/index?mer_id=${mer_id}&type=1`" :url="`/pages/product/goodsOnSale/index?mer_id=${mer_id}&type=1`"
hover-class='none'> hover-class='none'>
@ -124,9 +124,9 @@
</view> </view>
<view class="operation acea-row row-between-wrapper"> <view class="operation acea-row row-between-wrapper">
<view class="acea-row row-middle"> <view class="acea-row row-middle">
<view class="" class="bnt" @click="Fonline(item)" style="width:150rpx"> <!-- <view class="" class="bnt" @click="Fonline(item)" style="width:150rpx">
线上入库 线上入库
</view> </view> -->
<view class="" class="bnt" @click="Fline(item)" style="width:150rpx"> <view class="" class="bnt" @click="Fline(item)" style="width:150rpx">
线下入库 线下入库
</view> </view>
@ -481,8 +481,7 @@
const data = getStorage('addGoodsFormData'); const data = getStorage('addGoodsFormData');
if (data && data.product_id) { if (data && data.product_id) {
let waitDeleteData = ['addGoodsFormData', 'singleSpecification', 'attrValue', 'modifyPriceData', let waitDeleteData = ['addGoodsFormData', 'singleSpecification', 'attrValue', 'modifyPriceData',
'addGoodsSecoundData', 'goodsDis', 'editGoodsDetils' 'addGoodsSecoundData', 'goodsDis', 'editGoodsDetils'];
];
waitDeleteData.forEach(item => { waitDeleteData.forEach(item => {
if (getStorage(item)) { if (getStorage(item)) {
removeStorage(item); removeStorage(item);