| | |
| | | <el-button size="small" style="height: 2rem" @click="resetQuery" |
| | | >éç½®</el-button |
| | | > |
| | | <el-button |
| | | @click="opendoor" |
| | | type="primary" |
| | | size="small" |
| | | style="margin-left: 0.98rem; height: 2rem" |
| | | >å¥çæå¼é¨</el-button |
| | | > |
| | | <el-button |
| | | @click="closeDoor" |
| | | type="primary" |
| | | size="small" |
| | | style="margin-left: 0.98rem; height: 2rem" |
| | | >å¥çæå
³é¨</el-button |
| | | > |
| | | </div> |
| | | <div class="btns"> |
| | | <div style="display: flex; align-items: center"> |
| | |
| | | <div style="margin-top: 1rem; height: 100%"> |
| | | <!-- æºæ¢° --> |
| | | <el-table |
| | | empty-text="ææ æ°æ®" |
| | | v-if="isactive == 'æºæ¢°'" |
| | | height="450" |
| | | :data="tableData" |
| | |
| | | |
| | | <!-- çµæ° --> |
| | | <el-table |
| | | empty-text="ææ æ°æ®" |
| | | height="450" |
| | | v-if="isactive == 'çµæ°'" |
| | | :data="tableData" |
| | |
| | | |
| | | <!-- å°æ² --> |
| | | <el-table |
| | | empty-text="ææ æ°æ®" |
| | | height="450" |
| | | v-if="isactive == 'å°æ²'" |
| | | :data="tableData" |
| | |
| | | GetPageDataNew, |
| | | } from "@/api/newapi/Thecurrentjob"; |
| | | import { GetSleeveandStep } from "@/api/newapi/Process"; |
| | | import { ChanegOpenDoor, ChanegCloseDoor } from "@/api/newapi/Putake"; |
| | | import { GetUserInfo } from "@/api/user"; |
| | | |
| | | const router = useRouter(); |
| | |
| | | const TTnum = ref(0); |
| | | //页颿° |
| | | const pageTotal = ref(0); |
| | | //确认é¢å |
| | | //确认é¢å/确认å½è¿ |
| | | const claim = (val, num) => { |
| | | console.log(val, num); |
| | | |
| | | claimdata.value.id = val.njtakeid; |
| | | claimdata.value.gruops = isactive.value; |
| | | GetSleeveandStep(claimdata.value.gruops).then((res) => { |
| | |
| | | }; |
| | | //æ¹åç¶æ |
| | | const changeStatus = () => { |
| | | console.log(claimdata.value); |
| | | ChangeStatus(claimdata.value).then((res) => { |
| | | ElMessage({ |
| | | message: "æå", |
| | |
| | | userId: JSON.parse(localStorage.getItem("user")).id, |
| | | group: isactive.value, |
| | | }; |
| | | console.log(obj); |
| | | |
| | | // GetPageDataNew(obj).then((res) => { |
| | | // tableData.value = res.data; |
| | | // pageTotal.value = res.data.length; |
| | |
| | | }); |
| | | }; |
| | | |
| | | const opendoor = () => { |
| | | ChanegOpenDoor(isactive.value).then((res) => { |
| | | if (res.status == true) { |
| | | ElMessage({ |
| | | message: "å¼é¨æå", |
| | | type: "success", |
| | | }); |
| | | } else { |
| | | ElMessage({ |
| | | message: res.msg, |
| | | type: "error", |
| | | }); |
| | | } |
| | | }); |
| | | initData(); |
| | | }; |
| | | const closeDoor = () => { |
| | | ChanegCloseDoor(isactive.value).then((res) => { |
| | | if (res.status == true) { |
| | | ElMessage({ |
| | | message: "å
³é¨æå", |
| | | type: "success", |
| | | }); |
| | | } else { |
| | | ElMessage({ |
| | | message: res.msg, |
| | | type: "error", |
| | | }); |
| | | } |
| | | }); |
| | | initData(); |
| | | }; |
| | | |
| | | //æ°æ®åå§å |
| | | onMounted(() => { |
| | | initData(); |