王震
2023-08-18 5cafe90e9e91127889a948ecb44dec61d6185bd4
src/components/view/raw-ins.vue
@@ -1,5 +1,7 @@
<style scoped>
  .raw_ins {}
  .raw_ins {
    height: 100%;
  }
  .raw_ins .title .el-button {
    height: 32px;
@@ -80,7 +82,7 @@
      <el-row>
        <el-col :span="12" style="line-height: 32px;">原材料检验</el-col>
        <el-col :span="12" style="text-align: right;">
          <el-button type="primary" icon="el-icon-plus" style="background: #004EA2;">新增</el-button>
          <el-button type="primary" icon="el-icon-plus" style="background: #004EA2;" @click="goDetail(null)">新增</el-button>
          <el-button icon="el-icon-download">删除</el-button>
        </el-col>
      </el-row>
@@ -110,7 +112,7 @@
    </div>
    <div class="thing">
      <el-table :data="tableData" border style="width: 100%;overflow-y: auto;min-height: calc(100% - 50px)"
        max-height="calc(100% - 50px)" @selection-change="handleSelectionChange" border default-expand-all
        max-height="calc(100% - 50px)" @selection-change="handleSelectionChange"  default-expand-all
        :tree-props="{children: 'children', hasChildren: 'hasChildren'}" row-key="id">
        <el-table-column type="selection" width="50">
        </el-table-column>
@@ -146,7 +148,7 @@
        </el-table-column>
        <el-table-column label="操作" width="100">
          <template slot-scope="scope">
            <span class="table_do" @click="changeShowDetail">查看</span>
            <span class="table_do" @click="changeShowDetail(scope.row)">查看</span>
            <span class="table_do">打印</span>
          </template>
        </el-table-column>
@@ -169,13 +171,13 @@
          formTime: null,
          createTime: null,
          insState: 2,
          judgeState: 2
          judgeState: 10
        },
        tableData: [],
        selects: [],
        currentPage: 1,
        countSize: 0,
        pageSize: 10
        pageSize: 2
      }
    },
    props:['goDetail'],
@@ -220,8 +222,12 @@
          },
          this.selectRawInspectsList()
      },
      changeShowDetail(){
        this.goDetail()
       changeShowDetail({id}){
        this.goDetail(id)
        // console.log(id)
        // const res = await this.$axios.post(this.$api.url.selectRawInspectsListById,{params:{id}})
        // console.log(res)
      }
    }
  }