|
|
|
@ -25,8 +25,45 @@ |
|
|
|
|
只属于非商城订单 |
|
|
|
|
</view> |
|
|
|
|
</view> --> |
|
|
|
|
<view style="padding-bottom: 120upx;" v-if="goodsList.length>0"> |
|
|
|
|
<view class="dispatchContent" v-for="(item, index) in goodsList" :key="index"> |
|
|
|
|
<!-- v-if="goodsList.length>0" --> |
|
|
|
|
<view style="padding-bottom: 120upx;"> |
|
|
|
|
<view class="dispatchContent" v-if="classifyShow==1" v-for="(item, index) in goodsList" :key="index"> |
|
|
|
|
<view class="orderNum"> |
|
|
|
|
订单号:{{item.order_no}} |
|
|
|
|
</view> |
|
|
|
|
<view class="dispatchItem" v-for="(item1, index) in item.goods"> |
|
|
|
|
<image :src="item1.goods_image" mode="aspectFill"></image> |
|
|
|
|
<view class="right"> |
|
|
|
|
<view class="title"> |
|
|
|
|
{{item1.goods_name}} |
|
|
|
|
</view> |
|
|
|
|
<view style="display: flex;align-items: center;justify-content: space-between;"> |
|
|
|
|
<view class="num"> |
|
|
|
|
x{{item1.total_num}} |
|
|
|
|
</view> |
|
|
|
|
<view class="price"> |
|
|
|
|
<text style="font-size: 26upx;">¥</text> |
|
|
|
|
<text>{{item1.total_price?Number(item1.total_price):item1.total_price}}</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="totalNum"> |
|
|
|
|
<text>共计:</text> |
|
|
|
|
<text style="color: #F21A1C;">¥{{item.pay_price?Number(item.pay_price):item.pay_price}}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="footerBtn"> |
|
|
|
|
<view class="wuliuBtn" v-if="classifyShow==1&&!item.transfer" @click="manualEntry(item)"> |
|
|
|
|
调货记录 |
|
|
|
|
</view> |
|
|
|
|
<view class="wuliuBtn" v-if="classifyShow==1&&item.transfer" |
|
|
|
|
@click="onCondiments(item.transfer)"> |
|
|
|
|
调货记录 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="dispatchContent" v-if="classifyShow==2" v-for="(item, index) in goodsList" :key="index"> |
|
|
|
|
<view class="orderNum"> |
|
|
|
|
订单号:{{item.express_no}} |
|
|
|
|
</view> |
|
|
|
@ -53,18 +90,23 @@ |
|
|
|
|
<text style="color: #F21A1C;">¥{{item.total_price}}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="footerBtn"> |
|
|
|
|
<view class="wuliuBtn" @click="onCondiments(item)"> |
|
|
|
|
<view class="wuliuBtn" v-if="classifyShow==2&&item.goods_sn&&item.goods_num" |
|
|
|
|
@click="onCondiments(item)"> |
|
|
|
|
调货记录 |
|
|
|
|
</view> |
|
|
|
|
<view class="wuliuBtn" v-if="classifyShow==2&&!item.goods_sn&&!item.goods_num" |
|
|
|
|
@click="manualEntry(item)"> |
|
|
|
|
调货记录 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view v-else style="margin-top: 250rpx;"> |
|
|
|
|
<u-empty text="暂无发货记录~" mode="list"></u-empty> |
|
|
|
|
<view v-if="goodsList.length==0" style="margin-top: 250rpx;"> |
|
|
|
|
<u-empty text="暂无记录~" mode="list"></u-empty> |
|
|
|
|
</view> |
|
|
|
|
<view class="goods-fd"> |
|
|
|
|
<!-- <view class="goods-fd"> |
|
|
|
|
<view class="btn" @click="manualEntry">手动录入</view> |
|
|
|
|
</view> |
|
|
|
|
</view> --> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
@ -118,16 +160,16 @@ |
|
|
|
|
this.classifyShow = item.id; |
|
|
|
|
this.pageNum = 1; |
|
|
|
|
this.goodsList = [] |
|
|
|
|
if(index==1){ |
|
|
|
|
if (index == 1) { |
|
|
|
|
this.getOrderList(1); |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
this.getList(1) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 手动录入 |
|
|
|
|
manualEntry() { |
|
|
|
|
manualEntry(item) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: "/pages/news3/ManualEntry" |
|
|
|
|
url: "/pages/news3/ManualEntry?type=" + this.classifyShow + '&order_id=' + item.order_id |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 调货记录 |
|
|
|
@ -149,15 +191,21 @@ |
|
|
|
|
message, |
|
|
|
|
data |
|
|
|
|
} = await newFunApi.shopOrderList({ |
|
|
|
|
dataType: 'complete', |
|
|
|
|
dataType: 'all', |
|
|
|
|
// dataType: 'complete', |
|
|
|
|
page: this.pageNum, |
|
|
|
|
searchValue: this.searchText, |
|
|
|
|
searchValue: '', |
|
|
|
|
payMethod: '', |
|
|
|
|
orderSource: '', |
|
|
|
|
betweenTime: '', |
|
|
|
|
delivery_type: '', |
|
|
|
|
user_id: '', |
|
|
|
|
}); |
|
|
|
|
if (status == 200) { |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
this.total = data.list.total |
|
|
|
|
this.goodsList = this.goodsList.concat(data.list.data) |
|
|
|
|
this.total = data.list.total |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
/** |
|
|
|
|