快乐的昕的电脑
2025-11-22 000b6f0f6bdfe580f2366649211ea5870c00e106
pages/index.vue
@@ -18,8 +18,8 @@
            生产报工
         </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>
@@ -49,7 +49,7 @@
                     <view>
                        <!-- <label style="float: left;font-family: fantasy;font-size: 33px;margin-top: 20px">第一步选择机台:</label> -->
                        <!-- <superwei-combox :candidates="machineList" placeholder="请选择" v-model="machineName"
                        @select="onMachineChange" class="picker"></superwei-combox> -->
                     @select="onMachineChange" class="picker"></superwei-combox> -->
                        <input v-model="machineName" disabled="true" type="text" style="float: left;font-family: fantasy;font-size: 33px;margin-top: 20px" />
                     </view>
                  </view>
@@ -130,9 +130,9 @@
               <view>
                  <!--<text style="color: red;">
                     说明:只能同时开工一个工单。选择完成,点击保存选择。系统保留选中的工单。
                     如果要重选,点击清空重选功能。
                  </text>-->
                  说明:只能同时开工一个工单。选择完成,点击保存选择。系统保留选中的工单。
                  如果要重选,点击清空重选功能。
               </text>-->
               </view>
            </view>
         </view>
@@ -205,7 +205,11 @@
                           <uni-th align="center" class="th" style="color: #FFFFFF;width: 100px;">工单状态</uni-th>
                           <uni-th align="center" class="th" style="color: #FFFFFF;width: 100px;">报工人</uni-th>
                        </uni-tr>
                        <uni-tr v-for="(item, index) in tableData" :key="index">
                        <uni-tr v-for="(item, index) in tableData"
                              :key="index"
                              :class="{'row-selected': selectedIndexs.includes(index)}"
                              @click="onRowClick(index)"
                              style="cursor: pointer;">
                           <uni-td align="center">
                              <input class="form-input" disabled="true" type="text" v-model="item.procName" /><!--工序-->
                           </uni-td>
@@ -338,6 +342,9 @@
         this.refresh();
      },
      methods: {
            onRowClick(index) {
                this.selectedIndexs = [index]; // 单选
            },
         checkForUpdate() {
            this.$post({
               url: "/DevMachine/getAppUpgradeInfo",
@@ -742,6 +749,11 @@
</script>
<style lang="scss">
    .row-selected {
        background-color: #e0f3ff !important;
    }
   .font {
      background-color: #666666;
      height: 30px;