diff --git a/src/components/BasicForm/src/BasicFormQmsCode.vue b/src/components/BasicForm/src/BasicFormQmsCode.vue deleted file mode 100644 index 03ef9e308..000000000 --- a/src/components/BasicForm/src/BasicFormQmsCode.vue +++ /dev/null @@ -1,696 +0,0 @@ - - - diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index 9b23fd110..e589f0cdc 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -45,7 +45,7 @@ :columns="2" /> - + { + if(!val || val &&val.length == 0) return false; if (val.indexOf(row.status) > -1) { return false } else { diff --git a/src/components/Detail/src/DetailQmsCode.vue b/src/components/Detail/src/DetailQmsCode.vue deleted file mode 100644 index 819a401e1..000000000 --- a/src/components/Detail/src/DetailQmsCode.vue +++ /dev/null @@ -1,846 +0,0 @@ - - - - - diff --git a/src/views/qms/dynamicRule/index.vue b/src/views/qms/dynamicRule/index.vue index c10632a51..5b92d1745 100644 --- a/src/views/qms/dynamicRule/index.vue +++ b/src/views/qms/dynamicRule/index.vue @@ -66,26 +66,22 @@ :isSearchTableItem="true" /> + - - { /** 详情操作 */ const detailRef = ref() -const openDetail = (row: any, titleName: any, titleValue: any) => { +const openDetail =async (row: any, titleName: any, titleValue: any) => { detailMasterId.value = row.id + await InspectionStageApi.getInspectionStageNoPage({ masterId:row.id }).then((res) => { + detailList.value = res + }) detailRef.value.openDetail(row, titleName, titleValue, 'basicDynamicRule') } @@ -419,6 +418,7 @@ const validateIfRepeat = (type, data) => { detailList.value = detailList.value.filter((item) => item.id !== data.id) mergedArray = [data, ...detailList.value] } + console.log(mergedArray) const stageSet = new Set(mergedArray.map((item) => item.stage)) return stageSet.size === mergedArray.length } @@ -441,7 +441,26 @@ const validateNotRepetition = (data) => { } return true // 未发现重复,返回 true } +const handleDetailSubmitForm = async (formType, data) => { + let mydata = { ...data } + const rs = await detailValidate(formType,data) + if (!rs) return + console.log(data) + if (data.code) { + mydata.dynamicModifyCode = data.code + } + if (formType === 'create') { + await InspectionStageApi.createInspectionStage(data) + message.success(t('common.createSuccess')) + + } else { + await InspectionStageApi.updateInspectionStage(data) + message.success(t('common.updateSuccess')) + } + detailRef.value.submitUpdateList() + +} /** 初始化 **/ onMounted(async () => { tableObject.params = { diff --git a/src/views/qms/inspectionRecord/index.vue b/src/views/qms/inspectionRecord/index.vue index 9ac06b624..88c78d50f 100644 --- a/src/views/qms/inspectionRecord/index.vue +++ b/src/views/qms/inspectionRecord/index.vue @@ -223,7 +223,7 @@ const isShowEditBtn = (row, val) => { if (val.indexOf(row.inspectionType) > -1) { return true } else { - return row.useDecision + return row.isPublished } } const isShowPackageBtn = (row, val) => { diff --git a/src/views/qms/inspectionRecord/inspectionRecordMain.data.ts b/src/views/qms/inspectionRecord/inspectionRecordMain.data.ts index 9c106671b..b40337a96 100644 --- a/src/views/qms/inspectionRecord/inspectionRecordMain.data.ts +++ b/src/views/qms/inspectionRecord/inspectionRecordMain.data.ts @@ -603,7 +603,7 @@ export const InspectionRecordMain = useCrudSchemas( isForm: false, isDetail: false, table: { - width: 300, + width: 340, fixed: 'right' } } diff --git a/src/views/qms/selectedProject/selectedProject.data.ts b/src/views/qms/selectedProject/selectedProject.data.ts index cd273c428..3127a57f3 100644 --- a/src/views/qms/selectedProject/selectedProject.data.ts +++ b/src/views/qms/selectedProject/selectedProject.data.ts @@ -6,7 +6,7 @@ import * as DictTypeApi from '@/api/system/dict/dict.type' // 表单校验 export const SelectedProjectRules = reactive({ - code: [required], + // code: [required], // dictionaryTypeAndCode: [required], estimateCode: [required], defectLevel: [required], diff --git a/src/views/qms/selectedSet/index.vue b/src/views/qms/selectedSet/index.vue index 632e19234..e6d6c27e2 100644 --- a/src/views/qms/selectedSet/index.vue +++ b/src/views/qms/selectedSet/index.vue @@ -68,24 +68,19 @@ /> - @@ -279,6 +274,11 @@ const formsSuccess = async (formType, data) => { const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { selectDictType.value = row.classification + SelectedProjectApi.getSelectedProjectNoPage(row.id).then((res) => { + if (res.length > 0) { + existValue.value = res + } + }) detailRef.value.openDetail(row, titleName, titleValue, 'basicSelectedSet') } @@ -448,9 +448,26 @@ const detailOpenForm = (type, row, masterParmas) => { } } -const detailBasiFormOnChange = (field, val, detailFormRef) => {} +const handleDetailSubmitForm = async (formType, data) => { + let mydata = { ...data } + const rs = await detailValidate(formType,data) + if (!rs) return + console.log(data) + if (data.code) { + mydata.dynamicModifyCode = data.code + } + if (formType === 'create') { + await SelectedProjectApi.createSelectedProject(data) + message.success(t('common.createSuccess')) + + } else { + await SelectedProjectApi.updateSelectedProject(data) + message.success(t('common.updateSuccess')) + } + detailRef.value.submitUpdateList() + -const formSelectChange = (a, b, c, d) => {} +} /** 初始化 **/ onMounted(async () => { diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue index e6ee9865e..76c190d5d 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue @@ -1153,7 +1153,7 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗 const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调 const submitForm = async () => { await blurWarehouse() - await blurTransactionType() + // await blurTransactionType() if(warehouseType.value == 'WarehouseCode' && !formData.value.configuration.WarehouseCode){ // 仓库 message.error('请选择仓库') diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts index 74fedc839..c1d6e643e 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts @@ -353,7 +353,7 @@ export const DeliverRecordMain = useCrudSchemas( table: { width: 180 }, - isTable: true, + isTable: false, form: { component: 'DatePicker', componentProps: { @@ -362,7 +362,7 @@ export const DeliverRecordMain = useCrudSchemas( valueFormat: 'x' } }, - isSearch: true, + isSearch: false, search: { component: 'DatePicker', componentProps: { @@ -379,7 +379,7 @@ export const DeliverRecordMain = useCrudSchemas( table: { width: 150 }, - isTable: true + isTable: false }, // { // label: '代码', @@ -757,15 +757,24 @@ export const DeliverRecordDetail = useCrudSchemas(reactive([ table: { width: 180 }, - isTable: false, + isTable: true, form: { component: 'DatePicker', componentProps: { type: 'datetime', dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x', + valueFormat: 'x' } }, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + }, + }, }, { label: '创建者', @@ -774,7 +783,7 @@ export const DeliverRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, - isTable: false, + isTable: true, }, // { // label: '任务明细ID', diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts index 11eb1d0c1..9b36f3867 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts @@ -98,6 +98,11 @@ export const DeliverRequestMain = useCrudSchemas( key: 'available', value: 'TRUE', isMainValue: false + }, + { + key: 'type', + value: 'DEFAULT', + isMainValue: false } ], verificationParams: [ diff --git a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/unplannedissueJobMain.data.ts b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/unplannedissueJobMain.data.ts index 5482ed0b7..5aeef622f 100644 --- a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/unplannedissueJobMain.data.ts +++ b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/unplannedissueJobMain.data.ts @@ -60,6 +60,9 @@ export const UnplannedissueJobMain = useCrudSchemas(reactive([ label: '领用描述', field: 'usageDescription', sort: 'custom', + isTableForm:false, + isForm: false, + isTable:false, table: { width: 150 }, @@ -869,22 +872,22 @@ export const UnplannedissueJobDetail = useCrudSchemas(reactive([ width: 150 }, }, - { - label: '成本中心代码', - field: 'costcentreCode', - sort: 'custom', - table: { - width: 150 - }, - }, - { - label: '科目代码', - field: 'qadProjectCode', - sort: 'custom', - table: { - width: 150 - }, - }, + // { + // label: '成本中心代码', + // field: 'costcentreCode', + // sort: 'custom', + // table: { + // width: 150 + // }, + // }, + // { + // label: '科目代码', + // field: 'qadProjectCode', + // sort: 'custom', + // table: { + // width: 150 + // }, + // }, { label: '货主代码', field: 'ownerCode', diff --git a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/unplannedissueRecordMain.data.ts b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/unplannedissueRecordMain.data.ts index d1100c8fa..f40ba7322 100644 --- a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/unplannedissueRecordMain.data.ts +++ b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/unplannedissueRecordMain.data.ts @@ -304,14 +304,14 @@ export const UnplannedissueRecordMain = useCrudSchemas(reactive([ width: 150 }, }, - { - label: '从月台代码', - field: 'fromDockCode', - sort: 'custom', - table: { - width: 150 - }, - }, + // { + // label: '从月台代码', + // field: 'fromDockCode', + // sort: 'custom', + // table: { + // width: 150 + // }, + // }, { label: '领用代码', field: 'usageCode', @@ -338,14 +338,14 @@ export const UnplannedissueRecordMain = useCrudSchemas(reactive([ width: 150 }, }, - { - label: '入库事务类型', - field: 'inTransactionType', - sort: 'custom', - table: { - width: 150 - }, - }, + // { + // label: '入库事务类型', + // field: 'inTransactionType', + // sort: 'custom', + // table: { + // width: 150 + // }, + // }, { label: '业务类型', field: 'businessType', diff --git a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts index 143586bf0..456d30ca6 100644 --- a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts @@ -307,6 +307,10 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ label: '领用原因描述', field: 'reasonDescRequisition', sort: 'custom', + isTableForm:false, + isForm: true, + isTable:false, + isDetail:false, table: { width: 150 }, diff --git a/src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts b/src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts index 45a93e713..200841c0a 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts +++ b/src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts @@ -1,5 +1,7 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' +import * as ShiftApi from '@/api/wms/shift' +const shiftList = await ShiftApi.getShiftPage({available:'TRUE',pageSize: 500,pageNo: 1,sort:'',by: 'ASC'}) /** * @returns {Array} 制品收货任务主表 @@ -73,6 +75,15 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive([ width: 150 }, }, + { + label: '班组', + field: 'teamName', + sort: 'custom', + isTable:true, + table: { + width: 150 + }, + }, { label: '班次', field: 'shift', @@ -82,6 +93,26 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive([ width: 150 }, }, + { + label: '班次', + field: 'shiftName', + sort: 'custom', + isTable:true, + table: { + width: 150 + }, + isSearch: true, + search: { + component:'Select', + componentProps:{ + options:shiftList.list, + optionsAlias: { + labelField: 'name', + valueField: 'name' + }, + } + } + }, { label: '收货类型', field: 'type', diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data.ts b/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data.ts index a280d25da..c6791cdac 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data.ts +++ b/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data.ts @@ -1,5 +1,7 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' +import * as ShiftApi from '@/api/wms/shift' +const shiftList = await ShiftApi.getShiftPage({available:'TRUE',pageSize: 500,pageNo: 1,sort:'',by: 'ASC'}) /** * @returns {Array} 制品收货记录主表 @@ -69,6 +71,15 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive([ }, isTable: false }, + { + label: '班组', + field: 'teamName', + sort: 'custom', + table: { + width: 150 + }, + isTable: true + }, { label: '班次', field: 'shift', @@ -78,6 +89,26 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive([ }, isTable: false }, + { + label: '班次', + field: 'shiftName', + sort: 'custom', + table: { + width: 150 + }, + isTable: true, + isSearch: true, + search: { + component:'Select', + componentProps:{ + options:shiftList.list, + optionsAlias: { + labelField: 'name', + valueField: 'name' + }, + } + } + }, { label: '收货类型', field: 'type', diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts index 122cf480e..85e460036 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts +++ b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts @@ -262,31 +262,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive([ }], // 失去焦点校验参数 } } - // form: { - // // labelMessage: '信息提示说明!!!', - // componentProps: { - // enterSearch: true, - // isSearchList: true, - // searchListPlaceholder: '请选择班次', - // searchField: 'code', - // searchTitle: '班次信息', - // searchAllSchemas: Shift.allSchemas, - // searchPage: ShiftApi.getShiftPage, - // searchCondition: [{ - // key: 'available', - // value: 'TRUE', - // isMainValue: false - // }], - // verificationParams: [{ - // key: 'code', - // action: '==', - // value: '', - // isMainValue: false, - // isSearch: true, - // isFormModel: true, - // }], // 失去焦点校验参数 - // } - // } + }, { label: '班次', @@ -296,7 +272,19 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive([ width: 150 }, isForm:false, - sortTableDefault: 1001 + sortTableDefault: 1001, + isSearch: true, + search: { + component:'Select', + componentProps:{ + options:shiftList.list, + optionsAlias: { + labelField: 'name', + valueField: 'name' + }, + } + } + }, { label: '收货类型', diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts index 029ec1ca1..bed0e1d08 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts @@ -1,6 +1,8 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' - +import * as ShiftApi from '@/api/wms/shift' +const shiftList = await ShiftApi.getShiftPage({available:'TRUE',pageSize: 500,pageNo: 1,sort:'',by: 'ASC'}) +console.log('shiftList',shiftList) /** * @returns {Array} 制品收货任务主表 */ @@ -73,6 +75,15 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive([ width: 150 }, }, + { + label: '班组', + field: 'teamName', + sort: 'custom', + isTable:true, + table: { + width: 150 + }, + }, { label: '班次', field: 'shift', @@ -82,6 +93,26 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive([ width: 150 }, }, + { + label: '班次', + field: 'shiftName', + sort: 'custom', + isTable:true, + isSearch:true, + table: { + width: 150 + }, + search: { + component:'Select', + componentProps:{ + options:shiftList.list, + optionsAlias: { + labelField: 'name', + valueField: 'name' + }, + } + } + }, { label: '收货类型', field: 'type', diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts index e697dda38..e3b004cc2 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts @@ -1,5 +1,7 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' +import * as ShiftApi from '@/api/wms/shift' +const shiftList = await ShiftApi.getShiftPage({available:'TRUE',pageSize: 500,pageNo: 1,sort:'',by: 'ASC'}) /** * @returns {Array} 制品收货记录主表 @@ -88,6 +90,16 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive([ }, isTable: false, + }, + { + label: '班组', + field: 'teamName', + sort: 'custom', + table: { + width: 150 + }, + isTable: true, + }, { label: '班次', @@ -98,6 +110,26 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive([ }, isTable: false, }, + { + label: '班次', + field: 'shiftName', + sort: 'custom', + isSearch:true, + isTable:true, + table: { + width: 150 + }, + search: { + component:'Select', + componentProps:{ + options:shiftList.list, + optionsAlias: { + labelField: 'name', + valueField: 'name' + }, + } + } + }, { label: '收货类型', field: 'type', diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts index 643d79520..2c1becb57 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts @@ -271,31 +271,6 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive([ }], // 失去焦点校验参数 } } - // form: { - // // labelMessage: '信息提示说明!!!', - // componentProps: { - // enterSearch: true, - // isSearchList: true, - // searchListPlaceholder: '请选择班次', - // searchField: 'code', - // searchTitle: '班次信息', - // searchAllSchemas: Shift.allSchemas, - // searchPage: ShiftApi.getShiftPage, - // searchCondition: [{ - // key: 'available', - // value: 'TRUE', - // isMainValue: false - // }], - // verificationParams: [{ - // key: 'code', - // action: '==', - // value: '', - // isMainValue: false, - // isSearch: true, - // isFormModel: true, - // }], // 失去焦点校验参数 - // } - // } }, { label: '班次', @@ -304,8 +279,19 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch:true, isForm:false, - sortTableDefault: 1001 + sortTableDefault: 1001, + search: { + component:'Select', + componentProps:{ + options:shiftList.list, + optionsAlias: { + labelField: 'name', + valueField: 'name' + }, + } + } }, { label: '收货类型',