| | |
| | | <el-button id="searchButton" type="success" @click="handlezhiban"> |
| | | {{ $t('hellow.createtask') }} |
| | | </el-button> |
| | | <el-button style="margin-left: 20px;" id="searchButton" type="success" @click="handleBinda"> |
| | | <el-button type="success" @click="selectproject"> |
| | | {{ $t('basicData.selectproject') }} |
| | | </el-button> |
| | | <el-button style="margin-left: 10px;" id="searchButton" type="success" @click="handleBinda"> |
| | | {{ $t('hellow.starttask') }} |
| | | </el-button> |
| | | <el-button style="margin-left: 20px;" id="searchButton" type="success" @click="handleBindb">{{ |
| | |
| | | </div> |
| | | </template> |
| | | </el-dialog> |
| | | <!-- 预览 --> |
| | | <el-dialog v-model="dialogFormVisiblee" top="24vh" width="30%" :title="$t('basicData.project')" > |
| | | <div style="margin-left: 50px;margin-bottom: 10px;"> |
| | | <el-form-item :label="$t('basicData.projectnumber')" :required="true"> |
| | | <el-select |
| | | v-model="selectedProjectNo" |
| | | filterable |
| | | clearable |
| | | :placeholder="$t('basicData.plselectproject')" |
| | | style="width: 220px" |
| | | @input="handleInputChange" |
| | | > |
| | | <el-option |
| | | v-for="item in titleSelectJson.processType" |
| | | :key="item.value" |
| | | :label="item.value" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </div> |
| | | <template #footer> |
| | | <div id="dialog-footer"> |
| | | <el-button type="primary" @click="handleup"> |
| | | {{ $t('basicData.confirm') }} |
| | | </el-button> |
| | | <el-button @click="dialogFormVisiblee = false">{{ $t('basicData.cancel') }}</el-button> |
| | | </div> |
| | | </template> |
| | | </el-dialog> |
| | | </template> |
| | | <script setup> |
| | | import {ElMessage} from 'element-plus' |
| | |
| | | const flowCard = ref('') |
| | | const cell = ref('') |
| | | const cella = ref('') |
| | | const selectedProjectNo = ref(''); |
| | | const ganghua = ref(true) |
| | | const totalPairQuantity = ref('') |
| | | const totalPairQuantitya = ref('') |
| | |
| | | const dialogFormVisibleb = ref(false) |
| | | const dialogFormVisiblec = ref(false) |
| | | const dialogFormVisibled = ref(false) |
| | | const dialogFormVisiblee = ref(false) |
| | | const currentPage2 = ref(1) |
| | | const currentRow = reactive({}); |
| | | const formattedProcessType = ref([]); |
| | | const titleSelectJson = ref({ processType: [] }); |
| | | const options = [ |
| | | { |
| | | value: 930, |
| | |
| | | dialogFormVisiblea.value = true; |
| | | fetchFlowCardId(); |
| | | }; |
| | | // 预览 |
| | | const selectproject = () => { |
| | | dialogFormVisiblee.value = true; |
| | | selectgong(); |
| | | }; |
| | | // 缺片详情 |
| | | const handleBindRack = (row) => { |
| | | currentPage2.value = 1; |
| | |
| | | ElMessage.error('Error fetching data'); |
| | | } |
| | | }; |
| | | // 工程号 |
| | | const selectgong = async () => { |
| | | try { |
| | | var url="/hollowGlass/hollowGlassOutRelationInfo/hollowTaskList?cell="+ 931; |
| | | const response = await request.post(url) |
| | | if (response.code == 200) { |
| | | const processTypes = response.data.map((projectNo, index) => ({ |
| | | value: projectNo, |
| | | label: projectNo |
| | | })); |
| | | titleSelectJson.value.processType = processTypes; |
| | | } else { |
| | | ElMessage.error('Failed to fetch data'); |
| | | } |
| | | } catch (error) { |
| | | ElMessage.error('Error fetching data'); |
| | | } |
| | | }; |
| | | const parseData = (rawData) => { |
| | | return Object.keys(rawData).map(projectNumber => ({ |
| | | projectNumber, |