diff --git a/.env b/.env index 74e66bb15..4eb2fc114 100644 --- a/.env +++ b/.env @@ -15,3 +15,6 @@ VITE_APP_CAPTCHA_ENABLE=true # 百度统计 VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc + +# 查看质检报告环境 +VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400' diff --git a/src/api/wms/purchasereceiptJobMain/index.ts b/src/api/wms/purchasereceiptJobMain/index.ts index 9e3463fb0..6db386db5 100644 --- a/src/api/wms/purchasereceiptJobMain/index.ts +++ b/src/api/wms/purchasereceiptJobMain/index.ts @@ -123,4 +123,9 @@ export const abandonPurchasereceiptJobMainSpare = (id: number) => { // 承接采购收货任务主 export const acceptPurchasereceiptJobMain = (id: number) => { return request.put({ url: '/wms/purchasereceipt-job-main/accept?id=' + id }) -} \ No newline at end of file +} + +// 拒收采购收货任务主 +export const refusalPurchasereceiptJobMain = (id: number) => { + return request.put({ url: '/wms/purchasereceipt-job-main/refusal?id=' + id }) +} diff --git a/src/api/wms/qadCostcentre/index.ts b/src/api/wms/qadCostcentre/index.ts new file mode 100644 index 000000000..02fe9df8e --- /dev/null +++ b/src/api/wms/qadCostcentre/index.ts @@ -0,0 +1,60 @@ +import request from '@/config/axios' + +export interface QadCostcentreVO { + id: number + code: string + usageDescription: string + costcentreId: string + costcentreCode: string + costcentreDescription: string + costcentreActive: string + costcentreType: string + available: string + remark: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: number + siteId: string +} + +// 查询QAD成品中心列表 +export const getQadCostcentrePage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/qad-costcentre/senior', data }) + } else { + return await request.get({ url: `/wms/qad-costcentre/page`, params }) + } +} + +// 查询QAD成品中心详情 +export const getQadCostcentre = async (id: number) => { + return await request.get({ url: `/wms/qad-costcentre/get?id=` + id }) +} + +// 新增QAD成品中心 +export const createQadCostcentre = async (data: QadCostcentreVO) => { + return await request.post({ url: `/wms/qad-costcentre/create`, data }) +} + +// 修改QAD成品中心 +export const updateQadCostcentre = async (data: QadCostcentreVO) => { + return await request.put({ url: `/wms/qad-costcentre/update`, data }) +} + +// 删除QAD成品中心 +export const deleteQadCostcentre = async (id: number) => { + return await request.delete({ url: `/wms/qad-costcentre/delete?id=` + id }) +} + +// 导出QAD成品中心 Excel +export const exportQadCostcentre = async (params) => { + return await request.download({ url: `/wms/qad-costcentre/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/qad-costcentre/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/qadProject/index.ts b/src/api/wms/qadProject/index.ts new file mode 100644 index 000000000..ce9cd6e8e --- /dev/null +++ b/src/api/wms/qadProject/index.ts @@ -0,0 +1,59 @@ +import request from '@/config/axios' + +export interface QadProjectVO { + id: number + projectId: string + projectCode: string + projectDescription: string + projectStartDate: string + projectEndDate: string + statusCode: string + available: string + remark: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: number + siteId: string +} + +// 查询QAD项目信息列表 +export const getQadProjectPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/qad-project/senior', data }) + } else { + return await request.get({ url: `/wms/qad-project/page`, params }) + } +} + +// 查询QAD项目信息详情 +export const getQadProject = async (id: number) => { + return await request.get({ url: `/wms/qad-project/get?id=` + id }) +} + +// 新增QAD项目信息 +export const createQadProject = async (data: QadProjectVO) => { + return await request.post({ url: `/wms/qad-project/create`, data }) +} + +// 修改QAD项目信息 +export const updateQadProject = async (data: QadProjectVO) => { + return await request.put({ url: `/wms/qad-project/update`, data }) +} + +// 删除QAD项目信息 +export const deleteQadProject = async (id: number) => { + return await request.delete({ url: `/wms/qad-project/delete?id=` + id }) +} + +// 导出QAD项目信息 Excel +export const exportQadProject = async (params) => { + return await request.download({ url: `/wms/qad-project/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/qad-project/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/subjectAccount/index.ts b/src/api/wms/subjectAccount/index.ts new file mode 100644 index 000000000..9674cd532 --- /dev/null +++ b/src/api/wms/subjectAccount/index.ts @@ -0,0 +1,61 @@ +import request from '@/config/axios' + +export interface SubjectAccountVO { + id: number + code: string + usageDescription: string + costecentreId: string + costecentreCode: string + costecentreType: string + projectId: string + projectCode: string + address: string + available: string + remark: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: number + siteId: string +} + +// 查询科目账户配置列表 +export const getSubjectAccountPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/subject-account/senior', data }) + } else { + return await request.get({ url: `/wms/subject-account/page`, params }) + } +} + +// 查询科目账户配置详情 +export const getSubjectAccount = async (id: number) => { + return await request.get({ url: `/wms/subject-account/get?id=` + id }) +} + +// 新增科目账户配置 +export const createSubjectAccount = async (data: SubjectAccountVO) => { + return await request.post({ url: `/wms/subject-account/create`, data }) +} + +// 修改科目账户配置 +export const updateSubjectAccount = async (data: SubjectAccountVO) => { + return await request.put({ url: `/wms/subject-account/update`, data }) +} + +// 删除科目账户配置 +export const deleteSubjectAccount = async (id: number) => { + return await request.delete({ url: `/wms/subject-account/delete?id=` + id }) +} + +// 导出科目账户配置 Excel +export const exportSubjectAccount = async (params) => { + return await request.download({ url: `/wms/subject-account/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/subject-account/get-import-template' }) +} \ No newline at end of file diff --git a/src/components/rowDrop/index.vue b/src/components/rowDrop/index.vue index 73363f566..8ceae3d64 100644 --- a/src/components/rowDrop/index.vue +++ b/src/components/rowDrop/index.vue @@ -153,7 +153,7 @@ const initSelectSta = () => { if (item.field != 'action') { checkedDataList.value.push(item.label) _showTableColumns.push(_myTableColumns.find(myItem => (myItem.label == item.label))) - allData.value.push(t(`ts.${item.label}`)) + allData.value.push(t(`ts.${item.label}`).replace('ts.','')) } } }) @@ -165,7 +165,7 @@ const initSelectSta = () => { if (!myTableItem.fixed) { if (myTableItem.field != 'action') { if (allData.value.indexOf(myTableItem.label) == -1) { - allData.value.push(t(`ts.${myTableItem.label}`)) + allData.value.push(t(`ts.${myTableItem.label}`).replace('ts.','')) } } } @@ -195,7 +195,7 @@ const initSelectSta = () => { if (!item.fixed) { if (item.field != 'action') { checkedDataList.value.push(item.label) - allData.value.push(t(`ts.${item.label}`)) + allData.value.push(t(`ts.${item.label}`).replace('ts.','')) } } }) diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index d828c8d92..628ea1968 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -56,6 +56,7 @@ export default { copySuccess: 'Copy Success', copyError: 'Copy Error', closeSuccess: 'Close Success', + refusalSuccess: 'Refusal Success', reAddSuccess: 'ReAdd Success', submitSuccess: 'Submit Success', agreeSuccess: 'Agree Success', @@ -66,6 +67,7 @@ export default { giveupSuccess: 'Giveup Success', dealwithSuccess: 'Dealwith Success', confirmColse: 'Confirm Close?', + confirmRefusal: 'Confirm Refusal?', confirmReAdd: 'Confirm ReAdd?', confirmAgree: 'Confirm Agree?', confirmRefused: 'Confirm Refused?', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 0a7311fa7..6bb427ae3 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -56,6 +56,7 @@ export default { copySuccess: '复制成功', copyError: '复制失败', closeSuccess: '关闭成功', + refusalSuccess: '拒收成功', reAddSuccess: '重新添加成功', submitSuccess: '提交成功', agreeSuccess: '审批通过成功', @@ -66,6 +67,7 @@ export default { acceptSuccess: '承接成功', giveupSuccess: '放弃成功', confirmColse: '确认关闭吗?', + confirmRefusal: '确认拒收吗?', confirmReAdd: '确认重新添加吗?', confirmAgree: '确认审批通过吗?', confirmRefused: '确认审批驳回吗?', diff --git a/src/views/mes/orderDay/components/schedule.vue b/src/views/mes/orderDay/components/schedule.vue index 455883192..31d39754a 100644 --- a/src/views/mes/orderDay/components/schedule.vue +++ b/src/views/mes/orderDay/components/schedule.vue @@ -226,8 +226,6 @@ import { Graph } from '@antv/x6' import * as TeamApi from '@/api/wms/team' import {searchUser} from "@/views/wms/basicDataManage/orderManage/team/team.data"; import {getStrDictOptions} from "@/utils/dict"; -import {Equipment} from "@/views/mes/workstation/workstation.data"; -import * as WorkstationApi from "@/api/mes/workstation"; import {DeviceInfo, OrderDay} from "@/views/mes/orderDay/orderDay.data"; //import {TableForm} from '@/components/TableForm/src/TableForm.vue' // 引入TableForm.vue组件 const graphContainer = ref(null) @@ -651,6 +649,7 @@ const handleConfirm = (row)=>{ // 参数整理 _searchCondition.isSearch = true _searchCondition.filters = filters + searchTableRef.value.open( '添加人员',//弹出层标题 searchUser.allSchemas, @@ -662,6 +661,7 @@ const handleConfirm = (row)=>{ undefined, _searchCondition ) + searchTableRef.value.hiddenFilterButton() } diff --git a/src/views/mes/workSchedulingQaform/index.vue b/src/views/mes/workSchedulingQaform/index.vue index ac06996b3..b40dddee2 100644 --- a/src/views/mes/workSchedulingQaform/index.vue +++ b/src/views/mes/workSchedulingQaform/index.vue @@ -99,8 +99,8 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultAddBtn({hasPermi:'mes:workSchedulingQaform:create'}), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'mes:workSchedulingQaform:import'}), // 导入 + //defaultButtons.defaultAddBtn({hasPermi:'mes:workSchedulingQaform:create'}), // 新增 + // defaultButtons.defaultImportBtn({hasPermi:'mes:workSchedulingQaform:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'mes:workSchedulingQaform:export'}), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 @@ -118,7 +118,7 @@ const HeadButttondata = [ // 头部按钮事件 const buttonBaseClick = (val, item) => { if (val == 'add') { // 新增 - openForm('create') + //openForm('create') } else if (val == 'import') { // 导入 handleImport() } else if (val == 'export') { // 导出 @@ -133,14 +133,14 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = [ - defaultButtons.mainListEditBtn({hasPermi:'mes:workSchedulingQaform:update'}), // 编辑 + //defaultButtons.mainListEditBtn({hasPermi:'mes:workSchedulingQaform:update'}), // 编辑 defaultButtons.mainListDeleteBtn({hasPermi:'mes:workSchedulingQaform:delete'}), // 删除 ] // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { if (val == 'edit') { // 编辑 - openForm('update', row) + //openForm('update', row) } else if (val == 'delete') { // 删除 handleDelete(row.id) } diff --git a/src/views/mes/workSchedulingQaform/workSchedulingQaform.data.ts b/src/views/mes/workSchedulingQaform/workSchedulingQaform.data.ts index eaaf4d434..f2c54eed7 100644 --- a/src/views/mes/workSchedulingQaform/workSchedulingQaform.data.ts +++ b/src/views/mes/workSchedulingQaform/workSchedulingQaform.data.ts @@ -37,6 +37,7 @@ export const WorkSchedulingQaform = useCrudSchemas(reactive([ field: 'id', sort: 'custom', isForm: false, + isTable: false, }, { label: '状态', @@ -63,22 +64,7 @@ export const WorkSchedulingQaform = useCrudSchemas(reactive([ value: 0 }, }, - { - label: '创建时间', - field: 'createTime', - sort: 'custom', - formatter: dateFormatter, - 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')] - } - }, - isForm: false, - }, + { label: '删除用户名', field: 'deleter', @@ -131,6 +117,22 @@ export const WorkSchedulingQaform = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + 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')] + } + }, + isForm: false, + }, { label: '检验类型', field: 'qaFormType', @@ -164,7 +166,7 @@ export const WorkSchedulingQaform = useCrudSchemas(reactive([ label: '检测数量', field: 'qaCount', sort: 'custom', - isSearch: true, + isSearch: false, form: { component: 'InputNumber', value: 0 @@ -174,7 +176,7 @@ export const WorkSchedulingQaform = useCrudSchemas(reactive([ label: '检测合格数量', field: 'qaCountPassed', sort: 'custom', - isSearch: true, + isSearch: false, form: { component: 'InputNumber', value: 0 @@ -184,7 +186,7 @@ export const WorkSchedulingQaform = useCrudSchemas(reactive([ label: '检测不合格数量', field: 'qaCountNotpassed', sort: 'custom', - isSearch: true, + isSearch: false, form: { component: 'InputNumber', value: 0 @@ -194,12 +196,13 @@ export const WorkSchedulingQaform = useCrudSchemas(reactive([ label: '合格率', field: 'qaPassRate', sort: 'custom', - isSearch: true, + isSearch: false, }, { label: '操作', field: 'action', isForm: false, + isTable:false, table: { width: 150, fixed: 'right' diff --git a/src/views/wms/basicDataManage/labelManage/locationLabel/index.vue b/src/views/wms/basicDataManage/labelManage/locationLabel/index.vue index 1081eec14..04ec8d045 100644 --- a/src/views/wms/basicDataManage/labelManage/locationLabel/index.vue +++ b/src/views/wms/basicDataManage/labelManage/locationLabel/index.vue @@ -16,7 +16,7 @@ - - -