快乐的昕的电脑
2025-11-18 54851276eec8a3a609b2e5d2e2b27fc7b2e8902e
pages/index.vue
@@ -8,18 +8,18 @@
         <view class="tab-item" :class="{ active: currentTab === 0 }" @click="changeTab(0)">
            主界面
         </view>
         <view class="tab-item" :class="{ active: currentTab === 2 }" @click="changeTab(2)">
            上刀下刀
         </view>
         <view class="tab-item" :class="{ active: currentTab === 3 }" @click="changeTab(3)">
            调机送检
         </view>
         <view class="tab-item" :class="{ active: currentTab === 2 }" @click="changeTab(2)">
            刀具管理
         </view>
         <view class="tab-item" :class="{ active: currentTab === 4 }" @click="changeTab(4)">
            生产报工
         </view>
         <!-- <view class="tab-item" :class="{ active: currentTab === 1 }" @click="changeTab(1)">
            开工完工
         </view> -->
      开工完工
   </view> -->
         <view class="tab-item" :class="{ active: currentTab === 5 }" @click="changeTab(5)">
            e-SOP
         </view>
@@ -30,8 +30,8 @@
            设备点检
         </view>
         <!-- <view class="tab-item" :class="{ active: currentTab === 8 }" @click="changeTab(8)">
            打印机设置
         </view> -->
      打印机设置
   </view> -->
      </view>
      <view class="font"></view>
@@ -41,9 +41,9 @@
               <view class="top-right">
                  <button class="refresh-btn" @click="refresh">刷新</button>
               </view>
               <!--<view>
               <view>
                  <h4>一台机台只能选择一条工单(多选默认为最后一条)</h4>
               </view>-->
               </view>
               <view class="section top-section">
                  <view class="form-row">
                     <view>
@@ -177,11 +177,12 @@
      <view v-if="isShow" class="overlay">
         <view class="popup">
            <view class="form-row">
               <view>
               <view style="display: flex; align-items: center;">
                  <label style="float: left;margin-top: 18px;">点击按钮筛选工单状态:</label>
                  <superwei-combox :candidates="engineeringNoMapList" placeholder="请选择" v-model="engineeringNo"
                               @select="onEngineeringNoChange" class="picker"
                               style="padding: 7px 46px;width: 650px;"></superwei-combox>
                  <span style="margin-left: 20px; color: #ff6600; font-size: 18px;">多选时只保留最后一条工单</span>
               </view>
            </view>
@@ -579,23 +580,10 @@
            let day = String(date.getDate()).padStart(2, '0'); // 获取日期并补零
            return `${year}-${month}-${day}`; // 返回格式化后的字符串
         },
            selectionChange(e) {
                // 只保留最后选中的那一条
                if (e.detail && e.detail.index !== undefined) {
                    this.selectedIndexs = [e.detail.index];
                    // 取消其他已选
                    this.$nextTick(() => {
                        // 获取表格ref
                        const table = this.$refs.table;
                        if (table && table.clearSelection) {
                            table.clearSelection();
                            // 重新选中当前
                            table.toggleRowSelection(this.tableData[e.detail.index], true);
                        }
                    });
                }
            },
         selectionChange(e) {
                // 单选直接赋值
                this.selectedIndexs = [e.detail.index];
         },
         selectedItems() {
            return this.selectedIndexs.map(i => this.tableData[i])
@@ -905,7 +893,9 @@
        margin-top: 7px;
        margin-left: 10px;
        text-align: center;
        font-size: 100%;
        font-size: 32px !important; // 强制大字体,适配低密度
        min-height: 60px; // 让选择框高度也变大
        line-height: 60px;
        padding: 5.5px 1px;
        background-color: #fff; // 这里改为蓝色
        border: 2px solid #007aff; // 边框也改为蓝色