diff --git a/README.md b/README.md index 1bb4abe15..e5f4b9509 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## dev发布2024-05-23-001 +## dev发布2024-05-23-002 **xxxx.data.ts 文件配置说明** **form表单查询弹窗配置** form: { diff --git a/src/components/Table/src/Table.vue b/src/components/Table/src/Table.vue index 10f19206b..811321e7d 100644 --- a/src/components/Table/src/Table.vue +++ b/src/components/Table/src/Table.vue @@ -200,7 +200,7 @@ export default defineComponent({ const { selection, reserveSelection, align, headerAlign,border } = unref(getProps) // 渲染多选 return selection ? ( - { tempBom: detailData.value.tempBom, workMode: detailData.value.workMode, planDate: detailData.value.planDate, - startTime: detailData.value.planDate, + startTime: detailData.value.startTime, endTime: detailData.value.endTime, taskMode: detailData.value.taskMode, batchCode:detailData.value.batchCode, diff --git a/src/views/qms/inspectionMethod/index.vue b/src/views/qms/inspectionMethod/index.vue index 08024617f..72ee843f2 100644 --- a/src/views/qms/inspectionMethod/index.vue +++ b/src/views/qms/inspectionMethod/index.vue @@ -105,9 +105,9 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultAddBtn({hasPermi:'qms:inspectionMethod:create'}), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'qms:inspectionMethod:import'}), // 导入 - defaultButtons.defaultExportBtn({hasPermi:'qms:inspectionMethod:export'}), // 导出 + defaultButtons.defaultAddBtn({hasPermi:'qms:inspection-method:create'}), // 新增 + defaultButtons.defaultImportBtn({hasPermi:'qms:inspection-method:import'}), // 导入 + defaultButtons.defaultExportBtn({hasPermi:'qms:inspection-method:export'}), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -147,9 +147,9 @@ const isShowMainButton = (row,val) => { const butttondata = (row) => { return [ - defaultButtons.mainListEditBtn({hasPermi: 'qms:inspectionMethod:update'}), - defaultButtons.mainListEnableBtn({hide:isShowMainButton(row,['FALSE']),hasPermi:'qms:inspectionMethod:enable'}), - defaultButtons.mainListDisableBtn({hide:isShowMainButton(row,['TRUE']),hasPermi:'qms:inspectionMethod:disable'}), + defaultButtons.mainListEditBtn({hasPermi: 'qms:inspection-method:update'}), + defaultButtons.mainListEnableBtn({hide:isShowMainButton(row,['FALSE']),hasPermi:'qms:inspection-method:enable'}), + defaultButtons.mainListDisableBtn({hide:isShowMainButton(row,['TRUE']),hasPermi:'qms:inspection-method:disable'}), ] } diff --git a/src/views/qms/inspectionRecord/detail.vue b/src/views/qms/inspectionRecord/detail.vue index 5a8f664d4..857ac62bd 100644 --- a/src/views/qms/inspectionRecord/detail.vue +++ b/src/views/qms/inspectionRecord/detail.vue @@ -35,7 +35,7 @@
检验工序
diff --git a/src/views/qms/sampleCode/index.vue b/src/views/qms/sampleCode/index.vue index 8e9696b80..119f8551a 100644 --- a/src/views/qms/sampleCode/index.vue +++ b/src/views/qms/sampleCode/index.vue @@ -100,9 +100,9 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultAddBtn({hasPermi:'qms:sampleCode:create'}), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'qms:sampleCode:import'}), // 导入 - defaultButtons.defaultExportBtn({hasPermi:'qms:sampleCode:export'}), // 导出 + defaultButtons.defaultAddBtn({hasPermi:'qms:sample-code:create'}), // 新增 + defaultButtons.defaultImportBtn({hasPermi:'qms:sample-code:import'}), // 导入 + defaultButtons.defaultExportBtn({hasPermi:'qms:sample-code:export'}), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -148,9 +148,9 @@ const isShowMainButton = (row,val) => { const butttondata = (row) => { return [ - defaultButtons.mainListEditBtn({hasPermi: 'qms:sampleCode:update'}), - defaultButtons.mainListEnableBtn({hide:isShowMainButton(row,['FALSE']),hasPermi:'qms:sampleCode:enable'}), - defaultButtons.mainListDisableBtn({hide:isShowMainButton(row,['TRUE']),hasPermi:'qms:sampleCode:disable'}), + defaultButtons.mainListEditBtn({hasPermi: 'qms:sample-code:update'}), + defaultButtons.mainListEnableBtn({hide:isShowMainButton(row,['FALSE']),hasPermi:'qms:sample-code:enable'}), + defaultButtons.mainListDisableBtn({hide:isShowMainButton(row,['TRUE']),hasPermi:'qms:sample-code:disable'}), ] } diff --git a/src/views/qms/sampleCode/sampleCode.data.ts b/src/views/qms/sampleCode/sampleCode.data.ts index 5466941fb..4d1228a15 100644 --- a/src/views/qms/sampleCode/sampleCode.data.ts +++ b/src/views/qms/sampleCode/sampleCode.data.ts @@ -19,7 +19,7 @@ export const SampleCodeRules = reactive({ const samplingSchemeList = await getSamplingScheme() export const SampleCode = useCrudSchemas(reactive([ { - label: '采样方案编码', + label: '采样方案', field: 'code', sort: 'custom', isSearch: true, diff --git a/src/views/qms/samplingProcess/index.vue b/src/views/qms/samplingProcess/index.vue index 5d1dcbeb6..53b7a0b2e 100644 --- a/src/views/qms/samplingProcess/index.vue +++ b/src/views/qms/samplingProcess/index.vue @@ -101,9 +101,9 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultAddBtn({hasPermi:'qms:samplingProcess:create'}), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'qms:samplingProcess:import'}), // 导入 - defaultButtons.defaultExportBtn({hasPermi:'qms:samplingProcess:export'}), // 导出 + defaultButtons.defaultAddBtn({hasPermi:'qms:sampling-process:create'}), // 新增 + defaultButtons.defaultImportBtn({hasPermi:'qms:sampling-process:import'}), // 导入 + defaultButtons.defaultExportBtn({hasPermi:'qms:sampling-process:export'}), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -143,9 +143,9 @@ const isShowMainButton = (row,val) => { const butttondata = (row) => { return [ - defaultButtons.mainListEditBtn({hasPermi: 'qms:samplingProcess:update'}), - defaultButtons.mainListEnableBtn({hide:isShowMainButton(row,['FALSE']),hasPermi:'qms:samplingProcess:enable'}), - defaultButtons.mainListDisableBtn({hide:isShowMainButton(row,['TRUE']),hasPermi:'qms:samplingProcess:disable'}), + defaultButtons.mainListEditBtn({hasPermi: 'qms:sampling-process:update'}), + defaultButtons.mainListEnableBtn({hide:isShowMainButton(row,['FALSE']),hasPermi:'qms:sampling-process:enable'}), + defaultButtons.mainListDisableBtn({hide:isShowMainButton(row,['TRUE']),hasPermi:'qms:sampling-process:disable'}), ] } diff --git a/src/views/qms/samplingScheme/index.vue b/src/views/qms/samplingScheme/index.vue index 741e48b1a..21cc5649a 100644 --- a/src/views/qms/samplingScheme/index.vue +++ b/src/views/qms/samplingScheme/index.vue @@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultAddBtn({hasPermi:'qms:samplingScheme:create'}), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'qms:samplingScheme:import'}), // 导入 - defaultButtons.defaultExportBtn({hasPermi:'qms:samplingScheme:export'}), // 导出 + defaultButtons.defaultAddBtn({hasPermi:'qms:sampling-scheme:create'}), // 新增 + defaultButtons.defaultImportBtn({hasPermi:'qms:sampling-scheme:import'}), // 导入 + defaultButtons.defaultExportBtn({hasPermi:'qms:sampling-scheme:export'}), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -141,9 +141,9 @@ const isShowMainButton = (row,val) => { const butttondata = (row) => { return [ - defaultButtons.mainListEditBtn({hasPermi: 'qms:samplingScheme:update'}), - defaultButtons.mainListEnableBtn({hide:isShowMainButton(row,['FALSE']),hasPermi:'qms:samplingScheme:enable'}), - defaultButtons.mainListDisableBtn({hide:isShowMainButton(row,['TRUE']),hasPermi:'qms:samplingScheme:disable'}), + defaultButtons.mainListEditBtn({hasPermi: 'qms:sampling-scheme:update'}), + defaultButtons.mainListEnableBtn({hide:isShowMainButton(row,['FALSE']),hasPermi:'qms:sampling-scheme:enable'}), + defaultButtons.mainListDisableBtn({hide:isShowMainButton(row,['TRUE']),hasPermi:'qms:sampling-scheme:disable'}), ] } diff --git a/src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts b/src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts index cbd6b2916..3e4336b4b 100644 --- a/src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts @@ -251,7 +251,7 @@ export const DockRules = reactive({ { validator:validateYS, message: '请输入正确的代码', trigger: 'blur'} ], name: [ - { max: 50, message: '不得超过50个字符', trigger: 'blur' } + { required: true,max: 50, message: '不得超过50个字符', trigger: 'blur' } ], city: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' } diff --git a/src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts b/src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts index 3ff8f8bd0..9892ad75b 100644 --- a/src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts @@ -243,7 +243,7 @@ export const ProductionlineRules = reactive({ { validator:validateYS, message: '请输入正确的代码', trigger: 'blur'} ], name: [ - { max: 50, message: '不得超过50个字符', trigger: 'blur' } + { required: true,max: 50, message: '不得超过50个字符', trigger: 'blur' } ], workshopCode: [ { required: true, message: '请输入车间代码', trigger: 'change' } diff --git a/src/views/wms/basicDataManage/factoryModeling/workshop/workshop.data.ts b/src/views/wms/basicDataManage/factoryModeling/workshop/workshop.data.ts index 9290a46a0..ac2dccee5 100644 --- a/src/views/wms/basicDataManage/factoryModeling/workshop/workshop.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/workshop/workshop.data.ts @@ -139,6 +139,7 @@ export const WorkshopRules = reactive({ { validator:validateYS, message: '请输入正确的代码', trigger: 'blur'} ], name: [ + { required: true, message: '请输入代码', trigger: 'blur' }, { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], remark: [ diff --git a/src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts b/src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts index 4e3b6a855..7dae0132b 100644 --- a/src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts @@ -291,6 +291,7 @@ export const WorkstationRules = reactive({ { validator:validateYS, message: '请输入正确的代码', trigger: 'blur'} ], name: [ + { required: true, message: '请输入名称', trigger: 'change' }, { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], remark: [ diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/relegateRecordMain.data.ts b/src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/relegateRecordMain.data.ts index 8dd1b54a5..bce38edda 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/relegateRecordMain.data.ts +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/relegateRecordMain.data.ts @@ -257,6 +257,14 @@ export const RelegateRecordDetail = useCrudSchemas(reactive([ width: 150 }, }, + { + label: '包装规格', + field: 'packUnit', + sort: 'custom', + table: { + width: 150 + }, + }, { label: '到包装号', field: 'toPackingNumber', diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue index 5a6e71b0a..a78524fba 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue @@ -141,12 +141,12 @@ RelegateRequestDetail.allSchemas.tableFormColumns.map(item => { key: 'available', value: 'TRUE', isMainValue: false - },{ - message: '请选择从仓库代码!', - key: 'warehouseCode', - value: 'fromWarehouseCode', - isMainValue: true - } + },{ + message: '请选择从仓库代码!', + key: 'warehouseCode', + value: 'fromWarehouseCode', + isMainValue: true + } ] item.form.componentProps.searchCondition = [ { @@ -255,12 +255,12 @@ const butttondata = (row, $index) => { return [] } return [ - defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['2','3','4']),hasPermi:'wms:relegate-request-main:close'}), // 关闭 - defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:'wms:relegate-request-main:reAdd'}), //重新添加 - defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:relegate-request-main:submit'}), // 提交审批 - defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:relegate-request-main:refused'}), // 驳回 - defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:relegate-request-main:agree'}), // 审批通过 - defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:relegate-request-main:handle'}), // 处理 + defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['2','3','4']),hasPermi:'wms:relegate-request-main:close'}), // 关闭 + defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:'wms:relegate-request-main:reAdd'}), //重新添加 + defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:relegate-request-main:submit'}), // 提交审批 + defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:relegate-request-main:refused'}), // 驳回 + defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:relegate-request-main:agree'}), // 审批通过 + defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:relegate-request-main:handle'}), // 处理 defaultButtons.mainListEditBtn({ hide: isShowMainButton(row, ['1']), hasPermi: 'wms:relegate-request-main:update' }), // 编辑 // defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:relegate-request-main:delete' }), // 删除 ] 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 8c6bda653..edbb02d2a 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts @@ -13,6 +13,10 @@ import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' import * as LocationApi from '@/api/wms/location' import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' + +import * as ItempackageApi from '@/api/wms/itempackage' +import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data' + import * as confgiApi from '@/api/infra/config' // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 const queryParams = { @@ -293,6 +297,7 @@ export const RelegateRequestDetailRules = reactive({ available: [required], departmentCode: [required], concurrencyStamp: [required], + packUnit: [required], }) export const RelegateRequestDetail = useCrudSchemas(reactive([ @@ -531,6 +536,49 @@ export const RelegateRequestDetail = useCrudSchemas(reactive([ width: 120 }, }, + { + label: '包装规格', + field: 'packUnit', + sort: 'custom', + tableForm:{ + isInpuFocusShow: true, // 开启查询弹窗 + searchListPlaceholder: '请选择包装规格', + searchField: 'packUnit', + searchTitle: '包装规格', + searchAllSchemas: Itempackaging.allSchemas, + searchPage: ItempackageApi.getItempackagingPage, + searchCondition:[ + { + key: 'itemCode', + value: 'downItemCode', + message: "请选择降级物料代码", + isMainValue: true + } + ] + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择包装规格', + searchField: 'packUnit', + searchTitle: '包装规格', + searchAllSchemas: Itempackaging.allSchemas, + searchPage: ItempackageApi.getItempackagingPage, + searchCondition:[ + { + key: 'itemCode', + value: 'downItemCode', + message: "请选择降级物料代码", + isMainValue: true + } + ] + } + }, + table: { + width: 120 + }, + }, { label: '到库区类型', field: 'toAreaTypes', diff --git a/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts b/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts index 6c1e22092..52045b242 100644 --- a/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts +++ b/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts @@ -36,6 +36,8 @@ export const CallmaterialsRules = reactive({ warehouseCode: [required], workshopCode: [required], workStationCode: [required], + uom: [required], + callmaterialQty: [required] }) export const Callmaterials = useCrudSchemas(reactive([ diff --git a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue b/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue index ba361799f..d6f628ede 100644 --- a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue +++ b/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue @@ -1,7 +1,7 @@