设备采购计划页面列表空白列修改,产品结构树工序/工步添加发送nc程序到三维工艺按钮
已修改3个文件
54 ■■■■■ 文件已修改
src/views/dnc/base/modules/ProductStructure/ProductStructureTree.vue 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dnc/base/modules/ProductStructure/ProductStructureTreeContextMenu.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/purchase/EamEquipmentPurchasePlanList.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dnc/base/modules/ProductStructure/ProductStructureTree.vue
@@ -79,7 +79,7 @@
<script>
  import dncApi from '@/api/dnc'
  import { deleteAction } from '@/api/manage'
  import { deleteAction, getAction } from '@/api/manage'
  import ProductStructureTreeContextMenu from './ProductStructureTreeContextMenu'
  import ProductModal from './Product/ProductModal'
  import ComponentModal from './Component/ComponentModal'
@@ -130,7 +130,8 @@
        rightClickSelected: {},
        fullScreenSpinning: false,
        url: {
          delete: '/nc/product/delete'
          delete: '/nc/product/delete',
          webServiceDNCToPlm: '/dnc/guideCardBatch/webServiceDNCToPlm'
        }
      }
    },
@@ -271,6 +272,46 @@
        })
      },
      // 树节点右键单击菜单中删除按钮时触发
      handleSendNcToPlm() {
        const that = this
        const { rightClickSelected: { id, type }, $confirm, url, $notification } = that
        $confirm({
          title: '提示',
          content: '确认发送该nc程序?',
          okText: '确认',
          okType: 'danger',
          cancelText: '取消',
          onOk: () => {
            if (!url.webServiceDNCToPlm) {
              this.$message.error('请设置url.webServiceDNCToPlm!')
              return
            }
            getAction(url.webServiceDNCToPlm, {id: id})
              .then((res) => {
                if (res.success) {
                  that.getTreeDataByApi()
                  $notification.success({
                    message: '消息',
                    description: res.message
                  })
                } else {
                  $notification.warning({
                    message: '消息',
                    description: res.message
                  })
                }
              })
              .finally(() => {
                that.$destroyAll()
              })
          },
          onCancel: () => {
            that.$destroyAll()
          }
        })
      },
      /**
       * 自动展开添加下级节点的父节点
       * @param isAddNextLevel 是否需要展开下级
src/views/dnc/base/modules/ProductStructure/ProductStructureTreeContextMenu.vue
@@ -95,7 +95,8 @@
          { label: '导入其他文档', code: 'process_other_import', icon: 'import', isCommonMethod: true },
          { label: '检索电子样板', code: 'process_search', icon: 'search', isCommonMethod: true },
          { label: '检索NC文件', code: 'process_search_nc', icon: 'search', isCommonMethod: true },
          { label: '权限配置', code: 'public_assign_permission', icon: 'idcard', isCommonMethod: true }
          { label: '权限配置', code: 'public_assign_permission', icon: 'idcard', isCommonMethod: true },
          { label: '发送nc程序至三维工艺', code: 'process_send_nc_to_plm', icon: 'import', isCommonMethod: true }
        ],
        //工步
        processStep: [
@@ -108,7 +109,8 @@
          { label: '导入其他文档', code: 'processStep_other_import', icon: 'import', isCommonMethod: true },
          { label: '检索电子样板', code: 'processStep_search', icon: 'search', isCommonMethod: true },
          { label: '检索NC文件', code: 'processStep_search_nc', icon: 'search', isCommonMethod: true },
          { label: '权限配置', code: 'public_assign_permission', icon: 'idcard', isCommonMethod: true }
          { label: '权限配置', code: 'public_assign_permission', icon: 'idcard', isCommonMethod: true },
          { label: '发送nc程序至三维工艺', code: 'processStep_send_nc_to_plm', icon: 'import', isCommonMethod: true }
        ]
      }
    }
src/views/eam/purchase/EamEquipmentPurchasePlanList.vue
@@ -185,17 +185,20 @@
            title:'采购计划编码',
            align:"center",
            dataIndex: 'planCode',
            width: 100,
            fixed: 'left'
          },
          {
            title:'采购计划名称',
            align:"center",
            dataIndex: 'planName',
            width: 100,
            fixed: 'left'
          },
          {
            title:'计划状态',
            align:"center",
            width: 100,
            dataIndex: 'planStatus_dictText'
          },
          {