|
@@ -78,7 +78,7 @@
|
|
|
|
|
|
<el-table-column label="入库时间">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.deliverTime }}
|
|
|
+ {{ scope.row.updateTime }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
@@ -94,7 +94,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column label="批次编号" prop="model" width="80">
|
|
|
+ <el-table-column label="批次编号">
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.batchNum }}
|
|
|
</template>
|
|
@@ -131,7 +131,7 @@
|
|
|
@current-change="pageCurrentChangeHandle">
|
|
|
</el-pagination>
|
|
|
|
|
|
- <Create v-if="addVisible" ref="create" @refreshDataList="searchHandle"></Create>
|
|
|
+ <Create v-if="addVisible" ref="create" @refreshDataList="getDataList"></Create>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -152,7 +152,7 @@ export default {
|
|
|
index: 1,
|
|
|
length: 20,
|
|
|
sn: '',
|
|
|
- status: [],
|
|
|
+ status: [1],
|
|
|
sort: 'id desc',
|
|
|
},
|
|
|
//总条数
|
|
@@ -185,19 +185,14 @@ export default {
|
|
|
/**请求列表数据 */
|
|
|
getDataList() {
|
|
|
this.loading = true
|
|
|
- this.listQuery.status.push(1)
|
|
|
- // getInfoList(this.listQuery).then(res => {
|
|
|
- // debugger
|
|
|
- // if (res.code === 200) {
|
|
|
- // this.data = res.data
|
|
|
- // this.total = res.total
|
|
|
- // this.loading = false
|
|
|
- // } else {
|
|
|
- // this.loading = false
|
|
|
- // return this.$message.error(res.message)
|
|
|
- // }
|
|
|
- // })
|
|
|
- getInfoList(this.listQuery).then(response => {
|
|
|
+ let dataForm = {
|
|
|
+ index: this.listQuery.index,
|
|
|
+ length: this.listQuery.length,
|
|
|
+ sn: this.listQuery.sn,
|
|
|
+ status: [1],
|
|
|
+ sort: this.listQuery.sort,
|
|
|
+ }
|
|
|
+ getInfoList(dataForm).then(response => {
|
|
|
if (response.code === 200) {
|
|
|
this.data = response.data
|
|
|
this.total = response.total
|