入库样式修改

This commit is contained in:
THK3121 2023-07-08 10:46:55 +08:00
parent 222d240bd7
commit 133493ecb8
7 changed files with 1035 additions and 943 deletions

View File

@ -265,7 +265,11 @@
id:id,
type:number
}
this.getIndex();
this.$nextTick(()=>{
this.where.is_verify = 1;
delete this.where.status;
this.init();
})
postconfirm(this.merId,data).then(res=>{
console.log(res);
})

View File

@ -3,9 +3,8 @@
<view class="order-index" ref="container">
<view class="header">
<div class="header_count">
<swiper indicator-dots="true" :circular="circular" indicator-color="#E4E4E4"
indicator-active-color="#E93323" previous-margin="0" next-margin="0" :current="swiperCur"
@change="swiperChange">
<swiper indicator-dots="true" :circular="circular" indicator-color="#E4E4E4" indicator-active-color="#E93323"
previous-margin="0" next-margin="0" :current="swiperCur" @change="swiperChange">
<block>
<swiper-item :class="{ active: 0 == swiperCur }">
<view class="slide-navigator">
@ -14,29 +13,25 @@
</image>
<text class="text">添加商品</text>
</view>
<navigator class="item"
:url="`/pages/product/goodsOnSale/index?mer_id=${mer_id}&type=1`"
<navigator class="item" :url="`/pages/product/goodsOnSale/index?mer_id=${mer_id}&type=1`"
hover-class='none'>
<image mode='widthFix' class="image" src="../static/images/product_sales.png">
</image>
<text class="text">在售商品</text>
</navigator>
<navigator class="item"
:url="`/pages/product/goodsOnSale/index?mer_id=${mer_id}&type=3`"
<navigator class="item" :url="`/pages/product/goodsOnSale/index?mer_id=${mer_id}&type=3`"
hover-class='none'>
<image mode='widthFix' class="image" src="../static/images/product_out.png">
</image>
<text class="text">售罄商品</text>
</navigator>
<navigator class="item"
:url="`/pages/product/goodsOnSale/index?mer_id=${mer_id}&type=5`"
<navigator class="item" :url="`/pages/product/goodsOnSale/index?mer_id=${mer_id}&type=5`"
hover-class='none'>
<image mode='widthFix' class="image" src="../static/images/product_recycle.png">
</image>
<text class="text">回收站</text>
</navigator>
<navigator class="item"
:url="`/pages/product/storeClassification/index?mer_id=${mer_id}`"
<navigator class="item" :url="`/pages/product/storeClassification/index?mer_id=${mer_id}`"
hover-class='none'>
<image mode='widthFix' class="image" src="../static/images/product_cate.png">
</image>
@ -46,18 +41,15 @@
</swiper-item>
<swiper-item :class="{ active: 1 == swiperCur }">
<view class="slide-navigator">
<navigator class="item"
:url="`/pages/product/addGoods/freightTemplate?mer_id=${mer_id}`"
<navigator class="item" :url="`/pages/product/addGoods/freightTemplate?mer_id=${mer_id}`"
hover-class='none'>
<image mode='widthFix' class="image" src="../static/images/product_freight.png">
</image>
<text class="text">运费模板</text>
</navigator>
<navigator class="item"
:url="`/pages/product/addGoods/mulSpecification?mer_id=${mer_id}`"
<navigator class="item" :url="`/pages/product/addGoods/mulSpecification?mer_id=${mer_id}`"
hover-class='none'>
<image mode='widthFix' class="image"
src="../static/images/product_specification.png"></image>
<image mode='widthFix' class="image" src="../static/images/product_specification.png"></image>
<text class="text">规格模板</text>
</navigator>
</view>
@ -100,20 +92,16 @@
</view>
<view class="operation acea-row row-between-wrapper">
<view class="acea-row row-middle">
<view v-if="item.is_show == 1 && item.status == 1" class="bnt"
@tap.stop="handleShelves(item,0)">下架
<view v-if="item.is_show == 1 && item.status == 1" class="bnt" @tap.stop="handleShelves(item,0)">下架
</view>
<view v-if="item.is_show == 0 && item.status == 1" class="bnt"
@tap.stop="handleShelves(item),1">上架
<view v-if="item.is_show == 0 && item.status == 1" class="bnt" @tap.stop="handleShelves(item),1">上架
</view>
<view @click="editGoods(item)" class="bnt">编辑</view>
<navigator
:url="'/pages/admin/goods_details/index?product_id='+item.product_id+'&product_type=0'"
<navigator :url="'/pages/admin/goods_details/index?product_id='+item.product_id+'&product_type=0'"
class="bnt" hover-class='none'>预览</navigator>
<view class="bnt" v-if="item.is_show == 0" @tap.stop="handleRecycle(item,index)">删除
</view>
<view class="bnt bnt_recommend" v-if="item.is_show == 1"
@tap.stop="handleRecommend(item)">
<view class="bnt bnt_recommend" v-if="item.is_show == 1" @tap.stop="handleRecommend(item)">
{{item.is_good ? '取消推荐' : '店铺推荐'}}
</view>
</view>
@ -124,18 +112,19 @@
</view>
<Loading :loaded="loaded" :loading="loading"></Loading>
</view>
<u-popup :show="show" @close="close" mode="center">
<image src="" mode=""></image>
<u-popup :show="show" @close="close" mode="center" bgColor='transparent'>
<image src="@/static/images/xianxia.png" mode="widthFix"></image>
<view class="popen">
<h4 v-if="this.on_line==1">线下入库</h4>
<h4 v-else>线上入库</h4>
<view class="guige" >
<u-radio-group v-model="checkboxValue1" placement="column" @change="checkboxChange">
<u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in checkboxList1" @change="radioChange(item)"
:key="index" :label="item.sku" :name="item.unique" v-if="item.sku">
<u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in checkboxList1"
@change="radioChange(item)" :key="index" :label="item.sku" :name="item.unique" v-if="item.sku">
</u-radio>
</u-radio-group>
</view>
<view class="shuru">
数量: <input type="text" v-model="data.number" placeholder="请输入">
</view>
@ -698,45 +687,69 @@
border-radius: 10px;
width: 30px;
height: 10px;
.gen_sel {
font-size: 12px
}
}
.popen {
position: absolute;
top: 110px;
width: 100%;
margin: auto;
padding: 10px;
h4 {
font-weight: 400;
font-size: 20px;
padding: 5px;
text-align: center;
}
.guige {
margin: 10px 0 10px 20px;
}
.guiges {
height: 100px;
margin: 10px 0 10px 20px;
}
.shuru {
display: flex;
justify-content: center;
justify-content: flex-start;
align-items: center;
padding: 5px;
margin-left: 20px;
input {
background: #F5F5F5;
border-radius: 8px 8px 8px 8px;
border: 1px solid #999999;
padding-left: 3px;
margin-left: 3px;
}
}
.btn {
display: flex;
justify-content: space-around;
justify-content: flex-start;
align-items: center;
margin: 5px;
margin: 10px;
.btn_l {
padding: 5px;
width: 100px;
border-radius: 4px;
background-color: #999999;
}
.btn_r {
width: 100px;
padding: 5px;
border-radius: 4px;
border: 1px solid #999999;
background: linear-gradient(180deg, #F98649 0%, #F34E45 100%);
border-radius: 27px 27px 27px 27px;
color: white;
}
}
}

View File

@ -43,7 +43,19 @@
</view>
</block>
</view>
<u-popup :show="show" @close="close" mode="center" bgColor='transparent'>
<image src="@/static/images/xianshang.png" mode="widthFix"></image>
<view class="popen">
<h4>{{title}}</h4>
<view class="shuru">
点击返回商品管理
</view>
<view class="btn">
<button class="btn_l" @click="close()">取消</button>
<button class="btn_r" @click="getback()">确定</button>
</view>
</view>
</u-popup>
</view>
</template>
@ -76,7 +88,9 @@
order_id: '',
order_product_id: '',
order_unique: ''
}
},
show: false,
title:''
}
},
onLoad(option) {
@ -113,18 +127,22 @@
this.data.order_id = order_id
this.data.order_product_id = product_id
this.data.order_unique = unique
this.show = true
postImport(this.mer_id, this.data).then(res => {
console.log(res);
this.title=res.message
this.$util.Tips({
title: res.message
})
setTimeout(() => {
})
},
close() {
this.show = false
},
getback(){
uni.navigateBack({
delta: 1
});
}, 1000)
})
}
}
}
@ -223,8 +241,9 @@
align-items: center;
justify-content: center;
border-radius: 50rpx;
border: 1px solid #999999;
font-size: 27rpx;
background: linear-gradient(180deg, #F98649 0%, #F34E45 100%);
color: white;
}
}
@ -273,4 +292,54 @@
margin: 0 0 50rpx 120rpx;
}
}
.popen {
position: absolute;
top: 110px;
width: 100%;
margin: auto;
padding: 10px;
h4 {
font-weight: 400;
font-size: 20px;
padding: 5px;
text-align: center;
}
.guige {
margin: 10px 0 10px 20px;
}
.shuru {
display: flex;
justify-content: center;
align-items: center;
font-size: 18px;
padding: 5px;
}
.btn {
display: flex;
justify-content: flex-start;
align-items: center;
margin: 10px;
.btn_l {
padding: 5px;
width: 100px;
border-radius: 4px;
}
.btn_r {
width: 100px;
padding: 5px;
border-radius: 4px;
background: linear-gradient(180deg, #F98649 0%, #F34E45 100%);
border-radius: 27px 27px 27px 27px;
color: white;
}
}
}
</style>

View File

@ -653,6 +653,7 @@
order_key: '',
is_take: '',
domain: HTTP_REQUEST_URL,
product_type:''
};
},
computed: {
@ -670,6 +671,7 @@
onReady() {},
mounted: function() {},
onLoad: function(options) {
this.product_type=options.product_type
this.seckillId = options.seckillId
// #ifdef H5
this.from = this.$wechat.isWeixin() ? 'weixin' : 'h5'
@ -1201,7 +1203,7 @@
callback_key = res.data.result.pay_key,
jsConfig = res.data.result.config,
goPages = '/pages/order_pay_status/index?order_id=' + orderId + '&msg=' + res.message,
goPagesOrder='/pages/order_details/stay?order_id=' + orderId+'&credit_buy=1';
goPagesOrder='/pages/order_details/stay?order_id=' + orderId+'&credit_buy=1&product_type='+that.product_type ;
that.orderPay = true;
uni.hideLoading();
switch (status) {

View File

@ -21,7 +21,7 @@
<view>全部</view>
<view class='num'>{{orderData.all || 0}}</view>
</view>
<view class='item' :class='orderStatus==0 ? "on": ""' @click="statusClick(0)">
<view class='item' :class='orderStatus==20 ? "on": ""' @click="statusClick(20)">
<view>待付款</view>
<view class='num'>{{orderData.noPay || 0}}</view>
</view>
@ -416,7 +416,8 @@
id: ''
},
//
activity_type: ''
activity_type: '',
product_type:''
};
},
computed: {
@ -499,6 +500,7 @@
*/
onLoad: function(options) {
if (options.status) this.orderStatus = options.status;
if (options.product_type) this.product_type = options.product_type;
},
/**
* 获取订单统计数据
@ -507,7 +509,7 @@
getOrderData: function() {
let that = this;
orderData({
product_type:this.product_type
product_type:that.product_type
}).then(res => {
that.$set(that, 'orderData', res.data);
})
@ -661,10 +663,11 @@
that.loadTitle = "加载更多";
if (that.isReady) {
that.isReady = false
if (that.orderStatus == 0) {
if (that.orderStatus == 20) {
groupOrderList({
page: that.page,
limit: that.limit,
product_type:that.product_type
}).then(res => {
console.log(res);
that.isReady = true;
@ -686,6 +689,7 @@
status: that.orderStatus - 1,
page: that.page,
limit: that.limit,
product_type:that.product_type
}).then(res => {
console.log(res);
let list = res.data.list || [];

BIN
static/images/xianshang.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
static/images/xianxia.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB