| H5/BarCf.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Js/BarCf.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
H5/BarCf.aspx
@@ -1,4 +1,5 @@ <%@ Page Title="在库分料" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="BarCf.aspx.cs" Inherits="H5_Scll" %> <%@ Page Title="在库分料" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="BarCf.aspx.cs" Inherits="H5_Scll" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style> .bg-info { @@ -31,7 +32,11 @@ v-focus.noKeyboard @keyup.enter.native="getScan" <%-- @change="getScan"--%> ></van-field> > <template #button> <van-button size="small" type="info" plain @click="BarRePrint" >条码重打</van-button> </template> </van-field> <van-field v-model="formData.itemNo" label="物料编码" @@ -78,5 +83,5 @@ <%--<comback ></comback>--%> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <script src="Js/BarCf.js?<%=1211111 %>"></script> <script src="Js/BarCf.js?<%=1211113 %>"></script> </asp:Content> H5/Js/BarCf.js
@@ -167,6 +167,45 @@ .replace(/^\./g, ''); }, BarRePrint() { if (this.isLoading) { return; } var that = this; if (that.formData.barcode.length * 1 <= 0) { that.$toast.fail("物料条码不能为空!"); return; } that.isLoading = true; that.AxiosHttp("post", 'MesBarCF/BarRePrint', { userName: that.userInfo.loginAccount, barcode: that.formData.barcode }, false) .then(function (res) { var json = res; if (json.status == 0) { // that.modeInfo = json.data.tbBillList; // 拆分全局调用方法 that.sendPrintMessage(json.data.tbBillList); that.$refs.barcode.focus(); that.formData.barcode = null; that.$notify({ type: 'success', message: json.message }); } else { that.$toast.fail(json.message); that.$refs.barcode.focus(); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); console.log(error); }); }, } })