diff --git a/src/api/eam/sparePartsOutLocationRecordDetail/index.ts b/src/api/eam/sparePartsOutLocationRecordDetail/index.ts index c4ea46811..afffa390c 100644 --- a/src/api/eam/sparePartsOutLocationRecordDetail/index.ts +++ b/src/api/eam/sparePartsOutLocationRecordDetail/index.ts @@ -28,45 +28,49 @@ export const getSparePartsOutLocationDetailRecordPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = { ...params } - return await request.post({ url: '/eam/spare-parts-in-location-main-record/senior', data }) + return await request.post({ url: '/eam/spare-parts-out-location-detail-record/senior', data }) } else { - return await request.get({ url: `/eam/spare-parts-in-location-main-record/page`, params }) + return await request.get({ url: `/eam/spare-parts-out-location-detail-record/page`, params }) } } // 查询备件入库记录主详情 export const getSparePartsOutLocationDetailRecord = async (id: number) => { - return await request.get({ url: `/eam/spare-parts-in-location-main-record/get?id=` + id }) + return await request.get({ url: `/eam/spare-parts-out-location-detail-record/get?id=` + id }) } // 新增备件入库记录主 export const createSparePartsOutLocationDetailRecord = async ( - data: SparePartsInLocationMainRecordVO + data: SparePartsOutLocationRecordDetailVO ) => { - return await request.post({ url: `/eam/spare-parts-in-location-main-record/create`, data }) + return await request.post({ url: `/eam/spare-parts-out-location-detail-record/create`, data }) } // 修改备件入库记录主 export const updateSparePartsOutLocationDetailRecord = async ( - data: SparePartsInLocationMainRecordVO + data: SparePartsOutLocationRecordDetailVO ) => { - return await request.put({ url: `/eam/spare-parts-in-location-main-record/update`, data }) + return await request.put({ url: `/eam/spare-parts-out-location-detail-record/update`, data }) } // 删除备件入库记录主 export const deleteSparePartsOutLocationDetailRecord = async (id: number) => { - return await request.delete({ url: `/eam/spare-parts-in-location-main-record/delete?id=` + id }) + return await request.delete({ + url: `/eam/spare-parts-out-location-detail-record/delete?id=` + id + }) } // 导出备件入库记录主 Excel export const exportSparePartsOutLocationDetailRecord = async (params) => { return await request.download({ - url: `/eam/spare-parts-in-location-main-record/export-excel`, + url: `/eam/spare-parts-out-location-detail-record/export-excel`, params }) } // 下载用户导入模板 export const importTemplate = () => { - return request.download({ url: '/eam/spare-parts-in-location-main-record/get-import-template' }) + return request.download({ + url: '/eam/spare-parts-out-location-detail-record/get-import-template' + }) } diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index bd4735411..13c1698d7 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -139,7 +139,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import ButtonBase from '@/components/XButton/src/ButtonBase.vue' import TableForm from '@/components/TableForm/src/TableForm.vue' import TableFormCountPlan from '@/components/TableFormCountPlan/src/TableFormCountPlan.vue' - +import {DICT_TYPE, getStrDictOptions} from '@/utils/dict' import { tableFormBlurVer,FormBlur,getListByBottonInput } from '@/api/wms/business/business' const props = defineProps({ // 显示窗口宽度设置 diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index 966c5a8a1..aaf0310ae 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -625,6 +625,9 @@ const titleNameRef = ref() const titleValueRef = ref() const count =ref(0) const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => { + if(tabRef.value){ + tabRef.value.changeCurrent(0) + } annexTableData.value = [] titleNameRef.value = titleName titleValueRef.value = titleValue diff --git a/src/components/Form/src/Form.vue b/src/components/Form/src/Form.vue index 6babae951..55e4e7726 100644 --- a/src/components/Form/src/Form.vue +++ b/src/components/Form/src/Form.vue @@ -272,6 +272,7 @@ export default defineComponent({ }} onBlur={(e)=>{onBlur(item.field, e)}} + onChange={(e)=>{onChange(item.field, e)}} v-slots={{ suffix: () => ( { @@ -324,6 +325,7 @@ export default defineComponent({ }} onBlur={(e)=>{onBlur(item.field,formModel.value[item.field])}} + onChange={(e)=>{onChange(item.field,formModel.value[item.field])}} disabled={item?.componentProps?.enterSearch?false:true} v-slots={{ suffix: () => ( { diff --git a/src/components/RouterSearch/index.vue b/src/components/RouterSearch/index.vue index 0966638e6..f8b79ab99 100644 --- a/src/components/RouterSearch/index.vue +++ b/src/components/RouterSearch/index.vue @@ -17,8 +17,8 @@ /> --> -
- +
+ \ No newline at end of file diff --git a/src/components/Tabs/src/Tabs.vue b/src/components/Tabs/src/Tabs.vue index 8c22163f6..57add6cef 100644 --- a/src/components/Tabs/src/Tabs.vue +++ b/src/components/Tabs/src/Tabs.vue @@ -32,7 +32,13 @@ const change = (item, index) => { current.value = index emit('change',item,index) } + +const changeCurrent = (index) =>{ + change(props.tabsList[index],index) +} const emit = defineEmits(['change']) +defineExpose({ changeCurrent}) + diff --git a/src/layout/components/CategoryHeader.vue b/src/layout/components/CategoryHeader.vue index 824731f8b..e0f6ee0f3 100644 --- a/src/layout/components/CategoryHeader.vue +++ b/src/layout/components/CategoryHeader.vue @@ -9,6 +9,8 @@ import { ElMenu, ElMenuItem } from 'element-plus' import { usePermissionStore } from '@/store/modules/permission' import { hasOneShowingChild } from '@/layout/components/Menu/src/helper' import { useRenderMenuTitle } from '@/layout/components/Menu/src/components/useRenderMenuTitle' +import ToolHeader from './ToolHeader.vue' + // 头部工具 import { useDesign } from '@/hooks/web/useDesign' const { getPrefixCls, variables } = useDesign() @@ -101,6 +103,7 @@ export default defineComponent({ } }} +
) } @@ -127,7 +130,11 @@ $prefix-cls: #{$namespace}-tool-header; left:0; z-index: 999; } - + .tool-header{ + position: absolute; + right: 0px; + top: 0px; + } } .categoryheader{ padding-left: 20px; diff --git a/src/layout/components/Message/src/Message.vue b/src/layout/components/Message/src/Message.vue index 4ca667fbd..67ea37a33 100644 --- a/src/layout/components/Message/src/Message.vue +++ b/src/layout/components/Message/src/Message.vue @@ -62,7 +62,7 @@ onBeforeUnmount(() => { diff --git a/src/layout/components/ToolHeader.vue b/src/layout/components/ToolHeader.vue index 22d7a457c..ca7328fb9 100644 --- a/src/layout/components/ToolHeader.vue +++ b/src/layout/components/ToolHeader.vue @@ -54,28 +54,28 @@ export default defineComponent({ 'dark:bg-[var(--el-bg-color)]' ]} > - {layout.value !== 'top' ? ( + {/* {layout.value !== 'top' ? (
{hamburger.value && layout.value !== 'cutMenu' ? ( ) : undefined} {breadcrumb.value ? : undefined}
- ) : undefined} + ) : undefined} */}
{search.value ? () : undefined} - {screenfull.value ? ( + {/* {screenfull.value ? ( - ) : undefined} - {size.value ? ( + ) : undefined} */} + {/* {size.value ? ( - ) : undefined} - {locale.value ? ( + ) : undefined} */} + {/* {locale.value ? ( - ) : undefined} + ) : undefined} */} {message.value ? ( ) : undefined} diff --git a/src/layout/components/UserInfo/src/UserInfo.vue b/src/layout/components/UserInfo/src/UserInfo.vue index 3c03ea7d2..3521bd443 100644 --- a/src/layout/components/UserInfo/src/UserInfo.vue +++ b/src/layout/components/UserInfo/src/UserInfo.vue @@ -54,7 +54,7 @@ const toDocument = () => {
- + {{ userName }}
@@ -62,7 +62,7 @@ const toDocument = () => { -
{{ t('common.profile') }}
+
{{ t('common.profile') }}
- + ([ - { - label: 'id', - field: 'id', - sort: 'custom', - }, - { - label: '经验标题', - field: 'name', - sort: 'custom', - isSearch: true, - }, - { - label: '经验内容', - field: 'content', - sort: 'custom', - isTable:true, - form: { - componentProps: { - type: 'textarea', - height: 200 +export const MaintainExperience = useCrudSchemas( + reactive([ + { + label: '经验标题', + field: 'name', + sort: 'custom', + isSearch: true + }, + { + label: '经验内容', + field: 'content', + sort: 'custom', + isTable: true, + form: { + componentProps: { + type: 'textarea', + height: 200 + } + } + }, + + { + label: '保养工单编号', + field: 'maintainNumber', + sort: 'custom', + isSearch: true, + isForm: false + }, + { + label: '工单类型', + field: 'orderType', + sort: 'custom', + isForm: false, + isTable: false, + form: { + component: 'SelectV2' } }, - }, - - { - label: '保养工单编号', - field: 'maintainNumber', - sort: 'custom', - isSearch: true, - isForm: false, - }, - { - label: '工单类型', - field: 'orderType', - sort: 'custom', - isForm: false, - isTable: false, - form: { - component: 'SelectV2' + { + label: '来源字典', + field: 'sources', + sort: 'custom', + dictType: DICT_TYPE.EAM_MAINTENANCE_SOURCES, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: false, + isForm: false + }, + { + label: '保养类型', + field: 'type', + sort: 'custom', + dictType: DICT_TYPE.DEVICE_TYPE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: false, + isForm: false }, - }, - { - label: '来源字典', - field: 'sources', - sort: 'custom', - dictType: DICT_TYPE.EAM_MAINTENANCE_SOURCES, - dictClass: 'string', // 默认都是字符串类型其他暂不考虑 - isSearch: false, - isForm:false - }, - { - label: '保养类型', - field: 'type', - sort: 'custom', - dictType: DICT_TYPE.DEVICE_TYPE, - dictClass: 'string', // 默认都是字符串类型其他暂不考虑 - isSearch: false, - isForm:false - }, - { - label: '设备/工装编号', - field: 'equipmentCode', - sort: 'custom', - isSearch:false, - isForm:false - }, - { - label: '设备/工装名称', - field: 'equipmentName', - sort: 'custom', - isSearch:false, - isForm:false - }, - { - label: '创建时间', - field: 'createTime', - sort: 'custom', - formatter: dateFormatter, - isForm: false, - detail:{ - dateFormat: 'YYYY-MM-DD HH:mm:ss' + { + label: '设备/工装编号', + field: 'equipmentCode', + sort: 'custom', + isSearch: false, + isForm: false + }, + { + label: '设备/工装名称', + field: 'equipmentName', + sort: 'custom', + isSearch: false, + isForm: false + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } } - }, - - - -])) + ]) +) diff --git a/src/views/eam/repairExperience/repairExperience.data.ts b/src/views/eam/repairExperience/repairExperience.data.ts index 3f0e48465..0582461b7 100644 --- a/src/views/eam/repairExperience/repairExperience.data.ts +++ b/src/views/eam/repairExperience/repairExperience.data.ts @@ -4,114 +4,109 @@ import { dateFormatter } from '@/utils/formatTime' // 表单校验 export const RepairExperienceRules = reactive({ name: [required], - repairNumber: [required], + repairNumber: [required] }) -export const RepairExperience = useCrudSchemas(reactive([ +export const RepairExperience = useCrudSchemas( + reactive([ + { + label: '经验标题', + field: 'name', + sort: 'custom', + isSearch: true + }, + { + label: '维修工单编号', + field: 'repairNumber', + sort: 'custom', + isSearch: true, - { - label: 'id', - field: 'id', - sort: 'custom', - }, - { - label: '经验标题', - field: 'name', - sort: 'custom', - isSearch: true, - }, - { - label: '维修工单编号', - field: 'repairNumber', - sort: 'custom', - isSearch: true, - - isForm: false, - }, - { - label: '经验内容', - field: 'content', - sort: 'custom', - isSearch:false, - form: { - component: 'Input', - componentProps: { - type:'textarea', - valueHtml: '', - height: 200 + isForm: false + }, + { + label: '经验内容', + field: 'content', + sort: 'custom', + isSearch: false, + form: { + component: 'Input', + componentProps: { + type: 'textarea', + valueHtml: '', + height: 200 + } } }, - }, - - { - label: '来源字典', - field: 'sources', - sort: 'custom', - dictType: DICT_TYPE.EAM_MAINTENANCE_SOURCES, - dictClass: 'string', // 默认都是字符串类型其他暂不考虑 - isSearch: false, - isForm:false - }, - { - label: '报修类型', - field: 'type', - sort: 'custom', - dictType: DICT_TYPE.DEVICE_TYPE, - dictClass: 'string', // 默认都是字符串类型其他暂不考虑 - isSearch: false, - isForm:false - }, - { - label: '设备/工装编号', - field: 'equipmentCode', - sort: 'custom', - isSearch:false, - isForm:false - }, - { - label: '设备/工装名称', - field: 'equipmentName', - sort: 'custom', - isSearch:false, - isForm:false - }, - { - label: '故障时间', - field: 'faultTime', - formatter: dateFormatter, - sort: 'custom', - isSearch:false, - isForm:false, - detail:{ - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } - }, - { - label: '故障类型', - field: 'faultType', - sort: 'custom', - isSearch: false, - isForm:false - }, - { - label: '创建人', - field: 'createTime', - sort: 'custom', - isSearch:false, - isForm:false, - isTable:false, - isDetail:false - }, - { - label: '创建时间', - field: 'createTime', - sort: 'custom', - formatter: dateFormatter, - isForm: false, - isSearch:false, - detail:{ - dateFormat: 'YYYY-MM-DD HH:mm:ss' + + { + label: '来源字典', + field: 'sources', + sort: 'custom', + dictType: DICT_TYPE.EAM_MAINTENANCE_SOURCES, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: false, + isForm: false + }, + { + label: '报修类型', + field: 'type', + sort: 'custom', + dictType: DICT_TYPE.DEVICE_TYPE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: false, + isForm: false + }, + { + label: '设备/工装编号', + field: 'equipmentCode', + sort: 'custom', + isSearch: false, + isForm: false + }, + { + label: '设备/工装名称', + field: 'equipmentName', + sort: 'custom', + isSearch: false, + isForm: false + }, + { + label: '故障时间', + field: 'faultTime', + formatter: dateFormatter, + sort: 'custom', + isSearch: false, + isForm: false, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '故障类型', + field: 'faultType', + sort: 'custom', + isSearch: false, + isForm: false + }, + { + label: '创建人', + field: 'createTime', + sort: 'custom', + isSearch: false, + isForm: false, + isTable: false, + isDetail: false + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + isSearch: false, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } } - }, - -])) + ]) +) diff --git a/src/views/eam/sparePartsInLocationRecord/index.vue b/src/views/eam/sparePartsInLocationRecord/index.vue index 86aefd08e..981c0e399 100644 --- a/src/views/eam/sparePartsInLocationRecord/index.vue +++ b/src/views/eam/sparePartsInLocationRecord/index.vue @@ -44,7 +44,7 @@ - + { // 子表新增的时候选择表格之后需要会显得字段 const Echo = [] const { tableObject, tableMethods } = useTable({ - getListApi: SparePartsInLocationRecordMainApi.getSparePartsInLocationRecordMainPage // 分页接口 + getListApi: SparePartsInLocationRecordDetailApi.getSparePartsInLocationRecordDetailPage // 分页接口 }) // 获得表格的各种操作 @@ -100,12 +100,11 @@ const HeadButttondata = [ defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null) // 设置 - ] // 头部按钮事件 const buttonBaseClick = (val, item) => { -if (val == 'refresh') { + if (val == 'refresh') { // 刷新 getList() } else if (val == 'filtrate') { diff --git a/src/views/eam/sparePartsInLocationRecord/sparePartsInLocationRecordMain.data.ts b/src/views/eam/sparePartsInLocationRecord/sparePartsInLocationRecordMain.data.ts index c0d7b7b30..44e521d7d 100644 --- a/src/views/eam/sparePartsInLocationRecord/sparePartsInLocationRecordMain.data.ts +++ b/src/views/eam/sparePartsInLocationRecord/sparePartsInLocationRecordMain.data.ts @@ -3,129 +3,102 @@ import { dateFormatter } from '@/utils/formatTime' import * as ItemAccountsApi from '@/api/eam/itemAccounts' import { ItemAccounts } from '@/views/eam/itemAccounts/itemAccounts.data' - // 表单校验 export const SparePartsInLocationRecordMainRules = reactive({ number: [required], theme: [required], - type: [required], + type: [required] }) // 备件入库主表 -export const SparePartsInLocationRecordMain = useCrudSchemas(reactive([ - { - label: 'id', - field: 'id', - sort: 'custom', - isSearch: false, - isTable: false, - isForm: false, - isDetail:false, - }, - { - label: '编号', - field: 'number', - sort: 'custom', - isSearch: true, - isForm: false, - }, - { - label: '入库主题', - field: 'theme', - sort: 'custom', - isSearch: true, - },{ - label: '入库类型', - field: 'type', - sort: 'custom', - dictType: DICT_TYPE.PUT_IN_TYPE, - dictClass: 'string', - - }, - { - label: '流程状态', - field: 'status', - sort: 'custom', - isSearch: false, - isForm:false, - - dictType: DICT_TYPE.SPAREPARTS_APPLY_STATUS_ENUM, - dictClass: 'string', - - }, - { - label: '入库申请人', - field: 'applyer', - sort: 'custom', - isSearch: false, - }, - { - label: '审核人', - field: 'approver', - sort: 'custom', - isSearch: false, - isForm:false - }, - { - label: '审核内容', - field: 'approveContent', - sort: 'custom', - isSearch: false, - isForm:false - }, - { - label: '审核时间', - field: 'approveTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - isForm: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')] +export const SparePartsInLocationRecordMain = useCrudSchemas( + reactive([ + { + label: '备件编号', + field: 'sparePartsCode', + sort: 'custom', + isSearch: true, + isForm: false, + table: { + width: 180, + fixed: 'left' } }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x' + { + label: '备件名称', + field: 'name', + sort: 'custom', + isSearch: true, + table: { + width: 110 } }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' + { + label: '备件名称', + field: 'name', + sort: 'custom', + isSearch: true, + table: { + width: 110 + } }, - }, - { - label: '入库时间', - field: 'createTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: 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: 'classification', + sort: 'custom', + dictType: DICT_TYPE.PART_CLASS, + dictClass: 'string', + isSearch: false, + isTable: true, + tableForm: { + type: 'Select' } }, - isForm: false, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' + + { + label: '规格型号', + field: 'specifications', + sort: 'custom' }, - }, - - { - label: '备注', - field: 'remark', - sort: 'custom', - isSearch: false, - }, -])) + { + label: '存放位置', + field: 'locationCode', + sort: 'custom' + }, + { + label: '计量单位', + field: 'uom', + sort: 'custom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: false, + isTable: true, + tableForm: { + type: 'Select' + } + }, + { + label: '生产厂家', + field: 'brand', + sort: 'custom' + }, + { + label: '申请单号', + field: 'requestNumber', + sort: 'custom' + }, + { + label: '申领数量', + field: 'applyQty', + sort: 'custom' + }, + { + label: '出库时问', + field: 'createTime', + sort: 'custom' + } + ]) +) // 备件入库子表 export const SparePartsInLocationRecordDetailRules = reactive({ number: [required], @@ -133,24 +106,42 @@ export const SparePartsInLocationRecordDetailRules = reactive({ locationCode: [required], areaCode: [required], sparePartsCode: [required], - applyQty: [required], + applyQty: [required] }) -export const SparePartsInLocationRecordDetail = useCrudSchemas(reactive([ - { - label: '库位编号', - field: 'locationCode', - sort: 'custom', - isSearch: false, - form: { - componentProps: { - isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择库位编号', // 输入框占位文本 - searchField: 'code', // 查询弹窗赋值字段 - searchTitle: '库位信息', // 查询弹窗标题 - - searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类 - searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法 +export const SparePartsInLocationRecordDetail = useCrudSchemas( + reactive([ + { + label: '库位编号', + field: 'locationCode', + sort: 'custom', + isSearch: false, + form: { + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择库位编号', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '库位信息', // 查询弹窗标题 + + searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类 + searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法 + searchCondition: [ + { + key: 'available', + value: 'TRUE', + isMainValue: false + } + ] + } + }, + tableForm: { + isInpuFocusShow: true, + searchListPlaceholder: '请选择备件编号', // 输入框占位文本 + searchField: 'itemNumber', // 查询弹窗赋值字段 + searchTitle: '备件信息', // 查询弹窗标题 + + searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类 + searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法 searchCondition: [ { key: 'available', @@ -160,99 +151,80 @@ export const SparePartsInLocationRecordDetail = useCrudSchemas(reactive { // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { - nextTick(() => { - const setV = {} - setV[formField] = val[0][searchField] - console.log(11, val[0]) - if (type == 'tableForm') { - if (formField == 'locationCode') { - row['locationCode'] = val[0].locationNumber - row['areaCode'] = val[0].areaNumber - row['sparePartsCode'] = val[0].itemNumber - row['currentQty'] = val[0].qty - row['isRadeIn'] = val[0].isRadeIn - } - } else { - if (formField == 'locationCode') { - setV['locationCode'] = val[0].locationNumber - setV['areaCode'] = val[0].areaNumber - setV['sparePartsCode'] = val[0].itemNumber - setV['currentQty'] = val[0].qty - setV['isRadeIn'] = val[0].isRadeIn - } + nextTick(() => { + const setV = {} + setV[formField] = val[0][searchField] + console.log(11, val[0]) + if (type == 'tableForm') { + if (formField == 'locationCode') { + row['locationCode'] = val[0].locationNumber + row['areaCode'] = val[0].areaNumber + row['sparePartsCode'] = val[0].itemNumber + row['currentQty'] = val[0].qty + row['isRadeIn'] = val[0].isRadeIn + } + } else { + if (formField == 'locationCode') { + setV['locationCode'] = val[0].locationNumber + setV['areaCode'] = val[0].areaNumber + setV['sparePartsCode'] = val[0].itemNumber + setV['currentQty'] = val[0].qty + setV['isRadeIn'] = val[0].isRadeIn } - formRef.setValues(setV) - }) + } + formRef.setValues(setV) + }) } // 查询页面返回——详情 const searchTableSuccessDetail = (formField, searchField, val, formRef) => { @@ -363,11 +363,6 @@ const submitForm = async (formType, data) => { data.subList = tableData.value // 拼接子表数据参数 console.log(formRef.value) formRef.value.formLoading = true - let isHave = data.subList.some(item=>item.applyQty>item.currentQty) - if(isHave){ - message.warning('申领数量不能大于库存数量') - return - } try { if (formType === 'create') { await SparePartsInLocationMainApi.createSparePartsInLocationMain(data) diff --git a/src/views/qms/inspectionJob/addForm.vue b/src/views/qms/inspectionJob/addForm.vue index 7bdea4cda..592b812f5 100644 --- a/src/views/qms/inspectionJob/addForm.vue +++ b/src/views/qms/inspectionJob/addForm.vue @@ -1,30 +1,93 @@ - +
- + @@ -247,817 +495,957 @@
diff --git a/src/views/wms/basicDataManage/customerManage/project/project.data.ts b/src/views/wms/basicDataManage/customerManage/project/project.data.ts index 622fbb5ed..95da14f67 100644 --- a/src/views/wms/basicDataManage/customerManage/project/project.data.ts +++ b/src/views/wms/basicDataManage/customerManage/project/project.data.ts @@ -205,6 +205,9 @@ export const ProjectRules = reactive({ name: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], + customerCode: [ + { required: true,message: '请输入客户代码', trigger: 'blur' } + ], remark: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], diff --git a/src/views/wms/basicDataManage/itemManage/itemarea/index.vue b/src/views/wms/basicDataManage/itemManage/itemarea/index.vue index b4bd4fd9d..46e9ba97b 100644 --- a/src/views/wms/basicDataManage/itemManage/itemarea/index.vue +++ b/src/views/wms/basicDataManage/itemManage/itemarea/index.vue @@ -52,7 +52,7 @@ :tableData="tableData" :apiUpdate="ItemareaApi.updateItemarea" :apiCreate="ItemareaApi.createItemarea" - :isBusiness="true" + :isBusiness="false" @handleAddTable="handleAddTable" @handleDeleteTable="handleDeleteTable" :isShowReduceButtonSelection="true" diff --git a/src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts b/src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts index 6a2d7c6e4..04e2537e2 100644 --- a/src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts +++ b/src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts @@ -95,6 +95,17 @@ export const Itempackaging = useCrudSchemas(reactive([ isForm:false, isDetail:false }, + { + label: '包装类型', + field: 'packType', + dictType: DICT_TYPE.PACK_UNIT_TYPE, + dictClass: 'string', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + }, { label: '包装数量', field: 'packQty', diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue index 0311d8b2e..777c111db 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue @@ -29,7 +29,7 @@ nextTick(() => { if (type == 'tableForm') { if (formField == 'itemCode') { - row['itemCode'] = val[0]['itemCode'] - row['uom'] = val[0]['uom'] - row['qty'] = val[0]['qty'] - row['fromBatch'] = val[0]['batch'] - row['fromPackingNumber'] = val[0]['packingNumber'] - row['toBatch'] = val[0]['batch'] - row['toPackingNumber'] = val[0]['packingNumber'] - row['fromLocationCode'] = val[0]['locationCode'] - row['inventoryStatus'] = val[0]['inventoryStatus'] + val.forEach(item=>{ + const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) + newRow['itemCode'] = item['itemCode'] + newRow['uom'] = item['uom'] + newRow['qty'] = item['qty'] + newRow['fromBatch'] = item['batch'] + newRow['fromPackingNumber'] = item['packingNumber'] + newRow['toBatch'] = item['batch'] + newRow['toPackingNumber'] = item['packingNumber'] + newRow['fromLocationCode'] = item['locationCode'] + newRow['inventoryStatus'] = item['inventoryStatus'] + tableData.value.push(newRow) + }) + } else if (formField == 'downItemCode') { row['downItemCode'] = val[0]['code'] } else if (formField == 'toLocationCode') { diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts index c759b61b6..9111450eb 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts @@ -59,6 +59,7 @@ export const RelegateRequestMain = useCrudSchemas(reactive([ form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch: true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择仓库代码', // 输入框占位文本 searchField: 'code', // 查询弹窗赋值字段 @@ -318,6 +319,7 @@ export const RelegateRequestDetail = useCrudSchemas(reactive([ } }, tableForm:{ + multiple:true, isInpuFocusShow: true, searchListPlaceholder: '请选择物料代码', // 输入框占位文本 searchField: 'itemCode', // 查询弹窗赋值字段 diff --git a/src/views/wms/basicDataManage/systemSetting/supplierUser/index.vue b/src/views/wms/basicDataManage/systemSetting/supplierUser/index.vue index cb66c5960..c8d92b883 100644 --- a/src/views/wms/basicDataManage/systemSetting/supplierUser/index.vue +++ b/src/views/wms/basicDataManage/systemSetting/supplierUser/index.vue @@ -55,11 +55,11 @@ - { } } - + // 查询列表页面参数设置 const searchTableParams = ref([ @@ -184,6 +184,9 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { nextTick(() => { const setV = {} setV[formField] = val[0][searchField] + if(formField == 'userName'){ + setV['userId'] = val[0]['id'] + } formRef.setValues(setV) }) } diff --git a/src/views/wms/basicDataManage/systemSetting/supplierUser/supplierUser.data.ts b/src/views/wms/basicDataManage/systemSetting/supplierUser/supplierUser.data.ts index 1e5c4a94e..94a3317c8 100644 --- a/src/views/wms/basicDataManage/systemSetting/supplierUser/supplierUser.data.ts +++ b/src/views/wms/basicDataManage/systemSetting/supplierUser/supplierUser.data.ts @@ -15,7 +15,7 @@ export const User = useCrudSchemas(reactive([ }, { label: '用户名称', - field: 'username', + field: 'userName', sort: 'custom', table: { width: 150 @@ -58,7 +58,8 @@ export const User = useCrudSchemas(reactive([ // 表单校验 export const SupplierUserRules = reactive({ - userId: [required], + // userId: [required], + userName: [required], supplierCode: [required], status: [required], concurrencyStamp: [required], @@ -75,11 +76,37 @@ export const SupplierUser = useCrudSchemas(reactive([ label: '用户ID', field: 'userId', sort: 'custom', + isForm: false, isSearch: true, + // tableForm:{ + // isInpuFocusShow: true, + // searchListPlaceholder: '请选用户信息', + // searchField: 'username', + // searchTitle: '用户信息', + // searchAllSchemas: User.allSchemas, + // searchPage: UserApi.getUserPage + // }, + // form: { + // // labelMessage: '信息提示说明!!!', + // componentProps: { + // dialogWidth:'1025px',//搜索出来弹窗的宽度 + // isSearchList: true, + // searchListPlaceholder: '请选用户信息', + // searchField: 'username', + // searchTitle: '用户信息', + // searchAllSchemas: User.allSchemas, + // searchPage: UserApi.getUserPage + // } + // } + }, + { + label: '用户账号', + field: 'userName', + sort: 'custom', tableForm:{ isInpuFocusShow: true, searchListPlaceholder: '请选用户信息', - searchField: 'id', + searchField: 'username', searchTitle: '用户信息', searchAllSchemas: User.allSchemas, searchPage: UserApi.getUserPage @@ -90,18 +117,13 @@ export const SupplierUser = useCrudSchemas(reactive([ dialogWidth:'1025px',//搜索出来弹窗的宽度 isSearchList: true, searchListPlaceholder: '请选用户信息', - searchField: 'id', + searchField: 'username', searchTitle: '用户信息', searchAllSchemas: User.allSchemas, searchPage: UserApi.getUserPage } - } - }, - { - label: '用户账号', - field: 'userName', - sort: 'custom', - isForm: false, + }, + isSearch: true, }, { label: '用户昵称', diff --git a/src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts b/src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts index 64f38a54f..4247edc61 100644 --- a/src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts +++ b/src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts @@ -102,21 +102,24 @@ export const CountPlanMain = useCrudSchemas(reactive([ table: { width: 150 }, - }, - { - label: '限值', - field: 'limitedValue', - sort: 'custom', - table: { - width: 150 - }, form: { - component: 'InputNumber', - componentProps:{ - disabled:false - } + value: 'BY_INEVNEOTY' } }, + // { + // label: '限值', + // field: 'limitedValue', + // sort: 'custom', + // table: { + // width: 150 + // }, + // form: { + // component: 'InputNumber', + // componentProps:{ + // disabled:false + // } + // } + // }, { label: '物料忽略名单', field: 'ignoreListOfItem', diff --git a/src/views/wms/countManage/count/countPlanMain/index.vue b/src/views/wms/countManage/count/countPlanMain/index.vue index 5d7c2ecb9..4395f9e9d 100644 --- a/src/views/wms/countManage/count/countPlanMain/index.vue +++ b/src/views/wms/countManage/count/countPlanMain/index.vue @@ -108,40 +108,41 @@