|
@@ -1,166 +1,198 @@
|
|
<template>
|
|
<template>
|
|
- <view class="container record clearfix">
|
|
|
|
- <view class="record-content">
|
|
|
|
- <view class="record-list clearfix" v-for="(pros,index) in productsList" :key="index" >
|
|
|
|
- <view class="record-top clearfix">
|
|
|
|
- <view class="top-view">
|
|
|
|
- <view class="top-viewlabel">发货时间:</view>
|
|
|
|
- <view class="top-viewtext">2019-07-11 13:52:23</view>
|
|
|
|
- </view>
|
|
|
|
- <view class="top-view">
|
|
|
|
- <view class="top-viewlabel">申通快递:</view>
|
|
|
|
- <view class="top-viewtext">
|
|
|
|
- <text v-for="(item,idx) in lgisList" :key="idx">{{item}}</text>
|
|
|
|
|
|
+ <view class="container record clearfix" :style="{paddingTop:CustomBar+'px'}">
|
|
|
|
+ <cd-custom :systeminfo='systeminfo' :navbar-data='nvabarData' :headerBtnPosi ="headerBtnPosi" :page='1' @pageDetails="hanldPageDetails"></cd-custom>
|
|
|
|
+ <view class="record-content-empty" v-if="isEmpty" :style="{'height': windowHeight ? windowHeight+'px' : 'auto'}">
|
|
|
|
+ <view class="record-container clearfix">
|
|
|
|
+ <image class="club-empty-image" src="https://img.caimei365.com/group1/M00/03/B7/Cmis2178OfaAEjhLAABqsz9OXM0847.png" mode="aspectFit"></image>
|
|
|
|
+ <view class="txt">此订单暂无发货记录~</view>
|
|
|
|
+ <view class="btn" @click="pageGoLink">去发货</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="record-content" v-else>
|
|
|
|
+ <scroll-view scroll-y="true" >
|
|
|
|
+ <view class="record-list clearfix" v-for="(item,index) in RecordList" :key="index">
|
|
|
|
+ <view class="record-top clearfix">
|
|
|
|
+ <view class="top-view">
|
|
|
|
+ <view class="top-viewlabel">发货时间:</view>
|
|
|
|
+ <view class="top-viewtext">{{item.deliveryTime}}</view>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="goods-pros">
|
|
|
|
- <view class="goods-pros-t">
|
|
|
|
- <view class="pros-img"><image :src="pros.mainImage ? pros.mainImage:''" alt="" /></view>
|
|
|
|
- <view class="pros-product">
|
|
|
|
- <view class="producttitle">{{pros.name}}</view>
|
|
|
|
- <view class="productspec">规格:{{pros.productUnit ? pros.productUnit : ''}}</view>
|
|
|
|
- <view class="productspec">商品编码:{{pros.productCode ? pros.productCode : ''}}</view>
|
|
|
|
- <view class="product-view">
|
|
|
|
- <view class="view-num">数量:{{pros.num}}</view>
|
|
|
|
|
|
+ <view class="top-view">
|
|
|
|
+ <view class="top-viewlabel">申通快递:</view>
|
|
|
|
+ <view class="top-viewtext">
|
|
|
|
+ <text v-for="(logist,idx) in item.logisticsInformationList" :key="logist.id">{{logist.nu}}</text>
|
|
</view>
|
|
</view>
|
|
- <view class="product-view">
|
|
|
|
- <view class="view-num">本次发货:{{pros.taxRate}}</view>
|
|
|
|
- <view class="view-num">已发货:{{pros.discount == null ? '0' : pros.discount}}</view>
|
|
|
|
- </view>
|
|
|
|
- <view class="product-view">
|
|
|
|
- <view class="view-num">未发货:{{pros.discountPrice}}</view>
|
|
|
|
- <view class="view-num">已退货:{{pros.discountPrice}}</view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view class="goods-pros-b clearfix">
|
|
|
|
- <view class="b-label">拍照备注</view>
|
|
|
|
- <view class="b-photo">
|
|
|
|
- <view class="b-imageView" v-for="(imgItem,imgIdx) in ramkesList" :key="imgIdx" >
|
|
|
|
- <image :src="imgItem" mode="widthFix" @click="previewImg(imgIdx)"></image>
|
|
|
|
|
|
+ <view class="goods-pros">
|
|
|
|
+ <view class="goods-pros-t" v-for="(pros,idx) in item.logisticsRecordList" :key="pros.id">
|
|
|
|
+ <view class="pros-img"><image :src="pros.image ? pros.image:''" alt="" mode="aspectFill"/></view>
|
|
|
|
+ <view class="pros-product">
|
|
|
|
+ <view class="producttitle">{{pros.productName}}</view>
|
|
|
|
+ <view class="productspec">规格:{{pros.unit ? pros.unit : ''}}</view>
|
|
|
|
+ <view class="productspec">商品编码:{{pros.productCode ? pros.productCode : ''}}</view>
|
|
|
|
+ <view class="product-view">
|
|
|
|
+ <view class="view-num">数量:{{pros.buyNum}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="product-view">
|
|
|
|
+ <view class="view-num">本次发货:{{pros.num}}</view>
|
|
|
|
+ <view class="view-num">已发货:{{pros.shipmentsNum}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="product-view">
|
|
|
|
+ <view class="view-num">未发货:{{pros.notShippedNum}}</view>
|
|
|
|
+ <view class="view-num">已退货:{{pros.returnedNum}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="goods-pros-b clearfix">
|
|
|
|
+ <view class="b-label">拍照备注</view>
|
|
|
|
+ <view class="b-photo">
|
|
|
|
+ <view class="b-imageView" v-for="(imgItem,imgIdx) in item.remarkImages" :key="imgIdx" >
|
|
|
|
+ <image :src="imgItem" mode="aspectFill" @click="previewImg(imgIdx,item.remarkImages)"></image>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- <view class="goods-pros-b clearfix">
|
|
|
|
- <view class="b-label">拍照备注</view>
|
|
|
|
- <view class="b-photo">
|
|
|
|
- <view class="text">{{pros.note ? pros.note : ''}}</view>
|
|
|
|
|
|
+ <view class="goods-pros-b clearfix" v-if="item.remark!=''">
|
|
|
|
+ <view class="b-label">拍照备注</view>
|
|
|
|
+ <view class="b-photo">
|
|
|
|
+ <view class="text">{{item.remark ? item.remark : ''}}</view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <!-- 底部button -->
|
|
|
|
+ <order-button ref="orderButton"
|
|
|
|
+ :hanldData="item"
|
|
|
|
+ @buttonConfirm="handButtonConfirm">
|
|
|
|
+ </order-button>
|
|
</view>
|
|
</view>
|
|
- <!-- 底部button -->
|
|
|
|
- <order-button ref="orderButton"
|
|
|
|
- :orderID="item.id"
|
|
|
|
- @buttonConfirm="handButtonConfirm">
|
|
|
|
- </order-button>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <!--加载loadding-->
|
|
|
|
+ <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
|
|
|
|
+ <tui-nomore :visible="!pullUpOn" bgcolor="#F7F7F7" :text='nomoreText'></tui-nomore>
|
|
|
|
+ <!--加载loadding-->
|
|
|
|
+ </scroll-view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
- import authorize from '@/common/config/authorize.js'
|
|
|
|
import { mapState,mapMutations } from 'vuex';
|
|
import { mapState,mapMutations } from 'vuex';
|
|
import orderButton from '@/components/cm-module/orderDetails/supplierRecorgButton.vue' //底部按钮
|
|
import orderButton from '@/components/cm-module/orderDetails/supplierRecorgButton.vue' //底部按钮
|
|
- import { queryShoppingCartList,shoppingCartUpdate,shoppingCartDelete } from "@/api/cart.js"
|
|
|
|
- var isPreviewImg;
|
|
|
|
|
|
+ import tuiLoadmore from "@/components/tui-components/loadmore/loadmore"
|
|
|
|
+ import tuiNomore from "@/components/tui-components/nomore/nomore"
|
|
|
|
+ import cdCustom from "@/components/cm-custom/custom-d"
|
|
|
|
+
|
|
|
|
+ var isPreviewImg
|
|
export default{
|
|
export default{
|
|
components:{
|
|
components:{
|
|
- orderButton
|
|
|
|
|
|
+ orderButton,
|
|
|
|
+ tuiLoadmore,
|
|
|
|
+ tuiNomore,
|
|
|
|
+ cdCustom
|
|
},
|
|
},
|
|
data(){
|
|
data(){
|
|
return{
|
|
return{
|
|
|
|
+ nvabarData: {//顶部自定义导航
|
|
|
|
+ showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示
|
|
|
|
+ title: '发货记录', // 导航栏 中间的标题
|
|
|
|
+ },
|
|
|
|
+ headerBtnPosi: this.setHeaderBtnPosi(),//获取设备顶部胶囊高度
|
|
|
|
+ systeminfo:this.setSysteminfo(), //获取设备信息
|
|
CustomBar:this.CustomBar,// 顶部导航栏高度
|
|
CustomBar:this.CustomBar,// 顶部导航栏高度
|
|
isIphoneX:this.$store.state.isIphoneX,
|
|
isIphoneX:this.$store.state.isIphoneX,
|
|
- userID:'',
|
|
|
|
shopOrderId:'',
|
|
shopOrderId:'',
|
|
- alertType:'',
|
|
|
|
- isStock:'',
|
|
|
|
- lgisList:['ST465464646','SF656565656','YD12541545454'],
|
|
|
|
- ramkesList:[
|
|
|
|
- 'https://img14.360buyimg.com/n7/jfs/t1/114670/38/7458/171560/5ec3b80fE5c5f15f9/549ceeeca82f0d02.jpg',
|
|
|
|
- 'https://img14.360buyimg.com/n7/jfs/t1/114670/38/7458/171560/5ec3b80fE5c5f15f9/549ceeeca82f0d02.jpg',
|
|
|
|
- 'https://img14.360buyimg.com/n7/jfs/t1/114670/38/7458/171560/5ec3b80fE5c5f15f9/549ceeeca82f0d02.jpg',
|
|
|
|
- 'https://img14.360buyimg.com/n7/jfs/t1/114670/38/7458/171560/5ec3b80fE5c5f15f9/549ceeeca82f0d02.jpg',
|
|
|
|
- 'https://img14.360buyimg.com/n7/jfs/t1/114670/38/7458/171560/5ec3b80fE5c5f15f9/549ceeeca82f0d02.jpg',
|
|
|
|
- 'https://img14.360buyimg.com/n7/jfs/t1/114670/38/7458/171560/5ec3b80fE5c5f15f9/549ceeeca82f0d02.jpg',
|
|
|
|
- 'https://img14.360buyimg.com/n7/jfs/t1/114670/38/7458/171560/5ec3b80fE5c5f15f9/549ceeeca82f0d02.jpg',
|
|
|
|
- 'https://img14.360buyimg.com/n7/jfs/t1/114670/38/7458/171560/5ec3b80fE5c5f15f9/549ceeeca82f0d02.jpg',
|
|
|
|
- 'https://img14.360buyimg.com/n7/jfs/t1/114670/38/7458/171560/5ec3b80fE5c5f15f9/549ceeeca82f0d02.jpg',
|
|
|
|
- 'https://img14.360buyimg.com/n7/jfs/t1/114670/38/7458/171560/5ec3b80fE5c5f15f9/549ceeeca82f0d02.jpg'
|
|
|
|
- ],
|
|
|
|
- productsList:[
|
|
|
|
- {
|
|
|
|
- mainImage:'https://img14.360buyimg.com/n7/jfs/t1/114670/38/7458/171560/5ec3b80fE5c5f15f9/549ceeeca82f0d02.jpg',
|
|
|
|
- name:'华西生物奥斯卡等级阿奥术大师大所打撒大啊萨达时代萨德',
|
|
|
|
- productUnit:'盒',
|
|
|
|
- productCode:'FXSW2131231231',
|
|
|
|
- num:20,
|
|
|
|
- id:233,
|
|
|
|
- taxRate:5,
|
|
|
|
- discount:5,
|
|
|
|
- discountPrice:3,
|
|
|
|
- productCount:6,
|
|
|
|
- price:'200.00',
|
|
|
|
- checked:false,
|
|
|
|
- note:'华西生物奥斯卡等级阿奥术大师大所打撒大啊萨达时代萨德华西生物奥斯卡等级阿奥术大师大所打撒大啊萨达时代萨德'
|
|
|
|
- },{
|
|
|
|
- mainImage:'https://img14.360buyimg.com/n7/jfs/t1/114670/38/7458/171560/5ec3b80fE5c5f15f9/549ceeeca82f0d02.jpg',
|
|
|
|
- name:'华西生物奥斯卡等级阿奥术大师大所打撒大啊萨达时代萨德',
|
|
|
|
- productUnit:'盒',
|
|
|
|
- productCode:'FXSW2131231231',
|
|
|
|
- num:20,
|
|
|
|
- id:255,
|
|
|
|
- taxRate:5,
|
|
|
|
- discount:5,
|
|
|
|
- productCount:6,
|
|
|
|
- discountPrice:3,
|
|
|
|
- price:'200.00',
|
|
|
|
- checked:false,
|
|
|
|
- note:'华西生物奥斯卡等级阿奥术大师大所打撒大啊萨达时代萨德华西生物奥斯卡等级阿奥术大师大所打撒大啊萨达时代萨德'
|
|
|
|
- }
|
|
|
|
- ], //购物车的商品
|
|
|
|
- setGoodData:'', //确认订单的商品
|
|
|
|
- isCheckAll:false,//是否全选
|
|
|
|
- isModallayer:false,
|
|
|
|
- isDisabled: false, // 供应商/店铺全选是否禁用状态
|
|
|
|
- isNoConfim:false,
|
|
|
|
|
|
+ lgisList:[],
|
|
|
|
+ ramkesList:[],
|
|
|
|
+ RecordList:[], //发货记录
|
|
|
|
+ pageNum:1,
|
|
|
|
+ pageSize:10,
|
|
|
|
+ hasNextPage:false,
|
|
|
|
+ loadding: false,
|
|
|
|
+ pullUpOn: true,
|
|
|
|
+ pullFlag: true,
|
|
|
|
+ isEmpty:false,
|
|
|
|
+ nomoreText: '上拉显示更多',
|
|
|
|
+ scrollHeight: '',
|
|
|
|
+ windowHeight: '',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(option){
|
|
onLoad(option){
|
|
- console.log(option)
|
|
|
|
- // this.initGetCartGoodsList();
|
|
|
|
|
|
+ this.shopOrderId = option.shopOrderId
|
|
|
|
+ this.setScrollHeight()
|
|
|
|
+ this.initShopShipmentsRecord();
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['hasLogin','userInfo'])
|
|
...mapState(['hasLogin','userInfo'])
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
- initGetCartGoodsList(){//初始化购物车 index:1
|
|
|
|
- let params = {userID:this.userID}
|
|
|
|
- queryShoppingCartList(params).then(response =>{
|
|
|
|
- this.$store.commit('updateAllNum',response.data.cartQuantity)
|
|
|
|
- const responseData = response.data
|
|
|
|
- if(responseData.pageDate && responseData.pageDate.length > 0 ){
|
|
|
|
- this.productsList = responseData.pageDate;
|
|
|
|
- this.productsList.forEach((item,index) => {
|
|
|
|
- let productsListLength = item.productsList.length,
|
|
|
|
- invalidLength = 0;
|
|
|
|
- item.productsList.forEach(pros => {
|
|
|
|
- pros.shopID = item.shopID;
|
|
|
|
- if(pros.validFlag == '3' ) {invalidLength++;}
|
|
|
|
- })
|
|
|
|
- item.isDisabled = invalidLength === productsListLength;
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- this.productsList = [];
|
|
|
|
|
|
+ initShopShipmentsRecord(){//初始化发货记录 index:1
|
|
|
|
+ this.ShopService.ShopShipmentsRecord({ shopOrderId : this.shopOrderId,pageSize:this.pageSize,pageNum:this.pageNum }).then(response =>{
|
|
|
|
+ console.log(response)
|
|
|
|
+ let responseData = response.data.logisticsBatchPage
|
|
|
|
+ if(responseData.results&&responseData.results.length > 0){
|
|
|
|
+ this.isEmpty = false
|
|
|
|
+ this.hasNextPage = responseData.hasNextPage
|
|
|
|
+ this.RecordList =responseData.results
|
|
|
|
+ this.pullFlag = false;
|
|
|
|
+ setTimeout(()=>{this.pullFlag = true;},500)
|
|
|
|
+ if(this.hasNextPage){
|
|
|
|
+ this.pullUpOn = false
|
|
|
|
+ this.nomoreText = '上拉显示更多'
|
|
|
|
+ }else{
|
|
|
|
+ if(this.RecordList.length < 2){
|
|
|
|
+ this.pullUpOn = true
|
|
|
|
+ this.loadding = false
|
|
|
|
+ }else{
|
|
|
|
+ this.pullUpOn = false
|
|
|
|
+ this.loadding = false
|
|
|
|
+ this.nomoreText = '已至底部'
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.isEmpty = true
|
|
}
|
|
}
|
|
}).catch(error =>{
|
|
}).catch(error =>{
|
|
this.$util.msg(error.msg,2000);
|
|
this.$util.msg(error.msg,2000);
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- previewImg (index) {//顶部商品图片预览
|
|
|
|
|
|
+ getOnReachBottomData(){
|
|
|
|
+ this.ShopService.ShopShipmentsRecord({ shopOrderId : this.shopOrderId,pageSize:this.pageSize,pageNum:this.pageNum+=1 }).then(response =>{
|
|
|
|
+ let responseData = response.data.logisticsBatchPage
|
|
|
|
+ if(responseData.results&&responseData.results.length > 0){
|
|
|
|
+ this.hasNextPage = responseData.hasNextPage
|
|
|
|
+ this.RecordList = this.RecordList.concat(responseData.results)
|
|
|
|
+ this.pullFlag = false;// 防上拉暴滑
|
|
|
|
+ setTimeout(()=>{this.pullFlag = true;},500)
|
|
|
|
+ if(this.hasNextPage){
|
|
|
|
+ this.pullUpOn = false
|
|
|
|
+ this.nomoreText = '上拉显示更多'
|
|
|
|
+ }else{
|
|
|
|
+ this.pullUpOn = false
|
|
|
|
+ this.loadding = false
|
|
|
|
+ this.nomoreText = '已至底部'
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }).catch(error =>{
|
|
|
|
+ this.$util.msg(error.msg,2000)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ setHeaderBtnPosi(){// 获得胶囊按钮位置信息
|
|
|
|
+ let headerBtnPosi = uni.getMenuButtonBoundingClientRect();
|
|
|
|
+ return headerBtnPosi
|
|
|
|
+ },
|
|
|
|
+ setSysteminfo(){ // 获取设备信息
|
|
|
|
+ let systeminfo;
|
|
|
|
+ uni.getSystemInfo({
|
|
|
|
+ success: (res) => {
|
|
|
|
+ systeminfo = res
|
|
|
|
+ },
|
|
|
|
+ })
|
|
|
|
+ return systeminfo
|
|
|
|
+ },
|
|
|
|
+ setScrollHeight() {
|
|
|
|
+ const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
|
|
|
|
+ this.windowHeight = windowHeight - 1;
|
|
|
|
+ this.scrollHeight = windowHeight - 1;
|
|
|
|
+ },
|
|
|
|
+ previewImg (index,previewUrls) {//顶部商品图片预览
|
|
isPreviewImg = true
|
|
isPreviewImg = true
|
|
- let previewUrls = this.ramkesList
|
|
|
|
uni.previewImage({
|
|
uni.previewImage({
|
|
current: index, //图片索引
|
|
current: index, //图片索引
|
|
urls: previewUrls, //必须是http图片,本地图片无效
|
|
urls: previewUrls, //必须是http图片,本地图片无效
|
|
@@ -168,32 +200,63 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handButtonConfirm(data){//监听点击时间的按钮类型并执行...
|
|
handButtonConfirm(data){//监听点击时间的按钮类型并执行...
|
|
|
|
+ // console.log(data)
|
|
this.handShowAlert(data)
|
|
this.handShowAlert(data)
|
|
},
|
|
},
|
|
handShowAlert(data){//判断点击的按钮类型并执行...
|
|
handShowAlert(data){//判断点击的按钮类型并执行...
|
|
- switch(data.type){
|
|
|
|
|
|
+ let hanldType = data.hanldType
|
|
|
|
+ let hanldData = data.hanldData
|
|
|
|
+ switch(hanldType){
|
|
case 'cancel':
|
|
case 'cancel':
|
|
- this.handCenceConfirm()
|
|
|
|
|
|
+ this.handCenceConfirm(hanldData)
|
|
break
|
|
break
|
|
case 'add':
|
|
case 'add':
|
|
- this.$api.navigateTo('/supplier/pages/deliver/add-logistics?orderID='+this.orderID)
|
|
|
|
|
|
+ let setProductList =[]
|
|
|
|
+ let repleArray =hanldData.logisticsRecordList
|
|
|
|
+ repleArray.forEach(el=>{
|
|
|
|
+ let elObject = {
|
|
|
|
+ orderProductId:el.orderProductID.toString(),
|
|
|
|
+ num:el.num.toString()
|
|
|
|
+ }
|
|
|
|
+ setProductList.push(elObject)
|
|
|
|
+ })
|
|
|
|
+ let data = {
|
|
|
|
+ logisticsBatchId:hanldData.id,
|
|
|
|
+ logisticsBatchData:setProductList
|
|
|
|
+ }
|
|
|
|
+ this.$api.navigateTo(`/supplier/pages/deliver/add-logistics?type=reple&shopOrderId=${this.shopOrderId}&data=${JSON.stringify(data)}`)
|
|
break
|
|
break
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- handCenceConfirm(){//取消订单
|
|
|
|
|
|
+ handCenceConfirm(data){//取消订单
|
|
this.$util.modal('提示','确定要撤销本次发货吗?撤销后需重新发货','确定','取消',true,() =>{
|
|
this.$util.modal('提示','确定要撤销本次发货吗?撤销后需重新发货','确定','取消',true,() =>{
|
|
- cancelOrder({orderID:this.orderID}).then(response =>{
|
|
|
|
- this.$util.msg(response.msg,2000,true,'success');
|
|
|
|
- this.initOrderDetaileData()
|
|
|
|
|
|
+ this.ShopService.ShopCancelShipment({ logisticsBatchId : data.id }).then(response =>{
|
|
|
|
+ this.$util.msg('撤销成功',2000,true,'success');
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ this.initShopShipmentsRecord()
|
|
|
|
+ },2000)
|
|
}).catch(error =>{
|
|
}).catch(error =>{
|
|
this.$util.msg(error.msg,2000)
|
|
this.$util.msg(error.msg,2000)
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ pageGoLink(){
|
|
|
|
+ this.$api.navigateTo('/supplier/pages/deliver/deliver-goods?shopOrderId='+this.shopOrderId)
|
|
|
|
+ },
|
|
|
|
+ hanldPageDetails(){
|
|
|
|
+ this.$api.navigateTo('/supplier/pages/order/order-details?shopOrderId='+this.shopOrderId)
|
|
|
|
+ }
|
|
},
|
|
},
|
|
onPullDownRefresh() {//下拉刷新
|
|
onPullDownRefresh() {//下拉刷新
|
|
- // this.initGetCartGoodsList()
|
|
|
|
- // uni.stopPullDownRefresh()
|
|
|
|
|
|
+ this.initShopShipmentsRecord()
|
|
|
|
+ uni.stopPullDownRefresh()
|
|
|
|
+ },
|
|
|
|
+ onReachBottom() {
|
|
|
|
+ if(this.hasNextPage){
|
|
|
|
+ this.loadding = true
|
|
|
|
+ this.pullUpOn = true
|
|
|
|
+ this.getOnReachBottomData()
|
|
|
|
+ }
|
|
},
|
|
},
|
|
onShow(){
|
|
onShow(){
|
|
|
|
|
|
@@ -210,6 +273,39 @@
|
|
position: relative;
|
|
position: relative;
|
|
border-top: 1px solid #EBEBEB;
|
|
border-top: 1px solid #EBEBEB;
|
|
}
|
|
}
|
|
|
|
+ .record-content-empty{
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ .record-container{
|
|
|
|
+ width: 400rpx;
|
|
|
|
+ height: auto;
|
|
|
|
+ image{
|
|
|
|
+ width: 400rpx;
|
|
|
|
+ height: 400rpx;
|
|
|
|
+ display: block;
|
|
|
|
+ }
|
|
|
|
+ .txt{
|
|
|
|
+ font-size: $font-size-28;
|
|
|
|
+ text-align: center;
|
|
|
|
+ color: #333;
|
|
|
|
+ line-height: 30rpx;
|
|
|
|
+ margin-bottom: 20rpx;
|
|
|
|
+ }
|
|
|
|
+ .btn{
|
|
|
|
+ width: 400rpx;
|
|
|
|
+ height: 80rpx;
|
|
|
|
+ background: $btn-confirm;
|
|
|
|
+ border-radius: 10rpx;
|
|
|
|
+ line-height: 80rpx;
|
|
|
|
+ font-size: $font-size-28;
|
|
|
|
+ text-align: center;
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.record-list{
|
|
.record-list{
|
|
width: 100%;
|
|
width: 100%;
|
|
height: auto;
|
|
height: auto;
|
|
@@ -376,6 +472,5 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|