1.添加垛码明细查询展示页面

master
x_z 3 years ago
parent ae107bba11
commit 33140069d7

@ -22,19 +22,16 @@
prop="code" prop="code"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column label="操作" fixed="right">
label="扫码数量"
prop="count"
width="180"
show-overflow-tooltip
></el-table-column>
<el-table-column label="创建时间" prop="actDate" width="220" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-time"></i> <el-button
<span>{{ scope.row.actDate }}</span> type="text"
size="small"
@click.native="handleDel(scope.$index, scope.row)"
>减一
</el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作员" prop="actor" width="180"></el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
@ -49,7 +46,7 @@
</template> </template>
<script> <script>
import {codeList} from "../../api/warehouse/order"; import {getStackCodeList} from "@/api/production/stackCode";
import draggable from "vuedraggable"; import draggable from "vuedraggable";
export default { export default {
@ -64,7 +61,7 @@ export default {
return { return {
query: { query: {
code: "", code: "",
corpOrderId: "", orderIdFk: null,
page: 1, page: 1,
limit: 20, limit: 20,
}, },
@ -75,7 +72,6 @@ export default {
formLoading: false, formLoading: false,
formVisible: false, formVisible: false,
deleteLoading: false, deleteLoading: false,
orderNo: null,
busTypes: [], busTypes: [],
}; };
}, },
@ -115,9 +111,7 @@ export default {
}, },
getCodeList() { getCodeList() {
this.loading = true; this.loading = true;
// this.query.corpOrderId = this.idQuery.id; getStackCodeList(this.query) //
this.query.orderId = this.idQuery.id;
codeList(this.query) //
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
this.codeArry = response.data.list || []; this.codeArry = response.data.list || [];
@ -130,7 +124,6 @@ export default {
}); });
}, },
intentBack() { intentBack() {
// this.$router.push({path:'../readme/detail',query:{id:row.corpOrderId}});
this.$router.go(-1); this.$router.go(-1);
}, },
}, },
@ -143,15 +136,10 @@ export default {
}, },
created() { created() {
// //
let query = this.$route.query; this.query.orderIdFk = this.idQuery.orderIdFk;
this.orderNo = query.id;
this.query = Object.assign(this.query, query);
this.query.limit = parseInt(this.query.limit);
this.query.corpOrderId = query.id;
// //
this.getCodeList(); this.getCodeList();
}, }
}; };
</script> </script>

@ -143,7 +143,8 @@ export default {
}); });
}, },
codeDetail(orderId) { codeDetail(orderId) {
this.codeDetailVisible = true;
this.idQuery.orderIdFk = orderId;
}, },
handleForm() { handleForm() {
@ -159,6 +160,7 @@ export default {
}, },
// //
handleDel(index, row) { handleDel(index, row) {
}, },
}, },
mounted() { mounted() {

Loading…
Cancel
Save