H5/Js/Scll.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Scll.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
H5/Js/Scll.js
@@ -37,7 +37,7 @@ getModel() { var that = this; that.isLoading = true; that.AxiosHttp("post", 'Womdaa/GetItemsByDaa001', { that.AxiosHttp("post", 'Womdaa/GetItemsByDaa001User', { daa001: that.modeInfo.daa001, userName: that.userInfo.loginAccount }, false) @@ -70,6 +70,42 @@ that.modeInfo.daa001 = ""; }); }, getModelAll() { var that = this; that.isLoading = true; that.AxiosHttp("post", 'Womdaa/GetItemsByDaa001', { daa001: that.modeInfo.daa001, userName: that.userInfo.loginAccount }, false) .then(function (res) { var json = res; if (json.status == 0) { console.log(json) that.ItemDetail = json.data.tbBillList; that.modeInfo.planNo = json.data.tbBillList.planNo; that.$playSound('success'); that.$refs.barcode.focus(); } else { that.$toast.fail(json.message); that.$playSound('error'); that.$refs.daa001.focus(); that.modeInfo.daa001 = ""; that.modeInfo.planNo = ""; that.ItemDetail = []; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); that.$playSound('error'); console.log(error); that.$refs.daa001.focus(); that.modeInfo.daa001 = ""; }); }, getScan() { if (this.isLoading) { H5/Scll.aspx
@@ -1,10 +1,23 @@ <%@ Page Title="生产领料" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="Scll.aspx.cs" Inherits="H5_Scll" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style> .bg-info { background-color: #fff; .bg-info { background-color: #fff; } </style> .submit-btn { width: 90%; margin: 15px auto; display: block; } .center-button { display: flex; justify-content: center; align-items: center; } .content-wrapper { padding-bottom: 20px; } </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> @@ -19,16 +32,19 @@ <div class="mySolid"> <van-cell-group> <van-field ref ="selectKey" value="" label="工单查询" clearable ref="selectKey" value="" label="工单查询" clearable placeholder="请输入工单号进行查询" :right-icon-size="19" :right-icon-size="19" v-model="selectKey" ><template #button> <van-button size="small" type="info" plain @click="getInfo" >选择</van-button> </template></van-field> > <template #button> <van-button size="small" type="info" plain @click="getInfo">选择</van-button> </template> </van-field> <van-field ref="daa001" v-model="modeInfo.daa001" @@ -84,10 +100,25 @@ 条码拆分 </van-button> </van-field> <van-field class="center-button"> <div slot="button" style="display: flex; justify-content: center; width: 100%;"> <van-button type="info" size="small" plain @click="getModelAll"> 查看工单全部物料 </van-button> </div> </van-field> </van-cell-group> </div> <van-action-sheet v-model="show" :actions="actions" @select="onSelect" ></van-action-sheet> <%-- <!-- 送检按钮放在字段组外部 --> <van-button class="submit-btn" type="primary" @click="submitInspection" :loading="load" loading-text="发送中">送检</van-button>--%> <van-action-sheet v-model="show" :actions="actions" @select="onSelect"></van-action-sheet> <van-tabs color="#000" title-active-color="#0283EF"> <van-tab title="待扫物料" class="mySolid font"> @@ -138,5 +169,5 @@ </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <script src="Js/Scll.js?<%=123336162 %>"></script> <script src="Js/Scll.js?<%=12333616 %>"></script> </asp:Content>