From 492b591fa91a9f9dcac6849172e9c3e018448f9d Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Thu, 21 Nov 2024 15:55:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../orderManage/components/addWorkOrder.vue | 3 + .../base/orderManage/orderDetailData.vue | 15 +- src/views/produce/workOrder/SmallTitle.vue | 2 +- src/views/produce/workOrder/addWorkOrder.vue | 9 +- src/views/produce/workOrder/allocation.vue | 41 +++-- src/views/produce/workOrder/detail.vue | 160 ++++++------------ src/views/produce/workOrder/index.vue | 7 + src/views/produce/workOrder/workOrderNav.vue | 21 +-- 8 files changed, 117 insertions(+), 141 deletions(-) diff --git a/src/views/produce/order/base/orderManage/components/addWorkOrder.vue b/src/views/produce/order/base/orderManage/components/addWorkOrder.vue index e29f9034..3ff65ac0 100644 --- a/src/views/produce/order/base/orderManage/components/addWorkOrder.vue +++ b/src/views/produce/order/base/orderManage/components/addWorkOrder.vue @@ -263,6 +263,9 @@ export default { trigger: 'blur', }, ], + deptId:[ + { required: true, message: '负责部门不能为空', trigger: 'change' }, + ], }, productList: [], processFlowList: [], diff --git a/src/views/produce/order/base/orderManage/orderDetailData.vue b/src/views/produce/order/base/orderManage/orderDetailData.vue index 13a0f32d..d8371da1 100644 --- a/src/views/produce/order/base/orderManage/orderDetailData.vue +++ b/src/views/produce/order/base/orderManage/orderDetailData.vue @@ -9,7 +9,7 @@ type="primary" plain size="small" - style="float: right; margin-top: -10px" + style="float: right; margin-top: -25px" @click="returnOrderManage"> 返回 @@ -421,6 +421,19 @@ export default { .box1 { height: 215px; padding: 16px 16px 0 16px; + .boxTitle { + font-size: 16px; + font-weight: 600; + } + .blueTitle { + display: inline-block; + width: 4px; + height: 18px; + background-color: #0b58ff; + margin-right: 8px; + position: relative; + top:4px; + } .blodTip { height: 16px; font-size: 14px; diff --git a/src/views/produce/workOrder/SmallTitle.vue b/src/views/produce/workOrder/SmallTitle.vue index 93b4a18f..8e04d268 100644 --- a/src/views/produce/workOrder/SmallTitle.vue +++ b/src/views/produce/workOrder/SmallTitle.vue @@ -40,7 +40,7 @@ $pxls: (xl, 28px) (lg, 24px) (de, 20px) (md, 18px) (sm, 16px); $mgr: 8px; @each $size, $height in $pxls { .#{$size}-title { - font-size: 18px; + font-size: $height; line-height: $height; color: #000; font-weight: 500; diff --git a/src/views/produce/workOrder/addWorkOrder.vue b/src/views/produce/workOrder/addWorkOrder.vue index 608d4924..b7b1de94 100644 --- a/src/views/produce/workOrder/addWorkOrder.vue +++ b/src/views/produce/workOrder/addWorkOrder.vue @@ -327,8 +327,6 @@ export default { { id: 1, name: '普通' }, { id: 2, name: '特殊' }, ], - planStartTime: '', - planFinishTime: '', isBind: false, workOrderList: [], }; @@ -369,11 +367,14 @@ export default { } this.$nextTick(() => { this.$refs['dataForm'].resetFields(); - this.planStartTime = ''; - this.planFinishTime = ''; + this.dataForm.planStartTime = ''; + this.dataForm.planFinishTime = ''; + this.dataForm.productLineIds = [{ lineId: null, processId: null, num: null }]; if (this.dataForm.id) { getCoreWO(id).then((response) => { this.dataForm = response.data; + this.dataForm.planStartTime = response.data.planStartTime ? response.data.planStartTime : ''; + this.dataForm.planFinishTime = response.data.planFinishTime ? response.data.planFinishTime : ''; if (this.dataForm.priority !== undefined) { this.dataForm.priority = String(this.dataForm.priority); } diff --git a/src/views/produce/workOrder/allocation.vue b/src/views/produce/workOrder/allocation.vue index 9fc2dd85..36095e3a 100644 --- a/src/views/produce/workOrder/allocation.vue +++ b/src/views/produce/workOrder/allocation.vue @@ -16,26 +16,31 @@ {{ '分配产量' }}
-
+
- 工单名称:{{ dataForm.name }} - 工单编码:{{ dataForm.code }} + 工单名称:{{ dataForm.name }} + 工单编码:{{ dataForm.code }} - 产品名称:{{ dataForm.productName }} - 产品规格:{{ dataForm.specifications }} + 产品名称:{{ dataForm.productName }} + 产品规格:{{ dataForm.specifications }} - 实际生产数量:{{ dataForm.expectedTime }} + 实际生产数量:{{ dataForm.actualQuantity }}
- + @@ -49,7 +54,7 @@ - +