From c22e91296d532873b70cb51bf5510bf7738f3f1a Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期三, 09 七月 2025 18:01:36 +0800
Subject: [PATCH] 完成小程序商户端查看订单发货查看物流

---
 pages/supplier/suppler-order/suppler-order.vue |  101 ++++++++++----------------------------------------
 1 files changed, 21 insertions(+), 80 deletions(-)

diff --git a/pages/supplier/suppler-order/suppler-order.vue b/pages/supplier/suppler-order/suppler-order.vue
index df4e95d..76b984c 100644
--- a/pages/supplier/suppler-order/suppler-order.vue
+++ b/pages/supplier/suppler-order/suppler-order.vue
@@ -106,6 +106,7 @@
                     shape="circle"
                     size="mini"
                     v-if="order.orderStatus==='UNDELIVERED'"
+					@click="navigationToOrderDetail(order.sn)"
                     >鍙戣揣</view
                   >
                   <!-- 绛夊緟鏀惰揣 -->
@@ -134,6 +135,7 @@
 <script>
 import '@/components/uview-components/uview-ui';
 import { getOrderXcxList, cancelOrder, confirmReceipt ,getOrderDetail} from "@/api/order.js";
+import{supplierOrderList} from '@/api/supplier.js'
 import { getClearReason } from "@/api/after-sale.js";
 import LiLiWXPay from "@/js_sdk/lili-pay/wx-pay.js";
 export default {
@@ -263,6 +265,9 @@
      * 淇app绔偣鍑婚櫎鍏ㄩ儴璁㈠崟澶栫殑鎸夐挳杩涘叆鏃朵笉鍔犺浇鏁版嵁鐨勯棶棰�
      * 鏇挎崲onLoad涓嬩唬鐮佸嵆鍙�
      */
+	if(!options.status){
+		options.status = 0
+	}
     let status = Number(options.status);
     this.status = status;
 		
@@ -286,6 +291,11 @@
     },
   },
   methods: {
+	  navigationToOrderDetail(snNo){
+		  uni.navigateTo({
+		  	url:`/pages/supplier/suppler-order/order-detail?order_sn=${snNo}`
+		  })
+	  },
 	 async selectPhone(sn){
 	 const orderInfo =	await getOrderDetail(sn)
 	 console.log('----------------->',orderInfo)
@@ -295,8 +305,15 @@
 	 this.userInfo.address = orderInfo.data.result.order.consigneeAddressPath
 	 
 	uni.showModal({
-		title:"鐢ㄦ埛鑱旂郴鐢佃瘽",
-		content:orderInfo.data.result.order.consigneeMobile
+		title:orderInfo.data.result.order.consigneeName + '锛堝厛鐢�/濂冲+锛�',
+		content:orderInfo.data.result.order.consigneeMobile,
+		success(e) {
+			if(e.confirm){
+				uni.makePhoneCall({
+					phoneNumber:orderInfo.data.result.order.consigneeMobile
+				})
+			}
+		}
 	})
 
 	  },
@@ -316,7 +333,7 @@
     loadData(index) {
       this.params.pageNumber = this.navList[index].pageNumber;
       // this.params.tag = this.orderStatus[index].orderStatus;
-      getOrderXcxList(this.params).then((res) => {
+      supplierOrderList(this.params).then((res) => {
         uni.stopPullDownRefresh();
         if (!res.data.success) {
           this.navList[index].loadStatus = "noMore";
@@ -367,83 +384,7 @@
         stateTipColor,
       };
     },
-    /**
-     * 閫夋嫨鍙栨秷鍘熷洜
-     */
-    reasonChange(reason) {
-      this.reason = reason;
-    },
 
-    /**
-     * 鎻愪氦鍙栨秷璁㈠崟锛堟湭浠樻锛�
-     */
-    submitCancel() {
-      cancelOrder(this.orderSn, { reason: this.reason }).then((res) => {
-        if (res.data.success) {
-          uni.showToast({
-            title: "璁㈠崟宸插彇娑�",
-            duration: 2000,
-            icon: "none",
-          });
-          this.initData(this.tabCurrentIndex);
-
-          this.cancelShow = false;
-        } else {
-          uni.showToast({
-            title: res.data.message,
-            duration: 2000,
-            icon: "none",
-          });
-          this.cancelShow = false;
-        }
-      });
-    },
-
-    /**
-     * 纭鏀惰揣鏄剧ず
-     */
-    onRog(sn) {
-      this.orderSn = sn;
-      this.rogShow = true;
-    },
-
-    /**
-     * 鐐瑰嚮纭鏀惰揣
-     */
-    confirmRog() {
-      confirmReceipt(this.orderSn).then((res) => {
-        if (res.data.code == 200) {
-          uni.showToast({
-            title: "宸茬‘璁ゆ敹璐�",
-            duration: 2000,
-            icon: "none",
-          });
-          this.initData(this.tabCurrentIndex);
-          this.rogShow = false;
-        }
-      });
-    },
-
-    /**
-     * 璇勪环鍟嗗搧
-     */
-    onComment(sn) {
-      uni.navigateTo({
-        url: "./evaluate/myEvaluate",
-      });
-    },
-
-    /**
-     * 閲嶆柊璐拱
-     */
-    reBuy(order) {
-      console.log(order);
-      return;
-      uni.navigateTo({
-        url:
-          "/pages/product/goods?id=" + order.id + "&goodsId=" + order.goodsId,
-      });
-    },
 
     /**
      * 鏌ョ湅鐗╂祦
@@ -451,7 +392,7 @@
     navigateToLogistics(order) {
       uni.navigateTo({
         url:
-          "/pages/mine/msgTips/packageMsg/logisticsDetail?order_sn=" + order.sn,
+           `/pages/order/deliverDetail?order_sn=${order.sn}`,
       });
     },
   },

--
Gitblit v1.8.0