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 {