| | |
| | | > |
| | | </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> |
| | |
| | | width: 120 |
| | | }, |
| | | { |
| | | label: "生产工单号", |
| | | prop: "workOrderNo", |
| | | width: 120 |
| | | }, |
| | | { |
| | | label: "生产批号", |
| | | prop: "batchNo", |
| | | width: 140 |
| | | }, |
| | | { |
| | | label: "检验员", |
| | | prop: "checkName", |
| | | }, |
| | |
| | | prop: "model", |
| | | }, |
| | | { |
| | | label: "料号", |
| | | prop: "materialCode", |
| | | }, |
| | | { |
| | | label: "单位", |
| | | prop: "unit", |
| | | }, |
| | | { |
| | | label: "数量", |
| | | prop: "quantity", |
| | | width: 100 |
| | | }, |
| | | { |
| | | label: "合格数量", |
| | | prop: "qualifiedQuantity", |
| | | width: 100 |
| | | }, |
| | | { |
| | | label: "不良数量", |
| | | prop: "defectiveQuantity", |
| | | width: 100 |
| | | }, |
| | | { |
| | | label: "不良原因", |
| | | prop: "defectiveReason", |
| | | width: 100 |
| | | }, |
| | | { |
| | |
| | | params.entryDate = undefined |
| | | qualityInspectListPage({...params, inspectType: 2}).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; |
| | |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | proxy.download("/quality/qualityInspect/export", {inspectType: 2}, "出厂检验.xlsx"); |
| | | proxy.download("/quality/qualityInspect/export", {inspectType: 2}, "成品检验.xlsx"); |
| | | }) |
| | | .catch(() => { |
| | | proxy.$modal.msg("已取消"); |