diff --git a/src/api/bst/orderProd.js b/src/api/bst/orderProd.js index e9e0cc1..c203ebb 100644 --- a/src/api/bst/orderProd.js +++ b/src/api/bst/orderProd.js @@ -42,3 +42,12 @@ export function delOrderProd(id) { method: 'delete' }) } + +// 查询订单产品分组 +export function listOrderProdGroupByName(query) { + return request({ + url: '/bst/orderProd/groupByName', + method: 'get', + params: query + }) +} diff --git a/src/api/bst/prodProcess.js b/src/api/bst/prodProcess.js index 6e3cb46..b3589b3 100644 --- a/src/api/bst/prodProcess.js +++ b/src/api/bst/prodProcess.js @@ -9,6 +9,15 @@ export function listProdProcess(query) { }) } +// 分组查询工序列表 +export function groupByNameProdProcess(query) { + return request({ + url: '/bst/prodProcess/groupByName', + method: 'get', + params: query + }) +} + // 查询产品工序列表 export function listProdProcessByIds(ids) { return request({ diff --git a/src/api/dashboard/prodProcess.js b/src/api/dashboard/prodProcess.js new file mode 100644 index 0000000..9e626e6 --- /dev/null +++ b/src/api/dashboard/prodProcess.js @@ -0,0 +1,10 @@ +import request from '@/utils/request' + +// 获取工序汇总数据 +export function getProdProcessSum(query) { + return request({ + url: '/dashboard/prodProcess/sum', + method: 'get', + params: query + }) +} diff --git a/src/views/bst/order/components/OrderFlowList.vue b/src/views/bst/order/components/OrderFlowList.vue index 079620d..3ff5500 100644 --- a/src/views/bst/order/components/OrderFlowList.vue +++ b/src/views/bst/order/components/OrderFlowList.vue @@ -16,20 +16,38 @@
- - {{ order.orderNo | dv}} - {{ order.orderDate | dv}} - {{ order.customer | dv}} - {{ order.num | dv}} {{order.unit}} + + {{ order.orderNo | dv}} + {{ order.orderDate | dv}} + {{ order.customer | dv}} + {{ order.deliveryDate | dv}}
- - - {{ order.totalNum | dv}} - {{ order.reportNum | dv}} - {{ order.storeNum | dv}} +
成品生产进度 + + + +
+ + + {{ order.num | dv}} {{order.unit}} + {{ order.endReportNum | dv}} {{order.unit}} + {{ order.endStoreNum | dv}} {{order.unit}} + +
+
+
总生产进度 + + + +
+ + + {{ order.totalNum - order.num | dv}} + {{ order.reportNum | dv}} + {{ order.storeNum | dv}}
@@ -38,13 +56,14 @@
{{ prod.name | dv }} + 成品
@@ -223,7 +242,13 @@ export default { } .progress-container { - margin-bottom: 8px; + border-top: 1px solid #f0f2f5; + padding-top: 4px; + padding-bottom: 4px; + .progress-title { + font-size: 12px; + color: #606266; + } } .order-main-image { diff --git a/src/views/bst/order/index.vue b/src/views/bst/order/index.vue index 1eca58f..43be472 100644 --- a/src/views/bst/order/index.vue +++ b/src/views/bst/order/index.vue @@ -121,7 +121,7 @@ - +