CD配唱片
2025-04-27 f4bcf01171297bc16db79e543eda36a36957279b
src/views/basicData/standardProcess/index.vue
@@ -299,6 +299,7 @@
  addStandardProcess,
  updateStandardProcess,
} from "@/api/basicData/standardProcess";
import { listAll_plant } from "@/api/basicData/plant";
import HxlhTable from "@/components/HxlhTable/index.vue";
import { getToken } from "@/utils/auth.js";
import { ref } from "vue";
@@ -309,8 +310,9 @@
const page = ref({
  total: 0,
  current: 1,
  size: 10
  size: 10,
});
const plantList = ref([]);
const standardProcessList = ref([]);
const open = ref(false);
const loading = ref(true);
@@ -385,6 +387,15 @@
    field: "plant",
    width: 150,
    align: "center",
    formatter: ({ cellValue, row, column }) => {
      if (cellValue) {
        for (let i = 0; i < plantList.value.length; i++) {
          if (cellValue === plantList.value[i].plantCode) {
            return plantList.value[i].plantName;
          }
        }
      }
    },
  },
  {
    title: "车间",
@@ -621,6 +632,11 @@
const handleFileUploadProgress = (event, file, fileList) => {
  upload.isUploading = true;
};
onMounted(async () => {
  /** 查询工厂列表 */
  const response = await listAll_plant({});
  plantList.value = response.data;
  loading.value = false;
});
getList();
</script>