gaoluyang
11 小时以前 adc50a4df8a64636a07c53f5bd50edb10fbfd1eb
src/views/productionManagement/workOrderManagement/index.vue
@@ -12,6 +12,15 @@
                    prefix-icon="Search" />
        </div>
        <div class="search-item">
          <span class="search_title">生产订单号:</span>
          <el-input v-model="searchForm.productOrderNpsNo"
                    style="width: 240px"
                    placeholder="请输入"
                    @change="handleQuery"
                    clearable
                    prefix-icon="Search" />
        </div>
        <div class="search-item">
          <el-button type="primary"
                     @click="handleQuery">搜索</el-button>
        </div>
@@ -163,6 +172,12 @@
        </span>
      </template>
    </el-dialog>
    <MaterialDialog
      v-model="materialDialogVisible"
      :row-data="currentMaterialOrderRow"
      @refresh="getList"
    />
    
    <FilesDia ref="workOrderFilesRef" />
  </div>
@@ -181,6 +196,7 @@
  import QRCode from "qrcode";
  import { getCurrentInstance, reactive, toRefs } from "vue";
  import FilesDia from "./components/filesDia.vue";
  import MaterialDialog from "./components/MaterialDialog.vue";
  const { proxy } = getCurrentInstance();
  const tableColumn = ref([
@@ -255,7 +271,7 @@
    },
    {
      label: "操作",
      width: "200",
      width: "260",
      align: "center",
      dataType: "action",
      fixed: "right",
@@ -278,6 +294,12 @@
            showReportDialog(row);
          },
          disabled: row => row.planQuantity <= 0,
        },
        {
          name: "物料",
          clickFun: row => {
            openMaterialDialog(row);
          },
        },
      ],
    },
@@ -396,6 +418,8 @@
  };
  
  const currentReportRowData = ref(null);
  const materialDialogVisible = ref(false);
  const currentMaterialOrderRow = ref(null);
  const page = reactive({
    current: 1,
    size: 100,
@@ -405,6 +429,7 @@
  const data = reactive({
    searchForm: {
      workOrderNo: "",
      productOrderNpsNo: "",
    },
  });
  const { searchForm } = toRefs(data);
@@ -545,6 +570,11 @@
      });
    reportDialogVisible.value = true;
  };
  const openMaterialDialog = row => {
    currentMaterialOrderRow.value = row;
    materialDialogVisible.value = true;
  };
  const handleReport = () => {
@@ -786,4 +816,4 @@
      height: 140px !important;
    }
  }
</style>
</style>