huminmin
4 天以前 7ff48284cc634e02abed3a545630e9d680bbf19f
src/views/productionManagement/workOrder/index.vue
@@ -227,6 +227,12 @@
        :isEdit="true"
        :row="currentReportRowData"
        @refreshData="getList"/>
    <VoltageSortingForm
        v-if="voltageSortingFormVisible"
        v-model:isShow="voltageSortingFormVisible"
        :isEdit="true"
        :row="currentReportRowData"
        @refreshData="getList"/>
  </div>
</template>
@@ -249,6 +255,7 @@
const {priority_type} = proxy.useDict("priority_type");
const CopperPrintingForm = defineAsyncComponent(() => import("./components/CopperPrintingForm.vue"));
const VoltageSortingForm = defineAsyncComponent(() => import("./components/VoltageSortingForm.vue"));
const tableColumn = ref([
  {
    label: "优先级",
@@ -364,7 +371,7 @@
        clickFun: row => {
          showReportDialog(row);
        },
        disabled: row => row.planQuantity <= 0,
        disabled: row => !row.isCanReport || row.planQuantity <= 0,
      },
    ],
  },
@@ -375,6 +382,7 @@
const qrRowData = ref(null);
const editDialogVisible = ref(false);
const copperPrintingFormVisible = ref(false);
const voltageSortingFormVisible = ref(false);
const transferCardVisible = ref(false);
const transferCardData = ref([]);
const transferCardQrUrl = ref("");
@@ -625,10 +633,14 @@
const showReportDialog = row => {
  currentReportRowData.value = row;
  if (row.processName === '印铜') {
  if (row.processName === '印铜' || row.processName === '印银') {
    copperPrintingFormVisible.value = true
    return
  }
  if (row.processName === '电压分选') {
    voltageSortingFormVisible.value = true
    return;
  }
  reportForm.planQuantity = row.planQuantity;
  reportForm.quantity = row.quantity !== undefined && row.quantity !== null ? row.quantity : null;
  reportForm.productProcessRouteItemId = row.productProcessRouteItemId;