yangys
2025-09-25 e4c84d44e70e09ec6d69716bd6c722a953f980da
src/views/tasks/machinereturnfiles.vue
@@ -1,6 +1,6 @@
<template>
  <div class="gongkongMain">
  <div>
  <div >
      <el-tree :data="treeData" :props="defaultProps" node-key="id" :default-expand-all="false" :default-expanded-keys="defaultKeys" @node-click="handleNodeClick" />
    </div>
    <div>
@@ -27,10 +27,12 @@
        <el-button type="primary" v-if="this.search.dirType!='REC'" :disabled="this.selection.length==0" size="default" icon="el-icon-circle-plus" plain @click="receiveBtn">接收已选</el-button>
        <el-button type="primary" v-if="this.search.dirType!='REC'" :disabled="this.selection.length==0" size="default" icon="el-icon-circle-plus" plain @click="rejectBtn">拒绝</el-button>
      </template>
      <!--
      <template #menu="scope">
        <el-button type="primary" v-if="scope.row.dirType==='TEMP'" text size="default" icon="el-icon-document-delete" @click.stop="rejectBtn(scope.row, scope.index)">拒绝</el-button>
        <el-button type="primary" v-if="scope.row.dirType==='TEMP'" text size="default" icon="el-icon-document-add" @click.stop="acceptBtn(scope.row, scope.index)">接收</el-button>
      </template>
      -->
    </avue-crud>
  </basic-container>
  </div>
@@ -68,8 +70,10 @@
        total: 0,
      },
      option: {
        size:'small',
        index: true,
        selection: true,
        selectionWidth:30,
        addBtn: false,
        editBtn: false,
        delBtn: false,
@@ -77,19 +81,23 @@
        emptyBtn: false,
        searchLabelWidth: "120",
        searchSpan: 8,
        menuWidth: 150,
        menu:false,
        width:'100%',
        column: [
          {
            label: '文件名称',
            prop: 'name',
            showOverflowTooltip:true,
          },
          {
            label: '机床号',
            prop: 'machineCode',
            showOverflowTooltip:true,
          },
          {
            label: '程序状态',
            prop: 'programStatus',
            showOverflowTooltip:true,
            render: ({ row,value }) => {
              var txt = '未知';
              switch(row.programStatus){
@@ -100,7 +108,7 @@
                  txt = '固化';
                  break;
                case 3:
                  txt = '偏离';
                  txt = '临时更改单';
                  break;
                default:
                  txt = '未知';
@@ -114,6 +122,7 @@
          },
          {
            label: '文件到达时间',
            showOverflowTooltip:true,
            prop: 'fileCreateTime',
          },/*
          {
@@ -121,7 +130,7 @@
            prop: '',
          },*/
          {
            label: '关键信息',
            label: '关键字',
            prop: 'keyword',
            search: true,
            hide: true,
@@ -263,9 +272,11 @@
    },
    currentChange(current) {
      this.mypage.current = current;
      this.onLoad();
    },
    sizeChange(size) {
      this.mypage.size = size;
      this.onLoad();
    },
    refreshChange() {
      
@@ -282,12 +293,15 @@
        dirType:this.currentNode.dirType,
        machineCode: this.currentNode.machineCode,
      }
      console.log('myupage',this.mypage)
      axios({
        url: '/blade-mdm/machinefile/collect/file-page-for-acceept',
        method: 'get',
        params: obj,
      }).then(
        res => {
          var screenHeight = window.innerHeight;
          this.option.maxHeight = (screenHeight - 390) + 'px';
          const data = res.data.data;
          this.mypage.total = data.total;
          this.data = data.records;
@@ -342,7 +356,7 @@
  }
}
.gongkongMain > div:nth-child(1) {
  width:25%;
  width:17%;
  border-right: 1px solid #ccc;
}
.gongkongMain div:nth-child(2) {
@@ -353,4 +367,15 @@
  display: flex;
  justify-content: flex-end;
}
/*
.Avue-crud{
  :deep(.el-table) {
    .el-table__body-wrapper,
    .el-table__fixed-body-wrapper {
      max-height:calc(100vh - 630px)!important;
      overflow-y: auto;
    }
  }
}
*/
</style>