From a52d9e2b9c25ecbe20b9223b22632aabf32a3f1d Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 13 Jan 2022 16:12:07 +0800 Subject: [PATCH 01/15] =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=B6=88=E8=80=97?= =?UTF-8?q?=E4=BA=A7=E5=87=BA=E4=B8=8D=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wpm/views.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index 36f424b..64555b9 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -610,14 +610,16 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd if op.is_submited: raise exceptions.APIException('该操作已提交') # 校验消耗产出是否正确填写 - omis = OperationMaterial.objects.filter(operation=op, - type=SubprodctionMaterial.SUB_MA_TYPE_IN) - sps_omi_l = omis.values_list('subproduction_plan', flat=True) - omos = OperationMaterial.objects.filter(operation=op, - type=SubprodctionMaterial.SUB_MA_TYPE_OUT) - sps_omo_l = omos.filter(use_scrap=False).values_list('subproduction_plan', flat=True) - if not (set(list(sps_omi_l)) == set(list(sps_omo_l)) and op.step.type == Step.STEP_TYPE_DIV): - raise exceptions.APIException('消耗与产出不一致') + if op.step.type == Step.STEP_TYPE_DIV: + omis = OperationMaterial.objects.filter(operation=op, + type=SubprodctionMaterial.SUB_MA_TYPE_IN) + sps_omi_l = omis.values_list('subproduction_plan', flat=True) + omos = OperationMaterial.objects.filter(operation=op, + type=SubprodctionMaterial.SUB_MA_TYPE_OUT) + sps_omo_l = omos.filter(use_scrap=False).values_list('subproduction_plan', flat=True) + if set(list(sps_omi_l)) != set(list(sps_omo_l)) + raise exceptions.APIException('消耗与产出不一致') + # 实际消耗物料校验 # 检查自定义表单填写 From 6ff8b117c06c047e6863a3d100de095c9ce292c8 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 13 Jan 2022 16:15:30 +0800 Subject: [PATCH 02/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wpm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index 64555b9..8076e8f 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -617,7 +617,7 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd omos = OperationMaterial.objects.filter(operation=op, type=SubprodctionMaterial.SUB_MA_TYPE_OUT) sps_omo_l = omos.filter(use_scrap=False).values_list('subproduction_plan', flat=True) - if set(list(sps_omi_l)) != set(list(sps_omo_l)) + if set(list(sps_omi_l)) != set(list(sps_omo_l)): raise exceptions.APIException('消耗与产出不一致') # 实际消耗物料校验 From eb4cdf5d2b33b8280691dfc8ce4be42e56c38199 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 13 Jan 2022 16:21:27 +0800 Subject: [PATCH 03/15] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wpm/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index 8076e8f..8aee33d 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -609,13 +609,13 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd step = op.step if op.is_submited: raise exceptions.APIException('该操作已提交') + omis = OperationMaterial.objects.filter(operation=op, + type=SubprodctionMaterial.SUB_MA_TYPE_IN) + omos = OperationMaterial.objects.filter(operation=op, + type=SubprodctionMaterial.SUB_MA_TYPE_OUT) # 校验消耗产出是否正确填写 if op.step.type == Step.STEP_TYPE_DIV: - omis = OperationMaterial.objects.filter(operation=op, - type=SubprodctionMaterial.SUB_MA_TYPE_IN) sps_omi_l = omis.values_list('subproduction_plan', flat=True) - omos = OperationMaterial.objects.filter(operation=op, - type=SubprodctionMaterial.SUB_MA_TYPE_OUT) sps_omo_l = omos.filter(use_scrap=False).values_list('subproduction_plan', flat=True) if set(list(sps_omi_l)) != set(list(sps_omo_l)): raise exceptions.APIException('消耗与产出不一致') From ddfe73366443278bf02fd3097e122008418e93b3 Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 13 Jan 2022 16:42:26 +0800 Subject: [PATCH 04/15] changes --- .../components/Gantt/components/leftMenu.vue | 14 +- .../components/Gantt/components/slider.vue | 21 +- hb_client/src/components/customForm/index.vue | 20 +- .../src/components/customForm/review.vue | 37 +- .../src/components/faceLogin/faceLogin.vue | 43 +- .../src/layout/components/TagsView/index.vue | 2 +- hb_client/src/views/dashboard/index.vue | 208 +++++-- hb_client/src/views/mtm/material.vue | 529 +++++++++--------- hb_client/src/views/mtm/materialdo.vue | 137 +++-- hb_client/src/views/pm/plan.vue | 106 ++-- 10 files changed, 622 insertions(+), 495 deletions(-) diff --git a/hb_client/src/components/Gantt/components/leftMenu.vue b/hb_client/src/components/Gantt/components/leftMenu.vue index 7ba7927..632bcef 100644 --- a/hb_client/src/components/Gantt/components/leftMenu.vue +++ b/hb_client/src/components/Gantt/components/leftMenu.vue @@ -19,19 +19,13 @@ @expand-change="handlerExpand" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" > - - + - - + - - + - - + diff --git a/hb_client/src/components/Gantt/components/slider.vue b/hb_client/src/components/Gantt/components/slider.vue index b355b75..acba620 100644 --- a/hb_client/src/components/Gantt/components/slider.vue +++ b/hb_client/src/components/Gantt/components/slider.vue @@ -1,19 +1,18 @@ diff --git a/hb_client/src/views/mtm/materialdo.vue b/hb_client/src/views/mtm/materialdo.vue index f6d227f..fed046b 100644 --- a/hb_client/src/views/mtm/materialdo.vue +++ b/hb_client/src/views/mtm/materialdo.vue @@ -20,49 +20,43 @@ - + + + + - @@ -81,17 +75,15 @@ - - - + + +
- 取消 - - 确认 + 取消 + + 管理员授权
@@ -238,9 +230,9 @@ --> - - - + + + @@ -256,8 +248,7 @@ icon="el-icon-plus" @click="handlefieldCreate" >新增 - + -