| | |
| | | * @version: |
| | | * @Date: 2024-06-19 20:34:27 |
| | | * @LastEditors: Ben Lin |
| | | * @LastEditTime: 2024-06-29 02:57:03 |
| | | * @LastEditTime: 2024-07-15 22:05:16 |
| | | */ |
| | | |
| | | import { Ref, h, ref, render, unref } from 'vue'; |
| | |
| | | import { useModal } from '/@/components/Modal'; |
| | | import { FormSchema } from '/@/components/Table'; |
| | | import { initRoute } from '../data'; |
| | | import { CustModalParams } from '/@/api/tigerapi/model/systemModel'; |
| | | |
| | | const { t } = useI18n(); |
| | | const { createErrorModal } = useMessage(); |
| | |
| | | sqlcmd: sqlcmd, |
| | | entityName: |
| | | params['selectedNodes'].value[0].type == 'Action' ? 'MES_PROD_ACTION' : 'MES_PROD_OPER', |
| | | order: '', |
| | | }).then((res) => { |
| | | params['resetFields'](); |
| | | if (params['selectedNodes'].value[0].type == 'Action') { |
| | |
| | | */ |
| | | navChangeItem: (action: any, ...args) => { |
| | | switch (action) { |
| | | case 'editRoute': |
| | | break; |
| | | case 'addRoute': |
| | | args[0](true, { |
| | | title: '工艺路线列表', |
| | |
| | | args[0](true, { |
| | | title: '请完成以下步骤', |
| | | }); |
| | | break; |
| | | case 'editRoute': |
| | | args[1](true, { rotId: args[2][0].id, slotName: '' }); |
| | | break; |
| | | } |
| | | }, |
| | |
| | | // newElement.textContent = 'New Element =>'+type; |
| | | // newElement.style.height = '250px'; |
| | | newElement.id = 'lfContainer'; |
| | | newElement.className = "h-full"; |
| | | newElement.className = 'h-full'; |
| | | // newElement.style.color = 'blue'; |
| | | // newElement.style.fontSize = '16px'; |
| | | return newElement; |
| | |
| | | * @param {array} args |
| | | * @return {*} |
| | | */ |
| | | CustFunc: (type: string | undefined, ...args) => { |
| | | if (type == 'Route') { |
| | | initRoute(args[0], args[1]); |
| | | CustFunc: (param: CustModalParams) => { |
| | | if (param.cType == 'Route') { |
| | | // initRoute(args[0], args[1]); |
| | | } |
| | | }, |
| | | GetUseForm: () => { |
| | | return {}; |
| | | }, |
| | | }; |
| | | |
| | | /* 以下是内部方法,不export,供上面的方法调用 */ |