From 7c4fcb16fda385c7b2b831049849dca2be19c557 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Wed, 21 Aug 2024 11:51:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?HL-5466=E6=8A=A5=E5=BA=9F=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/dict.ts | 1 + .../productscrapRecordMain.data.ts | 12 ++++++++++++ .../productscrapRequestMain.data.ts | 15 +++++++++++++++ 3 files changed, 28 insertions(+) diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 11aca3804..7f6ceb033 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -401,4 +401,5 @@ export enum DICT_TYPE { PUBLISHE_STATUS = 'publishe_status', // 采购收货任务状态 PUBLISHE_STATUS_FIRST_INSPECTION = 'publishe_status_first_inspection', // 首件检验记录发布状态 RETURN_REASON_TYPE = 'return_reason_type', // 采购退货原因类型 + SCRAPPING_REASON = 'scrapping_reason', //制品子件报废原因 } diff --git a/src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts b/src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts index 16a0a352d..551eca89d 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts +++ b/src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts @@ -116,6 +116,18 @@ export const ProductscrapRecordMain = useCrudSchemas( width: 150 } }, + { + label: '报废原因', + field: 'scrappingReason', + dictType: DICT_TYPE.SCRAPPING_REASON, + dictClass: 'string', + isForm: true, + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + }, { label: '任务单号', field: 'jobNumber', diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts b/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts index 881153b74..d88934572 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts @@ -310,6 +310,18 @@ export const ProductscrapRequestMain = useCrudSchemas( } } }, + { + label: '报废原因', + field: 'scrappingReason', + dictType: DICT_TYPE.SCRAPPING_REASON, + dictClass: 'string', + isForm: true, + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + }, { label: '从仓库代码', field: 'fromWarehouseCode', @@ -644,6 +656,9 @@ export const ProductscrapRequestMainRules = reactive({ remark: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], + scrappingReason: [ + { required: true, message: '请输入报废原因', trigger: 'blur' } + ], }) /** From 33dd2ef702186a23721f06f683631d153d50ecbb Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Wed, 21 Aug 2024 11:59:44 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E9=87=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionRequest/index.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/views/qms/inspectionRequest/index.vue b/src/views/qms/inspectionRequest/index.vue index 4e6ea8443..b863a1a02 100644 --- a/src/views/qms/inspectionRequest/index.vue +++ b/src/views/qms/inspectionRequest/index.vue @@ -5,9 +5,7 @@ @@ -510,7 +508,7 @@ const ListTableSubmit = async (formType, data) => { /** 初始化 **/ onMounted(async () => { tableObject.params = { - available: true + available: 'TRUE' } getList() importTemplateData.templateUrl = await InspectionMainApi.importTemplate()