| | |
| | | }, |
| | | }, |
| | | { |
| | | label: "是否入库", |
| | | prop: "inbound", |
| | | formatData: (params) => { |
| | | return params ? "是" : "否"; |
| | | }, |
| | | }, |
| | | { |
| | | label: "是否报工", |
| | | prop: "reportWork", |
| | | formatData: (params) => { |
| | | return params ? "是" : "否"; |
| | | }, |
| | | }, |
| | | { |
| | | label: "备注", |
| | | prop: "remark", |
| | | }, |
| | |
| | | tableLoading.value = false; |
| | | tableData.value = res.data.records.map(item => ({ |
| | | ...item, |
| | | typeText: item.type ? (item.type === 0 ? "计时" : "计件") : "", |
| | | typeText: item.type !== undefined && item.type !== null ? (item.type === 0 ? "计时" : "计件") : "", |
| | | })); |
| | | page.total = res.data.total; |
| | | }) |