H5/Js/QcPrint.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/QcPrint.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/QcPrint.aspx.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
H5/Js/QcPrint.js
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,147 @@ var vm = new Vue({ el: '#app', data: function () { return { isLoading: false, userInfo: { "loginGuid": '', "loginAccount": '', }, num:"", sectionCode:"", selectKey: "", barcode:"", ItemBlDetail:[], modeInfo: [], active: 0, show: false, actions: [], barInfo: [], depotsInfo: "",//ä»åºä¿¡æ¯ orgInfo: "",//ç»ç»ä¿¡æ¯ orgID: "",//ç»ç»id itemInfo: [],//æ»ç©æä¿¡æ¯ itemNo:"",//éä¸ç©æç¼ç printItemInfo: [],//éä¸ç©æä¿¡æ¯ } }, mounted() { var that = this; this.userInfo = { loginGuid: this.GetLoginInfor().loginGuid, loginAccount: this.GetLoginInfor().loginAccount, }; }, methods: { getInfo() { this.show = true; var that = this; if (!that.sectionCode) { this.$toast.fail("åºä½ç¼ç ä¸è½ä¸ºç©º"); that.isLoading = false; return; } that.isLoading = true; that.AxiosHttp("post", 'Inventory/GetItemsList', { selectKey: that.selectKey, orgId: that.orgID, }, false) .then(function (res) { var json = res; if (json.status == 0) { if (json.data.tbBillList.length <= 0) { that.$toast.fail("没æå¯ç¨çæ°æ®"); } else { that.itemInfo = json.data.tbBillList; that.actions = json.data.tbBillList.map(item => { return { name: item.wlInfo // æ¼æ¥å段 }; }); } } else { that.$toast.fail(json.message); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); console.log(error); }); }, onSelect(item) { // é»è®¤æ åµä¸ç¹å»é项æ¶ä¸ä¼èªå¨æ¶èµ· // å¯ä»¥éè¿ close-on-click-action 屿§å¼å¯èªå¨æ¶èµ· this.show = false; if (item.name.includes('---')) { this.itemNo = item.name.split('---')[0]; } else { // å¤ç没æåéç¬¦çæ åµï¼æ¯å¦è®¾ç½®ä¸ºç©ºæè åå符串 this.itemNo = item.name; // æè '' } this.GetMesItemByItemNo(); //this.$toast(item.name); }, GetMesItemByItemNo() { var that = this; // è·åå¹é ç»ææ°ç» const filtered = that.itemInfo.filter(item => item.item_no === that.itemNo ); if (filtered.length === 0) { that.$toast.fail('æ²¡ææ¾å°å¹é çç©æä¿¡æ¯'); that.printItemInfo = {}; // æ¸ ç©ºæ°æ® } else { // å第ä¸ä¸ªå¹é 项èµå¼ç»å¯¹è±¡ that.printItemInfo = filtered[0]; //console.log('å±ç¤ºæ°æ®ï¼', that.printItemInfo); that.$refs.num.focus(); } }, getSectionCode() { var that = this; if (!that.sectionCode) { this.$toast.fail("åºä½ç¼ç ä¸è½ä¸ºç©º"); that.isLoading = false; return; } // æ£æ¥å¯¹è±¡æ¯å¦å å«æææ°æ® if (!that.printItemInfo || !that.printItemInfo.item_no) { that.$toast.fail("请å éæ©ææç©æä¿¡æ¯"); that.isLoading = false; return; } that.AxiosHttp("post", 'Inventory/GetDepoptsInfo', { sectionCode: that.sectionCode }, false) .then(function (res) { var json = res; if (json.status == 0) { } else { } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); console.log(error); }); }, } }) H5/QcPrint.aspx
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,107 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style> .bg-info { background-color: #fff; } </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> <van-nav-bar title="æåæå°" left-text="è¿å" left-arrow @click-left="GoBack()" ></van-nav-bar> <div> <van-cell-group> <van-field ref="sectionCode" value="" label="åºä½ç¼ç " clearable v-model="sectionCode" @keyup.enter.native="getSectionCode" <%--@change="getSectionCode"--%> :right-icon-size="19" placeholder="åºä½ç¼ç " <%-- v-focus.noKeyboard--%> ></van-field> <van-field ref="depotsInfo" v-model="depotsInfo" value="" label="ä»åºåç§°" clearable placeholder="ä»åºåç§°" :right-icon-size="19" disabled ></van-field> <van-field ref="orgInfo" v-model="orgInfo" value="" label="åºåç»ç»" clearable placeholder="åºåç»ç»" :right-icon-size="19" disabled ></van-field> <van-field ref ="selectKey" value="" label="ç©ææ¥è¯¢" clearable placeholder="请è¾å ¥ç¼ç /åç§°è¿è¡æ¥è¯¢" :right-icon-size="19" v-model="selectKey" @keyup.enter.native="GetMesItemBlDetailByBillNo" ><template #button> <van-button size="small" type="info" plain @click="getInfo" >éæ©</van-button> </template></van-field> <van-field value="" v-model="printItemInfo.item_no" label="ç©æç¼ç " placeholder="" disabled ></van-field> <van-field value="" v-model="printItemInfo.item_name" label="ç©æåç§°" placeholder="" disabled ></van-field> <van-field value="" v-model="printItemInfo.item_model" label="ç©æè§æ ¼" placeholder="" disabled ></van-field> <van-field ref ="num" value="" v-model="num" label="æ°é" placeholder="æ°é" ></van-field> </van-cell-group> </div> <van-button type="primary" @click="16718-00000B2025051690001" >确认æå°</van-button> <van-action-sheet v-model="show" :actions="actions" @select="onSelect" ></van-action-sheet> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server"> <comloading v-if="isLoading"></comloading> <%--<comback ></comback>--%> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <script src="Js/QcPrint.js?<%=11111 %>"></script> </asp:Content> H5/QcPrint.aspx.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,14 @@ using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class H5_Scbl : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } }