diff --git a/src/api/mes/processroute/index.ts b/src/api/mes/processroute/index.ts index c889e2dff..f6f5f1726 100644 --- a/src/api/mes/processroute/index.ts +++ b/src/api/mes/processroute/index.ts @@ -87,6 +87,11 @@ export const getProcessBomList = async (params) => { return await request.get({ url: `/mes/common/getBomListByProductAndProcess`,params}) } +// 查询产品bom的工序物料列表 +export const getBomListByProductBomAndProcess = async (params) => { + return await request.get({ url: `/mes/common/getBomListByProductBomAndProcess`,params}) +} + export const getWorkstationPage = async (code:String) => { return await request.get({ url: `/mes/workstation/page?pageSize=25&processCode=`+code}) } diff --git a/src/api/wms/customeritem/index.ts b/src/api/wms/customeritem/index.ts index d4b636c5b..c4c27e8a7 100644 --- a/src/api/wms/customeritem/index.ts +++ b/src/api/wms/customeritem/index.ts @@ -61,4 +61,15 @@ export const exportCustomeritem = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/customeritem/get-import-template' }) +} + +// 获得业务类型筛选出的物料分页 +export const getPageBusinessTypeToItemCode = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/customeritem/pageBusinessTypeToLocationSenior', data }) + } else { + return await request.get({ url: `/wms/customeritem/pageBusinessTypeToItemCode`, params }) + } } \ No newline at end of file diff --git a/src/api/wms/deliverPlanMain/index.ts b/src/api/wms/deliverPlanMain/index.ts index 46277041e..83363172a 100644 --- a/src/api/wms/deliverPlanMain/index.ts +++ b/src/api/wms/deliverPlanMain/index.ts @@ -49,6 +49,19 @@ export const deleteDeliverPlanMain = async (id: number) => { // 导出发货计划主 Excel export const exportDeliverPlanMain = async (params) => { + params.businessType = 'Deliver' + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/deliver-plan-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/deliver-plan-main/export-excel`, params }) + } +} + +// 导出发货计划主 Excela +export const exportZZBJDeliverPlanMain = async (params) => { + params.businessType = 'ZZBJDeliver' if (params.isSearch) { delete params.isSearch const data = {...params} diff --git a/src/api/wms/deliverRequestMain/index.ts b/src/api/wms/deliverRequestMain/index.ts index 03f544ed9..714df74e3 100644 --- a/src/api/wms/deliverRequestMain/index.ts +++ b/src/api/wms/deliverRequestMain/index.ts @@ -65,6 +65,19 @@ export const deleteDeliverRequestMain = async (id: number) => { // 导出发货申请主 Excel export const exportDeliverRequestMain = async (params) => { + params.businessType = 'Deliver' + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/deliver-request-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/deliver-request-main/export-excel`, params }) + } +} + +// 导出发货申请主 Excel +export const exportZZBJDeliverRequestMain = async (params) => { + params.businessType = 'ZZBJDeliver' if (params.isSearch) { delete params.isSearch const data = {...params} diff --git a/src/components/ImportForm/src/ImportDetailForm.vue b/src/components/ImportForm/src/ImportDetailForm.vue new file mode 100644 index 000000000..bda6ffdfe --- /dev/null +++ b/src/components/ImportForm/src/ImportDetailForm.vue @@ -0,0 +1,339 @@ + + + + + diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index f3ab4f8b1..5a6b94b3f 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -1097,17 +1097,21 @@ export default { 请输入供应商批次:'Please input the supplier batch', 选择日期:'Option Date', 请输入备注:'Please input comment', - // 格式为…的文件:The format is... File of 请输入包装规格1:'Please input package specification1', 请输入包装数量1:'Please input package quantity1', 请输入包装规格2:'Please input package specification2', 请输入包装数量2:'Please input package quantity2', - 提交审批:'submit for approval' - - - - - + 提交审批:'submit for approval', + // 系统管理:'system management', + // 基础设施:'infrastructure', + // 报表管理:'report manager', + // 报表:'statement', + // 富维海拉供应商管理系统:'vendor management system', + 请输入用户名:'Please enter your username', + 请输入邮箱:'Please enter email', + 忘记密码:'Forget Password', + 用户名:'User Name', + 邮箱:'Mail', }, diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 4dbc07161..0a7311fa7 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -1097,14 +1097,21 @@ export default { 请输入供应商批次:'请输入供应商批次', 选择日期:'选择日期', 请输入备注:'请输入备注', - // 格式为…的文件:The format is... File of 请输入包装规格1:'请输入包装规格1', 请输入包装数量1:'请输入包装数量1', 请输入包装规格2:'请输入包装规格2', 请输入包装数量2:'请输入包装数量2', - 提交审批:'提交审批' - - + 提交审批:'提交审批', + 系统管理:'系统管理', + 基础设施:'基础设施', + 报表管理:'报表管理', + 报表:'报表', + 富维海拉供应商管理系统:'富维海拉供应商管理系统', + 请输入用户名:'请输入用户名', + 请输入邮箱:'请输入邮箱', + 忘记密码:'忘记密码', + 用户名:'用户名', + 邮箱:'邮箱', diff --git a/src/views/login/forgetPassword.vue b/src/views/login/forgetPassword.vue index 3511c919b..2b73fa777 100644 --- a/src/views/login/forgetPassword.vue +++ b/src/views/login/forgetPassword.vue @@ -1,22 +1,22 @@ diff --git a/src/views/mes/holiday/holiday.data.ts b/src/views/mes/holiday/holiday.data.ts index 02bdde572..55096dbd7 100644 --- a/src/views/mes/holiday/holiday.data.ts +++ b/src/views/mes/holiday/holiday.data.ts @@ -1,8 +1,17 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' -import { dateFormatter } from '@/utils/formatTime' +import { dateFormatter, dateFormatter2 } from '@/utils/formatTime' // 表单校验 export const HolidayRules = reactive({ + holidayName: [ + { required: true, message: '请输入节日名称', trigger: 'blur' } + ], + holidayType: [ + { required: true, message: '请输入节日类型', trigger: 'blur' } + ], + holidayDate: [ + { required: true, message: '请输入节日日期', trigger: 'blur' } + ], }) export const Holiday = useCrudSchemas(reactive([ @@ -10,7 +19,9 @@ export const Holiday = useCrudSchemas(reactive([ label: '主键', field: 'id', sort: 'custom', - isForm: false, + isSearch: false, + isTable:false, + isForm:false }, @@ -56,13 +67,13 @@ export const Holiday = useCrudSchemas(reactive([ label: '节日日期', field: 'holidayDate', sort: 'custom', - formatter: dateFormatter, + formatter: dateFormatter2, isSearch: true, search: { component: 'DatePicker', componentProps: { type: 'date', - valueFormat: 'YYYY-MM-DD', + valueFormat: 'YYYY-MM-DD 00:00:00', } }, form: { @@ -72,6 +83,7 @@ export const Holiday = useCrudSchemas(reactive([ valueFormat: 'x' } }, + }, { label: '状态', diff --git a/src/views/mes/processroute/components/configDialog.vue b/src/views/mes/processroute/components/configDialog.vue index 08cdcd6bb..1b6d72818 100644 --- a/src/views/mes/processroute/components/configDialog.vue +++ b/src/views/mes/processroute/components/configDialog.vue @@ -189,6 +189,7 @@ const tableProcess = ref() const productData = ref({ name: '', code: '', desc1: '--' }) //产品数据 const materialData=ref() const mouldData = ref() +//const bomVersion=ref() const page=ref({ total:0, current:1, @@ -327,6 +328,7 @@ const getProcessBomList = async (pcode,processCode) => { processCode:processCode } return await ProcessrouteApi.getProcessBomList(params); + //return await ProcessrouteApi.getBomListByProductBomAndProcess(params); } /** 查询模具基本信息列表 */ const getPatternPage = async (code) => { @@ -363,10 +365,10 @@ const nodeClick = (e, x, y, node, view) => { currentNode.value.name=node.attrs.title.text Promise.all([ getProcessInfo(node.id), - getProcessBomList(productCode.value,node.id), + getProcessBomList(productCode.value,node.id),// rowData.value getPatternPage(node.id), getWorkstationPage(node.id) - ]).then(([processInfoList,basicBom, patternPage,workstationInfoList]) => { + ]).then(([processInfo,basicBom, patternPage,workstationInfoList]) => { // 在这里处理所有异步操作的结果 //message.info(JSON.stringify(processIndoList)) //console.log('basicBom',basicBom) diff --git a/src/views/mes/processroute/processroute.data.ts b/src/views/mes/processroute/processroute.data.ts index e2f1f9ee8..7f02e7bed 100644 --- a/src/views/mes/processroute/processroute.data.ts +++ b/src/views/mes/processroute/processroute.data.ts @@ -97,6 +97,13 @@ export const Processroute = useCrudSchemas(reactive([ } } }, + // { + // label: 'BOM版本号', + // field: 'BOMVersion', + // sort: 'custom', + // value: '1', + // isSearch: false, + // }, // { // label: '版本号', // field: 'routeVersion', diff --git a/src/views/mes/workcalendar/index.vue b/src/views/mes/workcalendar/index.vue index 16c054af5..adda99bc1 100644 --- a/src/views/mes/workcalendar/index.vue +++ b/src/views/mes/workcalendar/index.vue @@ -59,7 +59,7 @@
- +