| | |
| | | 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"; |
| | |
| | | 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); |
| | |
| | | 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: "车间", |
| | |
| | | const handleFileUploadProgress = (event, file, fileList) => { |
| | | upload.isUploading = true; |
| | | }; |
| | | |
| | | onMounted(async () => { |
| | | /** 查询工厂列表 */ |
| | | const response = await listAll_plant({}); |
| | | plantList.value = response.data; |
| | | loading.value = false; |
| | | }); |
| | | getList(); |
| | | </script> |