From 2bda1d4a0cad91a1292321df329ee7c81a596a19 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Mon, 17 Jun 2024 09:43:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=91=E7=9B=AE=E8=B4=A6=E6=88=B7=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../subjectAccount/subjectAccount.data.ts | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts b/src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts index 6ab79600a..a1a5a18b2 100644 --- a/src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts +++ b/src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts @@ -4,10 +4,13 @@ import * as QadCostcentreApi from '@/api/wms/qadCostcentre' import { QadCostcentre } from '../qadCostcentre/qadCostcentre.data' import * as QadProjectApi from '@/api/wms/qadProject' import { QadProject } from '../qadProject/qadProject.data' +const typeList = await QadProjectApi.getProjectType() // 表单校验 export const SubjectAccountRules = reactive({ code: [required], + accountingAccount: [required], + accountingName: [required], usageDescription: [required], costecentreCode: [required], projectId: [required], @@ -80,10 +83,22 @@ export const SubjectAccount = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, form:{ - componentProps:{ - disabled:true + show:true, + component: 'Select', + componentProps: { + // isSearchList: true, + placeholder:'请选择库位代码', + searchField: 'costcentreType', + // searchTitle: '生产线信息', + // searchAllSchemas: Productionline.allSchemas, + // searchPage: ProductionLineCodeApi.getProductionlinePage + options:typeList.map(item=>({ + label:item.labelKey, + value:item.labelValue + })) } } + }, { label: '项目ID',