|
|
@@ -28,11 +28,12 @@
|
|
|
@selection-change="detailSelectionChange" style="width: 100%;height: 65vh" border
|
|
|
:summary-method="getSummaries" tooltip-effect="dark" :data="recordtableData" row-key="ID" >
|
|
|
<!-- <el-table-column align="center" type="selection" width="40"//> -->
|
|
|
- <el-table-column align="left" label="入库单" prop="出库单" width="170"/>
|
|
|
- <!-- <el-table-column align="left" label="订单编号" prop="订单编号" width="150"/> -->
|
|
|
- <!-- <el-table-column align="left" label="款号" prop="款号" width="150"/> -->
|
|
|
- <!-- <el-table-column align="left" label="物料名称" prop="物料名称" width="150"/> -->
|
|
|
- <el-table-column align="left" label="单号类型" prop="单号类型" width="150"/>
|
|
|
+ <el-table-column align="left" label="入库单" prop="出库单" width="140"/>
|
|
|
+ <el-table-column align="left" label="订单编号" prop="订单编号" width="180"/>
|
|
|
+ <el-table-column align="left" label="款号" prop="款号" width="180"/>
|
|
|
+ <el-table-column align="left" label="款式" prop="款式" width="180"/>
|
|
|
+ <el-table-column align="left" label="物料名称" prop="物料名称" width="180"/>
|
|
|
+ <el-table-column align="left" label="单号类型" prop="单号类型" width="90"/>
|
|
|
<el-table-column align="left" label="入库总数" prop="总数" width="110"/>
|
|
|
<el-table-column align="left" label="入库人员" prop="操作机台" width="110"/>
|
|
|
<el-table-column align="left" label="入库日期" prop="日期" width="160"/>
|
|
|
@@ -48,6 +49,18 @@
|
|
|
|
|
|
</el-table>
|
|
|
</el-tab-pane>
|
|
|
+ <!-- 分页 -->
|
|
|
+ <div class="gva-pagination">
|
|
|
+ <el-pagination
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :current-page="page"
|
|
|
+ :page-sizes="[10, 30, 50, 100]"
|
|
|
+ :page-size="pageSize"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="total">
|
|
|
+ </el-pagination>
|
|
|
+ </div>
|
|
|
</el-tabs>
|
|
|
<div class="dialog-footer" style="text-align: left;margin-right: 60px;">
|
|
|
</div>
|
|
|
@@ -314,6 +327,7 @@ const minutes = String(today.getMinutes()).padStart(2, '0');
|
|
|
const seconds = String(today.getSeconds()).padStart(2, '0');
|
|
|
const currentDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
|
|
const currentDates = `${year}-${month}-${day}`;
|
|
|
+const currentMonth = `${year}-${month}`;
|
|
|
//自动聚焦光标input
|
|
|
// const getMachineMacdata = async () => {
|
|
|
// setTimeout(() => {
|
|
|
@@ -392,7 +406,7 @@ const handleNodeClick = async (node, check) => {
|
|
|
}
|
|
|
|
|
|
//订单信息数据查询【接口】
|
|
|
- const ReceiptList_res = await ReceiptList({mouth:nodedata.value,search:'',page:1,limit:50});
|
|
|
+ const ReceiptList_res = await ReceiptList({mouth:nodedata.value,search:'',page:1,limit:50,code:'入库'});
|
|
|
if (ReceiptList_res && ReceiptList_res.data && Array.isArray(ReceiptList_res.data.table)) {
|
|
|
const filteredData = ReceiptList_res.data.table.filter(item => item.单号类型 === '入库');
|
|
|
// 更新数据
|
|
|
@@ -407,7 +421,7 @@ const handleNodeClick = async (node, check) => {
|
|
|
|
|
|
//查询按钮
|
|
|
const search_onSubmit = async () => {
|
|
|
- const UnapprovalListtable = await ReceiptList({ mouth: '', search: records_searchInfo.value, page: 1, limit: 50 });
|
|
|
+ const UnapprovalListtable = await ReceiptList({ mouth: '', search: records_searchInfo.value, page: 1, limit: 50,code:'入库' });
|
|
|
if (UnapprovalListtable && UnapprovalListtable.data && Array.isArray(UnapprovalListtable.data.table)) {
|
|
|
const filteredData = UnapprovalListtable.data.table.filter(item => item.单号类型 === '入库');
|
|
|
// 更新数据
|
|
|
@@ -801,11 +815,12 @@ const records_onSubmit = async () => {
|
|
|
// 清空数组
|
|
|
recordtableData.splice(0, recordtableData.length);
|
|
|
// 获取入库单数据
|
|
|
- const ReceiptList_res = await ReceiptList({ mouth: '', search: '', page: 1, limit: 50 });
|
|
|
+ const ReceiptList_res = await ReceiptList({ mouth: nodedata.value ? nodedata.value : currentMonth, search: '', page: 1, limit: 50,code:'入库' });
|
|
|
if (ReceiptList_res && ReceiptList_res.data && Array.isArray(ReceiptList_res.data.table)) {
|
|
|
const filteredData = ReceiptList_res.data.table.filter(item => item.单号类型 === '入库');
|
|
|
// 更新数据
|
|
|
recordtableData.splice(0, 0, ...filteredData);
|
|
|
+ total.value = ReceiptList_res.data.total;
|
|
|
} else {
|
|
|
console.error("数据获取失败");
|
|
|
}
|
|
|
@@ -908,18 +923,18 @@ const detailSelectionChange = (selection, type) => {
|
|
|
// 分页相关的响应式变量
|
|
|
const page = ref(1)
|
|
|
const total = ref(0)
|
|
|
-const pageSize = ref(10)
|
|
|
+const pageSize = ref(50)
|
|
|
// 分页
|
|
|
const handleCurrentChange = (val) => {
|
|
|
page.value = val;
|
|
|
- _getStaffList();
|
|
|
+ records_onSubmit();
|
|
|
};
|
|
|
|
|
|
// 修改页面容量 点击多少条/页
|
|
|
const handleSizeChange = (val) => {
|
|
|
- page.value = 10;//默认显示
|
|
|
+ page.value = 1;//默认显示
|
|
|
pageSize.value = val;
|
|
|
- _getStaffList();
|
|
|
+ records_onSubmit();
|
|
|
};
|
|
|
</script>
|
|
|
<style scoped>
|