From f1d0c08bbef3ffef0b9bbd0c181d2047c9866a7f Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期六, 11 十月 2025 14:42:40 +0800
Subject: [PATCH] 定制模板
---
pages/supplier/suppler-order/suppler-order.vue | 121 ++++++++++------------------------------
1 files changed, 31 insertions(+), 90 deletions(-)
diff --git a/pages/supplier/suppler-order/suppler-order.vue b/pages/supplier/suppler-order/suppler-order.vue
index df4e95d..f2e3324 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 {
@@ -177,13 +179,13 @@
orderList: [],
pageNumber: 1,
},
- // {
- // state: 4,
- // text: "宸插畬鎴�",
- // loadStatus: "more",
- // orderList: [],
- // pageNumber: 1,
- // },
+ {
+ state: 4,
+ text: "宸插畬鎴�",
+ loadStatus: "more",
+ orderList: [],
+ pageNumber: 1,
+ },
// {
// state: 5,
// text: "宸插彇娑�",
@@ -212,9 +214,9 @@
{
orderStatus: "WAIT_ROG", //寰呮敹璐�
},
- // {
- // orderStatus: "COMPLETE", //宸插畬鎴�
- // },
+ {
+ orderStatus: "COMPLETE", //宸插畬鎴�
+ },
// {
// orderStatus: "CANCELLED", //宸插彇娑�
// },
@@ -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