| | |
| | | <ProductionRecordForm |
| | | ref="productionRecordFormRef" |
| | | :list="processParamList" |
| | | :quantity="reportForm.quantity" |
| | | :is-forming-process="isFormingProcess" |
| | | :bom-input-qty="reportBomInputQty" |
| | | /> |
| | | </el-form> |
| | | <template #footer> |
| | |
| | | v-model:isShow="copperPrintingFormVisible" |
| | | :isEdit="true" |
| | | :row="currentReportRowData" |
| | | :bom-input-qty="reportBomInputQty" |
| | | @refreshData="getList" |
| | | /> |
| | | <VoltageSortingForm |
| | |
| | | v-model:isShow="voltageSortingFormVisible" |
| | | :isEdit="true" |
| | | :row="currentReportRowData" |
| | | :bom-input-qty="reportBomInputQty" |
| | | @refreshData="getList" |
| | | /> |
| | | <GranulationForm |
| | |
| | | v-model:isShow="granulationFormVisible" |
| | | :isEdit="true" |
| | | :row="currentReportRowData" |
| | | :bom-input-qty="reportBomInputQty" |
| | | @refreshData="getList" |
| | | /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { onMounted, ref, nextTick } from "vue"; |
| | | import { onMounted, ref, nextTick, computed } from "vue"; |
| | | import { ElMessageBox } from "element-plus"; |
| | | import dayjs from "dayjs"; |
| | | import { |
| | |
| | | return; |
| | | } |
| | | reportForm.quantity = num; |
| | | nextTick(() => { |
| | | productionRecordFormRef.value?.syncInputWeight?.(); |
| | | }); |
| | | }; |
| | | |
| | | // 处理报废数量 |
| | |
| | | reportForm.scrapQty = num; |
| | | }; |
| | | const currentReportRowData = ref(null); |
| | | |
| | | const isFormingProcess = computed( |
| | | () => currentReportRowData.value?.processName === "成型" |
| | | ); |
| | | |
| | | const reportBomInputQty = computed(() => { |
| | | const bom = currentReportRowData.value?.bomInputQty; |
| | | if (bom === null || bom === undefined || bom === "") { |
| | | return null; |
| | | } |
| | | const n = Number(bom); |
| | | return Number.isFinite(n) ? n : null; |
| | | }); |
| | | |
| | | const page = reactive({ |
| | | current: 1, |
| | | size: 100, |
| | |
| | | }); |
| | | |
| | | reportDialogVisible.value = true; |
| | | nextTick(() => { |
| | | productionRecordFormRef.value?.syncInputWeight?.(); |
| | | }); |
| | | }; |
| | | |
| | | const openWorkOrderFiles = (row) => { |