Browse Source

2026-04-14

优化
master
fengyuan_yang 4 days ago
parent
commit
3fb9117c2d
  1. 38
      src/views/modules/yieldReport/com_produce_report_normal.vue

38
src/views/modules/yieldReport/com_produce_report_normal.vue

@ -917,6 +917,16 @@
<el-table-column prop="transactionBy" header-align="center" align="center" label="操作人" min-width="80"></el-table-column> <el-table-column prop="transactionBy" header-align="center" align="center" label="操作人" min-width="80"></el-table-column>
<el-table-column prop="transactionDate" header-align="center" align="center" label="操作时间" min-width="150"></el-table-column> <el-table-column prop="transactionDate" header-align="center" align="center" label="操作时间" min-width="150"></el-table-column>
</el-table> </el-table>
<el-pagination
@size-change="materialRecordSizeChangeHandle"
@current-change="materialRecordCurrentChangeHandle"
:current-page="materialRecordPageIndex"
:page-sizes="[10, 20, 50, 100]"
:page-size="materialRecordPageSize"
:total="materialRecordTotalPage"
layout="total, sizes, prev, pager, next, jumper"
style="margin-top: 0px;">
</el-pagination>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="showMaterialRecordFlag = false">关闭</el-button> <el-button @click="showMaterialRecordFlag = false">关闭</el-button>
</span> </span>
@ -1064,6 +1074,10 @@ export default {
showMaterialRecordFlag: false, // showMaterialRecordFlag: false, //
materialRecordList: [], // materialRecordList: [], //
materialRecordLoading: false, // materialRecordLoading: false, //
materialRecordPageIndex: 1, //
materialRecordPageSize: 20, //
materialRecordTotalPage: 0, //
currentRowForMaterialRecord: null, //
activeTable: 'order_info', activeTable: 'order_info',
orderInfo: { orderInfo: {
technicalNotes: '', technicalNotes: '',
@ -4387,20 +4401,40 @@ export default {
// //
}) })
}, },
//
materialRecordSizeChangeHandle(val) {
this.materialRecordPageSize = val;
this.materialRecordPageIndex = 1;
this.getMaterialRecordData();
},
//
materialRecordCurrentChangeHandle(val) {
this.materialRecordPageIndex = val;
this.getMaterialRecordData();
},
// //
showMaterialRecordDialog(row) { showMaterialRecordDialog(row) {
this.showMaterialRecordFlag = true; this.showMaterialRecordFlag = true;
this.materialRecordPageIndex = 1;
this.currentRowForMaterialRecord = row;
this.getMaterialRecordData();
},
//
getMaterialRecordData() {
this.materialRecordLoading = true; this.materialRecordLoading = true;
this.materialRecordList = []; this.materialRecordList = [];
let params = { let params = {
site: this.scheduleData.site, site: this.scheduleData.site,
orderNo: this.scheduleData.orderNo, orderNo: this.scheduleData.orderNo,
partNo: row.componentPartNo || row.partNo
partNo: this.currentRowForMaterialRecord.componentPartNo || this.currentRowForMaterialRecord.partNo,
page: this.materialRecordPageIndex,
limit: this.materialRecordPageSize
}; };
getMaterialRecordList(params).then(({data}) => { getMaterialRecordList(params).then(({data}) => {
this.materialRecordLoading = false; this.materialRecordLoading = false;
if (data && data.code === 0) { if (data && data.code === 0) {
this.materialRecordList = data.rows || [];
this.materialRecordList = data.page.list || [];
this.materialRecordTotalPage = data.page.totalCount || 0;
} else { } else {
this.$message.error(data.msg || '获取领料记录失败'); this.$message.error(data.msg || '获取领料记录失败');
} }

Loading…
Cancel
Save