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