| ¶Ô±ÈÐÂÎļþ |
| | |
| | | var vm = new Vue({ |
| | | el: '#app', |
| | | data: function () { |
| | | return { |
| | | isLoading: false, |
| | | userInfo: { |
| | | "loginGuid": '', |
| | | "loginAccount": '', |
| | | }, |
| | | formData: { |
| | | TbBarCode: "", //ææ¿ç |
| | | barcode: "", |
| | | itemNo: "", |
| | | sumQuantity: 0 |
| | | }, |
| | | ItemDetail: { |
| | | items: [] // ç¡®ä¿æè¿ä¸ªç»æ |
| | | }, |
| | | itemInsFormData: {}, |
| | | tableData: [], |
| | | itemTableData: [], |
| | | barMessage: "", |
| | | |
| | | Message: "", |
| | | messageCenter: {}, |
| | | messageId: 0, |
| | | |
| | | showClearIcon: false, |
| | | focus1: true, |
| | | focus2: false, |
| | | isActive: 0, |
| | | index: 0, |
| | | currentTab: 0, |
| | | contentScrollW: 0, // 导èªåºå®½åº¦ |
| | | scrollLeft: 0, // æ¨ªåæ»å¨æ¡ä½ç½® |
| | | fullHeight: "", |
| | | } |
| | | }, |
| | | mounted() { |
| | | var that = this; |
| | | this.userInfo = { |
| | | loginGuid: this.GetLoginInfor().loginGuid, |
| | | loginAccount: this.GetLoginInfor().loginAccount, |
| | | }; |
| | | }, |
| | | methods: { |
| | | getScanTb() { |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'tbbd/GetBracodeDetails', { |
| | | TbBarCode: that.formData.TbBarCode |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | //that.formData.sectionCode = json.data.tbBillList; |
| | | |
| | | that.ItemDetail.items = json.data.tbBillList; |
| | | |
| | | if (that.formData.barcode == "" || that.formData.barcode == null) { |
| | | that.$refs.barcode.focus(); |
| | | that.isLoading = false; |
| | | |
| | | } |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.formData.sectionCode = null; |
| | | that.$refs.sectionCode.focus(); |
| | | that.isLoading = false; |
| | | } |
| | | |
| | | |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); |
| | | console.log(error); |
| | | that.formData.sectionCode = null; |
| | | that.$refs.sectionCode.focus(); |
| | | }); |
| | | }, |
| | | getScanBar() { |
| | | var that = this; |
| | | |
| | | //that.isLoading = true; |
| | | that.AxiosHttp("post", 'tbbd/ScanTBBD', { |
| | | TbBarCode: that.formData.TbBarCode, |
| | | ItemBarcode: that.formData.barcode, |
| | | userName: that.userInfo.loginAccount, |
| | | |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | |
| | | |
| | | that.getScanTb(); |
| | | |
| | | that.$refs.barcode.focus(); |
| | | that.formData.barcode = null; |
| | | //that.ItemDetail.items = json.data.tbBillList; |
| | | |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.barcode.focus(); |
| | | that.formData.barcode = null; |
| | | //that.ItemDetail = null; |
| | | that.isLoading = false; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); |
| | | console.log(error); |
| | | that.$refs.barcode.focus(); |
| | | }); |
| | | }, |
| | | cleraCode() { |
| | | this.formData.sectionCode = null; |
| | | }, |
| | | //æ´æ°æ¥å£è®°å½è¡¨ |
| | | updateMessage(messageCenter) { |
| | | this.$post({ |
| | | url: "/MessageCenter/ResetUpdate", |
| | | data: messageCenter |
| | | }).then(res => { |
| | | if (res.data.tbBillList > 0) { |
| | | this.Message += " [é®é¢è®°å½æå!]"; |
| | | } else { |
| | | this.Message += " [é®é¢è®°å½å¤±è´¥!!!]"; |
| | | } |
| | | }); |
| | | }, |
| | | } |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | var vm = new Vue({ |
| | | el: '#app', |
| | | data: function () { |
| | | return { |
| | | isLoading: false, |
| | | userInfo: { |
| | | "loginGuid": '', |
| | | "loginAccount": '', |
| | | }, |
| | | formData: { |
| | | TbBarCode: "", //ææ¿ç |
| | | barcode: "", |
| | | itemNo: "", |
| | | sumQuantity: 0 |
| | | }, |
| | | ItemDetail: { |
| | | items: [] // ç¡®ä¿æè¿ä¸ªç»æ |
| | | }, |
| | | itemInsFormData: {}, |
| | | tableData: [], |
| | | itemTableData: [], |
| | | barMessage: "", |
| | | |
| | | Message: "", |
| | | messageCenter: {}, |
| | | messageId: 0, |
| | | |
| | | showClearIcon: false, |
| | | focus1: true, |
| | | focus2: false, |
| | | isActive: 0, |
| | | index: 0, |
| | | currentTab: 0, |
| | | contentScrollW: 0, // 导èªåºå®½åº¦ |
| | | scrollLeft: 0, // æ¨ªåæ»å¨æ¡ä½ç½® |
| | | fullHeight: "", |
| | | } |
| | | }, |
| | | mounted() { |
| | | var that = this; |
| | | this.userInfo = { |
| | | loginGuid: this.GetLoginInfor().loginGuid, |
| | | loginAccount: this.GetLoginInfor().loginAccount, |
| | | }; |
| | | }, |
| | | methods: { |
| | | getScanTb() { |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'tbjb/GetBracodeDetails', { |
| | | TbBarCode: that.formData.TbBarCode |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | //that.formData.sectionCode = json.data.tbBillList; |
| | | |
| | | that.ItemDetail.items = json.data.tbBillList; |
| | | |
| | | if (that.formData.TbBarCode == "" || that.formData.TbBarCode == null) { |
| | | that.$refs.TbBarCode.focus(); |
| | | that.isLoading = false; |
| | | |
| | | } |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.formData.sectionCode = null; |
| | | that.$refs.TbBarCode.focus(); |
| | | that.isLoading = false; |
| | | } |
| | | |
| | | |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); |
| | | console.log(error); |
| | | that.formData.sectionCode = null; |
| | | that.$refs.TbBarCode.focus(); |
| | | }); |
| | | }, |
| | | getScanBar() { |
| | | var that = this; |
| | | |
| | | //that.isLoading = true; |
| | | that.AxiosHttp("post", 'tbjb/ScanTBJB', { |
| | | ItemBarcode: that.formData.TbBarCode, |
| | | userName: that.userInfo.loginAccount, |
| | | |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | |
| | | |
| | | that.getScanTb(); |
| | | |
| | | that.$refs.TbBarCode.focus(); |
| | | that.formData.TbBarCode = null; |
| | | //that.ItemDetail.items = json.data.tbBillList; |
| | | |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.TbBarCode.focus(); |
| | | that.formData.TbBarCode = null; |
| | | //that.ItemDetail = null; |
| | | that.isLoading = false; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); |
| | | console.log(error); |
| | | that.$refs.TbBarCode.focus(); |
| | | }); |
| | | }, |
| | | cleraCode() { |
| | | this.formData.sectionCode = null; |
| | | }, |
| | | //æ´æ°æ¥å£è®°å½è¡¨ |
| | | updateMessage(messageCenter) { |
| | | this.$post({ |
| | | url: "/MessageCenter/ResetUpdate", |
| | | data: messageCenter |
| | | }).then(res => { |
| | | if (res.data.tbBillList > 0) { |
| | | this.Message += " [é®é¢è®°å½æå!]"; |
| | | } else { |
| | | this.Message += " [é®é¢è®°å½å¤±è´¥!!!]"; |
| | | } |
| | | }); |
| | | }, |
| | | } |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <%@ Page Title="ææ¿ç ç»å®" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="tbbd.aspx.cs" Inherits="H5_tbbd" %> |
| | | <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> |
| | | <style> |
| | | .bg-info { |
| | | background-color:#fff; |
| | | } |
| | | |
| | | </style> |
| | | </asp:Content> |
| | | |
| | | <asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> |
| | | <van-notice-bar |
| | | :scrollable="false" |
| | | :text="'å½åç»ç»ï¼' + (Cookies.get('orgName') || 'ææ ç»ç»ä¿¡æ¯')" |
| | | class="org-info" |
| | | /></van-notice-bar> |
| | | |
| | | |
| | | <van-nav-bar |
| | | title="ææ¿ç ç»å®" |
| | | left-text="è¿å" |
| | | left-arrow |
| | | @click-left="GoBack()" |
| | | ></van-nav-bar> |
| | | <%-- <div class="mySolid">--%> |
| | | <van-cell-group> |
| | | <van-field |
| | | ref="TbBarCode" |
| | | v-model="formData.TbBarCode" |
| | | label="ææ¿ç ç¼ç " |
| | | clearable |
| | | placeholder="请æ«ç " |
| | | :right-icon-size="19" |
| | | v-focus.noKeyboard |
| | | <%--@change="getModel"--%> |
| | | @keyup.enter.native ="getScanTb" |
| | | autofocus="true" |
| | | ></van-field> |
| | | <van-field |
| | | ref="barcode" |
| | | v-model="formData.barcode" |
| | | label="ç©ææ¡ç " |
| | | clearable |
| | | placeholder="请æ«ç " |
| | | :right-icon-size="19" |
| | | v-focus.noKeyboard |
| | | @keyup.enter.native ="getScanBar" |
| | | <%-- @change="getBarInfo"--%> |
| | | ></van-field> |
| | | </van-cell-group> |
| | | <%-- </div>--%> |
| | | |
| | | |
| | | <van-tabs color="#000" title-active-color="#0283EF"> |
| | | <van-tab title="ææ¿ç å·²ç»å®æ¡ç ä¿¡æ¯" class="mySolid font"> |
| | | <div class="container"> |
| | | <!-- 表头 --> |
| | | <van-row class="header"> |
| | | <van-col span="5" class="text-left padding-left">ç©ææ¡ç </van-col> |
| | | <van-col span="5" class="text-left padding-left">ç©æç¼ç </van-col> |
| | | <van-col span="5" class="text-left padding-left">ç©æåç§°</van-col> |
| | | <van-col span="6" class="text-left padding-left">è§æ ¼åå·</van-col> |
| | | <van-col span="3">æ°é</van-col> |
| | | </van-row> |
| | | |
| | | <!-- æ°æ®è¡ --> |
| | | <div class="data-rows"> |
| | | <van-row v-for="(itm,index) in ItemDetail.items" :key="index" class="data-row"> |
| | | <van-col span="5" class="text-left padding-left"> |
| | | <div>{{itm.wltm}}</div> |
| | | </van-col> |
| | | <van-col span="5" class="text-left padding-left"> |
| | | <div class="blue-text">{{itm.itemNo}}</div> |
| | | </van-col> |
| | | <van-col span="5" class="text-left padding-left"> |
| | | <div>{{itm.itemName}}</div> |
| | | </van-col> |
| | | <van-col span="6">{{itm.itemModel}}</van-col> |
| | | <van-col span="3" class="blue-text">{{itm.FQty}}</van-col> |
| | | </van-row> |
| | | |
| | | <!-- ç©ºç¶ææç¤º --> |
| | | <div v-if="!ItemDetail.items || ItemDetail.items.length === 0" class="empty-state"> |
| | | ææ æ°æ® |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </van-tab> |
| | | </van-tabs> |
| | | |
| | | |
| | | </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/tbbd.js?<%=12146 %>"></script> |
| | | </asp:Content> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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_tbbd : System.Web.UI.Page |
| | | { |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <%@ Page Title="ææ¿ç è§£ç»" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="tbjb.aspx.cs" Inherits="H5_tbjb" %> |
| | | <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> |
| | | <style> |
| | | .bg-info { |
| | | background-color:#fff; |
| | | } |
| | | |
| | | </style> |
| | | </asp:Content> |
| | | |
| | | <asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> |
| | | <van-notice-bar |
| | | :scrollable="false" |
| | | :text="'å½åç»ç»ï¼' + (Cookies.get('orgName') || 'ææ ç»ç»ä¿¡æ¯')" |
| | | class="org-info" |
| | | /></van-notice-bar> |
| | | |
| | | |
| | | <van-nav-bar |
| | | title="ææ¿ç è§£ç»" |
| | | left-text="è¿å" |
| | | left-arrow |
| | | @click-left="GoBack()" |
| | | ></van-nav-bar> |
| | | <%-- <div class="mySolid">--%> |
| | | <van-cell-group> |
| | | <van-field |
| | | ref="TbBarCode" |
| | | v-model="formData.TbBarCode" |
| | | label="æ«ææ¡ç " |
| | | clearable |
| | | placeholder="请æ«ç " |
| | | :right-icon-size="19" |
| | | v-focus.noKeyboard |
| | | <%--@change="getModel"--%> |
| | | @keyup.enter.native ="getScanBar" |
| | | autofocus="true" |
| | | ></van-field> |
| | | </van-cell-group> |
| | | <%-- </div>--%> |
| | | |
| | | |
| | | <van-tabs color="#000" title-active-color="#0283EF"> |
| | | <van-tab title="ææ¿ç å·²ç»å®æ¡ç ä¿¡æ¯" class="mySolid font"> |
| | | <div class="container"> |
| | | <!-- 表头 --> |
| | | <van-row class="header"> |
| | | <van-col span="5" class="text-left padding-left">ç©ææ¡ç </van-col> |
| | | <van-col span="5" class="text-left padding-left">ç©æç¼ç </van-col> |
| | | <van-col span="5" class="text-left padding-left">ç©æåç§°</van-col> |
| | | <van-col span="6" class="text-left padding-left">è§æ ¼åå·</van-col> |
| | | <van-col span="3">æ°é</van-col> |
| | | </van-row> |
| | | |
| | | <!-- æ°æ®è¡ --> |
| | | <div class="data-rows"> |
| | | <van-row v-for="(itm,index) in ItemDetail.items" :key="index" class="data-row"> |
| | | <van-col span="5" class="text-left padding-left"> |
| | | <div>{{itm.wltm}}</div> |
| | | </van-col> |
| | | <van-col span="5" class="text-left padding-left"> |
| | | <div class="blue-text">{{itm.itemNo}}</div> |
| | | </van-col> |
| | | <van-col span="5" class="text-left padding-left"> |
| | | <div>{{itm.itemName}}</div> |
| | | </van-col> |
| | | <van-col span="6">{{itm.itemModel}}</van-col> |
| | | <van-col span="3" class="blue-text">{{itm.FQty}}</van-col> |
| | | </van-row> |
| | | |
| | | <!-- ç©ºç¶ææç¤º --> |
| | | <div v-if="!ItemDetail.items || ItemDetail.items.length === 0" class="empty-state"> |
| | | ææ æ°æ® |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </van-tab> |
| | | </van-tabs> |
| | | |
| | | |
| | | </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/tbjb.js?<%=12145 %>"></script> |
| | | </asp:Content> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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_tbjb : System.Web.UI.Page |
| | | { |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | } |