From 2125d4285b58ccbfb4d402bb5b1a0797fad86f8f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com>
Date: Tue, 14 Mar 2023 18:44:09 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=AE=A2=E5=8D=95=E8=AF=A6?=
=?UTF-8?q?=E6=83=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/get/detail.vue | 74 +++++++++++++++++++++++++++++++++++++---
1 file changed, 70 insertions(+), 4 deletions(-)
diff --git a/src/pages/get/detail.vue b/src/pages/get/detail.vue
index 989c07f..12cddf2 100644
--- a/src/pages/get/detail.vue
+++ b/src/pages/get/detail.vue
@@ -81,6 +81,28 @@
+
+ 取货地址
+
+
+
+
+ {{ order.pickupAddress }}
+
+
+
+
+
+ 卸货地址
+
+
+
+
+ {{ order.unloadAddress }}
+
+
+
+
¥ {{ utils.formatNumber(order.price, 2) }}
@@ -92,10 +114,14 @@
客服
-
+
-
+
@@ -154,10 +180,48 @@ export default {
},
});
},
+ /**
+ * 报价
+ */
postPrice(id) {
this.$store.commit("order/setPostId", id);
this.showPriceModal = true;
},
+ /**
+ * 确认价格
+ */
+ rcvPostPrice(e) {
+ this.showPriceModal = false;
+ this.getOrder({
+ id: e.id,
+ listType: "t2",
+ price: e.price,
+ });
+ },
+ /**
+ * 接单
+ */
+ getOrder(order) {
+ let requestData = {
+ id: order.id,
+ };
+ if (order.price) {
+ requestData.money = order.price;
+ }
+ this.$models.get
+ .getOrder({
+ api: "get.getOrder." + order.listType,
+ data: requestData,
+ })
+ .then((message) => {
+ this.$utils.toast(message).then(() => {
+ this.switchTab(this.tabIndex);
+ });
+ })
+ .catch((e) => {
+ this.$utils.toast(e);
+ });
+ },
/**
* 获取详情
*/
@@ -201,8 +265,10 @@ export default {
orderId: response.order,
username: "用户名称",
cate: "待返数据",
- createTime: response.time,
+ createTime: response.times,
serviceTime: response.starttime,
+ pickupAddress: response.address,
+ unloadAddress: response.addressb,
state: response.status,
price: response.money,
};
@@ -342,11 +408,11 @@ export default {
.contact {
color: #000000;
line-height: 26rpx;
+ margin-bottom: 16rpx;
}
.detail {
color: #2d2d2d;
line-height: 36rpx;
- margin-top: 16rpx;
}
}
.price-box {