diff --git a/package1/other/logistics.vue b/package1/other/logistics.vue
index 3259c78..424f732 100644
--- a/package1/other/logistics.vue
+++ b/package1/other/logistics.vue
@@ -5,13 +5,12 @@
- 今日订单
+
+ 今日订单
+ ({{waitUpDoorNum}}个待上门取货)
历史订单 >
-
-
+
@@ -90,7 +89,8 @@
id:'',
type:'',
companyName:'',
- current:0
+ current:0,
+ waitUpDoorNum:0
}
},
created() {
@@ -121,8 +121,34 @@
this.endDate = date
this.transCompany = this.id
this.getList()
+ this.waitPickUp()
},
methods: {
+ //查询上门取件数量
+ waitPickUp(){
+ uni.request({
+ url: this.tui.interfaceUrl() + '/app/sale/getSaleByCompanyId',
+ data: {
+ companyId:this.id,
+ transportType:1,
+ status:8
+ },
+ header: {
+ 'content-type': 'application/json',
+ 'appWLToken': this.tui.getToken()
+ },
+ method: 'POST', //'GET','POST'
+ dataType: 'json',
+ success: (res) => {
+ if (res.data.code == 200){
+ this.waitUpDoorNum = res.result.orders.length
+ }
+ },
+ fail: (res) => {
+ this.tui.toast("网络不给力,请稍后再试~")
+ }
+ })
+ },
upOrDown(){
var url
if(this.type == 1){ //上线状态
diff --git a/package1/stock/addStock.vue b/package1/stock/addStock.vue
index 0383ce6..664ceec 100644
--- a/package1/stock/addStock.vue
+++ b/package1/stock/addStock.vue
@@ -61,7 +61,7 @@