| | |
| | | v-show="showSearch" |
| | | label-width="68px" |
| | | > |
| | | <el-form-item label="工序编码" prop="processNumber"> |
| | | <el-input |
| | | v-model="queryParams.processNumber" |
| | | placeholder="请输入工序编码" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="工序名称" prop="processName"> |
| | | <el-input |
| | | v-model="queryParams.processName" |
| | | placeholder="请输入工序名称" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="资源组" prop="resourceGroupName"> |
| | | <el-input |
| | | v-model="queryParams.resourceGroupName" |
| | | placeholder="请输入资源组" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="产能模型" prop="model"> |
| | | <el-input |
| | | v-model="queryParams.model" |
| | | placeholder="请输入产能模型: 独占/合批" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="设计产能" prop="designCapacity"> |
| | | <el-input |
| | | v-model="queryParams.designCapacity" |
| | | placeholder="请输入设计产能" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="工厂" prop="plant"> |
| | | <el-input |
| | | v-model="queryParams.plant" |
| | | placeholder="请输入工厂" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="车间" prop="workShop"> |
| | | <el-input |
| | | v-model="queryParams.workShop" |
| | | placeholder="请输入车间" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="日历描述" prop="workCalender"> |
| | | <el-input |
| | | v-model="queryParams.workCalender" |
| | | placeholder="请输入日历描述" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="6"> |
| | | <el-form-item label="工序编码" prop="processNumber" style="width:100%"> |
| | | <el-input |
| | | v-model="queryParams.processNumber" |
| | | placeholder="请输入工序编码" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="工序名称" prop="processName" style="width:100%"> |
| | | <el-input |
| | | v-model="queryParams.processName" |
| | | placeholder="请输入工序名称" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="资源组" prop="resourceGroupName" style="width:100%"> |
| | | <el-input |
| | | v-model="queryParams.resourceGroupName" |
| | | placeholder="请输入资源组" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="产能模型" prop="model" style="width:100%"> |
| | | <el-input |
| | | v-model="queryParams.model" |
| | | placeholder="请输入产能模型: 独占/合批" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="6"> |
| | | <el-form-item label="设计产能" prop="designCapacity" style="width:100%"> |
| | | <el-input |
| | | v-model="queryParams.designCapacity" |
| | | placeholder="请输入设计产能" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="工厂" prop="plant" style="width:100%"> |
| | | <el-select |
| | | clearable |
| | | 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-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="车间" prop="workShop" style="width:100%"> |
| | | <el-input |
| | | v-model="queryParams.workShop" |
| | | placeholder="请输入车间" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="日历描述" prop="workCalender" style="width:100%"> |
| | | <el-input |
| | | v-model="queryParams.workCalender" |
| | | placeholder="请输入日历描述" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <!-- <el-form-item> |
| | | <el-button type="primary" icon="Search" @click="handleQuery" |
| | | >搜索</el-button |
| | | > |
| | | <el-button icon="Refresh" @click="resetQuery">重置</el-button> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | |
| | | </el-col> |
| | | <right-toolbar |
| | | v-model:showSearch="showSearch" |
| | | @queryTable="getList" |
| | | @queryTable="handleQuery" |
| | | @resetTable="resetQuery" |
| | | ></right-toolbar> |
| | | </el-row> |
| | | |
| | |
| | | /> |
| | | </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); |
| | |
| | | const total = ref(0); |
| | | const title = ref(""); |
| | | //弹窗相关 |
| | | const height = ref(document.documentElement.clientHeight - 330 + "px;"); |
| | | const height = ref(document.documentElement.clientHeight - 270 + "px;"); |
| | | const isVisible = ref(false); |
| | | const isError = ref(false); |
| | | const planned = 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> |