diff --git a/src/views/qms/inspectionJob/addForm.vue b/src/views/qms/inspectionJob/addForm.vue index 7741bcfd9..bd91e6563 100644 --- a/src/views/qms/inspectionJob/addForm.vue +++ b/src/views/qms/inspectionJob/addForm.vue @@ -131,7 +131,7 @@ label="描述" prop="inspectionJobCharacteristicsUpdateReqVO.description" > - diff --git a/src/views/qms/inspectionJob/detail.vue b/src/views/qms/inspectionJob/detail.vue index a7d2a80e7..ebc7366a9 100644 --- a/src/views/qms/inspectionJob/detail.vue +++ b/src/views/qms/inspectionJob/detail.vue @@ -47,7 +47,7 @@ - diff --git a/src/views/qms/inspectionRecord/addForm.vue b/src/views/qms/inspectionRecord/addForm.vue index 7b267390b..a4b09f5ec 100644 --- a/src/views/qms/inspectionRecord/addForm.vue +++ b/src/views/qms/inspectionRecord/addForm.vue @@ -130,7 +130,7 @@ label="描述" prop="inspectionJobCharacteristicsUpdateReqVO.description" > - diff --git a/src/views/qms/inspectionRecord/detail.vue b/src/views/qms/inspectionRecord/detail.vue index 107b2b1f7..0ee938b98 100644 --- a/src/views/qms/inspectionRecord/detail.vue +++ b/src/views/qms/inspectionRecord/detail.vue @@ -47,7 +47,7 @@ - diff --git a/src/views/qms/inspectionScheme/detail.vue b/src/views/qms/inspectionScheme/detail.vue index 15a7af330..e409f9393 100644 --- a/src/views/qms/inspectionScheme/detail.vue +++ b/src/views/qms/inspectionScheme/detail.vue @@ -66,7 +66,7 @@ - + diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts index e2ec64bb6..c1ee6008b 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts @@ -613,6 +613,7 @@ export const RelegateRequestDetail = useCrudSchemas(reactive([ table: { width: 150 }, + isTableForm: false, isForm: false, isTable: true }, diff --git a/src/views/wms/basicDataManage/subject/mstr/index.vue b/src/views/wms/basicDataManage/subject/mstr/index.vue index 616377da4..b49fba76e 100644 --- a/src/views/wms/basicDataManage/subject/mstr/index.vue +++ b/src/views/wms/basicDataManage/subject/mstr/index.vue @@ -68,6 +68,7 @@ import Detail from '@/components/Detail/src/Detail.vue' import { formatDate } from '@/utils/formatTime' import { usePageLoading } from '@/hooks/web/usePageLoading' const { loadStart, loadDone } = usePageLoading() +// 产品类 defineOptions({ name: 'Mstr' }) const message = useMessage() // 消息弹窗 diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue index bd68d9462..c980f1d34 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue @@ -232,8 +232,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => if (type == 'tableForm') { if(formField=='itemCode'){ val.forEach(item=>{ - if(tableData.value.find(item1=>item1['itemCode'] == item['code'])){ - message.warning(`物料${item['code']}已经存在`) + if(tableData.value.find(item1=>item1['itemCode'] == item['itemCode']&&item1['batch'] == item['batch'])){ + message.warning(`物料${item['itemCode']}批次${item['batch']}已经存在`) return } const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) diff --git a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts index f1feeb46d..a29cf5e29 100644 --- a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts @@ -603,6 +603,7 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive( width: 150 }, tableForm: { + isRepeat:true, enterSearch:true, isInpuFocusShow: true, // 开启查询弹窗 searchListPlaceholder: '请选择库位代码', diff --git a/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue b/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue index 002bbac51..5096dda96 100644 --- a/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue +++ b/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue @@ -299,6 +299,27 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => } if(formField == 'reasonCodeRequisition'){ setV['reasonCodeRequisition'] = val[0]['code'] + // 项目是否必填 + if(ProductionscrapRequestMainRules['projectCode']){ + ProductionscrapRequestMainRules['projectCode'][0].required = val[0]['isProject']=='TRUE' + } + ProductionscrapRequestMain.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 + } + } + }) } setV[formField] = val[0][searchField] tableData.value = [] // 重置明细数据 diff --git a/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts b/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts index d13a65b4f..959141c48 100644 --- a/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts +++ b/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts @@ -1453,6 +1453,9 @@ export const ProductionscrapRequestMain = useCrudSchemas( //表单校验 export const ProductionscrapRequestMainRules = reactive({ + projectCode: [ + { required: false, message: '请输入项目代码', trigger: 'blur' } + ], departmentCode: [ { required: true, message: '请输入部门', trigger: 'blur' } ], diff --git a/src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts b/src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts index f315502ab..2e77791d8 100644 --- a/src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts +++ b/src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts @@ -475,6 +475,11 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive searchCondition: [{ key: 'businessType', value: businessTypeData.code, + }, + { + key: 'inOrOut', + value: 'out', + isMainValue: false }] }, form: { @@ -489,6 +494,11 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive searchCondition: [{ key: 'businessType', value: businessTypeData.code, + }, + { + key: 'inOrOut', + value: 'out', + isMainValue: false }] } } diff --git a/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/productputawayAssembleRequestMain.data.ts b/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/productputawayAssembleRequestMain.data.ts index 006fc1ecf..3acc8dc13 100644 --- a/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/productputawayAssembleRequestMain.data.ts +++ b/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/productputawayAssembleRequestMain.data.ts @@ -4,6 +4,7 @@ import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as BalanceApi from '@/api/wms/balance' import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' +import * as getBusinessTypeApi from '@/api/wms/businesstype/index' import { TableColumn } from '@/types/table' @@ -18,6 +19,7 @@ const queryParams = { const data = await getRequestsettingApi.getRequestsettingPage(queryParams) const requestsettingData =data?.list[0]||{} + // 获取当前操作人的部门 import { useUserStore } from '@/store/modules/user' const userStore = useUserStore() @@ -26,6 +28,14 @@ const userDept = userStore.userSelfInfo.dept userDept.id = userDept.id.toString() const userDeptArray:any = [userDept] +const businessTypeQueryParams = { + pageSize:10, + pageNo:1, + code:'ProductPutaway' +} +const businessTypeValue = await getBusinessTypeApi.getBusinesstypePage(businessTypeQueryParams) +const businessTypeData =businessTypeValue?.list[0]||{} + /** * @returns {Array} 制品上架申请主表 */ @@ -463,7 +473,16 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive searchField: 'itemCode', // 查询弹窗赋值字段 searchTitle: '库存余额信息', // 查询弹窗标题 searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类 - searchPage: BalanceApi.getBalancePage // 查询弹窗所需分页方法 + searchPage: BalanceApi.getBalancePageByBusinessTypeByItemType, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'businessType', + value: businessTypeData.code, + }, + { + key: 'inOrOut', + value: 'out', + isMainValue: false + }] }, form: { // labelMessage: '信息提示说明!!!', @@ -473,7 +492,16 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive searchField: 'itemCode', // 查询弹窗赋值字段 searchTitle: '库存余额信息', // 查询弹窗标题 searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类 - searchPage: BalanceApi.getBalancePage // 查询弹窗所需分页方法 + searchPage: BalanceApi.getBalancePageByBusinessTypeByItemType, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'businessType', + value: businessTypeData.code, + }, + { + key: 'inOrOut', + value: 'out', + isMainValue: false + }] } } },