diff --git a/.env.wyf b/.env.wyf index 77639491b..ee1d6eb3a 100644 --- a/.env.wyf +++ b/.env.wyf @@ -6,7 +6,7 @@ VITE_DEV=false # 请求路径 VITE_BASE_URL='http://192.168.0.108:12080' # 上传路径 -VITE_UPLOAD_URL='http://192.168.0.108:12080/api/admin-api/infra/file/upload' +VITE_UPLOAD_URL='http://192.168.0.108:12080/admin-api/infra/file/upload' # # 请求路径 # VITE_BASE_URL='http://dev.ccwin-in.com:25300/api' @@ -40,3 +40,9 @@ VITE_INTERFACE_URL='http://192.168.0.108:12080/magic/web/index.html' # 积木报表请求路径 VITE_JMREPORT_BASE_URL='http://192.168.0.108:12080' + +# # 自定义接口路径 +# VITE_INTERFACE_URL='http://dev.ccwin-in.com:25310/magic/web/index.html' + +# # 积木报表请求路径 +# VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:25310' diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 8b7c75020..0c54a52f8 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -15,6 +15,7 @@ :schema="formSchema" :is-col="true" @opensearchTable="opensearchTable" + @clearSearchInput="clearSearchInput" @onChange="onChange" @onBlur="onBlur" @onEnter="onEnter" @@ -413,7 +414,9 @@ const opensearchTable = ( ) } - +const clearSearchInput = (field)=>{ + emit('clearSearchInput',field) +} const sumFormDataByTable = () => { if(props.sumFormDataField){ const sumObject = {} @@ -603,7 +606,8 @@ const emit = defineEmits([ 'onEnter', 'inputNumberChange', 'formFormDateChange', - 'footButtonClick' + 'footButtonClick', + 'clearSearchInput' ]) //普通下拉改变事件 const formSelectChange = (field, val, row) => { diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index e6fe04d8c..d3308ecf0 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -409,10 +409,13 @@ if (!tabsList.value || tabsList.value && tabsList.value.length == otherList.leng prop: 'Detail' }) } -tabsList.value.unshift({ +if(!props.isBasic){ + tabsList.value.unshift({ label: '主数据', prop: 'Descriptions' -}) + }) +} + // Tabs const tabRef = ref() diff --git a/src/components/Form/src/Form.vue b/src/components/Form/src/Form.vue index 7aa98c2a1..2c031b91e 100644 --- a/src/components/Form/src/Form.vue +++ b/src/components/Form/src/Form.vue @@ -54,7 +54,7 @@ export default defineComponent({ vLoading: propTypes.bool.def(false), labelPosition: propTypes.string.def('left'), }, - emits: ['register','opensearchTable', 'onChange', 'onBlur','onEnter'], + emits: ['register','opensearchTable','clearSearchInput', 'onChange', 'onBlur','onEnter'], setup(props, { slots, expose, emit }) { // element form 实例 const elFormRef = ref>() @@ -124,6 +124,9 @@ export default defineComponent({ emit('opensearchTable',field, searchField, searchTitle, searchAllSchemas, searchPage, searchCondition,multiple) } + const clearSearchInput = (field) => { + emit('clearSearchInput') + } expose({ setValues, formModel, @@ -258,6 +261,7 @@ export default defineComponent({ }else{ formModel.value[item.field] = '' } + clearSearchInput(item.field) }}> ) @@ -292,6 +296,7 @@ export default defineComponent({ }else{ formModel.value[item.field] = '' } + clearSearchInput(item.field) }}> ) diff --git a/src/components/Search/src/Search.vue b/src/components/Search/src/Search.vue index 78865acf7..3dd5b5ff3 100644 --- a/src/components/Search/src/Search.vue +++ b/src/components/Search/src/Search.vue @@ -66,8 +66,23 @@ const newSchema = computed(() => { } ]) } + updateSort(schema) return schema }) +const updateSort= (val)=>{ + val.forEach(item=>{ + if(!item.sortSearchDefault){ + if(item.field=="action"){ + item.sortSearchDefault = 9999 // 查询重置等操作按钮 + }else{ + item.sortSearchDefault = 999 // 默认999 + } + } + }) + val.sort((column1,column2)=>{ + return column1.sortSearchDefault - column2.sortSearchDefault + }) +} const { register, elFormRef, methods } = useForm({ model: props.model || {} diff --git a/src/components/Table/src/Table.vue b/src/components/Table/src/Table.vue index a7a988359..97a05b433 100644 --- a/src/components/Table/src/Table.vue +++ b/src/components/Table/src/Table.vue @@ -250,18 +250,18 @@ export default defineComponent({ // 默认排序 const updateSort= (val)=>{ val.forEach(item=>{ - if(!item.sortDefault){ + if(!item.sortTableDefault){ if(item.fixed=='left'){ - item.sortDefault = 0 + item.sortTableDefault = 0 }else if(item.fixed=='right'){ - item.sortDefault = 9999 + item.sortTableDefault = 9999 }else{ - item.sortDefault = 999 // 默认999 + item.sortTableDefault = 999 // 默认999 } } }) val.sort((column1,column2)=>{ - return column1.sortDefault - column2.sortDefault + return column1.sortTableDefault - column2.sortTableDefault }) } diff --git a/src/components/TableForm/src/TableForm.vue b/src/components/TableForm/src/TableForm.vue index 131269e58..07d517be8 100644 --- a/src/components/TableForm/src/TableForm.vue +++ b/src/components/TableForm/src/TableForm.vue @@ -65,7 +65,7 @@ :placeholder="headerItem?.tableForm?.placeholder || '请输入' + headerItem.label" :disabled="headerItem?.tableForm?.disabled ? true: headerItem?.tableForm?.isInpuFocusShow ? true : false" style="flex:1" - @blur="inputStringBlur(headerItem.field, $event, row)" + @blur="inputStringBlur(headerItem.field, row[headerItem.field], row)" /> diff --git a/src/components/rowDrop/index.vue b/src/components/rowDrop/index.vue index a8333f833..20eecf240 100644 --- a/src/components/rowDrop/index.vue +++ b/src/components/rowDrop/index.vue @@ -202,18 +202,18 @@ const initSelectSta = () => { } const updateSort= (val)=>{ val.forEach(item=>{ - if(!item.sortDefault){ + if(!item.sortTableDefault){ if(item.fixed=='left'){ - item.sortDefault = 0 + item.sortTableDefault = 0 }else if(item.fixed=='right'){ - item.sortDefault = 9999 + item.sortTableDefault = 9999 }else{ - item.sortDefault = 999 // 默认999 + item.sortTableDefault = 999 // 默认999 } } }) val.sort((column1,column2)=>{ - return column1.sortDefault - column2.sortDefault + return column1.sortTableDefault - column2.sortTableDefault }) } // 更新主列表字段 diff --git a/src/hooks/web/useCrudSchemas.ts b/src/hooks/web/useCrudSchemas.ts index 1028821e3..f74c14467 100644 --- a/src/hooks/web/useCrudSchemas.ts +++ b/src/hooks/web/useCrudSchemas.ts @@ -140,7 +140,8 @@ const filterSearchSchema = (crudSchema: CrudSchema[], allSchemas: AllSchemas): F component, ...schemaItem.search, field: schemaItem.field, - label: schemaItem.search?.label || schemaItem.label + label: schemaItem.search?.label || schemaItem.label, + sortSearchDefault: schemaItem.sortSearchDefault || 999, }, { componentProps: comonentProps } ) diff --git a/src/layout/components/CategoryHeader.vue b/src/layout/components/CategoryHeader.vue index ef257e4d2..824731f8b 100644 --- a/src/layout/components/CategoryHeader.vue +++ b/src/layout/components/CategoryHeader.vue @@ -60,9 +60,9 @@ export default defineComponent({ return appStore.getCategoryRoutePath }) return () => ( -
+
- ([ valueFormat: 'x', } }, + table: { + width: 175 + } }, { label: '是否可用', diff --git a/src/views/qms/basicDataManage/counter/counter.data.ts b/src/views/qms/basicDataManage/counter/counter.data.ts index c5aa501fe..9cdd8ac2d 100644 --- a/src/views/qms/basicDataManage/counter/counter.data.ts +++ b/src/views/qms/basicDataManage/counter/counter.data.ts @@ -19,31 +19,47 @@ export const Counter = useCrudSchemas(reactive([ field: 'itemCode', sort: 'custom', isSearch: true, - fixed: 'left' + fixed: 'left', + table: { + fixed: 'left', + width: 175 + } }, { label: '检验类型编码', field: 'inspectionType', sort: 'custom', - isSearch: true + isSearch: true, + table: { + width: 175 + } }, { label: '供应商编码', field: 'supplierCode', sort: 'custom', - isSearch: true + isSearch: true, + table: { + width: 175 + } }, { label: '连续合格次数', field: 'qualifiedTimes', sort: 'custom', isSearch: false, + table: { + width: 140 + } }, { label: '最后合格批次', field: 'lastQualifiedBatch', sort: 'custom', - isSearch: false + isSearch: false, + table: { + width: 140 + } }, { label: '最后合格时间', @@ -65,6 +81,9 @@ export const Counter = useCrudSchemas(reactive([ type: 'datetime', valueFormat: 'x' } + }, + table: { + width: 175 } }, { @@ -75,6 +94,9 @@ export const Counter = useCrudSchemas(reactive([ form: { component: 'InputNumber', value: 0 + }, + table: { + width: 140 } }, { @@ -85,6 +107,9 @@ export const Counter = useCrudSchemas(reactive([ form: { component: 'InputNumber', value: 0 + }, + table: { + width: 175 } }, { @@ -107,6 +132,9 @@ export const Counter = useCrudSchemas(reactive([ type: 'datetime', valueFormat: 'x' } + }, + table: { + width: 175 } }, { @@ -114,6 +142,9 @@ export const Counter = useCrudSchemas(reactive([ field: 'nextStage', sort: 'custom', isSearch: false, + table: { + width: 140 + } }, // { // label: '操作', diff --git a/src/views/qms/basicDataManage/inspectionScheme/addForm.vue b/src/views/qms/basicDataManage/inspectionScheme/addForm.vue index 135df48f1..7d4e8c830 100644 --- a/src/views/qms/basicDataManage/inspectionScheme/addForm.vue +++ b/src/views/qms/basicDataManage/inspectionScheme/addForm.vue @@ -18,7 +18,7 @@
- + { data.value.programmeTemplateName = val[0].description data.value['dynamicUpdateCode'] = val[0].dynamicUpdateCode data.value.dynamicUpdateName = val[0].dynamicUpdateName + console.log(val[0]) } if (formField == 'programmeTemplateCode') { diff --git a/src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts b/src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts index c282caae8..bf7dab566 100644 --- a/src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts +++ b/src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts @@ -90,7 +90,7 @@ export const InspectionSchemeMain = useCrudSchemas(reactive([ field: 'itemName', sort: 'custom', table: { - width: 150 + width: 200 }, isSearch: true, }, @@ -106,6 +106,9 @@ export const InspectionSchemeMain = useCrudSchemas(reactive([ label: '描述', field: 'description', sort: 'custom', + table: { + width: 150 + }, }, { label: '版本', field: 'version', @@ -120,14 +123,14 @@ export const InspectionSchemeMain = useCrudSchemas(reactive([ dictClass: 'string', sort: 'custom', table: { - width: 150 + width: 175 } }, { label: '检验模板编码', field: 'programmeTemplateCode', sort: 'custom', table: { - width: 150 + width: 175 } }, { label: '拆分规则', @@ -136,7 +139,7 @@ export const InspectionSchemeMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.SPLIT_RULES, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 table: { - width: 150 + width: 175 }, }, { label: 'aql', @@ -176,6 +179,9 @@ export const InspectionSchemeMain = useCrudSchemas(reactive([ valueFormat: 'x', } }, + table: { + width: 175 + }, }, { label: '失效时间', @@ -195,6 +201,9 @@ export const InspectionSchemeMain = useCrudSchemas(reactive([ valueFormat: 'x', } }, + table: { + width: 175 + }, }, { label: '是否可用', diff --git a/src/views/qms/basicDataManage/inspectionTemplate/inspectionTemplate.data.ts b/src/views/qms/basicDataManage/inspectionTemplate/inspectionTemplate.data.ts index e98a400e5..fd906fac4 100644 --- a/src/views/qms/basicDataManage/inspectionTemplate/inspectionTemplate.data.ts +++ b/src/views/qms/basicDataManage/inspectionTemplate/inspectionTemplate.data.ts @@ -89,8 +89,7 @@ export const InspectionTemplateMain = useCrudSchemas(reactive([ label: '动态修改规则', field: 'dynamicUpdateName', sort: 'custom', - }, - ,{ + },{ label: '版本', field: 'version', sort: 'custom', diff --git a/src/views/qms/inspection/inspectionJob/addForm.vue b/src/views/qms/inspection/inspectionJob/addForm.vue index fd6a47a7e..983e249ad 100644 --- a/src/views/qms/inspection/inspectionJob/addForm.vue +++ b/src/views/qms/inspection/inspectionJob/addForm.vue @@ -62,9 +62,9 @@ - +
- +
@@ -318,7 +318,7 @@ const rules = ref({ { required: true, message: '请选择评估代码', trigger: 'blur' } ], 'inspectionJobCharacteristicsUpdateReqVO.inspectionQty': [ - { required: true, message: '请输入检验次数', trigger: 'blur' } + { required: true, message: '请输入样品份数', trigger: 'blur' } ], qualifiedQuantity: [{ required: true, message: '请输入选择结束时间', trigger: 'blur' }] }) @@ -533,6 +533,7 @@ const submitForm = async () => { data.value.packageList.forEach(cur=>{ number += parseFloat(cur.sampleAmount) }) + number = number.toFixed('2') if(number != data.value.sampleTotalAmount){ message.error(`采样数量之和必须等于采样总数量`) return @@ -619,7 +620,7 @@ const submitForm = async () => { return; } if(isEmptyNumberList){ - message.error('合格数量和不合格数量之和必须等于检验次数') + message.error('合格数量和不合格数量之和必须等于样品份数') return; } if (formType.value == 'create') { diff --git a/src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts b/src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts index c66932fea..44b6cbc1f 100644 --- a/src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts +++ b/src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts @@ -30,7 +30,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([ } }, table: { - width: 165, + width: 200, fixed: 'left' } }, @@ -45,7 +45,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([ } }, table: { - width: 150 + width: 200 } }, { @@ -59,7 +59,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([ } }, table: { - width: 150 + width: 175 } },{ label: '供应商名称', @@ -67,7 +67,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([ sort: 'custom', isSearch: false, table: { - width: 150 + width: 175 }, form: { componentProps:{ @@ -95,7 +95,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([ sort: 'custom', isSearch: false, table: { - width: 150 + width: 175 }, form: { componentProps:{ @@ -188,7 +188,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([ } }, table: { - width: 150 + width: 200 } }, { @@ -324,7 +324,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -353,7 +353,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { diff --git a/src/views/qms/inspection/inspectionRecord/addForm.vue b/src/views/qms/inspection/inspectionRecord/addForm.vue index f5bc407e4..2cf053675 100644 --- a/src/views/qms/inspection/inspectionRecord/addForm.vue +++ b/src/views/qms/inspection/inspectionRecord/addForm.vue @@ -26,6 +26,7 @@ :tableData="data.packageList" :isShowButton="false" :isShowReduceButton="false" + @inputStringBlur="tableFormBlur" />
@@ -126,10 +127,10 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any data.value = JSON.parse(JSON.stringify(row)) data.value.packageList = await InspectionRecordPackageApi.getInspectionRecordPackageList(row.id) data.value.packageList.forEach(item=>{ - item.qualifiedAmount =0 - item.noQualifiedAmount =0 - item.destroyAmount =0 - item.frozenAmount =0 + item.qualifiedAmount = item.qualifiedAmount?item.qualifiedAmount:0 + item.noQualifiedAmount = item.noQualifiedAmount?item.noQualifiedAmount:0 + item.destroyAmount = item.destroyAmount?item.destroyAmount:0 + item.frozenAmount = item.frozenAmount?item.frozenAmount:0 }) dialogVisible.value = true tableSchemas.value.tableFormColumns.map(item=>{ @@ -141,10 +142,10 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any item.qualifiedAmount = item.amount }) } - // 全不合格只能输入不合格数量 + // 让步接收和部分合格 else if(row.useDecision == 2 || row.useDecision == 6){ tableSchemas.value.tableFormColumns.map(item=>{ - if(item.field == 'qualifiedAmount' ||item.field == 'noQualifiedAmount'){ + if(item.field == 'noQualifiedAmount'){ item.tableForm.disabled = false }else{ item.tableForm.disabled = true @@ -162,8 +163,12 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any item.frozenAmount = item.amount }) } + // 评估代码值是1,接收时候,使用决策下拉列表是全部合格 + if(row.estimateCode == 1){ + data.value.useDecision = '1' + } nextTick(() => { - formMainRef.value.setValues(row) + formMainRef.value.setValues( data.value) }) } dialogVisible.value = true @@ -205,8 +210,11 @@ const onChange = (field, cur)=>{ } // 全不合格只能输入不合格数量 else if(cur == 2 || cur == 6){ + data.value.packageList.forEach(item=>{ + item.qualifiedAmount = item.amount + }) tableSchemas.value.tableFormColumns.map(item=>{ - if(item.field == 'qualifiedAmount' ||item.field == 'noQualifiedAmount'){ + if(item.field == 'noQualifiedAmount'){ item.tableForm.disabled = false }else{ item.tableForm.disabled = true @@ -226,6 +234,16 @@ const onChange = (field, cur)=>{ } } } +// 失去焦点 +const tableFormBlur = (field, val,row)=>{ + if( row.amount < val){ + row.noQualifiedAmount = row.amount + row.qualifiedAmount = 0 + }else{ + row.qualifiedAmount = row.amount - val + } + +} const buttonBaseClick = (val) => { // 保存 if (val == 'save') { diff --git a/src/views/qms/inspection/inspectionRecord/inspectionRecordMain.data.ts b/src/views/qms/inspection/inspectionRecord/inspectionRecordMain.data.ts index 54cfb535e..1d5eb9a1c 100644 --- a/src/views/qms/inspection/inspectionRecord/inspectionRecordMain.data.ts +++ b/src/views/qms/inspection/inspectionRecord/inspectionRecordMain.data.ts @@ -16,7 +16,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ isSearch: true, isForm:false, table: { - width: 165, + width: 200, fixed: 'left' } }, @@ -27,7 +27,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ isSearch: true, isForm:false, table: { - width: 150 + width: 200 } }, { @@ -37,7 +37,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ isSearch: false, isForm:false, table: { - width: 150 + width: 200 } }, { @@ -47,7 +47,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ isSearch: false, isForm:false, table: { - width: 150 + width: 200 } },{ label: '供应商名称', @@ -56,7 +56,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ isSearch: false, isForm:false, table: { - width: 150 + width: 200 }, form: { componentProps:{ @@ -86,7 +86,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ isSearch: false, isForm:false, table: { - width: 150 + width: 200 }, form: { componentProps:{ @@ -111,7 +111,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ isSearch: false, isForm:false, table: { - width: 150 + width: 200 } }, { @@ -258,7 +258,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -287,7 +287,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -316,7 +316,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -345,7 +345,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -400,7 +400,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 170 + width: 175 } }, @@ -582,7 +582,8 @@ export const InspectionRecordPackage = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, tableForm:{ - disabled:true + disabled:true, + width:200 }, table:{ width:150 @@ -594,7 +595,8 @@ export const InspectionRecordPackage = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, tableForm:{ - disabled:true + disabled:true, + width:160 }, table:{ width:150 @@ -606,7 +608,8 @@ export const InspectionRecordPackage = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, tableForm:{ - disabled:true + disabled:true, + width:150 }, table:{ width:150 @@ -622,7 +625,8 @@ export const InspectionRecordPackage = useCrudSchemas(reactive([ value: 0 }, tableForm:{ - disabled:true + disabled:true, + width:120 }, table:{ width:150 @@ -634,7 +638,8 @@ export const InspectionRecordPackage = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, tableForm:{ - disabled:true + disabled:true, + width:120 }, table:{ width:150 @@ -646,7 +651,8 @@ export const InspectionRecordPackage = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, tableForm:{ - disabled:true + disabled:true, + width:100 }, table:{ width:150 @@ -658,7 +664,8 @@ export const InspectionRecordPackage = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, tableForm:{ - disabled:true + disabled:true, + width:100 }, table:{ width:150 @@ -670,7 +677,8 @@ export const InspectionRecordPackage = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, tableForm:{ - disabled:true + disabled:true, + width:100 }, table:{ width:150 @@ -682,7 +690,8 @@ export const InspectionRecordPackage = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, tableForm:{ - disabled:true + disabled:true, + width:100 }, table:{ width:150 @@ -694,7 +703,8 @@ export const InspectionRecordPackage = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, tableForm:{ - disabled:true + disabled:true, + width:100 }, table:{ width:150 diff --git a/src/views/qms/inspection/inspectionRequest/inspectionMain.data.ts b/src/views/qms/inspection/inspectionRequest/inspectionMain.data.ts index 5e3ec8d56..a127aa011 100644 --- a/src/views/qms/inspection/inspectionRequest/inspectionMain.data.ts +++ b/src/views/qms/inspection/inspectionRequest/inspectionMain.data.ts @@ -58,7 +58,7 @@ export const InspectionMain = useCrudSchemas(reactive([ } }, table: { - width: 150 + width: 175 } }, { @@ -87,7 +87,7 @@ export const InspectionMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -115,7 +115,7 @@ export const InspectionMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -143,7 +143,7 @@ export const InspectionMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -171,7 +171,7 @@ export const InspectionMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -180,7 +180,7 @@ export const InspectionMain = useCrudSchemas(reactive([ sort: 'custom', isSearch: false, table: { - width: 150 + width: 175 }, form:{ componentProps: { @@ -190,6 +190,11 @@ export const InspectionMain = useCrudSchemas(reactive([ searchField: 'code', // 查询弹窗赋值字段 searchPage: SupplierApi.getSupplierPage, // 查询弹窗所需分页方法 multiple:false, + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] } } }, @@ -199,7 +204,7 @@ export const InspectionMain = useCrudSchemas(reactive([ sort: 'custom', isSearch: false, table: { - width: 150 + width: 175 }, form:{ componentProps: { @@ -223,6 +228,11 @@ export const InspectionMain = useCrudSchemas(reactive([ searchField: 'code', // 查询弹窗赋值字段 searchPage: ItemApi.getItembasicPage, // 查询弹窗所需分页方法 multiple:false, + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] } } }, @@ -323,7 +333,7 @@ export const InspectionMain = useCrudSchemas(reactive([ } }, table: { - width: 150 + width: 175 } }, // { diff --git a/src/views/qms/qualityNotice/qualityNoticeMain.data.ts b/src/views/qms/qualityNotice/qualityNoticeMain.data.ts index 8e914280b..b38140725 100644 --- a/src/views/qms/qualityNotice/qualityNoticeMain.data.ts +++ b/src/views/qms/qualityNotice/qualityNoticeMain.data.ts @@ -16,7 +16,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ isSearch: true, isForm: false, table: { - width: 150, + width: 200, fixed: 'left' } }, @@ -38,7 +38,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ isSearch: false, isForm: false, table: { - width: 150 + width: 200 } }, { @@ -48,7 +48,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ isSearch: false, isForm: false, table: { - width: 150 + width: 200 } }, { label: '优先级', @@ -121,7 +121,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -150,7 +150,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -179,7 +179,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -219,7 +219,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -248,7 +248,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -297,7 +297,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -312,7 +312,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ value: 0 }, table: { - width: 150 + width: 175 } }, { diff --git a/src/views/qms/sampleCode/sampleCode.data.ts b/src/views/qms/sampleCode/sampleCode.data.ts index 2c8bb6541..b9fe5d648 100644 --- a/src/views/qms/sampleCode/sampleCode.data.ts +++ b/src/views/qms/sampleCode/sampleCode.data.ts @@ -106,6 +106,9 @@ export const SampleCode = useCrudSchemas(reactive([ valueFormat: 'x', } }, + table: { + width: 175 + } }, { label: '是否可用', diff --git a/src/views/qms/samplingProcess/samplingProcess.data.ts b/src/views/qms/samplingProcess/samplingProcess.data.ts index 8c21e4cea..b2ac2006e 100644 --- a/src/views/qms/samplingProcess/samplingProcess.data.ts +++ b/src/views/qms/samplingProcess/samplingProcess.data.ts @@ -21,6 +21,7 @@ export const SamplingProcess = useCrudSchemas(reactive([ isSearch: true, isForm: false, table: { + width: 175, fixed: 'left' } }, @@ -29,6 +30,9 @@ export const SamplingProcess = useCrudSchemas(reactive([ field: 'description', sort: 'custom', isSearch: true, + table: { + width: 175 + } }, { label: '取样类型', @@ -40,6 +44,9 @@ export const SamplingProcess = useCrudSchemas(reactive([ form: { component: 'Select' }, + table: { + width: 140 + } }, { label: '评估模式', @@ -50,16 +57,25 @@ export const SamplingProcess = useCrudSchemas(reactive([ form: { component: 'Select' }, + table: { + width: 140 + } }, { label: '样品量', field: 'sampleSize', sort: 'custom', + table: { + width: 140 + } }, { - label: '检验次数', + label: '样品份数', field: 'inspectionQty', sort: 'custom', + table: { + width: 140 + } }, { label: '采样方案编码', @@ -75,6 +91,9 @@ export const SamplingProcess = useCrudSchemas(reactive([ }, } }, + table: { + width: 175 + } }, { label: '创建时间', @@ -94,6 +113,9 @@ export const SamplingProcess = useCrudSchemas(reactive([ valueFormat: 'x', } }, + table: { + width: 175 + } }, { label: '是否可用', diff --git a/src/views/wms/agvManage/interfaceInfo/index.vue b/src/views/wms/agvManage/interfaceInfo/index.vue index f89506d15..15fcdb1bc 100644 --- a/src/views/wms/agvManage/interfaceInfo/index.vue +++ b/src/views/wms/agvManage/interfaceInfo/index.vue @@ -27,9 +27,9 @@ v-model:currentPage="tableObject.currentPage" v-model:sort="tableObject.sort" > -