| | |
| | | component: () => import('../views/pp/glassOptimize/OptimizePrint.vue'), |
| | | }, |
| | | { |
| | | path: '/projectDetail/:projectNo', |
| | | name: 'projectDetail', |
| | | component: () => import('../views/pp/glassOptimize/OptimizeProject.vue'), |
| | | }, |
| | | { |
| | | path: '/glassInventory/:thickNess/:model', |
| | | name: 'glassInventory', |
| | | component: () => import('../views/pp/glassOptimize/OptimizeProject.vue'), |
| | | path: '/optimizeProject/:projectNo/:thickNess/:model', |
| | | name: 'optimizeInfo', |
| | | component: () => import('../views/pp/glassOptimize/OptimizeProject.vue') |
| | | }, |
| | | { |
| | | path: '', |
| | |
| | | const thickness = row.thickness; |
| | | const glassType = row.glassType; |
| | | await router.push({ |
| | | name: 'projectDetail', |
| | | query: { |
| | | projectNo: projectNumber |
| | | } |
| | | }); |
| | | await router.push({ |
| | | name: 'glassInventory', |
| | | query: { |
| | | name: 'optimizeInfo', |
| | | params: { |
| | | projectNo: projectNumber, |
| | | thickNess: thickness, |
| | | model: glassType |
| | | } |
| | |
| | | |
| | | const route = useRoute(); |
| | | |
| | | const thickness = ref(route.query.thickNess); |
| | | const model = ref(route.query.model); |
| | | const thickness = ref(route.params.thickNess); |
| | | const model = ref(route.params.model); |
| | | |
| | | |
| | | const selectMaterialStore = () =>{ |
| | |
| | | }); |
| | | xGrid.value.loadData(formattedData); |
| | | } else { |
| | | console.error('返回数据格式不符合预期,不是有效的对象数组格式'); |
| | | } |
| | | } else { |
| | | ElMessage.warning(res.msg); |
| | |
| | | <script setup> |
| | | import {onMounted, reactive, ref} from "vue"; |
| | | import {nextTick, onMounted, reactive, ref} from "vue"; |
| | | import {useI18n} from "vue-i18n"; |
| | | import {Folder, Plus, Setting, Operation,} from "@element-plus/icons-vue"; |
| | | import OptimizeCompute from "@/views/pp/glassOptimize/page/OptimizeCompute.vue"; |
| | |
| | | dialogVisible.value[index] = true; |
| | | }; |
| | | |
| | | const closeDialog = (index) => { |
| | | dialogVisible.value[index] = false; |
| | | }; |
| | | |
| | | const route = useRoute(); |
| | | //工程号 |
| | | const projectNo = ref(route.query.projectNo); |
| | | const projectNo = ref(route.params.projectNo); |
| | | const projectName = ref(''); |
| | | |
| | | const fetchData = () => { |
| | |
| | | item.shelf_number = 0; |
| | | }); |
| | | xGrid.value.loadData(res.data.data); |
| | | gridOptions.data = res.data.data; |
| | | projectName.value = res.data.data[0].project_name; |
| | | } else { |
| | | ElMessage.warning(res.msg); |
| | |
| | | title="设置磨量" |
| | | destroy-on-close |
| | | style="width: 35%;height:80%;margin-top: 3vh;"> |
| | | <set-amount/> |
| | | <set-amount :closeDialog="closeDialog" @set-amount="Amount"/> |
| | | </el-dialog> |
| | | |
| | | <el-button id="button" type="primary" @click="openDialog(3)">设置修边</el-button> |