From cbbfbfc60079a8ccdc1f40b5011c7c3c7a1b87a2 Mon Sep 17 00:00:00 2001 From: wangfei <3597712270@qq.com> Date: 星期四, 01 八月 2024 16:38:17 +0800 Subject: [PATCH] 新增值班信息按钮及功能 --- UI-Project/src/views/Returns/returns.vue | 63 +++++++++++++++++++++++++++++++ 1 files changed, 63 insertions(+), 0 deletions(-) diff --git a/UI-Project/src/views/Returns/returns.vue b/UI-Project/src/views/Returns/returns.vue index 3c14673..e7eabb7 100644 --- a/UI-Project/src/views/Returns/returns.vue +++ b/UI-Project/src/views/Returns/returns.vue @@ -17,6 +17,8 @@ const flakea = ref(false) const flakeb = ref(false) const flakec = ref(false) +const dialoglea = ref(false) +const tableDatax = ref([]) const user = ref(''); const projectNo = ref(''); const workstationId = ref(''); @@ -87,6 +89,40 @@ } catch (error) { // 澶勭悊璇锋眰澶辫触鐨勬儏鍐� // ElMessage.error('鑾峰彇琛ㄦ牸鏁版嵁澶辫触锛岃閲嶈瘯'); + } +}; +const handlezhiban = () => { + dialoglea.value = true; // 鎵撳紑缁戝畾鏋跺瓙瀵硅瘽妗� + fetchFlowCardId(); +}; +// 鍊肩彮淇℃伅 +const fetchFlowCardId = async () => { + try { + const response = await request.post('/loadGlass/work_assignment/selectWorkAssignment',{ + line: 2001, + workingProcedure : '鍐峰姞宸�' + }) + if (response.code == 200) { + ElMessage.success(response.message); + tableDatax.value = response.data; + console.log(tableDatax.value); + console + } else { + ElMessage.error(response.message); + } +} +catch (error) { + // 澶勭悊閿欒 + console.error(error); + } +} +const handleConfirmb = async () => { + const response = await request.post("/loadGlass/work_assignment/updateWorkAssignment", tableDatax.value) + if (response.code === 200) { + ElMessage.success(response.message); + dialoglea.value = false; + } else { + ElMessage.error(response.message); } }; onMounted(() => { @@ -654,6 +690,7 @@ <el-button style="margin-top: 5px;margin-left: 15px;" id="searchButton" type="primary" @click="dialogFormVisible = true">{{ $t('basicData.selectproject') }}</el-button> <el-button style="margin-top: 5px;margin-left: 20px;" id="searchButton" type="primary" @click="handleBind">{{ $t('basicData.startloading') }}</el-button> <el-button style="margin-top: 5px;margin-left: 20px;" id="searchButton" type="warning" @click="handleBinda">{{ $t('basicData.stop') }}</el-button> + <el-button style="margin-top: 5px;margin-left: 20px;" id="searchButton" type="info" @click="handlezhiban">{{ $t('searchOrder.dutyinformation') }}</el-button> <!-- <el-button style="margin-top: 5px;margin-left: 20px;" id="searchButton" type="danger" @click="handleBindb">鍋滄浠诲姟</el-button> --> <el-card style="flex: 1;margin-left: 10px;margin-top: 15px;" v-loading="loading"> @@ -715,6 +752,32 @@ </div> </template> </el-dialog> + +<el-dialog v-model="dialoglea" top="15vh" width="70%" :title="$t('searchOrder.dutyinformation')"> + <el-table ref="table" style="margin-top: 20px;height: 300px;" + :data="tableDatax" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}"> + <el-table-column prop="line" fixed align="center" :label="$t('searchOrder.line')"/> + <el-table-column prop="workProcesses" fixed align="center" :label="$t('searchOrder.process')" /> + <el-table-column prop="teamsGroupsName" align="center" :label="$t('searchOrder.team')"> + <template #default="{ row }"> + <el-input v-model="row.teamsGroupsName" autocomplete="off" min-width="150"/> + </template> + </el-table-column> + <el-table-column prop="deviceName" align="center" :label="$t('searchOrder.basic')"> + <template #default="{ row }"> + <el-input v-model="row.deviceName" autocomplete="off" min-width="150"/> + </template> + </el-table-column> + </el-table> + <template #footer> + <div id="dialog-footer"> + <el-button type="primary" @click="handleConfirm"> + {{ $t('searchOrder.add') }} + </el-button> + <el-button @click="dialoglea = false">{{ $t('searchOrder.cancel') }}</el-button> + </div> + </template> +</el-dialog> <el-dialog v-model="blinda" top="30vh" width="25%" :title="$t('basicData.whetherpause')"> <template #footer> <div id="dialog-footer"> -- Gitblit v1.8.0