Browse Source

1、增加工位操作步骤关联

master_hella_20240701
bjang03 8 months ago
parent
commit
9fa58487cf
  1. 13
      src/views/mes/workstation/index.vue
  2. 12
      src/views/mes/workstation/workstation.data.ts

13
src/views/mes/workstation/index.vue

@ -65,10 +65,10 @@
:detailButtonIsShowEdit="false" :detailButtonIsShowEdit="false"
@detailOpenForm="detailOpenForm" @detailOpenForm="detailOpenForm"
/> />
<!-- 记录子包装弹窗 -->
<BasicForm <BasicForm
ref="popCheckListRef" ref="teamListRef"
:tableAllSchemas="popCheckList.allSchemas" :formAllSchemas="popList.allSchemas"
:isBusiness="false"
/> />
<!-- 导入 --> <!-- 导入 -->
<ImportForm ref="importFormRef" url="/mes/workstation/import" :importTemplateData="importTemplateData" @success="importSuccess" /> <ImportForm ref="importFormRef" url="/mes/workstation/import" :importTemplateData="importTemplateData" @success="importSuccess" />
@ -83,7 +83,7 @@ import {
TabsList, TabsList,
Team, Team,
Workstation, Workstation,
WorkstationRules, popCheckList WorkstationRules, popList
} from './workstation.data' } from './workstation.data'
import * as WorkstationApi from '@/api/mes/workstation' import * as WorkstationApi from '@/api/mes/workstation'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
@ -291,8 +291,9 @@ const changeTabs = (data) =>{
tabsDeleteApi = WorkstationApi.deleteOperstepsRelation tabsDeleteApi = WorkstationApi.deleteOperstepsRelation
} }
} }
const popCheckListRef = ref() const teamListRef = ref()
const detailOpenForm = async (type, params) => { const detailOpenForm = async (type, params) => {
popCheckListRef.value.open('create', params.code, null, 'viewDetail') teamListRef.value.open('create', null, null, 'viewDetail')//
} }
</script> </script>

12
src/views/mes/workstation/workstation.data.ts

@ -1,7 +1,6 @@
import type {CrudSchema} from '@/hooks/web/useCrudSchemas' import type {CrudSchema} from '@/hooks/web/useCrudSchemas'
import {dateFormatter} from '@/utils/formatTime' import {dateFormatter} from '@/utils/formatTime'
import {Warehouse} from "@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data"; import * as WorkstationApi from "@/api/mes/workstation";
import * as WarehouseApi from "@/api/wms/warehouse";
// 表单校验 // 表单校验
export const WorkstationRules = reactive({ export const WorkstationRules = reactive({
@ -215,13 +214,12 @@ export const Opersteps = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm:true, isTableForm:true,
} }
])) ]))
export const popCheckList = useCrudSchemas(reactive<CrudSchema[]>([ export const popList = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '多选列表', label: '多选列表',
field: 'popCheckList', field: 'popCheckList',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: false,
isForm: false,
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
@ -229,8 +227,8 @@ export const popCheckList = useCrudSchemas(reactive<CrudSchema[]>([
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本 searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
searchTitle: '仓库信息', // 查询弹窗标题 searchTitle: '仓库信息', // 查询弹窗标题
searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类 searchAllSchemas: Team.allSchemas, // 查询弹窗所需类
searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法 searchPage: WorkstationApi.getTeamPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',

Loading…
Cancel
Save