From df066d52a1564010eea3d4a0e4030e31eb5bf33d Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Fri, 11 Oct 2024 09:52:21 +0800 Subject: [PATCH] =?UTF-8?q?HL-6236=E8=AE=A1=E5=88=92=E5=A4=96=E5=87=BA?= =?UTF-8?q?=E5=85=A5=E5=BA=93=EF=BC=8C=E6=9C=89=E9=A1=B9=E7=9B=AE=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=EF=BC=8C=E7=8E=B0=E4=BC=A0=E4=B8=8D=E5=88=B0=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../labelManage/manufacturePackage/index.vue | 2 +- .../subject/qadProject/qadProject.data.ts | 2 ++ .../unplannedissueRequestMain/index.vue | 22 ++++++++++++++++++- .../unplannedreceiptRequestMain/index.vue | 17 ++++++++++++++ 4 files changed, 41 insertions(+), 2 deletions(-) diff --git a/src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue b/src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue index 0247f00e0..cc76d7a9e 100644 --- a/src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue +++ b/src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue @@ -70,7 +70,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam' import { formatDate } from '@/utils/formatTime' import { usePageLoading } from '@/hooks/web/usePageLoading' const { loadStart, loadDone } = usePageLoading() -// 采购标签 +// 制造件标签 defineOptions({ name: 'PurchasePackage' }) const message = useMessage() // 消息弹窗 diff --git a/src/views/wms/basicDataManage/subject/qadProject/qadProject.data.ts b/src/views/wms/basicDataManage/subject/qadProject/qadProject.data.ts index c04e55f5f..fd821b60e 100644 --- a/src/views/wms/basicDataManage/subject/qadProject/qadProject.data.ts +++ b/src/views/wms/basicDataManage/subject/qadProject/qadProject.data.ts @@ -95,6 +95,8 @@ export const QadProject = useCrudSchemas(reactive([ field: 'available', sort: 'custom', isSearch: false, + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 }, { label: '备注', diff --git a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue index 7e4671889..48f34fb6f 100644 --- a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue @@ -164,8 +164,28 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => setV['reasonDescRequisition'] = val[0]['accountingName'] // 项目是否必填 if(UnplannedissueRequestMainRules['projectCode']){ - UnplannedissueRequestMainRules['projectCode'][0].required = val[0]['isProject']=='TRUE' + // “是”:必填 + UnplannedissueRequestMainRules['projectCode'][0].required = val[0]['isProject']=='TRUE' } + + + UnplannedissueRequestMain.allSchemas.formSchema.forEach((item) => { + if (item.field == 'projectCode') { + //项目代码 + if(val[0]['isProject']=='TRUE'){ + //是-可编辑,可选择 + item.componentProps.enterSearch = true + item.componentProps.isSearchList = true + item.componentProps.disabled = false + }else{ + //否-不可编辑,内容为空 + setV['projectCode'] = '' + item.componentProps.enterSearch = false + item.componentProps.isSearchList = false + item.componentProps.disabled = true + } + } + }) } if(formField === 'projectCode'){ setV['projectCode'] = val[0]['projectCode'] diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue index c79258b9a..2c9e8b7bb 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue @@ -268,6 +268,23 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => if(UnplannedreceiptRequestMainRules['projectCode']){ UnplannedreceiptRequestMainRules['projectCode'][0].required = val[0]['isProject']=='TRUE' } + UnplannedreceiptRequestMain.allSchemas.formSchema.forEach((item) => { + if (item.field == 'projectCode') { + //项目代码 + if(val[0]['isProject']=='TRUE'){ + //是-可编辑,可选择 + item.componentProps.enterSearch = true + item.componentProps.isSearchList = true + item.componentProps.disabled = false + }else{ + //否-不可编辑,内容为空 + setV['projectCode'] = '' + item.componentProps.enterSearch = false + item.componentProps.isSearchList = false + item.componentProps.disabled = true + } + } + }) } if(formField === 'projectCode'){ setV['projectCode'] = val[0]['projectCode']