快乐的昕的电脑
2025-10-22 2a994d156f01072d865af6e8ff36d40c0a752796
components/machine.vue
@@ -1,6 +1,6 @@
<template>
   <view class="page">
      <!--调机送检-->
      <!-- 右上角刷新按钮 -->
      <view class="top-right">
         <button class="refresh-btn" @click="refresh">刷新</button>
@@ -26,7 +26,7 @@
            <button :class="maShoutTime ? 'btn-disabled' : 'btn-blue'"
                  :disabled="!!maShoutTime"
                  @click="handleMaShoutTime">
               送检呼叫(点击按钮|清零机台面板数)
               送检呼叫
            </button>
            <!-- 显示送检呼叫时间 -->
            <input class="txt-inp" v-model="maShoutTime" placeholder="点击按钮带出时间" disabled="true" />
@@ -43,7 +43,7 @@
         </view>-->
         <view class="item">
            <button class="btn-disabled" disabled>
               调机完成(=检验通过)
               调机完成(=检验通过=开工)
            </button>
            <input class="txt-inp" v-model="maEndTime" placeholder="首次首检确认通过写入" disabled="true" />
         </view>
@@ -86,11 +86,12 @@
      },
      methods: {
         // 处理调机开始按钮点击
         handleMaStartTime() {
            if (!this.maStartTime) {
               this.setMaStartTime();
            }
         },
            handleMaStartTime() {
                if (!this.maStartTime) {
                    this.setMaStartTime();
                    this.flag = -1; // 调机开始按钮按下时回传的flag=-1
                }
            },
         // 处理送检呼叫按钮点击
         handleMaShoutTime() {
            if (!this.maShoutTime) {
@@ -156,6 +157,7 @@
                  break;
               case 1:
                  this.maShoutTime = this.$getDate('yyyy-mm-dd hh24:mi:ss');
                  this.flag = -1; // 送检呼叫有值后,flag始终为-1
                  break;
               case 2:
                  break;