南骏 池
2025-03-04 49a50b93c00234edac957bbd3a917293002d8eec
1.生产领料列表测试,留注释
已修改2个文件
89 ■■■■■ 文件已修改
H5/Js/Scll.js 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Scll.aspx 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/Scll.js
@@ -10,6 +10,13 @@
            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() {
@@ -97,6 +104,8 @@
                });
        },
        getChaiFen() {
            //this.isPrinterPopupVisible = true; // 显示弹窗
            var that = this;
            if (that.modeInfo.daa001.length <= 0) {
                that.$toast.fail("工单单号不能为空!");
@@ -139,5 +148,22 @@
                    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);
        //},
    }
})
H5/Scll.aspx
@@ -4,6 +4,37 @@
    .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>
@@ -64,6 +95,36 @@
  </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>
@@ -102,5 +163,5 @@
    <%--<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>