| H5/Cpdbsj.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Cz.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Cz.aspx.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Js/Cpbdsj.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Js/Cz.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
H5/Cpdbsj.aspx
@@ -266,5 +266,5 @@ </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <script src="Js/Cpbdsj.js?<%=121114211526 %>"></script> <script src="Js/Cpbdsj.js?<%=12152156 %>"></script> </asp:Content> H5/Cz.aspx
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,47 @@ <%@ Page Title="ç§°é" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="Cpdbsj.aspx.cs" Inherits="H5_Cpdbsj" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style> .content-wrapper { padding-bottom: 0.6rem; } </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> <div class="content-wrapper"> <van-nav-bar title="ç§°é" left-text="è¿å" left-arrow @click-left="GoBack()"> </van-nav-bar> <div class="mySolid"> <van-cell-group> <van-field ref="XBar" v-model="XBar" label="æ¡ç " placeholder="请æ«ç æå车" clearable @keyup.enter.native="getWeight" autofocus="true"> </van-field> <van-field ref="Weight" v-model="Weight" label="éé" readonly> </van-field> </van-cell-group> </div> </div> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server"> <comloading v-if="isLoading"></comloading> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <script src="Js/Cz.js?<%=12114211526 %>"></script> </asp:Content> H5/Cz.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_Cpbd : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } H5/Js/Cpbdsj.js
@@ -28,6 +28,7 @@ //} ], DAA001: [], DAA015: "", show: false,//å表å±ç¤º actions: [],//å表çå¼ xtName: "",//线ä½åç§° @@ -71,6 +72,8 @@ console.log(json.data.tbBillList.kbBarInfo[0].agvPostion); that.KbBarInfo = json.data.tbBillList.kbBarInfo[0]; that.DAA001 = that.KbBarInfo.daA001; that.DAA015 = that.KbBarInfo.daA015; console.log(that.KbBarInfo) that.KbBarMxInfo = json.data.tbBillList.kbBarMxInfo; that.$refs.XBar.focus(); that.XbarInfo = []; @@ -202,7 +205,6 @@ if (that.XbarInfo.length >= that.Xvalue) { that.$refs.LsBar.focus(); } } else { that.$playSound('error'); @@ -313,6 +315,21 @@ if (matchedItem.is_hedui === "1") { that.$toast("å·²æ ¸å¯¹"); } else { console.log(that.DAA015); if ((that.DAA015) === "462") { that.$set(matchedItem, 'is_hedui', "1"); // 坿 ¹æ®éè¦è®¾ç½® weightï¼è¿éä¿æä¸ºç©º/ä¸å that.$playSound('success'); that.$notify({ type: 'success', message: "æ ¸å¯¹æå" }); that.LsBar = ""; // æ£æ¥æ¯å¦ææè¡é½å·²æ ¸å¯¹ const allChecked = that.XbarInfo.every(item => item.is_hedui === "1"); if (allChecked && that.XbarInfo.length > 0 && that.XbarInfo.length === that.Xvalue) { that.submitAllChecked(); } // ç´æ¥è¿åï¼ä¸è°ç¨ GetWeightByXt return; } that.AxiosHttp("post", 'Womdaa/GetWeightByXt', { LsBar: that.LsBar, H5/Js/Cz.js
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,70 @@ var vm = new Vue({ el: '#app', data: function () { return { isLoading: false, XBar: '', // æ«å°çæ¡ç Weight: '', // æ¾ç¤ºçéé userInfo: { loginGuid: '', loginAccount: '' } // å¦éä¼ userName } }, mounted() { try { var info = this.GetLoginInfor(); if (info) { this.userInfo.loginGuid = info.loginGuid || ''; this.userInfo.loginAccount = info.loginAccount || ''; } // åå§å°ç¦ç¹æ¾å°æ¡ç è¾å ¥ this.$nextTick(() => this.$refs.XBar && this.$refs.XBar.focus()); } catch (e) { // ignore } }, methods: { // æ«ç åè°ç¨å端è·åéé getWeight() { var that = this; if (!that.XBar || that.XBar.toString().trim().length === 0) { that.$playSound && that.$playSound('error'); that.$toast && that.$toast.fail("æ¡ç ä¸è½ä¸ºç©º"); that.$refs.XBar && that.$refs.XBar.focus(); return; } that.isLoading = true; that.AxiosHttp("post", 'Womdaa/GetWeightByXt_new', { LsBar: that.XBar, userName: that.userInfo.loginAccount || '' }, false) .then(function (res) { var json = res; if (json && json.status == 0) { // å端è¿åçééåæ®µï¼æ²¿ç¨ç°æä»£ç ä¹ æ¯ï¼ var weight = (json.data && json.data.tbBillList && json.data.tbBillList.weight) || ''; that.Weight = weight; that.$playSound && that.$playSound('success'); that.$notify && that.$notify({ type: 'success', message: "ç§°éæå" }); } else { that.Weight = ''; that.$playSound && that.$playSound('error'); var msg = (json && json.message) ? json.message : "ç§°é失败"; that.$dialog && that.$dialog.alert({ message: msg, theme: 'round-button' }); } that.isLoading = false; // æ¸ ç©ºå¹¶èç¦åå¤ä¸ä¸ä¸ªæ«ç that.XBar = ''; that.$nextTick(() => that.$refs.XBar && that.$refs.XBar.focus()); }) .catch(function () { that.isLoading = false; that.Weight = ''; that.$playSound && that.$playSound('error'); that.$dialog && that.$dialog.alert({ message: "ç½ç»é误ï¼è¯·éè¯ï¼", theme: 'round-button' }); that.XBar = ''; that.$nextTick(() => that.$refs.XBar && that.$refs.XBar.focus()); }); } } });