From 4fc03d73aa0ebb3a794472b55ea47b4a0e8edea9 Mon Sep 17 00:00:00 2001 From: chenfang Date: Wed, 10 Jul 2024 19:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=91=E7=9B=AE=E8=B4=A6=E6=88=B7=E9=85=8D?= =?UTF-8?q?=E8=B5=84=E7=AE=A1=E7=90=86=E6=96=B0=E5=A2=9E=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/dict.ts | 1 + .../subjectAccount/subjectAccount.data.ts | 37 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/src/utils/dict.ts b/src/utils/dict.ts index fe86384be..a335effc5 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -286,6 +286,7 @@ export enum DICT_TYPE { BILL_TYPE = 'bill_type', // 发票类型 CONTAIN_MANAGE_TYPE = 'contain_menage_type', //器具管理类型 INVOICE_BALANCE_STATEMENT_STATUS = 'invoice_balance_statement_status', //是否有价差 + PL_MSTR_TYPE = 'pl_mstr_type', //产品类类型 // ========== 业务 - mes ========== MESDO_STATUS = 'mes_do_status', // 工单执行状态 diff --git a/src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts b/src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts index ac575491b..5a3a0f763 100644 --- a/src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts +++ b/src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts @@ -17,6 +17,7 @@ export const SubjectAccountRules = reactive({ projectId: [required], projectCode: [required], available: [required], + isFromPlMstr:[required] }) export const SubjectAccount = useCrudSchemas(reactive([ @@ -180,6 +181,42 @@ export const SubjectAccount = useCrudSchemas(reactive([ } }, }, + { + label: '是否来自产品类', + field: 'isFromPlMstr', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isTable: true, + table: { + width: 140 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, + }, + { + label: '产品类类型', + field: 'plMstrType', + sort: 'custom', + isSearch: false, + dictType: DICT_TYPE.PL_MSTR_TYPE, + dictClass: 'string', + isTable: true, + table: { + width: 120 + }, + form:{ + componentProps:{ + disabled:false + } + } + }, { label: '备注', field: 'remark',