| | |
| | | * @version: |
| | | * @Date: 2024-05-25 00:27:00 |
| | | * @LastEditors: Ben Lin |
| | | * @LastEditTime: 2024-06-10 23:54:01 |
| | | * @LastEditTime: 2024-06-28 11:40:38 |
| | | --> |
| | | <template> |
| | | <div> |
| | | <BasicTable @register="registerTable"> |
| | | <template #toolbar> |
| | | <a-button color="primary" @click="addWo" preIcon="add_02|svg"> 新增 </a-button> |
| | | <a-button type="primary" @click="addWo" preIcon="add_02|svg"> 新增 </a-button> |
| | | <a-button ghost color="success" @click="ExcelToDb" preIcon="excel-import|svg"> |
| | | 导入 |
| | | </a-button> |
| | |
| | | edges: [], |
| | | }); |
| | | const formSchema = ref([] as FormSchema[]); |
| | | const woSchema = ref([] as FormSchema[]); |
| | | const prodSchema = ref([] as FormSchema[]); |
| | | const woSchema = ref<FormSchema[]>(getFormSchema('woinfo')); |
| | | const prodSchema = ref<FormSchema[]>(getFormSchema('prodinfo')); |
| | | const isCustEl = ref({ |
| | | forminfo: false, |
| | | woinfo: false, |
| | |
| | | }, |
| | | { name: 'rotinfo', slots: ['add'], preIcons: { add: 'search|svg' }, title: '工艺信息' }, |
| | | ]; |
| | | woSchema.value = getFormSchema('woinfo'); |
| | | prodSchema.value = getFormSchema('prodinfo'); |
| | | // rotSchema.value = getFormSchema('rotinfo'); |
| | | //工艺路线渲染图初始化 |
| | | if (lfInstance.value != null) { |