From 6b5b5e99117ecadac9d85c3888b1ca00263b31f1 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 31 Dec 2021 16:44:53 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E4=B8=8D=E5=90=88=E6=A0=BC=E5=AE=A1?= =?UTF-8?q?=E7=90=86=E8=BF=94=E5=9B=9Edecision=5F2=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_client/.env.development | 4 ++-- hb_server/apps/wpm/signals.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hb_client/.env.development b/hb_client/.env.development index 003a43c..ef83e12 100644 --- a/hb_client/.env.development +++ b/hb_client/.env.development @@ -2,8 +2,8 @@ ENV = 'development' # base api -#VUE_APP_BASE_API = 'http://127.0.0.1:8000/api' -VUE_APP_BASE_API = 'http://47.95.0.242:2222/api' +VUE_APP_BASE_API = 'http://127.0.0.1:8000/api' +#VUE_APP_BASE_API = 'http://47.95.0.242:2222/api' # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, diff --git a/hb_server/apps/wpm/signals.py b/hb_server/apps/wpm/signals.py index 670f9c7..9b37b54 100644 --- a/hb_server/apps/wpm/signals.py +++ b/hb_server/apps/wpm/signals.py @@ -46,10 +46,10 @@ def handleTicket(sender, instance, created, **kwargs): wp = wt.wproduct decision = WProduct.NG_BACK_WORK - if 'decision_1' in ticket_data and ticket_data['decision_1']: - decision = ticket_data['decision_1'] - elif 'decision_2' in ticket_data and ticket_data['decision_2']: + if 'decision_2' in ticket_data and ticket_data['decision_2']: decision = ticket_data['decision_2'] + elif 'decision_1' in ticket_data and ticket_data['decision_1']: + decision = ticket_data['decision_1'] wp.ng_sign = decision From 8f1746f8a6be5b5a91138cae759b6b6ff812d72d Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 4 Jan 2022 09:22:54 +0800 Subject: [PATCH 2/5] =?UTF-8?q?techdoc=20=E5=A2=9E=E5=8A=A0enabled?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/mtm/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hb_server/apps/mtm/filters.py b/hb_server/apps/mtm/filters.py index ca4c2dd..41d7b73 100644 --- a/hb_server/apps/mtm/filters.py +++ b/hb_server/apps/mtm/filters.py @@ -9,7 +9,7 @@ class TechDocFilterset(filters.FilterSet): # operation = filters.CharFilter(field_name="subproduction__subplan_subprod__ow_subplan__operation") class Meta: model = TechDoc - fields = ['subproduction', 'operation'] + fields = ['subproduction', 'operation', 'enabled'] def filter_operation(self, queryset, name, value): return queryset.filter(subproduction__subplan_subprod__ow_subplan__operation=value).distinct() From 3b1fefc6962b74ebbd814c40dca60ce58efeefef Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Tue, 4 Jan 2022 09:44:39 +0800 Subject: [PATCH 3/5] jianyantianjiaqiyong --- hb_client/src/router/index.js | 2 +- hb_client/src/views/mtm/materialdo.vue | 13 ++++++++++++- hb_client/src/views/mtm/productprocess.vue | 18 ++++++++++++------ hb_client/src/views/wpm/need.vue | 3 ++- hb_client/src/views/wpm/operationdo.vue | 2 +- 5 files changed, 28 insertions(+), 10 deletions(-) diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js index e98d1ae..de1ab74 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -343,7 +343,7 @@ export const asyncRoutes = [ path: 'admissiontest', name: 'admissiontest', component: () => import('@/views/qm/admissiontest'), - meta: { title: '入场检验', icon: 'example', perms: ['index_manage'] } + meta: { title: '入厂检验', icon: 'example', perms: ['index_manage'] } } , { diff --git a/hb_client/src/views/mtm/materialdo.vue b/hb_client/src/views/mtm/materialdo.vue index 8792fb0..f6d227f 100644 --- a/hb_client/src/views/mtm/materialdo.vue +++ b/hb_client/src/views/mtm/materialdo.vue @@ -34,6 +34,14 @@ + + + +