| | |
| | | * @version: |
| | | * @Date: 2024-06-19 20:34:27 |
| | | * @LastEditors: Ben Lin |
| | | * @LastEditTime: 2024-08-04 00:44:17 |
| | | * @LastEditTime: 2024-08-20 15:03:44 |
| | | */ |
| | | |
| | | import { DeleteLabelTemplate } from '/@/api/tigerapi/mes/label'; |
| | |
| | | */ |
| | | CustFunc: (param: CustModalParams) => { |
| | | const webSocketStore = useWebSocketStore(); |
| | | if (webSocketStore.GetSocketState == 1) { |
| | | if (webSocketStore.GetSocketState == 1 && param.values['TEMP_TYPE'] == 0) { |
| | | webSocketStore.sendMessage( |
| | | `wsSubStrings ${param.values['ID']}_#_${param.values['TEMP_PATH']}`, |
| | | ); |
| | |
| | | field: 'LABEL_CODE', |
| | | component: 'Input', |
| | | label: '模板编码', |
| | | colProps: { |
| | | span: 12, |
| | | }, |
| | | }, |
| | | { |
| | | field: 'LABEL_NAME', |
| | | component: 'Input', |
| | | label: '模板名称', |
| | | colProps: { |
| | | span: 12, |
| | | }, |
| | |
| | | Title: `编辑模板${params['record']['LABEL_CODE']}的变量`, |
| | | pCode: 'LABEL_CODE', |
| | | IsID: true, |
| | | ifSave: false, |
| | | colSlots: params['colSlots'].value, //['BAS_LABEL_VAR1add', 'BAS_LABEL_VAR2add'], |
| | | colSlotsInHigh: ['BAS_LABEL_VAR1add', 'BAS_LABEL_VAR2add'], |
| | | drawers: [ |
| | |
| | | type: 'one', |
| | | keyName: 'BAS_LABEL_VAR', |
| | | order: 'VAR_NAME', |
| | | showTbButton: false, |
| | | FnName: '', |
| | | }, |
| | | { |
| | | name: 'BAS_LABEL_VAR_WO', |
| | | code: 'LABEL_ID', |
| | | type: 'one', |
| | | keyName: 'BAS_LABEL_VAR_WO', |
| | | order: '', |
| | | showTbButton: true, |
| | | FnName: 'AddRow', |
| | | }, |
| | | // { |
| | | // name: 'BAS_LABEL_VAR_WO', |
| | | // code: 'LABEL_ID', |
| | | // type: 'one', |
| | | // keyName: 'BAS_LABEL_VAR_WO', |
| | | // order: '', |
| | | // showTbButton: true, |
| | | // FnName: 'AddRow', |
| | | // }, |
| | | ], //drawers是右边弹出增改侧框的名字列表 |
| | | }; |
| | | // const webSocketStore = useWebSocketStore(); |