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

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

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

Loading…
Cancel
Save