快乐的昕的电脑
2025-10-20 f29627ec7bee0fe77411cbcd49b8b5a971c32b01
pages/index.vue
@@ -15,7 +15,7 @@
            刀具管理
         </view>
         <view class="tab-item" :class="{ active: currentTab === 4 }" @click="changeTab(4)">
            打码报工
            生产报工
         </view>
         <view class="tab-item" :class="{ active: currentTab === 1 }" @click="changeTab(1)">
            开工完工
@@ -127,8 +127,7 @@
               <view>
                  <text style="color: red;">
                     说明:初始状态是,按齿轮机查出所有的未完工的工单。用选择框标识机器要开工的工单。
                     只能同时开工一个工单。选择完成,点击保存选择。系统保留选中的工单。
                     说明:只能同时开工一个工单。选择完成,点击保存选择。系统保留选中的工单。
                     如果要重选,点击清空重选功能。
                  </text>
               </view>
@@ -183,7 +182,7 @@
               <table>
                  <view class="section card">
                     <uni-table ref="table" type="radio" border stripe emptyText="暂无更多数据"
                     <uni-table ref="table" type="selection" border stripe emptyText="暂无更多数据"
                              @selection-change="selectionChange">
                        <uni-tr>
                           <uni-th align="center" class="th" style="color: #FFFFFF">工序</uni-th>
@@ -277,6 +276,9 @@
         return {
                orderStatus: '', // 默认全部
            currentTab: 7,
                productCode: '', // 产品编码
                productSpec: '', // 产品规格
            machineList: [],
@@ -652,7 +654,7 @@
            this.engineeringNo = null;
            this.tableData = [];
                // 下拉框只显示工单状态
                this.engineeringNoMapList = ['待开工', '未开工', '完工', '暂停'];
                this.engineeringNoMapList = ['待开工', '未开工', '开工', '暂停','完工'];
                // 默认显示全部工单
                this.getWomdaa();
         },
@@ -692,6 +694,8 @@
         toDetail(item) {
            this.orderId = item.id;
            this.selectedOrder = item.daa001;
                this.productCode = item.daa002; // 产品编码
                this.productSpec = item.daa004; // 产品规格
            this.currentTab = 0;
         }
      },