diff --git a/README.md b/README.md index e5f4b9509..314704f75 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ PurchaseDetail:子表 3.2 在按钮回调中添加$index,固定的写死: const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } …下面是原有的按钮逻辑,不变 diff --git a/src/api/eam/equipmentMaintenanceDetail/index.ts b/src/api/eam/equipmentMaintenanceDetail/index.ts new file mode 100644 index 000000000..81a8696e1 --- /dev/null +++ b/src/api/eam/equipmentMaintenanceDetail/index.ts @@ -0,0 +1,64 @@ +import request from '@/config/axios' + +export interface EquipmentMaintenanceDetailVO { + id: number + number: string + masterId: number + peoples: number + estimatedMinutes: number + actualMinutes: number + chargePeoples: string + completionTime: Date + uncompletedCause: string + result: string + contents: string + equipmentParts: string + departmentCode: string + remark: string + siteId: string + available: string + deletionTime: Date + deleterId: byte[] + concurrencyStamp: number +} + +// 查询设备保养工单子列表 +export const getEquipmentMaintenanceDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/equipment-maintenance-detail/senior', data }) + } else { + return await request.get({ url: `/eam/equipment-maintenance-detail/page`, params }) + } +} + +// 查询设备保养工单子详情 +export const getEquipmentMaintenanceDetail = async (id: number) => { + return await request.get({ url: `/eam/equipment-maintenance-detail/get?id=` + id }) +} + +// 新增设备保养工单子 +export const createEquipmentMaintenanceDetail = async (data: EquipmentMaintenanceDetailVO) => { + return await request.post({ url: `/eam/equipment-maintenance-detail/create`, data }) +} + +// 修改设备保养工单子 +export const updateEquipmentMaintenanceDetail = async (data: EquipmentMaintenanceDetailVO) => { + return await request.put({ url: `/eam/equipment-maintenance-detail/update`, data }) +} + +// 删除设备保养工单子 +export const deleteEquipmentMaintenanceDetail = async (id: number) => { + return await request.delete({ url: `/eam/equipment-maintenance-detail/delete?id=` + id }) +} + +// 导出设备保养工单子 Excel +export const exportEquipmentMaintenanceDetail = async (params) => { + return await request.download({ url: `/eam/equipment-maintenance-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/equipment-maintenance-detail/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/equipmentMaintenanceMain/index.ts b/src/api/eam/equipmentMaintenanceMain/index.ts index 835e6bff0..a3ba8d8db 100644 --- a/src/api/eam/equipmentMaintenanceMain/index.ts +++ b/src/api/eam/equipmentMaintenanceMain/index.ts @@ -1,4 +1,5 @@ import request from '@/config/axios' +import {EquipmentMainPartVO} from "@/api/eam/equipmentMainPart"; export interface EquipmentMaintenanceMainVO { id: number @@ -71,4 +72,14 @@ export const exportEquipmentMaintenanceMain = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/eam/equipment-maintenance-main/get-import-template' }) -} \ No newline at end of file +} + +// 启用 / 禁用 +export const updateEnableCode = async (data: EquipmentMainPartVO) => { + return await request.post({ url: `/eam/equipment-maintenance-main/ables` , data }) +} + +// 执行保养工单 +export const executeMaintenanceOrder = async (data: EquipmentMainPartVO) => { + return await request.post({ url: `/eam/equipment-maintenance-main/execute`, data }) +} diff --git a/src/api/wms/location/index.ts b/src/api/wms/location/index.ts index 231f14ed8..4f6c6a019 100644 --- a/src/api/wms/location/index.ts +++ b/src/api/wms/location/index.ts @@ -34,6 +34,15 @@ export const getLocationPage = async (params) => { return await request.get({ url: `/wms/location/page`, params }) } } +export const getLocationPageRepleinsh = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/location/senior', data }) + } else { + return await request.get({ url: `/wms/location/pageForRepleinsh`, params }) + } +} // 查询库位所有列表 export const getLocationList = async (params) => { return await request.get({ url: `/wms/location/list`, params }) @@ -115,4 +124,4 @@ export const selectConfigToLocation = async (params) => { } else { return request.get({ url: `/wms/location/pageConfigToLocation`, params }) } -} \ No newline at end of file +} diff --git a/src/api/wms/processproductionRecordDetail/index.ts b/src/api/wms/processproductionRecordDetail/index.ts new file mode 100644 index 000000000..0d8a4d0e8 --- /dev/null +++ b/src/api/wms/processproductionRecordDetail/index.ts @@ -0,0 +1,61 @@ +import request from '@/config/axios' + +export interface ProcessproductionRecordDetailVO { + masterId: number + number: string + processCode: string + productionLine: string + locationCode: string + componentItemCode: string + batch: string + componentItemcodeQty: number + effectiveDate: Date + available: string + remark: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: number + siteId: string +} + +// 查询工序报产记录子列表 +export const getProcessproductionRecordDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/processproduction-record-detail/senior', data }) + } else { + return await request.get({ url: `/wms/processproduction-record-detail/page`, params }) + } +} + +// 查询工序报产记录子详情 +export const getProcessproductionRecordDetail = async (id: number) => { + return await request.get({ url: `/wms/processproduction-record-detail/get?id=` + id }) +} + +// 新增工序报产记录子 +export const createProcessproductionRecordDetail = async (data: ProcessproductionRecordDetailVO) => { + return await request.post({ url: `/wms/processproduction-record-detail/create`, data }) +} + +// 修改工序报产记录子 +export const updateProcessproductionRecordDetail = async (data: ProcessproductionRecordDetailVO) => { + return await request.put({ url: `/wms/processproduction-record-detail/update`, data }) +} + +// 删除工序报产记录子 +export const deleteProcessproductionRecordDetail = async (id: number) => { + return await request.delete({ url: `/wms/processproduction-record-detail/delete?id=` + id }) +} + +// 导出工序报产记录子 Excel +export const exportProcessproductionRecordDetail = async (params) => { + return await request.download({ url: `/wms/processproduction-record-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/processproduction-record-detail/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/processproductionRecordMain/index.ts b/src/api/wms/processproductionRecordMain/index.ts new file mode 100644 index 000000000..f2d6002ac --- /dev/null +++ b/src/api/wms/processproductionRecordMain/index.ts @@ -0,0 +1,57 @@ +import request from '@/config/axios' + +export interface ProcessproductionRecordMainVO { + number: string + requestNumber: string + itemCode: string + completedQuantity: number + scrapQuantity: number + available: string + remark: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: number + siteId: string +} + +// 查询工序报产记录主列表 +export const getProcessproductionRecordMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/processproduction-record-main/senior', data }) + } else { + return await request.get({ url: `/wms/processproduction-record-main/page`, params }) + } +} + +// 查询工序报产记录主详情 +export const getProcessproductionRecordMain = async (id: number) => { + return await request.get({ url: `/wms/processproduction-record-main/get?id=` + id }) +} + +// 新增工序报产记录主 +export const createProcessproductionRecordMain = async (data: ProcessproductionRecordMainVO) => { + return await request.post({ url: `/wms/processproduction-record-main/create`, data }) +} + +// 修改工序报产记录主 +export const updateProcessproductionRecordMain = async (data: ProcessproductionRecordMainVO) => { + return await request.put({ url: `/wms/processproduction-record-main/update`, data }) +} + +// 删除工序报产记录主 +export const deleteProcessproductionRecordMain = async (id: number) => { + return await request.delete({ url: `/wms/processproduction-record-main/delete?id=` + id }) +} + +// 导出工序报产记录主 Excel +export const exportProcessproductionRecordMain = async (params) => { + return await request.download({ url: `/wms/processproduction-record-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/processproduction-record-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/processproductionRequestDetail/index.ts b/src/api/wms/processproductionRequestDetail/index.ts new file mode 100644 index 000000000..0ea781d6e --- /dev/null +++ b/src/api/wms/processproductionRequestDetail/index.ts @@ -0,0 +1,62 @@ +import request from '@/config/axios' + +export interface ProcessproductionRequestDetailVO { + id: number + masterId: number + number: string + processCode: string + productionLine: string + locationCode: string + componentItemCode: string + batch: string + componentItemcodeQty: number + effectiveDate: Date + available: string + remark: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: number + siteId: string +} + +// 查询工序报产申请子列表 +export const getProcessproductionRequestDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/processproduction-request-detail/senior', data }) + } else { + return await request.get({ url: `/wms/processproduction-request-detail/page`, params }) + } +} + +// 查询工序报产申请子详情 +export const getProcessproductionRequestDetail = async (id: number) => { + return await request.get({ url: `/wms/processproduction-request-detail/get?id=` + id }) +} + +// 新增工序报产申请子 +export const createProcessproductionRequestDetail = async (data: ProcessproductionRequestDetailVO) => { + return await request.post({ url: `/wms/processproduction-request-detail/create`, data }) +} + +// 修改工序报产申请子 +export const updateProcessproductionRequestDetail = async (data: ProcessproductionRequestDetailVO) => { + return await request.put({ url: `/wms/processproduction-request-detail/update`, data }) +} + +// 删除工序报产申请子 +export const deleteProcessproductionRequestDetail = async (id: number) => { + return await request.delete({ url: `/wms/processproduction-request-detail/delete?id=` + id }) +} + +// 导出工序报产申请子 Excel +export const exportProcessproductionRequestDetail = async (params) => { + return await request.download({ url: `/wms/processproduction-request-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/processproduction-request-detail/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/processproductionRequestMain/index.ts b/src/api/wms/processproductionRequestMain/index.ts new file mode 100644 index 000000000..66a626e93 --- /dev/null +++ b/src/api/wms/processproductionRequestMain/index.ts @@ -0,0 +1,57 @@ +import request from '@/config/axios' + +export interface ProcessproductionRequestMainVO { + id: number + number: string + itemCode: string + completedQuantity: number + scrapQuantity: number + available: string + remark: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: number + siteId: string +} + +// 查询工序报产申请主列表 +export const getProcessproductionRequestMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/processproduction-request-main/senior', data }) + } else { + return await request.get({ url: `/wms/processproduction-request-main/page`, params }) + } +} + +// 查询工序报产申请主详情 +export const getProcessproductionRequestMain = async (id: number) => { + return await request.get({ url: `/wms/processproduction-request-main/get?id=` + id }) +} + +// 新增工序报产申请主 +export const createProcessproductionRequestMain = async (data: ProcessproductionRequestMainVO) => { + return await request.post({ url: `/wms/processproduction-request-main/create`, data }) +} + +// 修改工序报产申请主 +export const updateProcessproductionRequestMain = async (data: ProcessproductionRequestMainVO) => { + return await request.put({ url: `/wms/processproduction-request-main/update`, data }) +} + +// 删除工序报产申请主 +export const deleteProcessproductionRequestMain = async (id: number) => { + return await request.delete({ url: `/wms/processproduction-request-main/delete?id=` + id }) +} + +// 导出工序报产申请主 Excel +export const exportProcessproductionRequestMain = async (params) => { + return await request.download({ url: `/wms/processproduction-request-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/processproduction-request-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/components/SearchTable/src/SearchTable.vue b/src/components/SearchTable/src/SearchTable.vue index e0d7a9e15..084a68806 100644 --- a/src/components/SearchTable/src/SearchTable.vue +++ b/src/components/SearchTable/src/SearchTable.vue @@ -159,12 +159,13 @@ const searchFormClick = (searchData) => { if (searchConditionRef.value.filters) { searchData.filters = searchConditionRef.value.filters } else { + searchData.filters = [] Object.keys(searchConditionRef.value).forEach(key => { - searchData.filters = [{ + searchData.filters.push({ action: "==", column: key, value: searchConditionRef.value[key] - }] + }) }); } } diff --git a/src/utils/dict.ts b/src/utils/dict.ts index ee6af062d..d5f4d1d75 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -348,10 +348,11 @@ export enum DICT_TYPE { SUBJECT = 'subject', //科目 REGION = 'region', //区域 PART_CLASS = 'part_class', //备件分类 - MAINTENANCE_CYCLE = 'maintenance_cycle', // 保养周期 FAILURE_DEGREE = 'failure_degree', // 紧急程度 FAILURE_REASON = 'failure_reason', //故障类型 REPAIR_DEGREE = 'repair_degree', // REPAIR_LEVEL = 'repair_level', //维修级别 IS_COMPLETED = 'is_completed', //是否完成 + MAINTENANCE_CYCLE ='maintenance_cycle', // 保养周期 + EAM_ORDER_STATUS = 'eam_order_status' } diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 38e469d75..b32418e0a 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -325,6 +325,19 @@ export function mainListReceiveBtn(option:any) { }) } +// 主列表-执行按钮 +export function mainListExecuteBtn(option:any) { + return __defaultBtnOption(option,{ + label: t(`ts.执行`).replace('ts.', ''), + name: 'execute', + hide: false, + type: 'primary', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + // 主列表-完成按钮 export function mainListFinishBtn(option:any) { return __defaultBtnOption(option,{ diff --git a/src/views/eam/basicMaintenanceOption/basicMaintenanceOption.data.ts b/src/views/eam/basicMaintenanceOption/basicMaintenanceOption.data.ts index f085da0f3..b3ad015dc 100644 --- a/src/views/eam/basicMaintenanceOption/basicMaintenanceOption.data.ts +++ b/src/views/eam/basicMaintenanceOption/basicMaintenanceOption.data.ts @@ -4,7 +4,7 @@ import { BasicMaintenanceItemSelectSet } from "@/views/eam/maintenanceItemSelectSet/maintenanceItemSelectSet.data"; import * as ItemApi from "@/api/eam/maintenanceItemSelectSet"; -import {getBasicMaintenanceItemSelectSetPage} from "@/api/eam/maintenanceItemSelectSet"; + // 表单校验 export const BasicMaintenanceOptionRules = reactive({ diff --git a/src/views/eam/equipmentMaintenanceMain/equipmentMaintenanceMain.data.ts b/src/views/eam/equipmentMaintenanceMain/equipmentMaintenanceMain.data.ts index b324fe9e1..08f0a4438 100644 --- a/src/views/eam/equipmentMaintenanceMain/equipmentMaintenanceMain.data.ts +++ b/src/views/eam/equipmentMaintenanceMain/equipmentMaintenanceMain.data.ts @@ -1,5 +1,9 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter } from '@/utils/formatTime' +import {EquipmentAccounts} from "@/views/eam/equipmentAccounts/equipmentAccounts.data"; +import * as EquipmentItemApi from "@/api/eam/equipmentAccounts"; +import {Workshop} from "@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data"; +import * as WorkshopApi from "@/api/wms/workshop"; // 表单校验 export const EquipmentMaintenanceMainRules = reactive({ @@ -8,7 +12,6 @@ export const EquipmentMaintenanceMainRules = reactive({ planNumber: [required], status: [required], factoryAreaCode: [required], - concurrencyStamp: [required], }) export const EquipmentMaintenanceMain = useCrudSchemas(reactive([ @@ -25,6 +28,7 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive([ label: '保养工单编号', field: 'number', sort: 'custom', + isForm: false, isSearch: true, }, { @@ -34,16 +38,37 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive([ isSearch: true, }, { - label: '设备编号', - field: 'equipmentCode', + label: '设备类别', + field: 'type', + dictType: DICT_TYPE.DEVICE_TYPE, + dictClass: 'string', sort: 'custom', isSearch: true, }, { - label: '设备分类', - field: 'type', + label: '设备编号', + field: 'equipmentCode', sort: 'custom', isSearch: true, + isForm: true, + form: { + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchTitle: '设备信息', // 查询弹窗标题 + searchListPlaceholder: '请选择 设备编号', // 输入框占位文本 + searchAllSchemas: EquipmentAccounts.allSchemas, // 查询弹窗所需类 + searchField: 'code', // 查询弹窗赋值字段 + searchPage: EquipmentItemApi.getEquipmentAccountsPage, // 查询弹窗所需分页方法 + multiple:true, + searchCondition: [{ + key: 'status', + value: 'NORMAL', + action: '==', + isSearch: true, + isMainValue: false + }] + } + } }, { label: '班次枚举', @@ -74,29 +99,22 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive([ field: 'times', sort: 'custom', isSearch: true, + form: { + component: 'InputNumber', + value: 0 + }, }, { label: '验证人', field: 'verifyer', sort: 'custom', isSearch: true, - form: { - component: 'InputNumber', - value: 0 - }, }, { label: '验证内容', field: 'verifyContent', sort: 'custom', isSearch: true, - form: { - component: 'Editor', - componentProps: { - valueHtml: '', - height: 200 - } - }, }, { label: '验证时间', @@ -125,10 +143,6 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive([ field: 'maintenancer', sort: 'custom', isSearch: true, - form: { - component: 'InputNumber', - value: 0 - }, }, { label: '保养人联系电话', @@ -187,25 +201,44 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive([ }, }, { - label: '流程状态枚举', + label: '流程状态', field: 'status', sort: 'custom', isSearch: true, - form: { - component: 'Radio' - }, + dictType: DICT_TYPE.EAM_ORDER_STATUS, + dictClass: 'string', }, { label: '所属厂区编号', field: 'factoryAreaCode', sort: 'custom', - isSearch: true, + isSearch: false, + isTable: false, + isForm: false, + isDetail:false, }, { label: '车间编号', field: 'workshopCode', sort: 'custom', isSearch: true, + required: true, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '车间', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '车间信息', // 查询弹窗标题 + searchAllSchemas: Workshop.allSchemas, // 查询弹窗所需类 + searchPage: WorkshopApi.getWorkshopPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] + } + }, }, { label: '工段编号', @@ -258,6 +291,226 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive([ field: 'available', sort: 'custom', isSearch: true, + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + }, + { + label: '删除时间', + field: 'deletionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: false, + isTable: false, + isForm: false, + isDetail:false, + 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')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '删除人id', + field: 'deleterId', + sort: 'custom', + isSearch: false, + isTable: false, + isForm: false, + isDetail:false, + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isSearch: false, + isTable: false, + isForm: false, + isDetail:false, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) + + +export const EquipmentMaintenanceDetailRules = reactive({ + number: [required], + contents: [required], +}) + +export const EquipmentMaintenanceDetail = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isSearch: false, + isTable: false, + isForm: false, + isDetail:false, + }, + { + label: '保养工单号', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '主表id', + field: 'masterId', + sort: 'custom', + isSearch: true, + }, + { + label: '人数', + field: 'peoples', + sort: 'custom', + isSearch: true, + }, + { + label: '预计分钟', + field: 'estimatedMinutes', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '实际分钟', + field: 'actualMinutes', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '责任人多选', + field: 'chargePeoples', + sort: 'custom', + isSearch: true, + }, + { + label: '完成时间', + field: 'completionTime', + 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')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '未完成原因', + field: 'uncompletedCause', + sort: 'custom', + isSearch: true, + }, + { + label: '结果枚举', + field: 'result', + sort: 'custom', + isSearch: true, + }, + { + label: '保养名称', + field: 'name', + sort: 'custom', + isSearch: true, + }, + { + label: '保养内容', + field: 'content', + sort: 'custom', + isSearch: true, + }, + { + label: '保养部位', + field: 'equipmentParts', + 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: '部门id', + field: 'departmentCode', + sort: 'custom', + isSearch: false, + isTable: false, + isForm: false, + isDetail:false, + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isSearch: true, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isSearch: false, + isTable: false, + isForm: false, + isDetail:false, + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + isSearch: true, + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 }, { label: '删除时间', diff --git a/src/views/eam/equipmentMaintenanceMain/index.vue b/src/views/eam/equipmentMaintenanceMain/index.vue index 248f1de3f..7317de2b2 100644 --- a/src/views/eam/equipmentMaintenanceMain/index.vue +++ b/src/views/eam/equipmentMaintenanceMain/index.vue @@ -27,13 +27,13 @@ v-model:currentPage="tableObject.currentPage" v-model:sort="tableObject.sort" > - @@ -73,6 +96,13 @@ import * as ProductreceiptJobMainApi from '@/api/wms/productreceiptJobMain' import * as ProductreceiptJobDetailApi from '@/api/wms/productreceiptJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' +import * as BackflushRequestDetailbApi from '@/api/wms/backflushRequestDetailb' +import { + BackflushDetailRequest +} from "@/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data"; +import { + BackflushRecordDetailb +} from "@/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data"; // 制品收货任务主 // 预生产收货任务主 @@ -86,15 +116,44 @@ const routeName = ref() routeName.value = route.name const tableColumns = ref([...ProductreceiptJobMain.allSchemas.tableColumns,...ProductreceiptJobDetail.allSchemas.tableMainColumns]) +// Bom查看 +const DialogTitle = ref('Bom信息') +const bomModelVisible = ref(false) +const { tableObject: detatableDataBom, tableMethods: detatableMethodsBom } =useTable({ + getListApi: BackflushRequestDetailbApi.getBackflushRequestDetailbPage +}) +const { getList:getDetailListBom } = detatableMethodsBom + + // 字段设置 更新主列表字段 const updataTableColumns = (val) => { tableColumns.value = val } - +// 详情 table 操作扩展 按钮 +const buttondataTable = ref([{ + label: 'Bom', + name: 'bom', + hide: false, + type: 'primary', + icon: '', + color: '', + hasPermi: '', + link: true, // 文本展现按钮 +}]) // 查询列表页面参数设置 const searchTableParams = ref([ ]) - +// 查看 Bom 按钮回调事件 +const tableFormButton = async (val , row) => { + if (val == 'bom') { // 查看 bom + bomModelVisible.value = true + DialogTitle.value = '物料代码【' + row.itemCode + '】——Bom信息' + detatableDataBom.params = { + masterId: row.masterId + } + await getDetailListBom() + } +} // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { nextTick(() => { @@ -162,7 +221,7 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts b/src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts index b85e7a8fa..9e90ac716 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts +++ b/src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts @@ -911,6 +911,18 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive([ width: 150 }, }, + { + label: '操作', + hiddenInMain:true, + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150, + fixed: 'right' + }, + isTableForm:false, + } ])) //表单校验 diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue index 5da6c7699..c3456bdd5 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue +++ b/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue @@ -173,7 +173,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data.ts b/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data.ts index a4002349f..238b9acd5 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data.ts +++ b/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data.ts @@ -521,6 +521,7 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive( label: '单据号', field: 'number', sort: 'custom', + hiddenInMain: true, table: { width: 180 }, diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue index d7dcaaa7f..c7fc1330c 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue @@ -281,7 +281,7 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/index.vue b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/index.vue index 94b9bad9a..e72644dfd 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/index.vue +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/index.vue @@ -161,7 +161,7 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue index 8ea8c882c..87cc38d0f 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue @@ -172,7 +172,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue index 2a8d3a901..a908fc68c 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue @@ -282,7 +282,7 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue index 6a083f625..9d935d270 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue @@ -160,7 +160,7 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue index 559e5cb50..091372a96 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue @@ -171,7 +171,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [] diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue index a21022513..d736db5ee 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue @@ -268,7 +268,7 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/productionManage/productredress/productredressJobMain/index.vue b/src/views/wms/productionManage/productredress/productredressJobMain/index.vue index 17230cea5..677a14754 100644 --- a/src/views/wms/productionManage/productredress/productredressJobMain/index.vue +++ b/src/views/wms/productionManage/productredress/productredressJobMain/index.vue @@ -106,7 +106,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return[ diff --git a/src/views/wms/productionManage/productredress/productredressRecordMain/index.vue b/src/views/wms/productionManage/productredress/productredressRecordMain/index.vue index 411b0ae3b..9cf2196de 100644 --- a/src/views/wms/productionManage/productredress/productredressRecordMain/index.vue +++ b/src/views/wms/productionManage/productredress/productredressRecordMain/index.vue @@ -104,7 +104,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [] diff --git a/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue b/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue index 8a88db793..6aeaac98e 100644 --- a/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue +++ b/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue @@ -223,7 +223,7 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue b/src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue index c92dd93d5..8cab2de1e 100644 --- a/src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue +++ b/src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue @@ -237,7 +237,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [] diff --git a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue index 8a3173512..21ade2a3b 100644 --- a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue +++ b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue @@ -350,7 +350,7 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/productionManage/productscrap/productscrapJobMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapJobMain/index.vue index 01c7e76a6..c03c33b32 100644 --- a/src/views/wms/productionManage/productscrap/productscrapJobMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapJobMain/index.vue @@ -181,7 +181,7 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue index 2ebe04e35..0d955d016 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue @@ -237,7 +237,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [] diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index a0198ed11..290d50683 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -417,7 +417,7 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/purchasereceiptManage/inspect/inspectJobMain/index.vue b/src/views/wms/purchasereceiptManage/inspect/inspectJobMain/index.vue index 201da8edf..b2779c087 100644 --- a/src/views/wms/purchasereceiptManage/inspect/inspectJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/inspect/inspectJobMain/index.vue @@ -181,7 +181,7 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue b/src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue index 5c294f156..b7f63eff1 100644 --- a/src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue @@ -132,7 +132,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue b/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue index 09ead7fb4..a12607b61 100644 --- a/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue @@ -167,7 +167,7 @@ // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue index 0e8bada93..3019c6e03 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue @@ -208,7 +208,7 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue index 10b9b0134..3f9a0a5ef 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue @@ -166,7 +166,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts index 0cf8a39b0..04789f448 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts @@ -403,7 +403,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ isDetail: false, isForm: false, table: { - width: 300, + width: 400, fixed: 'right' }, }, @@ -1877,4 +1877,4 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive< disabled: true, } } -])) \ No newline at end of file +])) diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue index 1e11cdda7..77db0f9c4 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue @@ -342,7 +342,7 @@ const isASNShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue index c78613eaf..2ffe84607 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue @@ -182,7 +182,7 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue index 4303e7e04..847216e87 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue @@ -129,7 +129,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [defaultButtons.mainListDocumentPrintBtn(null)] @@ -139,7 +139,7 @@ const butttondata = (row,$index) => { const buttonTableClick = async (val, row) => { if (val == 'documentPrint') { // 单据打印 - handleDocumentPrint(row.masterId) + handleDocumentPrint(row.id) } } diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue index 25e49ecbf..5d1ef6233 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue @@ -445,7 +445,7 @@ const isShowMainButton = (row, val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts index 1f7a017d5..fa9ea5ee8 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts @@ -1337,7 +1337,8 @@ export const PurchasereReturnRequestDetailLabel = useCrudSchemas(reactive { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue b/src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue index 18f01e354..3d07d9ad2 100644 --- a/src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue @@ -151,7 +151,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [] diff --git a/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue b/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue index 4fc1c3040..8f2633ccf 100644 --- a/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue @@ -218,7 +218,7 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue index ecdf2ca66..50460d582 100644 --- a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue @@ -62,7 +62,7 @@ :detailAllSchemas="PurchasereceiptJobDetail.allSchemas" :detailAllSchemasRules="PurchasereceiptJobDetailRules" :searchTableParams="searchTableParams" - :apiPage="PurchasereceiptJobDetailApi.getPurchasereceiptJobDetailPage" + :apiPage="PurchasereceiptJobDetailApi.getPurchasereceiptJobDetailPageSapre" /> @@ -173,7 +173,7 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/index.vue b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/index.vue index c4f4f8d25..60d5ec2a0 100644 --- a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/index.vue @@ -74,7 +74,7 @@ import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 采购收货记录主 defineOptions({ name: 'PurchasereceiptRecordMain' }) -const apiPage = ref(PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage) +const apiPage = ref(PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPageSpare) const message = useMessage() // 消息弹窗 const { t } = useI18n() // 国际化 @@ -126,7 +126,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ @@ -178,7 +178,7 @@ const searchFormClick = (searchData) => { const changeTabs = (data) =>{ if(data.prop == 'receiptDetail'){ console.log(data) - apiPage.value = PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage + apiPage.value = PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPageSpare detailAllSchemas.value = PurchasereceiptRecordDetail.allSchemas }else if(data.prop == 'scarceGoodsDetail'){ apiPage.value = PurchasereceiptRecordDetailApi.getScarceGoodsDetailPage diff --git a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue index 35c3511c9..9b1423043 100644 --- a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue @@ -351,7 +351,7 @@ const isASNShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue index 591c528f7..a2e7beba7 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue @@ -196,7 +196,7 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue index 4d2d3fbf3..5664f6f56 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue @@ -274,7 +274,7 @@ console.log('PurchaseMain.allSchemas.searchSchema',PurchaseMain.allSchemas.searc // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue index 858220136..86b4442a9 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue @@ -289,7 +289,7 @@ const getSearchTableData = async (number,formField,searchField)=>{ // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ @@ -305,7 +305,7 @@ const getSearchTableData = async (number,formField,searchField)=>{ { label: t('ts.创建供应商发货申请'), name: 'supplierdeliver', - hide: isShowMainButton(row, ['3']), + hide: isShowMainButton(row, ['4']), type: 'primary', icon: '', color: '', diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue index ca1ab82ee..67924eca3 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue @@ -174,7 +174,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue index 8f3c8d6bc..7433e2f4d 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue @@ -424,7 +424,7 @@ const isShowMainButtonLabel = (row, val) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRecordMain/index.vue b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRecordMain/index.vue index 7cf1fffee..38483b3ed 100644 --- a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRecordMain/index.vue +++ b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRecordMain/index.vue @@ -128,7 +128,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [] diff --git a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue index 598efc93a..7e2039f16 100644 --- a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue +++ b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue @@ -205,7 +205,7 @@ // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [ diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue index 698788841..a6f7f394f 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue @@ -151,7 +151,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [] diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index 626fe9b25..f4fabe126 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -294,7 +294,7 @@ // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>0&&findIndex<$index){ + if(findIndex>-1&&findIndex<$index){ return [] } return [