| | |
| | | * @version: |
| | | * @Date: 2024-06-19 20:34:27 |
| | | * @LastEditors: Ben Lin |
| | | * @LastEditTime: 2024-07-21 20:55:33 |
| | | * @LastEditTime: 2024-07-22 02:58:01 |
| | | */ |
| | | |
| | | import { Ref, h, ref, render, unref } from 'vue'; |
| | |
| | | const isPrint = (type: number) => type === 5; |
| | | const isPackage = (type: number) => type === 6; |
| | | const ActionColumn: BasicColumn = { |
| | | width: 220, |
| | | width: 180, |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | slots: { customRender: 'action' }, |
| | |
| | | }); |
| | | break; |
| | | case 'set': |
| | | case 'setRot': |
| | | openRvModal(true, { rotId: selectVals.value['ROUTE_CODE'], slotName: slotName }); |
| | | break; |
| | | case 'setRot': |
| | | const id = { |
| | | ID: params['record'].ID, |
| | | Name: 'WoRouteBinding', |
| | | CODE: params['record'].ITEM_CODE, |
| | | Title: `工单[${params['record'].ITEM_CODE}]工艺绑定`, |
| | | colSlots: [] /* 表格内的查询表单字段的插槽列表,一般用于弹出选择框按钮 */, |
| | | crudColSlots: [] /* 增删改表单字段的插槽列表,一般用于弹出选择框按钮 */, |
| | | dense: true, |
| | | pageTitle: `工单工艺绑定`, |
| | | pageContent: `这里是管理工单的工艺绑定,一个工单可以绑定多个工艺路线`, |
| | | }; |
| | | go(`/WoRouteBinding/CP/${encodeURI(JSON.stringify(id))}`); |
| | | break; |
| | | } |
| | | }, |
| | | }; |