张诺
8 小时以前 5cfebd7e46c0c53f79b5fb4a917e926194ab4398
src/views/productionManagement/productionOrder/index.vue
@@ -110,7 +110,13 @@
  const handleBindRouteSubmit =async (data)=>{
    const res = await saveProductionProductInput(data)
    console.log(res)
    if(res.code === 200){
      proxy.$modal.msgSuccess("绑定成功");
      bindRouteDialogVisible.value = false
      handleQuery()
    }else{
      proxy.$modal.msgError(res.msg || "绑定失败")
    }
  }
@@ -279,18 +285,20 @@
  const openBindRouteDialog = async (row,type) => {
    bindForm.orderId = row.id;
    bindForm.routeId = null;
    bindRouteDialogVisible.value = true;
    routeOptions.value = [];
    bindRouteLoading.value = true;
    if(type === "view") {
      bindDialogType.value = "view"
      let res = await viewGetByProductWordId(row.id)
      console.log(res)
    }
    BindRouteDialogRef.value?.getProductOrder()
    try {
      rowData.value = row;
      BindRouteDialogRef.value?.resetForm?.()
      if (type === "view") {
        bindDialogType.value = "detail"
        const res = await viewGetByProductWordId(row.id)
        rowData.value = res?.data || res
      } else {
        bindDialogType.value = "add"
        rowData.value = row
        rowData.value.finishedSize = row.specificationModel
      }
      bindRouteDialogVisible.value = true;
    } catch (e) {
      console.error("获取工艺路线列表失败:", e);
      proxy.$modal.msgError("获取工艺路线列表失败");