| | |
| | | <view class="tab-item" :class="{ active: currentTab === 4 }" @click="changeTab(4)"> |
| | | 生产报工 |
| | | </view> |
| | | <view class="tab-item" :class="{ active: currentTab === 1 }" @click="changeTab(1)"> |
| | | <!-- <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> |
| | | <view class="tab-item" :class="{ active: currentTab === 6 }" @click="changeTab(6)"> |
| | | 工艺参数 |
| | | </view> |
| | | <view class="tab-item" :class="{ active: currentTab === 8 }" @click="changeTab(8)"> |
| | | 打印机设置 |
| | | <view class="tab-item" :class="{ active: currentTab === 9 }" @click="changeTab(9)"> |
| | | 设备点检 |
| | | </view> |
| | | <!-- <view class="tab-item" :class="{ active: currentTab === 8 }" @click="changeTab(8)"> |
| | | 打印机设置 |
| | | </view> --> |
| | | |
| | | </view> |
| | | <view class="font"></view> |
| | |
| | | <view v-if="currentTab === 6" class="tab-content"> |
| | | <Technology :orderId="orderId" :orderNo="selectedOrder" :machineNo="machineNo" /> |
| | | </view> |
| | | <view v-if="currentTab === 9" class="tab-content"> |
| | | <!-- 设备点检视图 --> |
| | | <EquipmentInspection :machineNo="machineNo" /> |
| | | </view> |
| | | </scroll-view> |
| | | |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import WorkOrderStatus from '../components/WorkOrderStatus.vue'; // 确保路径正确 |
| | | import UniTable from "../uni_modules/uni-table/components/uni-table/uni-table.vue"; |
| | | import Mold from "../components/mold.vue"; |
| | | import Machine from "../components/machine.vue"; |
| | | import WorkOrderPrint from "../components/WorkOrderPrint.vue"; |
| | | import WorkOrder from "../components/WorkOrder.vue"; |
| | | import Technology from "../components/Technology.vue"; |
| | | import PDFShow from "../components/PDFShow.vue"; |
| | | import PrintInit from "../components/PrintInit.vue"; |
| | | import PrintTest from "../components/PrintTest.vue"; |
| | | import WorkOrderStatus from '../components/WorkOrderStatus.vue'; // 确保路径正确 |
| | | import UniTable from "../uni_modules/uni-table/components/uni-table/uni-table.vue"; |
| | | import Mold from "../components/mold.vue"; |
| | | import Machine from "../components/machine.vue"; |
| | | import WorkOrderPrint from "../components/WorkOrderPrint.vue"; |
| | | import WorkOrder from "../components/WorkOrder.vue"; |
| | | import Technology from "../components/Technology.vue"; |
| | | import PDFShow from "../components/PDFShow.vue"; |
| | | import PrintInit from "../components/PrintInit.vue"; |
| | | import PrintTest from "../components/PrintTest.vue"; |
| | | import EquipmentInspection from "../components/EquipmentInspection.vue"; |
| | | |
| | | export default { |
| | | components: { |
| | |
| | | WorkOrderStatus, |
| | | PDFShow, |
| | | PrintInit, |
| | | PrintTest |
| | | PrintTest, |
| | | EquipmentInspection |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | this.getWomdaaIsShow(); |
| | | }, |
| | | getPrintInfo() { |
| | | var mac = "ac:f4:2c:20:0d:b4"; |
| | | var mac = ""; |
| | | |
| | | mac = "e8:51:9e:7d:dc:95"; |
| | | mac = "74:24:ca:4f:b7:9b"; |
| | | this.$post({ |
| | | url: "/DevMachine/GetDevMachineByPdaMac", |
| | | data: { |
| | |
| | | |
| | | this.getWomdaaIsShow(); |
| | | }); |
| | | return; |
| | | |
| | | |
| | | if (plus.os.name == "Android") { |
| | |
| | | }).then(res => { |
| | | let devMachine = res.data.tbBillList; |
| | | this.machineNo = devMachine.machineNo; |
| | | this.machineName = "当前机台:" + this.machineNo + "号注塑机"; |
| | | this.machineName = "当前机台:" + this.machineNo + "号齿轮机"; |
| | | |
| | | uni.setStorageSync('machineNo', this.machineNo); |
| | | uni.setStorageSync('printMac', devMachine.printMac); |
| | |
| | | font-size: 20px; |
| | | } |
| | | } |
| | | </style> |
| | | </style> |