Ben Lin
2024-06-30 943954bdcb3b672b89cfa097e53d2ac17a36a101
src/views/tigerprojects/mes/prod/biz_mes_wo/index.vue
@@ -4,13 +4,13 @@
 * @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>
@@ -23,7 +23,7 @@
          @click="handleSelectItem"
          preIcon="search|svg"
        />
        <NormalModal @register="registerItemAdd" @success="handleItemSuccess" />
        <GeneralModal @register="registerItemAdd" @success="handleItemSuccess" />
      </template>
      <template #action="{ record }">
        <TableAction
@@ -88,7 +88,7 @@
              @click="handleCustClick(field)"
              :preIcon="item.preIcons[name]"
            />
            <NormalModal
            <GeneralModal
              @register="useModalData[name][0]"
              @success="(d, u) => handleEntSuccess(d, u, item.name)"
            />
@@ -108,7 +108,7 @@
  import { BasicForm, FormSchema, FormActionType, useForm } from '/@/components/Form/index';
  import WoDrawer from './WoDrawer.vue';
  import WoModal from './WoModal.vue';
  import NormalModal from '/@/views/components/NormalModal.vue';
  import GeneralModal from '/@/views/components/GeneralModal.vue';
  import RouteViewModal from '/@/views/components/RouteViewModal.vue';
  import CustModal from '/@/views/components/CustModal.vue';
  import { useDrawer } from '/@/components/Drawer';
@@ -177,8 +177,8 @@
    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,
@@ -266,8 +266,6 @@
      },
      { 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) {
@@ -447,6 +445,7 @@
      ],
      tableName: 'BAS_ITEM',
      rowKey: 'ITEM_CODE',
      searchInfo: {TABLE_NAME: 'BAS_ITEM'}
    });
  }