diff --git a/src/api/wms/expectin/index.ts b/src/api/wms/expectin/index.ts index 895ea616b..ab98fbc19 100644 --- a/src/api/wms/expectin/index.ts +++ b/src/api/wms/expectin/index.ts @@ -44,6 +44,11 @@ export const deleteExpectin = async (id: number) => { return await request.delete({ url: `/wms/expectin/delete?id=` + id }) } +// 批量删除预计出库存 +export const deleteExpectinIds = async (ids: string) => { + return await request.delete({ url: `/wms/expectin/deleteIds?ids=` + ids }) +} + // 导出预计入库存 Excel export const exportExpectin = async (params) => { if (params.isSearch) { diff --git a/src/api/wms/expectout/index.ts b/src/api/wms/expectout/index.ts index 87868ace8..64329d4d5 100644 --- a/src/api/wms/expectout/index.ts +++ b/src/api/wms/expectout/index.ts @@ -45,6 +45,11 @@ export const deleteExpectout = async (id: number) => { return await request.delete({ url: `/wms/expectout/delete?id=` + id }) } +// 批量删除预计出库存 +export const deleteExpectoutIds = async (ids: string) => { + return await request.delete({ url: `/wms/expectout/deleteIds?ids=` + ids }) +} + // 导出预计出库存 Excel export const exportExpectout = async (params) => { if (params.isSearch) { diff --git a/src/api/wms/inventorychangeRecordMain/index.ts b/src/api/wms/inventorychangeRecordMain/index.ts index afdc21151..dea0dc241 100644 --- a/src/api/wms/inventorychangeRecordMain/index.ts +++ b/src/api/wms/inventorychangeRecordMain/index.ts @@ -56,7 +56,7 @@ export const exportInventorychangeRecordMain = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/wms/inventorychange-record-main/export-excel-senior', data }) + return await request.downloadPost({ url: '/wms/inventorychange-record-main/export-excel-senior', data }) } else { return await request.download({ url: `/wms/inventorychange-record-main/export-excel`, params }) } @@ -65,4 +65,4 @@ export const exportInventorychangeRecordMain = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/inventorychange-record-main/get-import-template' }) -} \ No newline at end of file +} diff --git a/src/api/wms/inventorychangeRequestMain/index.ts b/src/api/wms/inventorychangeRequestMain/index.ts index 0bfea72fc..4d531a3c5 100644 --- a/src/api/wms/inventorychangeRequestMain/index.ts +++ b/src/api/wms/inventorychangeRequestMain/index.ts @@ -55,7 +55,7 @@ export const exportInventorychangeRequestMain = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/wms/inventorychange-request-main/export-excel-senior', data }) + return await request.downloadPost({ url: '/wms/inventorychange-request-main/export-excel-senior', data }) } else { return await request.download({ url: `/wms/inventorychange-request-main/export-excel`, params }) } @@ -94,4 +94,4 @@ export const agree = (id) => { // 处理 export const handle = (id) => { return request.put({ url: '/wms/inventorychange-request-main/handle?id=' + id }) -} \ No newline at end of file +} diff --git a/src/components/Table/src/Table.vue b/src/components/Table/src/Table.vue index 64bd16734..7fb9ee6cf 100644 --- a/src/components/Table/src/Table.vue +++ b/src/components/Table/src/Table.vue @@ -17,7 +17,7 @@ export default defineComponent({ // eslint-disable-next-line vue/no-reserved-component-names name: 'Table', props: { - pageSize: propTypes.number.def(10), + pageSize: propTypes.number.def(20), currentPage: propTypes.number.def(1), // 是否多选 selection: propTypes.bool.def(false), diff --git a/src/hooks/web/useTable.ts b/src/hooks/web/useTable.ts index 53cd83cce..56f8cfc90 100644 --- a/src/hooks/web/useTable.ts +++ b/src/hooks/web/useTable.ts @@ -39,7 +39,7 @@ interface TableObject { export const useTable = (config?: UseTableConfig) => { const tableObject = reactive>({ // 页数 - pageSize: 10, + pageSize: 20, // 当前页 currentPage: 1, // 总条数 diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index d74160dc8..9faec3f8c 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -980,6 +980,19 @@ export function mainLisSelectiontPointBtn(option:any) { hasPermi: '' }) } +// 主列表-批量删除 +export function mainLisSelectiontDeleteBtn(option:any) { + return __defaultBtnOption(option,{ + label: t(`ts.批量删除`).replace('ts.', ''), + name: 'selection_delete', + hide: false, + type: 'primary', + icon: 'ep:download', + color: '', + float:'left', + hasPermi: '' + }) +} // 主列表-生成采购收货申请 export function mainListGenerateApplicationBtn(option:any) { return __defaultBtnOption(option,{ diff --git a/src/views/eam/equipmentInspectionMain/finishForm2.vue b/src/views/eam/equipmentInspectionMain/finishForm2.vue index 381210828..f06d450c5 100644 --- a/src/views/eam/equipmentInspectionMain/finishForm2.vue +++ b/src/views/eam/equipmentInspectionMain/finishForm2.vue @@ -2,11 +2,11 @@ - - - - - + + + + + @@ -72,16 +72,12 @@ const InputRef = ref>() const formData = ref({ id:'', number:'', - maintenancer: '', maintenancePhone: '', startTime:'', endTime:'', status:'5', }) const formRules = reactive({ - maintenancer: [ - { required: true, message: '巡检人ID不能为空', trigger: 'blur' }, - ], maintenancePhone: [ { required: true, message: '巡检人电话不能为空', trigger: 'blur' }, ], diff --git a/src/views/eam/equipmentMaintenanceMain/equipmentMaintenanceMain.data.ts b/src/views/eam/equipmentMaintenanceMain/equipmentMaintenanceMain.data.ts index 979140258..97d22bbfe 100644 --- a/src/views/eam/equipmentMaintenanceMain/equipmentMaintenanceMain.data.ts +++ b/src/views/eam/equipmentMaintenanceMain/equipmentMaintenanceMain.data.ts @@ -9,11 +9,15 @@ import * as ItemApi from "@/api/eam/relationMaintenancePlanItem"; import {validateroundNumber} from "@/utils/validator"; import {BasicFaultType} from "@/views/eam/basicFaultType/basicFaultType.data"; import * as BasicFaultTypeApi from "@/api/eam/basicFaultType"; +import {BasicMaintenanceOption} from "@/views/eam/basicMaintenanceOption/basicMaintenanceOption.data"; +import * as BasicMaintenanceOptionApi from "@/api/eam/basicMaintenanceOption"; + // 表单校验 export const EquipmentMaintenanceMainRules = reactive({ number: [required], sources: [required], + optionCode:[required], equipmentCode: [required], type: [required], planStartTime: [required], @@ -112,6 +116,28 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive([ } }, }, + { + label: '保养方案', + field: 'optionCode', + sort: 'custom', + isSearch: true, + isTable: false, + form: { + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择保养方案', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '保养方案信息', // 查询弹窗标题 + searchAllSchemas: BasicMaintenanceOption.allSchemas, // 查询弹窗所需类 + searchPage: BasicMaintenanceOptionApi.getBasicMaintenanceOptionPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] + } + }, + }, { label: '保养计划工单号', field: 'planNumber', diff --git a/src/views/eam/equipmentMaintenanceMain/finishForm2.vue b/src/views/eam/equipmentMaintenanceMain/finishForm2.vue index ce49c2a4d..1e6c7b358 100644 --- a/src/views/eam/equipmentMaintenanceMain/finishForm2.vue +++ b/src/views/eam/equipmentMaintenanceMain/finishForm2.vue @@ -2,11 +2,11 @@ - - - - - + + + + + @@ -71,16 +71,12 @@ const InputRef = ref>() const formData = ref({ id:'', number:'', - maintenancer: '', maintenancePhone: '', startTime:'', endTime:'', status:'5', }) const formRules = reactive({ - maintenancer: [ - { required: true, message: '保养人ID不能为空', trigger: 'blur' }, - ], maintenancePhone: [ { required: true, message: '保养人电话不能为空', trigger: 'blur' }, ], diff --git a/src/views/eam/equipmentRepairJobMain/finishForm2.vue b/src/views/eam/equipmentRepairJobMain/finishForm2.vue index 2ce939352..bbb3582d4 100644 --- a/src/views/eam/equipmentRepairJobMain/finishForm2.vue +++ b/src/views/eam/equipmentRepairJobMain/finishForm2.vue @@ -40,11 +40,11 @@ - - - - - + + + + + @@ -102,7 +102,6 @@ const formData = ref({ level: '', startTime:'', endTime:'', - maintenancer:'', maintenancePhone:'', completeResult:'', status:'5' @@ -120,9 +119,6 @@ const formRules = reactive({ endTime: [ { required: true, message: '结束时间不能为空', trigger: 'blur' }, ], - maintenancer: [ - { required: true, message: '维修人ID不能为空', trigger: 'blur' }, - ], maintenancePhone: [ { required: true, message: '维修人电话不能为空', trigger: 'blur' }, ], diff --git a/src/views/eam/equipmentSpotCheckMain/finishForm2.vue b/src/views/eam/equipmentSpotCheckMain/finishForm2.vue index 261d2882c..242e63158 100644 --- a/src/views/eam/equipmentSpotCheckMain/finishForm2.vue +++ b/src/views/eam/equipmentSpotCheckMain/finishForm2.vue @@ -2,11 +2,11 @@ - - - - - + + + + + @@ -73,16 +73,12 @@ const InputRef = ref>() const formData = ref({ id:'', number:'', - maintenancer: '', maintenancePhone: '', startTime:'', endTime:'', status:'5', }) const formRules = reactive({ - maintenancer: [ - { required: true, message: '巡检人ID不能为空', trigger: 'blur' }, - ], maintenancePhone: [ { required: true, message: '巡检人电话不能为空', trigger: 'blur' }, ], diff --git a/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/customerreceiptRecordMain.data.ts b/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/customerreceiptRecordMain.data.ts index 458147c5a..2785f8c38 100644 --- a/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/customerreceiptRecordMain.data.ts +++ b/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/customerreceiptRecordMain.data.ts @@ -308,7 +308,7 @@ export const CustomerreceiptRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, - isTable: false, + isTable: true, form: { component: 'DatePicker', componentProps: { @@ -325,7 +325,7 @@ export const CustomerreceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, - isTable: false + isTable: true }, // { // label: '代码', @@ -543,7 +543,7 @@ export const CustomerreceiptRecordDetail = useCrudSchemas(reactive width: 150 }, }, - + { label: '从批次', field: 'fromBatch', @@ -563,7 +563,7 @@ export const CustomerreceiptRecordDetail = useCrudSchemas(reactive isTable: false, }, - + { label: '从包装号', field: 'fromPackingNumber', @@ -603,8 +603,8 @@ export const CustomerreceiptRecordDetail = useCrudSchemas(reactive }, isTable: false, }, - - + + { label: '库存状态', field: 'inventoryStatus', diff --git a/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/customerreceiptRequestMain.data.ts b/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/customerreceiptRequestMain.data.ts index 8508f6f4e..19d5b35c8 100644 --- a/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/customerreceiptRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/customerreceiptRequestMain.data.ts @@ -365,7 +365,7 @@ export const CustomerreceiptRequestMain = useCrudSchemas(reactive( valueFormat: 'x', } }, - isTable: false, + isTable: true, isForm: false }, { @@ -383,7 +383,7 @@ export const CustomerreceiptRequestMain = useCrudSchemas(reactive( valueFormat: 'x', } }, - isTable: false, + isTable: true, isForm: false }, { @@ -775,4 +775,4 @@ export const CustomerreceiptRequestDetailRules = reactive({ itemCode: [ { required: true, message: '请选择物料代码', trigger: 'change' } ], -}) \ No newline at end of file +}) diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/customerreturnJobMain.data.ts b/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/customerreturnJobMain.data.ts index e696397f7..1079f18f3 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/customerreturnJobMain.data.ts +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/customerreturnJobMain.data.ts @@ -563,7 +563,7 @@ export const CustomerreturnJobMain = useCrudSchemas(reactive([ table: { width: 180 }, - isTable: false, + isTable: true, form: { component: 'DatePicker', componentProps: { @@ -580,7 +580,7 @@ export const CustomerreturnJobMain = useCrudSchemas(reactive([ table: { width: 150 }, - isTable: false, + isTable: true, }, { label: '最后更新时间', diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/customerreturnRecordMain.data.ts b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/customerreturnRecordMain.data.ts index b4cf0d581..76f01ff74 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/customerreturnRecordMain.data.ts +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/customerreturnRecordMain.data.ts @@ -328,7 +328,7 @@ export const CustomerreturnRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, - isTable: false, + isTable: true, form: { component: 'DatePicker', componentProps: { @@ -345,7 +345,7 @@ export const CustomerreturnRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, - isTable: false, + isTable: true, }, // { // label: '代码', @@ -588,7 +588,7 @@ export const CustomerreturnRecordDetail = useCrudSchemas(reactive( }, isTable: false, }, - + { label: '从包装号', field: 'fromPackingNumber', @@ -608,7 +608,7 @@ export const CustomerreturnRecordDetail = useCrudSchemas(reactive( }, isTable: false, }, - + { label: '从器具号', field: 'fromContainerNumber', @@ -627,7 +627,7 @@ export const CustomerreturnRecordDetail = useCrudSchemas(reactive( }, isTable: false, }, - + { label: '从库位代码', field: 'fromLocationCode', diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts index 4931bfa92..f9e3ac998 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts @@ -148,7 +148,7 @@ export const CustomerreturnRequestMain = useCrudSchemas(reactive([ } } }, - + { label: '发货计划单号', field: 'deliverPlanNumber', @@ -505,7 +505,7 @@ export const CustomerreturnRequestMain = useCrudSchemas(reactive([ table: { width: 180 }, - isTable:false, + isTable:true, form: { component: 'DatePicker', componentProps: { @@ -524,7 +524,7 @@ export const CustomerreturnRequestMain = useCrudSchemas(reactive([ table: { width: 150 }, - isTable:false, + isTable:true, isForm: false }, { @@ -779,7 +779,7 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive searchPage: CustomerreturnRequestApi.pageItemCodeToBalance, searchCondition: [{ key:'customerCode', // 查询列表中字段 - value:'customerCode', // 指主表某字段 + value:'customerCode', // 指主表某字段 message: '请选择客户代码!', // 当前置条件为空时 弹出信息提示 isMainValue: true // 表示查询条件是主表的字段的值 } @@ -796,7 +796,7 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive searchPage: CustomerreturnRequestApi.pageItemCodeToBalance, searchCondition: [{ key:'customerCode', // 查询列表中字段 - value:'customerCode', // 指主表某字段 + value:'customerCode', // 指主表某字段 message: '请选择客户代码!', // 当前置条件为空时 弹出信息提示 isMainValue: true // 表示查询条件是主表的字段的值 } @@ -1363,4 +1363,4 @@ export const CustomerReturnRequestDetailLabel = useCrudSchemas(reactive( valueFormat: 'x', } }, + isTable: false, }, { label: '创建者', @@ -550,11 +551,13 @@ export const CustomersettleRecordDetail = useCrudSchemas(reactive( table: { width: 150 }, + isTable: false, }, { label: '最后更新时间', field: 'updateTime', formatter: dateFormatter, + isTable: false, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' }, @@ -570,11 +573,13 @@ export const CustomersettleRecordDetail = useCrudSchemas(reactive( valueFormat: 'x', } }, + isTable: false }, { label: '最后更新者', field: 'updater', sort: 'custom', + isTable: false, table: { width: 150 }, @@ -616,4 +621,4 @@ export const CustomersettleRecordDetailRules = reactive({ creator: [ { required: true, message: '请输入创建者', trigger: 'blur' } ], -}) \ No newline at end of file +}) diff --git a/src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/customersettleRequestMain.data.ts b/src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/customersettleRequestMain.data.ts index e5344f0b5..cb5318166 100644 --- a/src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/customersettleRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/customersettleRequestMain.data.ts @@ -301,6 +301,7 @@ export const CustomersettleRequestMain = useCrudSchemas(reactive([ } }, isForm: false, + isTable: false, }, { label: '创建者', @@ -310,6 +311,7 @@ export const CustomersettleRequestMain = useCrudSchemas(reactive([ width: 150 }, isForm: false, + isTable: false, }, { label: '申请时间', @@ -354,6 +356,7 @@ export const CustomersettleRequestMain = useCrudSchemas(reactive([ } }, isForm: false, + isTable: false, }, { label: '最后更新者', @@ -363,6 +366,7 @@ export const CustomersettleRequestMain = useCrudSchemas(reactive([ width: 150 }, isForm: false, + isTable: false, }, { label: '操作', diff --git a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts index 4250a70f8..6cf16428b 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts @@ -80,7 +80,7 @@ export const DeliverJobMain = useCrudSchemas(reactive([ }, isTable: false, }, - + { label: '客户月台代码', field: 'customerDockCode', @@ -90,7 +90,7 @@ export const DeliverJobMain = useCrudSchemas(reactive([ }, isTable: false, }, - + { label: '承运商', field: 'carrierCode', @@ -569,7 +569,7 @@ export const DeliverJobMain = useCrudSchemas(reactive([ table: { width: 180 }, - isTable: false, + isTable: true, form: { component: 'DatePicker', componentProps: { @@ -586,7 +586,7 @@ export const DeliverJobMain = useCrudSchemas(reactive([ table: { width: 150 }, - isTable: false, + isTable: true, }, { label: '最后更新时间', diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts index 3578520b6..9cef4876b 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts @@ -334,7 +334,7 @@ export const DeliverRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, - isTable: false, + isTable: true, form: { component: 'DatePicker', componentProps: { @@ -351,7 +351,7 @@ export const DeliverRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, - isTable: false, + isTable: true, }, // { // label: '代码', @@ -805,4 +805,4 @@ export const DeliverRecordDetailRules = reactive({ creator: [ { required: true, message: '请输入创建者', trigger: 'blur' } ], -}) \ No newline at end of file +}) diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts index b554d126b..2e481c612 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts @@ -112,7 +112,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive([ searchField: 'code', // 查询弹窗赋值字段 searchTitle: '客户月台信息', // 查询弹窗标题 searchAllSchemas: Customerdock.allSchemas, // 查询弹窗所需类 - searchPage: CustomerdockApi.getCustomerdockPage, // 查询弹窗所需分页方法 + searchPage: CustomerdockApi.getCustomerdockPage, // 查询弹窗所需分页方法 searchCondition: [{ key: 'available', value: 'TRUE', @@ -524,7 +524,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive([ table: { width: 180 }, - isTable: false, + isTable: true, form: { component: 'DatePicker', componentProps: { @@ -543,7 +543,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive([ table: { width: 150 }, - isTable: false, + isTable: true, isForm: false, }, { @@ -865,7 +865,7 @@ export const DeliverRequestDetail = useCrudSchemas(reactive([ isForm: false, isTableForm: false }, - + { label: '批次', field: 'batch', @@ -1054,4 +1054,4 @@ export const DeliverRequestDetailRules = reactive({ toLocationCode: [ { required: true, message: '请选择到库位代码', trigger: 'change' } ], -}) \ No newline at end of file +}) diff --git a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts index 07c98a547..5bd2fd65c 100644 --- a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts @@ -214,7 +214,7 @@ export const DeliverPlanMain = useCrudSchemas(reactive([ }, isTable: false, }, - + { label: '创建时间', field: 'createTime', @@ -226,7 +226,7 @@ export const DeliverPlanMain = useCrudSchemas(reactive([ table: { width: 180 }, - isTable: false, + isTable: true, form: { component: 'DatePicker', componentProps: { @@ -244,7 +244,7 @@ export const DeliverPlanMain = useCrudSchemas(reactive([ table: { width: 150 }, - isTable: false, + isTable: true, isForm: false, }, { @@ -641,7 +641,7 @@ export const DeliverPlanDetail = useCrudSchemas(reactive([ }, tableForm: { disabled: true, - type: 'Select' + type: 'Select' }, form: { componentProps: { @@ -730,8 +730,8 @@ export const DeliverPlanDetail = useCrudSchemas(reactive([ } } }, - - + + { label: '备注', field: 'remark', @@ -867,8 +867,8 @@ export const DeliverPlanDetailRules = reactive({ planQty: [ { required: true, message: '请输入计划数量', trigger: 'blur' } ], - + remark: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], -}) \ No newline at end of file +}) diff --git a/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts b/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts index 1b8f4b921..523ceba6c 100644 --- a/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts @@ -214,6 +214,7 @@ export const SaleMain = useCrudSchemas(reactive([ width: 150 }, isForm: false, + isTable: false }, { label: '最后更新时间', @@ -235,6 +236,7 @@ export const SaleMain = useCrudSchemas(reactive([ } }, isForm: false, + isTable: false }, { label: '当前阶段', @@ -778,7 +780,7 @@ export const SaleDetailRules = reactive({ itemCode: [ { required: true, message: '请选择物料代码', trigger: 'change' } ], - + remark: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], @@ -910,4 +912,4 @@ export const SaleDetailAndMain = useCrudSchemas(reactive([ precision: 6 } }, -])) \ No newline at end of file +])) diff --git a/src/views/wms/deliversettlementManage/saleShipmentMainRecord/saleShipmentMainRecord.data.ts b/src/views/wms/deliversettlementManage/saleShipmentMainRecord/saleShipmentMainRecord.data.ts index 25bc2b808..0b74c9c86 100644 --- a/src/views/wms/deliversettlementManage/saleShipmentMainRecord/saleShipmentMainRecord.data.ts +++ b/src/views/wms/deliversettlementManage/saleShipmentMainRecord/saleShipmentMainRecord.data.ts @@ -95,7 +95,7 @@ export const SaleShipmentMainRecord = useCrudSchemas(reactive([ sort: 'custom', isTable:false }, - + { label: '业务类型', field: 'businessType', @@ -107,6 +107,9 @@ export const SaleShipmentMainRecord = useCrudSchemas(reactive([ field: 'createTime', sort: 'custom', formatter: dateFormatter, + table: { + width: 180 + }, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' }, @@ -119,7 +122,16 @@ export const SaleShipmentMainRecord = useCrudSchemas(reactive([ } }, isForm: false, - isTable:false + isTable:true + }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, + isForm: false, + isTable: true }, { label: '地点ID', diff --git a/src/views/wms/deliversettlementManage/saleShipmentMainRequest/saleShipmentMain.data.ts b/src/views/wms/deliversettlementManage/saleShipmentMainRequest/saleShipmentMain.data.ts index fbf89bcc2..947bdb2c0 100644 --- a/src/views/wms/deliversettlementManage/saleShipmentMainRequest/saleShipmentMain.data.ts +++ b/src/views/wms/deliversettlementManage/saleShipmentMainRequest/saleShipmentMain.data.ts @@ -222,6 +222,9 @@ export const SaleShipmentMain = useCrudSchemas(reactive([ field: 'createTime', sort: 'custom', formatter: dateFormatter, + table: { + width: 180 + }, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' }, @@ -235,7 +238,16 @@ export const SaleShipmentMain = useCrudSchemas(reactive([ }, isForm: false, isTableForm: false, - isTable: false + isTable: true + }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, + isForm: false, + isTable: true }, { label: '操作', diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts b/src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts index b5d73acc3..e3e6e26ed 100644 --- a/src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts +++ b/src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts @@ -76,6 +76,9 @@ export const StockupMainJob = useCrudSchemas(reactive([ table: { width: 180 }, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, isTable: false, search: { component: 'DatePicker', @@ -101,6 +104,9 @@ export const StockupMainJob = useCrudSchemas(reactive([ table: { width: 180 }, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, isTable: false, search: { component: 'DatePicker', @@ -118,7 +124,7 @@ export const StockupMainJob = useCrudSchemas(reactive([ } }, }, - + { label: '过期时间', field: 'expiredTime', @@ -127,6 +133,9 @@ export const StockupMainJob = useCrudSchemas(reactive([ table: { width: 180 }, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, isTable: false, search: { component: 'DatePicker', @@ -164,6 +173,9 @@ export const StockupMainJob = useCrudSchemas(reactive([ field: 'acceptTime', sort: 'custom', formatter: dateFormatter, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, table: { width: 180 }, @@ -202,6 +214,9 @@ export const StockupMainJob = useCrudSchemas(reactive([ width: 180 }, isTable: false, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, search: { component: 'DatePicker', componentProps: { @@ -389,24 +404,18 @@ export const StockupMainJob = useCrudSchemas(reactive([ }, isTable: false, }, - { - label: '创建者', - field: 'creator', - sort: 'custom', - table: { - width: 120 - }, - isTable: false, - }, { label: '创建时间', field: 'createTime', sort: 'custom', formatter: dateFormatter, table: { - width: 180 + width: 120 }, - isTable: false, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + hiddenInMain: true, search: { component: 'DatePicker', componentProps: { @@ -415,7 +424,16 @@ export const StockupMainJob = useCrudSchemas(reactive([ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] } }, + isTableForm: false, + }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, isForm: false, + isTable: true }, { label: '操作', @@ -440,7 +458,7 @@ export const StockupDetailJob = useCrudSchemas(reactive([ table: { width: 150 }, - hiddenInMain:true + hiddenInMain:true }, { label: '包装号', @@ -449,7 +467,7 @@ export const StockupDetailJob = useCrudSchemas(reactive([ table: { width: 150 }, - hiddenInMain:true + hiddenInMain:true }, { label: '批次', @@ -458,7 +476,7 @@ export const StockupDetailJob = useCrudSchemas(reactive([ table: { width: 150 }, - hiddenInMain:true + hiddenInMain:true }, { label: '库存状态', @@ -490,7 +508,7 @@ export const StockupDetailJob = useCrudSchemas(reactive([ }, hiddenInMain:true, }, - + { label: '物料代码', field: 'itemCode', @@ -600,6 +618,15 @@ export const StockupDetailJob = useCrudSchemas(reactive([ }, isForm: false, }, + { + label: '创建者', + field: 'creator', + sort: 'custom', + table: { + width: 120 + }, + isTable: false, + }, { label: '操作', field: 'action', diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/stockupMainRecord.data.ts b/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/stockupMainRecord.data.ts index 063de8810..a671a1bf7 100644 --- a/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/stockupMainRecord.data.ts +++ b/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/stockupMainRecord.data.ts @@ -183,6 +183,9 @@ export const StockupMainRecord = useCrudSchemas(reactive([ width: 180 }, isTable: false, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, form: { component: 'DatePicker', componentProps: { @@ -197,6 +200,9 @@ export const StockupMainRecord = useCrudSchemas(reactive([ field: 'dueTime', sort: 'custom', formatter: dateFormatter, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, search: { component: 'DatePicker', componentProps: { @@ -220,21 +226,32 @@ export const StockupMainRecord = useCrudSchemas(reactive([ { label: '创建时间', field: 'createTime', - sort: 'custom', + isForm: false, + table: { + width: 180 + }, formatter: dateFormatter, - search: { + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + form: { 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')] + style: {width:'100%'}, + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', } - }, + } + }, + { + label: '创建者', + field: 'creator', table: { - width: 180 + width: 130 }, - isTable: false, isForm: false, + isTable: true }, { label: '部门', diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts b/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts index a50f33f19..e62e7f75e 100644 --- a/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts +++ b/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts @@ -176,12 +176,21 @@ export const StockupMainRequest = useCrudSchemas(reactive([ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] } }, - isTable: false, + isTable: true, table: { width: 180 }, isForm: false, }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, + isForm: false, + isTable: true + }, { label: '发货日期', field: 'deliverDate', @@ -773,6 +782,15 @@ export const StockupDetailRequest = useCrudSchemas(reactive([ }, isTableForm: false, }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, + isForm: false, + isTable: true + }, { label: '操作', field: 'action', diff --git a/src/views/wms/inventoryManage/expectin/index.vue b/src/views/wms/inventoryManage/expectin/index.vue index 42aafcfe4..98e4ec8bd 100644 --- a/src/views/wms/inventoryManage/expectin/index.vue +++ b/src/views/wms/inventoryManage/expectin/index.vue @@ -1,7 +1,7 @@