| | |
| | | modeInfo: { daa001: "", planNo: "" }, |
| | | scanInfo: { barcodeNum: "", splitNum: "", barcode: "" }, |
| | | ItemDetail: [], |
| | | //isPrinterPopupVisible: false, // 控制弹窗显示/隐藏 |
| | | //selectedPrinter: '', // 当前选择的打印机编号 |
| | | //printerList: [ |
| | | // { printerId: 'Printer1', ipAddress: '192.168.1.1' }, |
| | | // { printerId: 'Printer2', ipAddress: '192.168.1.2' }, |
| | | // { printerId: 'Printer3', ipAddress: '192.168.1.3' } |
| | | //], // 打印机列表 |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | }); |
| | | }, |
| | | getChaiFen() { |
| | | //this.isPrinterPopupVisible = true; // 显示弹窗 |
| | | |
| | | var that = this; |
| | | if (that.modeInfo.daa001.length <= 0) { |
| | | that.$toast.fail("工单单号不能为空!"); |
| | |
| | | console.log(error); |
| | | }); |
| | | }, |
| | | |
| | | //打印机注释 |
| | | //selectPrinter(printer) { |
| | | // this.selectedPrinter = printer.printerId; // 更新选中的打印机编号 |
| | | //}, |
| | | //confirmSelection() { |
| | | // if (this.selectedPrinter) { |
| | | // alert(`您选择了打印机:${this.selectedPrinter}`); |
| | | // // 在这里处理选择结果,例如调用接口或更新状态 |
| | | // this.isPrinterPopupVisible = false; // 关闭弹窗 |
| | | // } else { |
| | | // alert('请选择一个打印机!'); |
| | | // } |
| | | //}, |
| | | //onPrinterSelected(value) { |
| | | // console.log('当前选中的打印机编号:', value); |
| | | //}, |
| | | } |
| | | }) |
| | |
| | | .bg-info { |
| | | background-color:#fff; |
| | | } |
| | | /*.van-popup--bottom { |
| | | height: 50%;*/ /* 设置弹窗高度 */ |
| | | /*} |
| | | |
| | | .printer-item { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between;*/ /* 左右对齐 */ |
| | | /*width: 100%; |
| | | } |
| | | |
| | | .printer-info { |
| | | display: flex; |
| | | flex-direction: column;*/ /* 垂直排列编号和IP地址 */ |
| | | /*flex-grow: 1;*/ /* 占据剩余空间 */ |
| | | /*} |
| | | |
| | | .printer-id { |
| | | font-size: 16px; |
| | | color: #333; |
| | | } |
| | | |
| | | .ip-address { |
| | | font-size: 12px; |
| | | color: #666; |
| | | margin-top: 4px; |
| | | } |
| | | |
| | | .printer-radio { |
| | | margin-left: 16px;*/ /* 调整与内容的距离 */ |
| | | /*}*/ |
| | | |
| | | </style> |
| | | </asp:Content> |
| | |
| | | </van-field> |
| | | </van-cell-group> |
| | | </div> |
| | | |
| | | <%--<!-- 弹窗组件 --> |
| | | <van-popup v-model="isPrinterPopupVisible" position="bottom" round> |
| | | <van-radio-group v-model="selectedPrinter" @change="onPrinterSelected"> |
| | | <van-cell-group> |
| | | <van-cell |
| | | v-for="(printer, index) in printerList" |
| | | :key="index" |
| | | clickable |
| | | @click="selectPrinter(printer)" |
| | | > |
| | | <!-- 自定义内容布局 --> |
| | | <template #default> |
| | | <div class="printer-item"> |
| | | <div class="printer-info"> |
| | | <span class="printer-id">{{ printer.printerId }}</span> |
| | | <span class="ip-address">{{ printer.ipAddress }}</span> |
| | | </div> |
| | | <van-radio class="printer-radio" :name="printer.printerId"></van-radio> |
| | | </div> |
| | | </template> |
| | | </van-cell> |
| | | </van-cell-group> |
| | | </van-radio-group> |
| | | <div style="text-align: center; margin-top: 10px;"> |
| | | <van-button type="info" size="small" @click="confirmSelection">确认</van-button> |
| | | </div> |
| | | </van-popup>--%> |
| | | |
| | | |
| | | <van-tabs color="#000" title-active-color="#0283EF"> |
| | | <van-tab title="待发物料" class="mySolid font"> |
| | | <van-row> |
| | |
| | | <%--<comback ></comback>--%> |
| | | </asp:Content> |
| | | <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> |
| | | <script src="Js/Scll.js?<%=123333 %>"></script> |
| | | <script src="Js/Scll.js?<%=123334 %>"></script> |
| | | </asp:Content> |