From 3812eb38a9b77af4c789f54f38af13feecd1b727 Mon Sep 17 00:00:00 2001
From: juzi <819872918@qq.com>
Date: Thu, 9 Nov 2023 15:01:50 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/base/delivery.js | 18 +++
src/api/base/orderManage.js | 9 ++
.../components/deliveryLogDetail.vue | 127 ++++++++++++------
.../deliveryLog/components/editDetail.vue | 124 +++++++++++++++++
src/views/delivery/deliveryLog/index.vue | 2 +-
.../components/deliveryLogDetDetail.vue | 11 +-
src/views/delivery/deliveryLogDet/index.vue | 2 +-
.../orderManage/components/addWorkOrder.vue | 57 +++-----
.../base/orderManage/components/orderAdd.vue | 100 ++++++--------
src/views/order/base/orderManage/index.vue | 95 +++++++++++--
.../base/orderManage/orderDetailData.vue | 77 +++++++----
11 files changed, 450 insertions(+), 172 deletions(-)
create mode 100644 src/views/delivery/deliveryLog/components/editDetail.vue
diff --git a/src/api/base/delivery.js b/src/api/base/delivery.js
index 4c095c6a..82c371c3 100644
--- a/src/api/base/delivery.js
+++ b/src/api/base/delivery.js
@@ -71,3 +71,21 @@ export function deliveryLogDetCreate(data) {
data: data
})
}
+
+// 获得一条发货详细
+export function deliveryLogDetGet(query) {
+ return request({
+ url: '/extend/delivery-log-det/get',
+ method: 'get',
+ params: query
+ })
+}
+
+// 编辑发货详情
+export function deliveryLogDetUpdate(data) {
+ return request({
+ url: '/extend/delivery-log-det/update',
+ method: 'put',
+ data: data
+ })
+}
diff --git a/src/api/base/orderManage.js b/src/api/base/orderManage.js
index 37cace76..38085d6a 100644
--- a/src/api/base/orderManage.js
+++ b/src/api/base/orderManage.js
@@ -137,4 +137,13 @@ export function bomUseNum(query) {
method: 'get',
params: query
})
+}
+
+// 完成订单
+export function orderFinish(query) {
+ return request({
+ url: '/base/order/finish',
+ method: 'post',
+ params: query
+ })
}
\ No newline at end of file
diff --git a/src/views/delivery/deliveryLog/components/deliveryLogDetail.vue b/src/views/delivery/deliveryLog/components/deliveryLogDetail.vue
index caa9aef9..9f1b0827 100644
--- a/src/views/delivery/deliveryLog/components/deliveryLogDetail.vue
+++ b/src/views/delivery/deliveryLog/components/deliveryLogDetail.vue
@@ -1,46 +1,69 @@
-
-
-
-
- 订单名:
- {{orderName ? orderName : '-'}}
-
-
- 发货单号:
- {{code ? code : '-'}}
-
-
-
-
-
-
-
详情
+
+
+
+
+
+ 订单名:
+ {{orderName ? orderName : '-'}}
+
+
+ 发货单号:
+ {{code ? code : '-'}}
+
+
-
-
-
-
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/delivery/deliveryLog/index.vue b/src/views/delivery/deliveryLog/index.vue
index 844f5030..c1eea8d0 100644
--- a/src/views/delivery/deliveryLog/index.vue
+++ b/src/views/delivery/deliveryLog/index.vue
@@ -302,7 +302,7 @@ export default {
successSubmit2() {
this.handleCancel2()
this.getList()
- },
+ }
}
}
\ No newline at end of file
diff --git a/src/views/delivery/deliveryLogDet/components/deliveryLogDetDetail.vue b/src/views/delivery/deliveryLogDet/components/deliveryLogDetDetail.vue
index f26889a9..9d5ff8c4 100644
--- a/src/views/delivery/deliveryLogDet/components/deliveryLogDetDetail.vue
+++ b/src/views/delivery/deliveryLogDet/components/deliveryLogDetDetail.vue
@@ -19,11 +19,11 @@
{{orderMsg.num ? orderMsg.num : '-'}}
-
累积占比(%)
+
累计占比(%)
{{orderMsg.rate ? orderMsg.rate : '-'}}
-
累积运输费用
+
累计运输费用
{{orderMsg.cost ? orderMsg.cost : '-'}}
@@ -305,8 +305,11 @@ export default {
}
},
legend: {
- bottom: '5%',
- left: 'center',
+ type: 'scroll',
+ orient: 'vertical',
+ right: '10%',
+ top: 20,
+ bottom: 20,
icon: 'rect',
itemHeight: 8,
itemWidth: 8
diff --git a/src/views/delivery/deliveryLogDet/index.vue b/src/views/delivery/deliveryLogDet/index.vue
index 7a21fa78..dc02ec0c 100644
--- a/src/views/delivery/deliveryLogDet/index.vue
+++ b/src/views/delivery/deliveryLogDet/index.vue
@@ -61,7 +61,7 @@ const tableProps = [
},
{
prop: 'rate',
- label: '累积发货比例(%)'
+ label: '累计发货比例(%)'
}
]
export default {
diff --git a/src/views/order/base/orderManage/components/addWorkOrder.vue b/src/views/order/base/orderManage/components/addWorkOrder.vue
index b4d3e899..69d9904c 100644
--- a/src/views/order/base/orderManage/components/addWorkOrder.vue
+++ b/src/views/order/base/orderManage/components/addWorkOrder.vue
@@ -25,23 +25,18 @@