Revert "feat: 添加产品树过滤功能,支持新增和编辑场景下的产品类别选择"

This reverts commit bb91952d1f1f59c4719d77eaf56e47eafa10126a.
已删除1个文件
已修改2个文件
78 ■■■■■ 文件已修改
src/utils/productTree.js 59 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/procurementManagement/procurementLedger/index.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionPlan/productionPlan/index.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/productTree.js
ÎļþÒÑɾ³ý
src/views/procurementManagement/procurementLedger/index.vue
@@ -547,7 +547,7 @@
                              filterable
                              check-strictly
                              @change="getModels"
                              :data="productFormOptions"
                              :data="productOptions"
                              :render-after-expand="false"
                              style="width: 100%" />
            </el-form-item>
@@ -705,7 +705,6 @@
    onMounted,
    reactive,
    toRefs,
    computed,
    getCurrentInstance,
    nextTick,
  } from "vue";
@@ -763,7 +762,6 @@
  import dayjs from "dayjs";
  import FileUpload from "@/components/AttachmentUpload/file/index.vue";
  import { roundHalfUp, trimZeros } from "@/utils/formatNumber.js";
  import { filterRawMaterialTree } from "@/utils/productTree.js";
  const userStore = useUserStore();
@@ -961,12 +959,6 @@
  // äº§å“è¡¨å•弹框数据
  const productFormVisible = ref(false);
  const productOperationType = ref("");
  // æ–°å¢žäº§å“æ—¶äº§å“å¤§ç±»åªå±•示「原材料」,编辑时保持完整产品树
  const productFormOptions = computed(() =>
    productOperationType.value === "add"
      ? filterRawMaterialTree(productOptions.value)
      : productOptions.value
  );
  const productOperationIndex = ref("");
  const currentId = ref("");
  const productFormData = reactive({
src/views/productionPlan/productionPlan/index.vue
@@ -186,7 +186,7 @@
          <el-tree-select v-model="form.productId"
                          placeholder="请选择"
                          clearable
                          :data="productTreeOptions"
                          :data="productOptions"
                          :render-after-expand="false"
                          filterable
                          @change="handleProductChange"
@@ -283,7 +283,6 @@
    exportProductionPlan,
  } from "@/api/productionPlan/productionPlan.js";
  import { productTreeList, modelListPage } from "@/api/basicData/product.js";
  import { filterFinishedProductTree } from "@/utils/productTree.js";
  import PIMTable from "./components/PIMTable.vue";
  import ImportDialog from "@/components/Dialog/ImportDialog.vue";
@@ -511,12 +510,6 @@
  const dialogVisible = ref(false);
  const operationType = ref("add"); // add | edit
  const productOptions = ref([]);
  // æ–°å¢žç”Ÿäº§è®¡åˆ’时产品名称只展示「成品」,编辑时保持完整产品树
  const productTreeOptions = computed(() =>
    operationType.value === "add"
      ? filterFinishedProductTree(productOptions.value)
      : productOptions.value
  );
  const specificationOptions = ref([]);
  const queryRef = ref(null);
  const formRef = ref(null);