空管耐用品库存管理前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.1 KiB

5 months ago
<template>
3 months ago
<el-dialog :title="purchaseTitle" append-to-body :visible.sync="openShow" width="70%" @close="closeDialog">
5 months ago
3 months ago
<avue-crud :data="data" :option="option" @current-change="currentChange" @size-change="sizeChange"
@refresh-change="refreshChange" :page.sync="page" @on-load="onLoad"></avue-crud>
</el-dialog>
5 months ago
</template>
<script>
3 months ago
import { getPutPurchaseList } from "@/api/firstOrder/outbound";
5 months ago
export default {
3 months ago
props: {
showDialog: {
type: Boolean,
default: false
5 months ago
},
3 months ago
purchaseTitle: {
type: String,
default: ''
5 months ago
},
3 months ago
id: {
type: Number,
default: 0
}
},
data() {
return {
openShow: false,
data: [],
query: {},
loading: false,
page: {
pageSize: 10,
currentPage: 1,
total: 0
},
option: {
menu: false,
header: false,
align: 'center',
// page: true,
column: [
{
label: '物资名称',
prop: 'materialName'
}, {
label: '计划需求数量',
3 months ago
prop: 'applicationQuantity'
3 months ago
}, {
label: '已出库数量',
prop: 'outboundQuantity'
}
]
}
}
},
mounted() {
this.openShow = this.showDialog
},
methods: {
closeDialog() {
this.openShow = false
this.$emit('closeDialog');
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
5 months ago
},
3 months ago
onLoad(page, params = {}) {
this.loading = true;
const queryParams = Object.assign(params, this.query, {
3 months ago
oneOutStorageId: this.id
3 months ago
});
getPutPurchaseList(page.currentPage, page.pageSize, queryParams).then(res => {
console.log('采购单列表', res.data.result)
// const data = res.data.data;
this.data = res.data.result.list;
this.loading = false;
this.page.total = res.data.result.total;
// this.selectionClear();
});
5 months ago
}
3 months ago
}
5 months ago
}
</script>
<style lang="scss" scoped></style>