| | |
| | | /* |
| | | * @Description: 自定义弹出框请数据 |
| | | * @Author: Ben Lin |
| | | * @version: |
| | | * @Date: 2024-06-05 15:50:59 |
| | | * @LastEditors: Ben Lin |
| | | * @LastEditTime: 2024-06-28 11:31:37 |
| | | */ |
| | | import { |
| | | getWoFns, |
| | | woGetSelectSuccess, |
| | |
| | | } |
| | | |
| | | export function getFormSchema(type: string) { |
| | | let _formSchema = [] as FormSchema[]; |
| | | let _formSchema: FormSchema[] = []; |
| | | switch (type) { |
| | | case 'BIZ_MES_WO': |
| | | _formSchema = woformSchema; |
| | |
| | | return _formSchema; |
| | | } |
| | | |
| | | /* 弹出选择框选择成功 */ |
| | | /** |
| | | * @description: 弹出选择框选择成功 |
| | | * @param {*} d |
| | | * @param {*} u |
| | | * @param {string} entityName |
| | | * @return {*} |
| | | */ |
| | | export function GetSelectSuccess(d, u, entityName: string) { |
| | | let data = {}; |
| | | switch (entityName) { |
| | |
| | | return data; |
| | | } |
| | | |
| | | /* 打开弹出选择框 */ |
| | | /** |
| | | * @description: 打开弹出选择框 |
| | | * @return {*} |
| | | */ |
| | | export function OpenSelectItem( |
| | | openItemModal: Fn, |
| | | entityName: string, |
| | |
| | | ], |
| | | tableName: 'BAS_ITEM', |
| | | rowKey: 'ITEM_CODE', |
| | | searchInfo: { TABLE_NAME: 'BAS_ITEM' }, //searchInfo: {TABLE_NAME: 'MES_CUSTOM_ACT', ACT_TYPE: routeConfig.currentAct.ACT_TYPE} |
| | | }); |
| | | break; |
| | | } |
| | | } |
| | | |
| | | export const step1Schemas: FormSchema[] = [ |
| | | { |
| | | field: 'CUST_CODE', |
| | | component: 'Input', |
| | | label: '客户编码', |
| | | required: true, |
| | | colProps: { |
| | | span: 20, |
| | | }, |
| | | }, |
| | | { |
| | | field: '0', |
| | | label: '', |
| | | defaultValue: '', |
| | | slot: 'add', |
| | | colProps: { |
| | | span: 4, |
| | | }, |
| | | }, |
| | | { |
| | | field: 'CUST_ID', |
| | | component: 'Input', |
| | | label: 'ID', |
| | | required: true, |
| | | colProps: { |
| | | span: 20, |
| | | }, |
| | | show: false, |
| | | }, |
| | | ]; |
| | | |
| | | export const step2Schemas: FormSchema[] = [ |
| | | { |
| | | field: 'ROT_CODE', |
| | | component: 'Input', |
| | | label: '工艺路线', |
| | | required: true, |
| | | colProps: { |
| | | span: 20, |
| | | }, |
| | | }, |
| | | { |
| | | field: '0', |
| | | label: '', |
| | | defaultValue: '', |
| | | slot: 'add', |
| | | colProps: { |
| | | span: 4, |
| | | }, |
| | | }, |
| | | { |
| | | field: 'ROT_ID', |
| | | component: 'Input', |
| | | label: 'ID', |
| | | required: true, |
| | | colProps: { |
| | | span: 20, |
| | | }, |
| | | show: false, |
| | | }, |
| | | ]; |