| | |
| | | <style scoped> |
| | | .raw_ins {} |
| | | .raw_ins { |
| | | height: 100%; |
| | | } |
| | | |
| | | .raw_ins .title .el-button { |
| | | height: 32px; |
| | |
| | | <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> |
| | |
| | | </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> |
| | |
| | | </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> |
| | |
| | | formTime: null, |
| | | createTime: null, |
| | | insState: 2, |
| | | judgeState: 2 |
| | | judgeState: 10 |
| | | }, |
| | | tableData: [], |
| | | selects: [], |
| | | currentPage: 1, |
| | | countSize: 0, |
| | | pageSize: 10 |
| | | pageSize: 2 |
| | | } |
| | | }, |
| | | props:['goDetail'], |
| | |
| | | }, |
| | | 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) |
| | | |
| | | } |
| | | } |
| | | } |