From 49a50b93c00234edac957bbd3a917293002d8eec Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期二, 04 三月 2025 11:05:36 +0800 Subject: [PATCH] 1.生产领料列表测试,留注释 --- H5/Scll.aspx | 63 +++++++++++++++++++++++++++++++ H5/Js/Scll.js | 26 +++++++++++++ 2 files changed, 88 insertions(+), 1 deletions(-) diff --git a/H5/Js/Scll.js b/H5/Js/Scll.js index 89d0fc8..ee502a5 100644 --- a/H5/Js/Scll.js +++ b/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}`); + // // 鍦ㄨ繖閲屽鐞嗛�夋嫨缁撴灉锛屼緥濡傝皟鐢ㄦ帴鍙f垨鏇存柊鐘舵�� + // this.isPrinterPopupVisible = false; // 鍏抽棴寮圭獥 + // } else { + // alert('璇烽�夋嫨涓�涓墦鍗版満锛�'); + // } + //}, + //onPrinterSelected(value) { + // console.log('褰撳墠閫変腑鐨勬墦鍗版満缂栧彿:', value); + //}, } }) \ No newline at end of file diff --git a/H5/Scll.aspx b/H5/Scll.aspx index 8e7e0e4..a22014c 100644 --- a/H5/Scll.aspx +++ b/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;*/ /* 鍨傜洿鎺掑垪缂栧彿鍜孖P鍦板潃 */ + /*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> -- Gitblit v1.9.3