|
@@ -14,18 +14,11 @@
|
|
|
</el-col>
|
|
|
<el-col :span="5">
|
|
|
<el-form-item label="自检">
|
|
|
- <el-select v-model="listQuery.status">
|
|
|
+ <el-select v-model="listQuery.checkStatus">
|
|
|
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <!-- <el-col :span="6">
|
|
|
- <el-form-item label="状态">
|
|
|
- <el-select v-model="listQuery.status">
|
|
|
- <el-option v-for="item in statusOptins" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col> -->
|
|
|
<el-col :span="9">
|
|
|
<el-form-item label="入库时间">
|
|
|
<el-date-picker
|
|
@@ -117,8 +110,8 @@
|
|
|
|
|
|
<el-table-column align="center" label="操作" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button @click="edit(scope.row.id)" type="text">已通过</el-button>
|
|
|
- <el-button @click="edit(scope.row.id)" type="text">未通过</el-button>
|
|
|
+ <el-button v-if="scope.row.checkStatus === 1" @click="edit(scope.row.id)" type="text">已通过</el-button>
|
|
|
+ <el-button v-if="scope.row.checkStatus === 0" @click="edit(scope.row.id)" type="text">未通过</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -151,6 +144,7 @@ export default {
|
|
|
sn: '',
|
|
|
status: [1],
|
|
|
sort: 'id desc',
|
|
|
+ checkStatus: null
|
|
|
},
|
|
|
//总条数
|
|
|
total: 0,
|
|
@@ -166,7 +160,7 @@ export default {
|
|
|
options: [
|
|
|
{label: '全部', value: null},
|
|
|
{label: '已通过', value: 1},
|
|
|
- {label: '未通过', value: 2}
|
|
|
+ {label: '未通过', value: 0}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
@@ -179,6 +173,18 @@ export default {
|
|
|
this.listQuery.index = 1
|
|
|
this.getDataList()
|
|
|
},
|
|
|
+ //重置
|
|
|
+ resetForm() {
|
|
|
+ this.listQuery = {
|
|
|
+ index: 1,
|
|
|
+ length: 20,
|
|
|
+ sn: '',
|
|
|
+ status: [1],
|
|
|
+ sort: 'id desc',
|
|
|
+ checkStatus: null
|
|
|
+ }
|
|
|
+ this.getDataList()
|
|
|
+ },
|
|
|
/**请求列表数据 */
|
|
|
getDataList() {
|
|
|
this.loading = true
|