入库样式修改
This commit is contained in:
parent
222d240bd7
commit
133493ecb8
@ -265,7 +265,11 @@
|
|||||||
id:id,
|
id:id,
|
||||||
type:number
|
type:number
|
||||||
}
|
}
|
||||||
this.getIndex();
|
this.$nextTick(()=>{
|
||||||
|
this.where.is_verify = 1;
|
||||||
|
delete this.where.status;
|
||||||
|
this.init();
|
||||||
|
})
|
||||||
postconfirm(this.merId,data).then(res=>{
|
postconfirm(this.merId,data).then(res=>{
|
||||||
console.log(res);
|
console.log(res);
|
||||||
})
|
})
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,276 +1,345 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="center">
|
<view class="center">
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<!-- -->
|
<!-- -->
|
||||||
</view>
|
</view>
|
||||||
<view class='list'>
|
<view class='list'>
|
||||||
<block>
|
<block>
|
||||||
<view class='item' v-for="(item,index) in shopList" :key="index">
|
<view class='item' v-for="(item,index) in shopList" :key="index">
|
||||||
<view v-for="(items,index) in item.orderProduct" :key="index">
|
<view v-for="(items,index) in item.orderProduct" :key="index">
|
||||||
<view class='title acea-row row-between-wrapper'>
|
<view class='title acea-row row-between-wrapper'>
|
||||||
<view class="acea-row row-middle left-wrapper">
|
<view class="acea-row row-middle left-wrapper">
|
||||||
{{item.merchant.mer_name}}
|
{{item.merchant.mer_name}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<view>
|
<view>
|
||||||
<block>
|
<block>
|
||||||
<view class='item-info acea-row row-between row-top'>
|
<view class='item-info acea-row row-between row-top'>
|
||||||
<view class='pictrue'>
|
<view class='pictrue'>
|
||||||
<image :src="item.orderProduct[index].cart_info.product.image">
|
<image :src="item.orderProduct[index].cart_info.product.image">
|
||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
<view class='text acea-row row-between'>
|
<view class='text acea-row row-between'>
|
||||||
<view class='name line2'>
|
<view class='name line2'>
|
||||||
{{items.cart_info.product.store_name}}
|
{{items.cart_info.product.store_name}}
|
||||||
</view>
|
</view>
|
||||||
<view class='name line2'>¥{{items.cart_info.product.price}}</view>
|
<view class='name line2'>¥{{items.cart_info.product.price}}</view>
|
||||||
<view class='name line2'>x {{items.product_num}}</view>
|
<view class='name line2'>x {{items.product_num}}</view>
|
||||||
<view class='bnt b-color' v-if="items.is_imported == 0"
|
<view class='bnt b-color' v-if="items.is_imported == 0"
|
||||||
@click="importshop(items.order_id,items.product_id,items.product_sku)">
|
@click="importshop(items.order_id,items.product_id,items.product_sku)">
|
||||||
立即导入</view>
|
立即导入</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='totalPrice'>
|
<view class='totalPrice'>
|
||||||
共1件商品,总金额
|
共1件商品,总金额
|
||||||
<text class='money'>¥{{items.product_price}}</text>
|
<text class='money'>¥{{items.product_price}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
<u-popup :show="show" @close="close" mode="center" bgColor='transparent'>
|
||||||
</view>
|
<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>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
getPreviewProDetail,
|
getPreviewProDetail,
|
||||||
} from '@/api/store.js'
|
} from '@/api/store.js'
|
||||||
import {
|
import {
|
||||||
postImport
|
postImport
|
||||||
} from '@/api/product.js'
|
} from '@/api/product.js'
|
||||||
import {
|
import {
|
||||||
getOrderList
|
getOrderList
|
||||||
} from '@/api/order.js'
|
} from '@/api/order.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
shopList: [],
|
shopList: [],
|
||||||
shopinfo: {},
|
shopinfo: {},
|
||||||
mer_id: '',
|
mer_id: '',
|
||||||
keyword: '',
|
keyword: '',
|
||||||
where: {
|
where: {
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 10,
|
limit: 10,
|
||||||
status: 2,
|
status: 2,
|
||||||
product_type: 98
|
product_type: 98
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
product_id: '',
|
product_id: '',
|
||||||
unique: "",
|
unique: "",
|
||||||
order_id: '',
|
order_id: '',
|
||||||
order_product_id: '',
|
order_product_id: '',
|
||||||
order_unique: ''
|
order_unique: ''
|
||||||
}
|
},
|
||||||
}
|
show: false,
|
||||||
},
|
title:''
|
||||||
onLoad(option) {
|
}
|
||||||
console.log(option);
|
},
|
||||||
this.mer_id = option.mer_id
|
onLoad(option) {
|
||||||
this.getList(this.mer_id);
|
console.log(option);
|
||||||
this.data.product_id = option.product_id
|
this.mer_id = option.mer_id
|
||||||
this.data.unique = option.unique
|
this.getList(this.mer_id);
|
||||||
},
|
this.data.product_id = option.product_id
|
||||||
methods: {
|
this.data.unique = option.unique
|
||||||
getList: function(mer_id) {
|
},
|
||||||
getOrderList(this.where, this.mer_id).then(res => {
|
methods: {
|
||||||
console.log(res);
|
getList: function(mer_id) {
|
||||||
this.shopList = res.data.list
|
getOrderList(this.where, this.mer_id).then(res => {
|
||||||
console.log(this.shopList);
|
console.log(res);
|
||||||
})
|
this.shopList = res.data.list
|
||||||
// getPreviewProDetail({
|
console.log(this.shopList);
|
||||||
// id:product_id,
|
})
|
||||||
// product_type:0,
|
// getPreviewProDetail({
|
||||||
// }).then(
|
// id:product_id,
|
||||||
// res => {
|
// product_type:0,
|
||||||
// console.log(res);
|
// }).then(
|
||||||
|
// res => {
|
||||||
|
// console.log(res);
|
||||||
|
|
||||||
// console.log(this.shopList);
|
// console.log(this.shopList);
|
||||||
// },
|
// },
|
||||||
// error => {
|
// error => {
|
||||||
// that.$util.Tips({
|
// that.$util.Tips({
|
||||||
// title: error.msg
|
// title: error.msg
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
// );
|
// );
|
||||||
},
|
},
|
||||||
importshop(order_id, product_id, unique) {
|
importshop(order_id, product_id, unique) {
|
||||||
this.data.order_id = order_id
|
this.data.order_id = order_id
|
||||||
this.data.order_product_id = product_id
|
this.data.order_product_id = product_id
|
||||||
this.data.order_unique = unique
|
this.data.order_unique = unique
|
||||||
|
this.show = true
|
||||||
postImport(this.mer_id, this.data).then(res => {
|
postImport(this.mer_id, this.data).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.$util.Tips({
|
this.title=res.message
|
||||||
title: res.message
|
this.$util.Tips({
|
||||||
})
|
title: res.message
|
||||||
setTimeout(() => {
|
})
|
||||||
uni.navigateBack({
|
})
|
||||||
delta: 1
|
},
|
||||||
});
|
close() {
|
||||||
}, 1000)
|
this.show = false
|
||||||
})
|
},
|
||||||
}
|
getback(){
|
||||||
}
|
uni.navigateBack({
|
||||||
}
|
delta: 1
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.top {
|
.top {
|
||||||
background-color: red;
|
background-color: red;
|
||||||
height: 55px;
|
height: 55px;
|
||||||
|
|
||||||
.input {
|
.input {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
margin: auto !important;
|
margin: auto !important;
|
||||||
padding-top: 10px !important;
|
padding-top: 10px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.list {
|
.list {
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
margin: 14rpx auto 0 auto;
|
margin: 14rpx auto 0 auto;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
height: 84rpx;
|
height: 84rpx;
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
border-bottom: 1px solid #eee;
|
border-bottom: 1px solid #eee;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #282828;
|
color: #282828;
|
||||||
|
|
||||||
.left-wrapper {
|
.left-wrapper {
|
||||||
.iconfont {
|
.iconfont {
|
||||||
margin-top: 5rpx;
|
margin-top: 5rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.store-name {
|
.store-name {
|
||||||
margin: 0 10rpx;
|
margin: 0 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-xiangyou {
|
.icon-xiangyou {
|
||||||
font-size: 20rpx;
|
font-size: 20rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sign {
|
.sign {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
padding: 0 7rpx;
|
padding: 0 7rpx;
|
||||||
height: 36rpx;
|
height: 36rpx;
|
||||||
margin-right: 15rpx;
|
margin-right: 15rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin: 5px 0 5px 0;
|
margin: 5px 0 5px 0;
|
||||||
|
|
||||||
.item-info {
|
.item-info {
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
margin-top: 22rpx;
|
margin-top: 22rpx;
|
||||||
|
|
||||||
.pictrue {
|
.pictrue {
|
||||||
width: 120rpx;
|
width: 120rpx;
|
||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
border-radius: 6rpx;
|
border-radius: 6rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
width: 486rpx;
|
width: 486rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
margin-top: 6rpx;
|
margin-top: 6rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
width: 320rpx;
|
width: 320rpx;
|
||||||
color: #282828;
|
color: #282828;
|
||||||
}
|
}
|
||||||
|
|
||||||
.money {
|
.money {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bnt {
|
.bnt {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
width: 176rpx;
|
width: 176rpx;
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border-radius: 50rpx;
|
border-radius: 50rpx;
|
||||||
border: 1px solid #999999;
|
font-size: 27rpx;
|
||||||
font-size: 27rpx;
|
background: linear-gradient(180deg, #F98649 0%, #F34E45 100%);
|
||||||
|
color: white;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.event_name {
|
.event_name {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-right: 9rpx;
|
margin-right: 9rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 20rpx;
|
font-size: 20rpx;
|
||||||
padding: 0 8rpx;
|
padding: 0 8rpx;
|
||||||
line-height: 30rpx;
|
line-height: 30rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 6rpx;
|
border-radius: 6rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.event_ship {
|
.event_ship {
|
||||||
font-size: 20rpx;
|
font-size: 20rpx;
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.totalPrice {
|
.totalPrice {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #282828;
|
color: #282828;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
margin: 27rpx 0 0 30rpx;
|
margin: 27rpx 0 0 30rpx;
|
||||||
padding: 0 30rpx 30rpx 0;
|
padding: 0 30rpx 30rpx 0;
|
||||||
|
|
||||||
.money {
|
.money {
|
||||||
font-size: 34rpx;
|
font-size: 34rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: rgb(233, 51, 35);
|
color: rgb(233, 51, 35);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottom {
|
.bottom {
|
||||||
height: 107rpx;
|
height: 107rpx;
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
border-top: 1px solid #f0f0f0;
|
border-top: 1px solid #f0f0f0;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.event_price {
|
.event_price {
|
||||||
margin: 0 0 50rpx 120rpx;
|
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>
|
</style>
|
@ -653,6 +653,7 @@
|
|||||||
order_key: '',
|
order_key: '',
|
||||||
is_take: '',
|
is_take: '',
|
||||||
domain: HTTP_REQUEST_URL,
|
domain: HTTP_REQUEST_URL,
|
||||||
|
product_type:''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -670,6 +671,7 @@
|
|||||||
onReady() {},
|
onReady() {},
|
||||||
mounted: function() {},
|
mounted: function() {},
|
||||||
onLoad: function(options) {
|
onLoad: function(options) {
|
||||||
|
this.product_type=options.product_type
|
||||||
this.seckillId = options.seckillId
|
this.seckillId = options.seckillId
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
this.from = this.$wechat.isWeixin() ? 'weixin' : 'h5'
|
this.from = this.$wechat.isWeixin() ? 'weixin' : 'h5'
|
||||||
@ -1201,7 +1203,7 @@
|
|||||||
callback_key = res.data.result.pay_key,
|
callback_key = res.data.result.pay_key,
|
||||||
jsConfig = res.data.result.config,
|
jsConfig = res.data.result.config,
|
||||||
goPages = '/pages/order_pay_status/index?order_id=' + orderId + '&msg=' + res.message,
|
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;
|
that.orderPay = true;
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
switch (status) {
|
switch (status) {
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<view>全部</view>
|
<view>全部</view>
|
||||||
<view class='num'>{{orderData.all || 0}}</view>
|
<view class='num'>{{orderData.all || 0}}</view>
|
||||||
</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>待付款</view>
|
||||||
<view class='num'>{{orderData.noPay || 0}}</view>
|
<view class='num'>{{orderData.noPay || 0}}</view>
|
||||||
</view>
|
</view>
|
||||||
@ -416,7 +416,8 @@
|
|||||||
id: ''
|
id: ''
|
||||||
},
|
},
|
||||||
//商品分类
|
//商品分类
|
||||||
activity_type: ''
|
activity_type: '',
|
||||||
|
product_type:''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -499,6 +500,7 @@
|
|||||||
*/
|
*/
|
||||||
onLoad: function(options) {
|
onLoad: function(options) {
|
||||||
if (options.status) this.orderStatus = options.status;
|
if (options.status) this.orderStatus = options.status;
|
||||||
|
if (options.product_type) this.product_type = options.product_type;
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 获取订单统计数据
|
* 获取订单统计数据
|
||||||
@ -507,7 +509,7 @@
|
|||||||
getOrderData: function() {
|
getOrderData: function() {
|
||||||
let that = this;
|
let that = this;
|
||||||
orderData({
|
orderData({
|
||||||
product_type:this.product_type
|
product_type:that.product_type
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
that.$set(that, 'orderData', res.data);
|
that.$set(that, 'orderData', res.data);
|
||||||
})
|
})
|
||||||
@ -661,10 +663,11 @@
|
|||||||
that.loadTitle = "加载更多";
|
that.loadTitle = "加载更多";
|
||||||
if (that.isReady) {
|
if (that.isReady) {
|
||||||
that.isReady = false
|
that.isReady = false
|
||||||
if (that.orderStatus == 0) {
|
if (that.orderStatus == 20) {
|
||||||
groupOrderList({
|
groupOrderList({
|
||||||
page: that.page,
|
page: that.page,
|
||||||
limit: that.limit,
|
limit: that.limit,
|
||||||
|
product_type:that.product_type
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
that.isReady = true;
|
that.isReady = true;
|
||||||
@ -686,6 +689,7 @@
|
|||||||
status: that.orderStatus - 1,
|
status: that.orderStatus - 1,
|
||||||
page: that.page,
|
page: that.page,
|
||||||
limit: that.limit,
|
limit: that.limit,
|
||||||
|
product_type:that.product_type
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
let list = res.data.list || [];
|
let list = res.data.list || [];
|
||||||
|
BIN
static/images/xianshang.png
Normal file
BIN
static/images/xianshang.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
BIN
static/images/xianxia.png
Normal file
BIN
static/images/xianxia.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
Loading…
x
Reference in New Issue
Block a user