| | |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="工厂" prop="plant"> |
| | | <el-input |
| | | v-model="queryParams.plant" |
| | | placeholder="请输入工厂" |
| | | <el-select |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | v-model="queryParams.plant" |
| | | style="width: 200px;" |
| | | placeholder="请输入适用工厂" |
| | | > |
| | | <el-option |
| | | v-for="plant in plantList" |
| | | :key="plant.id" |
| | | :label="plant.plantName" |
| | | :value="plant.plantCode" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="车间" prop="workShop"> |
| | | <el-input |
| | |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="工厂" prop="plant"> |
| | | <el-input v-model="form.plant" placeholder="请输入工厂" /> |
| | | <el-select |
| | | clearable |
| | | v-model="form.plant" |
| | | style="width: 100%" |
| | | placeholder="请输入适用工厂" |
| | | > |
| | | <el-option |
| | | v-for="plant in plantList" |
| | | :key="plant.id" |
| | | :label="plant.plantName" |
| | | :value="plant.plantCode" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="车间" prop="workShop"> |
| | | <el-input v-model="form.workShop" placeholder="请输入车间" /> |
| | |
| | | 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"; |
| | | import { ElMessage } from "element-plus"; |
| | | // import { ElMessage } from "element-plus"; |
| | | |
| | | const { proxy } = getCurrentInstance(); |
| | | // 分页属性 |
| | | 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: "车间", |
| | |
| | | { |
| | | title: "日历", |
| | | field: "workCalender", |
| | | width: 150, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: "专业", |
| | | field: "major", |
| | | width: 150, |
| | | align: "center", |
| | | }, |
| | |
| | | const handleFileUploadProgress = (event, file, fileList) => { |
| | | upload.isUploading = true; |
| | | }; |
| | | |
| | | onMounted(async () => { |
| | | /** 查询工厂列表 */ |
| | | const response = await listAll_plant({}); |
| | | plantList.value = response.data; |
| | | loading.value = false; |
| | | }); |
| | | getList(); |
| | | </script> |