<template>
  <div class="container2">
    <button class="button" @click="reportWork">报工</button>
    <button class="button" @click="dispatchMaterial">发料</button>
  </div>
</template>

<script>
export default {
  methods: {
    reportWork() {
    
      window.location.hash = '/touch/moldreporting'; // 跳转到指定链接
   
    },
    dispatchMaterial() {
      window.location.hash = '/touch/moldsend'; // 跳转到指定链接
    },
  },
};
</script>

<style>
.container2 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f2f2f2;
}

.button {
  padding: 40px 80px;
  font-size: 20px;
  background-color: #ddd;
  border: none;
  border-radius: 10px;
  margin: 10px;
  cursor: pointer;
}
</style>