| | |
| | | <el-button type="primary" @click="handleQuery" style="margin-left: 10px">搜索</el-button> |
| | | </div> |
| | | <div> |
| | | <el-button type="primary" @click="openForm('add')">新增</el-button> |
| | | <!-- <el-button type="primary" @click="openForm('add')">新增</el-button> --> |
| | | <el-button @click="handleOut">导出</el-button> |
| | | <el-button type="danger" plain @click="handleDelete">删除</el-button> |
| | | </div> |
| | |
| | | prop: "model", |
| | | }, |
| | | { |
| | | label: "生产批号", |
| | | prop: "batchNo", |
| | | width: 140, |
| | | }, |
| | | { |
| | | label: "料号", |
| | | prop: "materialCode", |
| | | }, |
| | |
| | | params.entryDate = undefined |
| | | qualityUnqualifiedListPage(params).then(res => { |
| | | tableLoading.value = false; |
| | | tableData.value = res.data.records |
| | | const records = res.data.records || []; |
| | | tableData.value = records.map((row) => ({ |
| | | ...row, |
| | | batchNo: row.batchNo ?? row.productionBatchNo ?? "", |
| | | })); |
| | | page.total = res.data.total; |
| | | }).catch(err => { |
| | | tableLoading.value = false; |