| | |
| | | * @version: |
| | | * @Date: 2024-06-19 20:34:27 |
| | | * @LastEditors: Ben Lin |
| | | * @LastEditTime: 2024-09-11 20:21:25 |
| | | * @LastEditTime: 2024-10-13 23:21:24 |
| | | */ |
| | | |
| | | import { Ref, h, ref, render, unref } from 'vue'; |
| | |
| | | x.onClick = handleRelease.bind(null, args, params); |
| | | x.tooltip = '下发'; |
| | | } |
| | | // if (x.name == 'handleTemplate') { |
| | | // x.onClick = handleTemplate.bind(null, args, params); |
| | | // x.tooltip = '模板维护'; |
| | | // } |
| | | }); |
| | | return data; |
| | | }, |
| | |
| | | showActionButtonGroup: false, |
| | | }), |
| | | prodinfo: useForm({ |
| | | labelWidth: 120, |
| | | schemas: prodCfgformSchema, |
| | | actionColOptions: { |
| | | span: 24, |
| | | }, |
| | | showActionButtonGroup: false, |
| | | }), |
| | | tmpinfo: useForm({ |
| | | labelWidth: 120, |
| | | schemas: prodCfgformSchema, |
| | | actionColOptions: { |
| | |
| | | try { |
| | | const form = param.values['forminfo']; |
| | | const wo = param.values['mValues']; |
| | | wo.ROUTE_CODE = form.ROUTE_CODE; |
| | | wo.STATUS = 2; |
| | | wo.STATUS = wo.STATUS == 3?wo.STATUS: 2; |
| | | let input: SaveWoBatchInput = { |
| | | Wo: wo, |
| | | WoBatch: { |
| | |
| | | ACT_END_TIME: wo.ACT_END_TIME, |
| | | BATCH_NO: '', |
| | | }, |
| | | IfToCust: form.IfToCust |
| | | }; |
| | | SaveMesBatchWo(input).then((action) => { |
| | | resolve(action); |
| | |
| | | }); |
| | | } |
| | | |
| | | /* 下发界面中的表单列表 */ |
| | | const woformSchema: FormSchema[] = [ |
| | | { |
| | | field: 'PLAN_QTY', |
| | |
| | | valueField: 'LINE_CODE', |
| | | }, |
| | | }, |
| | | { |
| | | field: 'IfToCust', |
| | | component: 'Switch', |
| | | label: '是否保存工艺路线到客户', |
| | | defaultValue: true, |
| | | colProps: { |
| | | span: 8, |
| | | }, |
| | | labelWidth: 200, |
| | | }, |
| | | // { |
| | | // label: '工艺路线', |
| | | // field: 'ROUTE_CODE', |