| | |
| | | <span class="info-value">{{ transferCardRowData.completeQuantity }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">待生产数量</span> |
| | | <span class="info-value">{{ (transferCardRowData.planQuantity || 0) - (transferCardRowData.completeQuantity || 0) }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">良品数量</span> |
| | | <span class="info-value">0</span> |
| | | </div> |
| | |
| | | { |
| | | label: "工单类型", |
| | | prop: "workOrderType", |
| | | width: "140", |
| | | width: "80", |
| | | }, |
| | | { |
| | | label: "工单编号", |
| | |
| | | width: "140", |
| | | }, |
| | | { |
| | | label: "规格", |
| | | prop: "model", |
| | | label: "图纸编号", |
| | | prop: "model" |
| | | }, |
| | | { |
| | | label: "单位", |
| | |
| | | { |
| | | label: "完成数量", |
| | | prop: "completeQuantity", |
| | | width: "140", |
| | | }, |
| | | { |
| | | label: "待生产数量", |
| | | prop: "pendingQuantity", |
| | | width: "140", |
| | | }, |
| | | { |
| | |
| | | clickFun: row => { |
| | | showReportDialog(row); |
| | | }, |
| | | disabled: row => row.planQuantity <= 0, |
| | | disabled: row => row.status === 1 || row.status === 3 || row.planQuantity <= 0, |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | productWorkOrderPage(params) |
| | | .then(res => { |
| | | tableLoading.value = false; |
| | | tableData.value = res.data.records; |
| | | tableData.value = res.data.records.map(item => ({ |
| | | ...item, |
| | | pendingQuantity: (item.planQuantity || 0) - (item.completeQuantity || 0) |
| | | })); |
| | | page.total = res.data.total; |
| | | }) |
| | | .catch(() => { |
| | |
| | | |
| | | const showReportDialog = row => { |
| | | currentReportRowData.value = row; |
| | | reportForm.planQuantity = row.planQuantity; |
| | | reportForm.planQuantity = row.planQuantity - row.completeQuantity; |
| | | reportForm.quantity = row.quantity; |
| | | reportForm.productProcessRouteItemId = row.productProcessRouteItemId; |
| | | reportForm.workOrderId = row.id; |