diff --git a/src/api/mes/dismantlingDetail/index.ts b/src/api/mes/dismantlingDetail/index.ts new file mode 100644 index 000000000..e9baec03e --- /dev/null +++ b/src/api/mes/dismantlingDetail/index.ts @@ -0,0 +1,56 @@ +import request from '@/config/axios' + +export interface DismantlingDetailVO { + deleteTime: Date + id: number + status: string + concurrencyStamp: number + remark: string + deleter: string + siteId: number + mainBiilno: string + materialCode: string + materialStauts: string + materialProcessstauts: string +} + +// 查询报废拆解明细列表 +export const getDismantlingDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/mes/dismantling-detail/senior', data }) + } else { + return await request.get({ url: `/mes/dismantling-detail/page`, params }) + } +} + +// 查询报废拆解明细详情 +export const getDismantlingDetail = async (id: number) => { + return await request.get({ url: `/mes/dismantling-detail/get?id=` + id }) +} + +// 新增报废拆解明细 +export const createDismantlingDetail = async (data: DismantlingDetailVO) => { + return await request.post({ url: `/mes/dismantling-detail/create`, data }) +} + +// 修改报废拆解明细 +export const updateDismantlingDetail = async (data: DismantlingDetailVO) => { + return await request.put({ url: `/mes/dismantling-detail/update`, data }) +} + +// 删除报废拆解明细 +export const deleteDismantlingDetail = async (id: number) => { + return await request.delete({ url: `/mes/dismantling-detail/delete?id=` + id }) +} + +// 导出报废拆解明细 Excel +export const exportDismantlingDetail = async (params) => { + return await request.download({ url: `/mes/dismantling-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/mes/dismantling-detail/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/mes/ordermonthplan/index.ts b/src/api/mes/ordermonthplan/index.ts index daf0c42ea..b2b77a7d3 100644 --- a/src/api/mes/ordermonthplan/index.ts +++ b/src/api/mes/ordermonthplan/index.ts @@ -108,3 +108,11 @@ export const updateMesOrderMonthSub = async (data: MesOrderMonthSubVO) => { export const deleteMesOrderMonthSub = async (id: number) => { return await request.delete({ url: `/plan/mes-order-month-sub/delete?id=` + id }) } +export interface MesOrderMonthSubBreakdownReqVO{ + planMasterId: string + id: number +} +// 拆解为日计划 +export const breakdown = async (data: MesOrderMonthSubBreakdownReqVO) => { + return await request.post({ url: `/plan/mes-order-month-sub/breakdown`,data}) +} diff --git a/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts b/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts index db265c38d..aeb223f30 100644 --- a/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts +++ b/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts @@ -67,7 +67,7 @@ export const importTemplate = () => { export const publishInspectionRecordMain = async (data ) => { return await request.put({ url: `/qms/inspection-record-main/publish`, data }) } -//查询检验申请列表 +//查询包装列表 export const getInspectionRecordPackageList = async (id: number) => { return await request.get({ url: `/qms/inspection-record-package/list?masterId=` + id }) } \ No newline at end of file diff --git a/src/api/qms/sampleCode/index.ts b/src/api/qms/sampleCode/index.ts index 3f8e22f45..374a97e8a 100644 --- a/src/api/qms/sampleCode/index.ts +++ b/src/api/qms/sampleCode/index.ts @@ -55,3 +55,7 @@ export const exportSampleCode = async (params) => { export const importTemplate = () => { return request.download({ url: '/qms/sample-code/get-import-template' }) } + +export const getSamplingScheme = async () => { + return await request.get({ url: `/qms/sampling-scheme/get-available-list`}) +} diff --git a/src/api/qms/samplingProcess/index.ts b/src/api/qms/samplingProcess/index.ts index 9f3f57dca..9fcdcd20f 100644 --- a/src/api/qms/samplingProcess/index.ts +++ b/src/api/qms/samplingProcess/index.ts @@ -1,4 +1,5 @@ import request from '@/config/axios' +import { validatePercent } from '@/utils/validator' export interface SamplingProcessVO { id: number @@ -7,10 +8,15 @@ export interface SamplingProcessVO { sampleType: string evaluationMode: string sampleSize: number - sampleProgCode: number + sampleProgCode: String available: string } +const rules = ref({ + sampleSize:[ + {validator:validatePercent,message:'百分比范围 0 ~ 100', trigger:'blur'} + ] +}) // 查询采样过程列表 export const getSamplingProcessPage = async (params) => { if (params.isSearch) { diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 77b9adec3..afc1d884d 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -637,6 +637,9 @@ const handleAddTable = () => { } // 输入框聚焦 const inpuFocus = (headerItem, row, index) => { + + emit('inpuFocus', headerItem, row, index) + opensearchTable( headerItem.field, headerItem.tableForm.searchField, diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index 3971d6463..5f7a5e26c 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -713,6 +713,7 @@ const opensearchTable = ( // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { + debugger if (val == 'edit') { // 编辑 if(props.isOpenSearchTable){ diff --git a/src/utils/dict.ts b/src/utils/dict.ts index a29a1fd4b..ab14d1b02 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -312,6 +312,10 @@ export enum DICT_TYPE { REWORK_STATUS='rework_status',//返工返修状态:待返修,返修中,返修完成 REWORK_REPLACE_FLAG = 'rework_replace_flag',//是否有替换件 DISMANTLING_BILL_TYPE = 'dismantling_bill_type',//工单类型 + DISMANTLING_MATERIAL_STATUS = 'dismantling_material_status',//报废拆解物料状态 + DISMANTLING_MATERIAL_HANDLE_STATUS = 'dismantling_material_handle_status',//报废拆解处理状态 + + SUPPLIERINVOICE_REQUEST_STATUS = 'supplierinvoice_request_status', //发票申请状态 SUPPLIERINVOICE_STATUS = 'supplierinvoice_status', //待开票审核状态 } diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 998e0a9ac..664d6d47e 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -471,6 +471,19 @@ export function mainListPlanCloBtn(option:any) { }) } +// 主列表-上传质量报告 +export function mainListPlanUploadQualityReportBtn(option:any) { + return __defaultBtnOption(option,{ + label: '上传质量报告', + name: 'mainPlanUploadQualityReport', + hide: false, + type: 'primary', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + // 主列表-计划流程-提交审批按钮 export function mainListPlanSubBtn(option:any) { return __defaultBtnOption(option,{ diff --git a/src/utils/validator.ts b/src/utils/validator.ts index 490cd75e7..4bb0e51d0 100644 --- a/src/utils/validator.ts +++ b/src/utils/validator.ts @@ -748,6 +748,17 @@ export function validateYS(rule, value, callback) { callback() } } +// 校验百分比 +export function validatePercent(rule, value, callback){ + if (!value) { + return callback(new Error('百分比不能为空')) + } else { + if(value < 0 || value > 100){ + return callback(new Error('百分比范围 0 ~ 100')) + } + callback() + } +} export default { validateCode, @@ -780,5 +791,6 @@ export default { validateName, validateChargeperson, validateYS, - validateMaxNumber5 + validateMaxNumber5, + validatePercent } diff --git a/src/views/mes/dismantlingMain/dismantlingMain.data.ts b/src/views/mes/dismantlingMain/dismantlingMain.data.ts index 9e09bf0bb..7de151710 100644 --- a/src/views/mes/dismantlingMain/dismantlingMain.data.ts +++ b/src/views/mes/dismantlingMain/dismantlingMain.data.ts @@ -3,7 +3,7 @@ import { dateFormatter } from '@/utils/formatTime' import {Itembasic} from "@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data"; import * as ItembasicApi from "@/api/wms/itembasic"; -// 表单校验 +// 主表单校验 export const DismantlingMainRules = reactive({ productionCode: [required], workbillType: [required], @@ -175,3 +175,182 @@ export const DismantlingMain = useCrudSchemas(reactive([ } } ])) + +export const DismantlingDetail = useCrudSchemas(reactive([ + { + label: '删除时间', + field: 'deleteTime', + 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: '主键', + field: 'id', + sort: 'custom', + isSearch: false, + isTable: false, + isForm: false, + isDetail:false, + }, + { + label: '状态', + field: 'status', + sort: 'custom', + isSearch: false, + isTable: false, + isForm: false, + isDetail:false, + form: { + component: 'Radio' + }, + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isSearch: false, + isTable: false, + isForm: false, + isDetail:false, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '创建时间', + field: 'createTime', + 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')] + } + }, + }, + { + label: '删除用户名', + field: 'deleter', + sort: 'custom', + isSearch: false, + isTable: false, + isForm: false, + isDetail:false, + }, + { + label: '位置ID', + field: 'siteId', + sort: 'custom', + isSearch: false, + isTable: false, + isForm: false, + isDetail:false, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '单据编码', + field: 'mainBiilno', + sort: 'custom', + isSearch: true, + isForm: false, + isTable: false, + table: { + width: 150, + fixed: 'right' + } + }, + { + label: '物料编码', + field: 'materialCode', + sort: 'custom', + isSearch: true, + form: { + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchTitle: '物料编码', // 查询弹窗标题 + searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 + searchField: 'code', // 查询弹窗赋值字段 + searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }, + { + key: 'type', + action: 'in', // 查询拼接条件 + isSearch: true, // 使用自定义拼接条件 + value: 'BCP,CCP',//,SEMI] + isMainValue: false + }] + } + } + }, + { + label: '物料状态', + field: 'materialStauts', + sort: 'custom', + dictType: DICT_TYPE.DISMANTLING_MATERIAL_STATUS, + dictClass: 'string', + isSearch: true, + }, + { + label: '处理状态', + field: 'materialProcessstauts', + dictType: DICT_TYPE.DISMANTLING_MATERIAL_HANDLE_STATUS, + dictClass: 'string', + sort: 'custom', + isSearch: true, + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isSearch: true, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) + +// 子表单校验 +export const DismantlingDetailRules = reactive({ + materialCode: [required], + materialStauts: [required], + materialProcessstauts: [required], +}) diff --git a/src/views/mes/dismantlingMain/index.vue b/src/views/mes/dismantlingMain/index.vue index bf517c993..d617b45e1 100644 --- a/src/views/mes/dismantlingMain/index.vue +++ b/src/views/mes/dismantlingMain/index.vue @@ -28,7 +28,7 @@ v-model:sort="tableObject.sort" > @@ -51,7 +51,21 @@ /> - + @@ -59,8 +73,9 @@ diff --git a/src/views/mes/ordermonthplan/mesOrderMonthSub.data.ts b/src/views/mes/ordermonthplan/mesOrderMonthSub.data.ts index 176082762..f4a25613e 100644 --- a/src/views/mes/ordermonthplan/mesOrderMonthSub.data.ts +++ b/src/views/mes/ordermonthplan/mesOrderMonthSub.data.ts @@ -74,14 +74,70 @@ export const MesOrderMonthSub = useCrudSchemas(reactive([ } } }, + { + label: '计划开始日期', + field: 'planBegin', + sort: 'custom', + isSearch: true, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180, + fixed: 'left' + }, + form: { + component: 'DatePicker', + componentProps: { + style: {width: '100%'}, + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + }, + }, + { + label: '计划结束日期', + field: 'planEnd', + sort: 'custom', + isSearch: true, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180, + fixed: 'left' + }, + form: { + component: 'DatePicker', + componentProps: { + style: {width: '100%'}, + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + }, + }, + { + label: '状态', + field: 'status', + sort: 'custom', + isSearch: true, + isForm: false, + table: { + width: 100, + fixed: 'left' + }, + }, { label: '入库仓库编码', field: 'inStoreCode', sort: 'custom', isSearch: true, table: { - width: 140, - fixed: 'left' + width: 150 }, form: { // labelMessage: '信息提示说明!!!', @@ -108,20 +164,36 @@ export const MesOrderMonthSub = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, table: { - width: 120, - fixed: 'left' + width: 120 }, }, { - label: '状态', - field: 'status', + label: '实际开工日期', + field: 'realStart', sort: 'custom', isSearch: true, isForm: false, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, table: { - width: 100, - fixed: 'left' + width: 180 + } + }, + { + label: '实际完工日期', + field: 'realFinish', + sort: 'custom', + isSearch: true, + isForm: false, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' }, + table: { + width: 180 + } }, { label: '是否回冲', @@ -130,8 +202,7 @@ export const MesOrderMonthSub = useCrudSchemas(reactive([ isSearch: true, isForm: false, table: { - width: 120, - fixed: 'left' + width: 120 }, }, { @@ -198,78 +269,6 @@ export const MesOrderMonthSub = useCrudSchemas(reactive([ }, isForm: false }, - { - label: '计划开始日期', - field: 'planBegin', - sort: 'custom', - isSearch: true, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 180 - }, - form: { - component: 'DatePicker', - componentProps: { - style: {width: '100%'}, - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x', - } - }, - }, - { - label: '计划结束日期', - field: 'planEnd', - sort: 'custom', - isSearch: true, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 180 - }, - form: { - component: 'DatePicker', - componentProps: { - style: {width: '100%'}, - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x', - } - }, - }, - { - label: '实际开工日期', - field: 'realStart', - sort: 'custom', - isSearch: true, - isForm: false, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 180 - } - }, - { - label: '实际完工日期', - field: 'realFinish', - sort: 'custom', - isSearch: true, - isForm: false, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 180 - } - }, { label: '备注', field: 'remark', @@ -281,7 +280,7 @@ export const MesOrderMonthSub = useCrudSchemas(reactive([ field: 'action', isForm: false, table: { - width: 150, + width: 160, fixed: 'right' } } diff --git a/src/views/qms/aql/aql.data.ts b/src/views/qms/aql/aql.data.ts index b29c071fe..f91dc68e6 100644 --- a/src/views/qms/aql/aql.data.ts +++ b/src/views/qms/aql/aql.data.ts @@ -7,7 +7,7 @@ export const AqlRules = reactive({ inspectionQualification: [required], sampleCharacterCode: [required], sampleSize: [required], - available: [required], + // available: [required], }) export const Aql = useCrudSchemas(reactive([ @@ -23,6 +23,10 @@ export const Aql = useCrudSchemas(reactive([ field: 'code', sort: 'custom', isSearch: true, + table: { + width: 175, + fixed: 'left' + } }, { label: '检验严格性', @@ -34,294 +38,462 @@ export const Aql = useCrudSchemas(reactive([ form: { component: 'SelectV2' }, + table: { + width: 130 + } }, { label: '样本字码', field: 'sampleCharacterCode', sort: 'custom', isSearch: true, + table: { + width: 110 + } }, { label: '样本量', field: 'sampleSize', sort: 'custom', + table: { + width: 95 + } }, { label: 'A0_010', field: 'a0separator010', sort: 'custom', + table: { + width: 105 + } }, { label: 'R0_010', field: 'r0separator010', sort: 'custom', + table: { + width: 105 + } }, { label: 'A0_015', field: 'a0separator015', sort: 'custom', + table: { + width: 105 + } }, { label: 'R0_015', field: 'r0separator015', sort: 'custom', + table: { + width: 105 + } }, { label: 'A0_025', field: 'a0separator025', sort: 'custom', + table: { + width: 105 + } }, { label: 'R0_025', field: 'r0separator025', sort: 'custom', + table: { + width: 105 + } }, { label: 'A0_040', field: 'a0separator040', sort: 'custom', + table: { + width: 105 + } }, { label: 'R0_040', field: 'r0separator040', sort: 'custom', + table: { + width: 105 + } }, { label: 'A0_065', field: 'a0separator065', sort: 'custom', + table: { + width: 105 + } }, { label: 'R0_065', field: 'r0separator065', sort: 'custom', + table: { + width: 105 + } }, { label: 'A0_10', field: 'a0separator10', sort: 'custom', + table: { + width: 105 + } }, { label: 'R0_10', field: 'r0separator10', sort: 'custom', + table: { + width: 105 + } }, { label: 'A0_15', field: 'a0separator15', sort: 'custom', + table: { + width: 105 + } }, { label: 'R0_15', field: 'r0separator15', sort: 'custom', + table: { + width: 105 + } }, { label: 'A0_25', field: 'a0separator25', sort: 'custom', + table: { + width: 105 + } }, { label: 'R0_25', field: 'r0separator25', sort: 'custom', + table: { + width: 105 + } }, { label: 'A0_40', field: 'a0separator40', sort: 'custom', + table: { + width: 105 + } }, { label: 'R0_40', field: 'r0separator40', sort: 'custom', + table: { + width: 105 + } }, { label: 'A0_65', field: 'a0separator65', sort: 'custom', + table: { + width: 105 + } }, { label: 'R0_65', field: 'r0separator65', sort: 'custom', + table: { + width: 105 + } }, { label: 'A1_0', field: 'a1separator0', sort: 'custom', + table: { + width: 105 + } }, { label: 'R1_0', field: 'r1separator0', sort: 'custom', + table: { + width: 105 + } }, { label: 'A1_5', field: 'a1separator5', sort: 'custom', + table: { + width: 105 + } }, { label: 'R1_5', field: 'r1separator5', sort: 'custom', + table: { + width: 105 + } }, { label: 'A2_5', field: 'a2separator5', sort: 'custom', + table: { + width: 105 + } }, { label: 'R2_5', field: 'r2separator5', sort: 'custom', + table: { + width: 105 + } }, { label: 'A4_0', field: 'a4separator0', sort: 'custom', + table: { + width: 105 + } }, { label: 'R4_0', field: 'r4separator0', sort: 'custom', + table: { + width: 105 + } }, { label: 'A6_5', field: 'a6separator5', sort: 'custom', + table: { + width: 105 + } }, { label: 'R6_5', field: 'r6separator5', sort: 'custom', + table: { + width: 105 + } }, { label: 'A10', field: 'a10', sort: 'custom', + table: { + width: 105 + } }, { label: 'R10', field: 'r10', sort: 'custom', + table: { + width: 105 + } }, { label: 'A15', field: 'a15', sort: 'custom', + table: { + width: 105 + } }, { label: 'R15', field: 'r15', sort: 'custom', + table: { + width: 105 + } }, { label: 'A25', field: 'a25', sort: 'custom', + table: { + width: 105 + } }, { label: 'R25', field: 'r25', sort: 'custom', + table: { + width: 105 + } }, { label: 'A40', field: 'a40', sort: 'custom', + table: { + width: 105 + } }, { label: 'R40', field: 'r40', sort: 'custom', + table: { + width: 105 + } }, { label: 'A65', field: 'a65', sort: 'custom', + table: { + width: 105 + } }, { label: 'R65', field: 'r65', sort: 'custom', + table: { + width: 105 + } }, { label: 'A100', field: 'a100', sort: 'custom', + table: { + width: 105 + } }, { label: 'R100', field: 'r100', sort: 'custom', + table: { + width: 105 + } }, { label: 'A150', field: 'a150', sort: 'custom', + table: { + width: 105 + } }, { label: 'R150', field: 'r150', sort: 'custom', + table: { + width: 105 + } }, { label: 'A250', field: 'a250', sort: 'custom', + table: { + width: 105 + } }, { label: 'R250', field: 'r250', sort: 'custom', + table: { + width: 105 + } }, { label: 'A400', field: 'a400', sort: 'custom', + table: { + width: 105 + } }, { label: 'R400', field: 'r400', sort: 'custom', + table: { + width: 105 + } }, { label: 'A650', field: 'a650', sort: 'custom', + table: { + width: 105 + } }, { label: 'R650', field: 'r650', sort: 'custom', + table: { + width: 105 + } }, { label: 'A1000', field: 'a1000', sort: 'custom', + table: { + width: 105 + } }, { label: 'R1000', field: 'r1000', sort: 'custom', + table: { + width: 105 + } }, - { - label: '是否可用', - field: 'available', - sort: 'custom', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', // 默认都是字符串类型其他暂不考虑 - form: { - component: 'SelectV2' - }, - }, + // { + // label: '是否可用', + // field: 'available', + // sort: 'custom', + // dictType: DICT_TYPE.TRUE_FALSE, + // dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + // form: { + // component: 'SelectV2' + // }, + // }, { label: '创建时间', field: 'createTime', sort: 'custom', formatter: dateFormatter, isForm: false, + table: { + width: 115 + } }, { label: '操作', diff --git a/src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts b/src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts index cfbacc86e..0ddaca2b2 100644 --- a/src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts +++ b/src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts @@ -30,7 +30,8 @@ export const InspectionJobMain = useCrudSchemas(reactive([ } }, table: { - width: 150 + width: 150, + fixed: 'left' } }, { @@ -276,34 +277,6 @@ export const InspectionJobMain = useCrudSchemas(reactive([ width: 150 } }, - { - label: '检验任务包装列表', - field: 'inspectionTaskPackageCode', - sort: 'custom', - isSearch: false, - form:{ - componentProps:{ - disabled:true - } - }, - table: { - width: 150 - } - }, - { - label: '检验任务工序列表', - field: 'inspectionTaskProcessCode', - sort: 'custom', - isSearch: false, - form:{ - componentProps:{ - disabled:true - } - }, - table: { - width: 150 - } - }, { label: '计划开始时间', field: 'planStartTime', @@ -539,6 +512,9 @@ export const InspectionJobPackage = useCrudSchemas(reactive([ isSearch: true, tableForm:{ disabled:true + }, + table:{ + width:150 } }, { @@ -548,6 +524,9 @@ export const InspectionJobPackage = useCrudSchemas(reactive([ isSearch: true, tableForm:{ disabled:true + }, + table:{ + width:150 } }, { @@ -557,6 +536,9 @@ export const InspectionJobPackage = useCrudSchemas(reactive([ isSearch: true, tableForm:{ disabled:true + }, + table:{ + width:150 } }, { @@ -570,6 +552,9 @@ export const InspectionJobPackage = useCrudSchemas(reactive([ }, tableForm:{ disabled:true + }, + table:{ + width:150 } }, { @@ -579,6 +564,9 @@ export const InspectionJobPackage = useCrudSchemas(reactive([ isSearch: true, tableForm:{ disabled:true + }, + table:{ + width:150 } }, { @@ -586,6 +574,9 @@ export const InspectionJobPackage = useCrudSchemas(reactive([ field: 'sampleAmount', sort: 'custom', isSearch: true, + table:{ + width:150 + } }, ])) //表单校验 diff --git a/src/views/qms/inspection/inspectionRecord/addForm.vue b/src/views/qms/inspection/inspectionRecord/addForm.vue index 3a30687dd..6014f7e97 100644 --- a/src/views/qms/inspection/inspectionRecord/addForm.vue +++ b/src/views/qms/inspection/inspectionRecord/addForm.vue @@ -37,25 +37,12 @@ -