H5/AgvCz.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/AgvCz.aspx.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Cpdbsj.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/AgvCz.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/Cpbdsj.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Images/Style.css | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Mst.master | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
H5/AgvCz.aspx
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,140 @@ <%@ Page Title="AGVæä½" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="AgvCz.aspx.cs" Inherits="H5_Cpdbsj" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style> .si-status-box, .si-status__left { background-color: transparent !important; /* éæèæ¯ */ border: 1px solid #000 !important; /* é»è²å¤æ¡ */ color: #000 !important; /* å ¨å±æåé¢è² */ height: 0.5rem; } .si-status__left::after { content: none !important; } .si-status__label, .si-status__right { font-size: 0.33rem !important; /* ç»ä¸åä½å¤§å° */ color: inherit !important; /* ç»§æ¿ç¶çº§æåé¢è² */ } /* å± ä¸æ ¸å¿æ ·å¼ */ .centered-stepper-field { .stepper-container { display: flex; justify-content: center; /* æ°´å¹³å± ä¸ */ width: 100%; } /* è°æ´æ¥è¿å¨æé®é´è· */ .van-stepper__minus { margin-right: 12px; } .van-stepper__plus { margin-left: 12px; } } /* æ°å¢æ ·å¼ */ .button-container { display: flex; width: 100%; gap: 12px; /* æé®é´è· */ padding: 0 16px; /* å·¦å³çç½ */ box-sizing: border-box; } .action-button { flex: 1; /* çåå©ä½ç©ºé´ */ min-width: 0; /* 鲿¢å å®¹æº¢åº */ } .van-checkbox__icon--checked .van-icon { color: #ffffff !important; } </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> <div class="content-wrapper"> <van-nav-bar title="AGVæä½" left-text="è¿å" left-arrow @click-left="GoBack()"> </van-nav-bar> <div class="mySolid"> <van-cell-group> <van-field ref="KbBar" v-model="KbBar" label="塿¿æ¡ç " clearable placeholder="请æ«ç " :right-icon-size="19" v-focus.noKeyboard @keyup.enter.native="getKbBarInfo" autofocus="true"> </van-field> <van-field ref="jyz" v-model="jyz" label="æ£éªç¶æ" placeholder="è¯·éæ©æ£éªç¶æ" autofocus="true" @click.native="selectJyz"> </van-field> <van-field ref="lcName" v-model="lcName" label="楼å±" placeholder="è¯·éæ©æ¥¼å±" autofocus="true" @click.native="selectLc"> </van-field> <div style="height: 10px"></div> <!-- ä¿®æ¹åçæé®å®¹å¨ --> <div class="button-container"> <van-button type="warning" class="action-button reset-button" @click.native="handleAgvSj" >AGV鿣</van-button> <van-button type="primary" class="action-button" @click.native="handleAgvJy" >AGVæ£éª</van-button> <!-- style="background-color: #27f83f;border-color: #27f83f;color: white" --> <van-button type="info" class="action-button submit-button" @click.native="handleAgvRk" >å ¥ç«åº</van-button> </div> </van-cell-group> </div> <van-action-sheet v-model="show" :actions="actions" @select="onSelect" ></van-action-sheet> <van-action-sheet v-model="show2" :actions="actions2" @select="onSelect2" ></van-action-sheet> </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/AgvCz.js?<%=11 %>"></script> </asp:Content> H5/AgvCz.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_Cpdbsj : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } H5/Cpdbsj.aspx
@@ -253,5 +253,5 @@ </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <script src="Js/Cpbdsj.js?<%=12111111421511 %>"></script> <script src="Js/Cpbdsj.js?<%=12111111421512 %>"></script> </asp:Content> H5/Js/AgvCz.js
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,320 @@  var vm = new Vue({ el: '#app', data: function () { return { isLoading: false, userInfo: { "loginGuid": '', "loginAccount": '', }, KbBar: "",//塿¿æ¡ç LsBar: "",//åçæµæ°´æ¡ç XBar: "",//ç®±æ¡ç UserName: Cookies.get('loginName'),//ç¨æ·åç§° KbBarInfo: [], KbBarMxInfo: [], show: false,//å表å±ç¤º actions: [{ name: "䏿¥¼", Postition: 1 // æ°å¢ }, { name: "忥¼", Postition: 4 // æ°å¢ }],//å表çå¼ show2: false,//å表å±ç¤º actions2: [{ name: "åæ ¼" },{ name: "ä¸åæ ¼" }],//å表çå¼ lcName: "",//楼å±åç§° lcNum: "",//楼å±ç¼å· jyz: "",//æ£éªå¼ } }, mounted() { var that = this; this.userInfo = { loginGuid: this.GetLoginInfor().loginGuid, loginAccount: this.GetLoginInfor().loginAccount, }; }, methods: { getKbBarInfo() { var that = this; that.isLoading = true; that.AxiosHttp("post", 'Womdaa/getKbBarInfo', { Xt: that.GX, Kbbarcode: that.KbBar }, false) .then(function (res) { var json = res; if (json.status == 0) { } else { that.$playSound('error'); that.$toast.fail(json.message); that.$refs.KbBar.focus(); that.KbBar = ""; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$playSound('error'); that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); that.$refs.KbBar.focus(); that.KbBar = ""; }); }, handleClear() { this.KbBar = ""; this.XBar = ""; this.LsBar = ""; this.DAA001 = []; this.XbarInfo = []; }, handleSubmit() { if (this.isLoading) { return; } var that = this; if (!that.KbBar) { that.$playSound('error'); that.$toast.fail("è¯·å æ«æå¡æ¿æ¡ç "); return; } // 计ç®å¯è£ æ°åå·²è£ æ° const oldqty = +(that.KbBarInfo.quantity || 0); const ySum = +(that.KbBarInfo.ySum || 0); if (oldqty !== ySum) { that.$playSound('error'); that.$toast.fail(`è£ æ¿æªå®æï¼å¾ è£ æ°ï¼${oldqty - ySum}`); return; } that.isLoading = true; that.AxiosHttp("post", 'Womdaa/submitInspection', { KbBar: that.KbBar, userAccount: that.userInfo.loginAccount }, false) .then(function (res) { var json = res; if (json.status == 0) { that.$playSound('success'); that.$notify({ type: 'success', message: json.message }); // æ¸ ç©ºæ°æ® //that.KbBar = ""; //that.XbarInfo = []; //that.KbBarInfo = []; //that.$refs.KbBar.focus(); } else { that.$playSound('error'); that.$toast.fail(json.message); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$playSound('error'); that.$toast.fail("æäº¤å¤±è´¥ï¼è¯·éè¯ï¼"); that.$refs.KbBar.focus(); }); }, onSelect(action) { this.lcNum = action.Postition; // ç»å®line_noå°xtNumåæ®µ //console.log("éæ©ç线ä½ç¼å·ï¼", this.xtNum); this.lcName = action.name; // ç»å®nameå°xtNameåæ®µ this.show = false; }, onSelect2(action) { this.jyz = action.name; // ç»å®nameå°xtNameåæ®µ this.show2 = false; }, //è·åå¯å¼å«AGVççº¿ä½ selectLc() { this.show = true; //var that = this; //that.actions = []; //that.isLoading = true; //that.AxiosHttp("post", 'Womdaa/GetAgvXt', { // selectKey: that.selectKey, //}, false) // .then(function (res) { // var json = res; // if (json.status == 0) { // if (json.data.tbBillList.length <= 0) { // that.$toast.fail("没æå¯ç¨çæ°æ®"); // that.$playSound('error'); // } else { // that.itemInfo = json.data.tbBillList; // that.actions = json.data.tbBillList.map(item => { // return { // name: item.name, // lineNo: item.line_no // æ°å¢ // }; // }); // } // } // else { // that.$toast.fail(json.message); // that.$playSound('error'); // } // that.isLoading = false; // }) // .catch(function (error) { // that.isLoading = false; // that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); // that.$playSound('error'); // console.log(error); // }); }, selectJyz() { this.show2 = true; }, //AGV鿣 handleAgvSj() { //this.$toast.fail("åè½å¼åæµè¯ä¸ï¼"); //return; if (this.isLoading) { return; } var that = this; if (!that.KbBar) { that.$playSound('error'); that.$toast.fail("è¯·å æ«æå¡æ¿æ¡ç "); return; } that.isLoading = true; that.AxiosHttp("post", 'Womdaa/handleAGVInspection', { KbBar: that.KbBar, userAccount: that.userInfo.loginAccount }, false) .then(function (res) { var json = res; if (json.status == 0) { that.$playSound('success'); that.$notify({ type: 'success', message: json.message }); } else { that.$playSound('error'); that.$toast.fail(json.message); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$playSound('error'); that.$toast.fail("AGVéæ£å¤±è´¥ï¼è¯·éè¯ï¼"); that.$refs.KbBar.focus(); }); }, //AGVæ£éª handleAgvJy() { //this.$toast.fail("åè½å¼åæµè¯ä¸ï¼"); //return; if (this.isLoading) { return; } var that = this; if (!that.jyz) { that.$playSound('error'); that.$toast.fail("请å éæ©æ£éªå¼"); return; } that.isLoading = true; that.AxiosHttp("post", 'Womdaa/handleAgvJy', { jyz: that.jyz, KbBar: that.KbBar, userAccount: that.userInfo.loginAccount }, false) .then(function (res) { var json = res; if (json.status == 0) { that.$playSound('success'); that.$notify({ type: 'success', message: json.message }); } else { that.$playSound('error'); that.$toast.fail(json.message); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$playSound('error'); that.$toast.fail("AGVæ£éªå¤±è´¥ï¼è¯·éè¯ï¼"); that.$refs.KbBar.focus(); }); }, handleAgvRk() { //this.$toast.fail("åè½å¼åæµè¯ä¸ï¼"); //return; if (this.isLoading) { return; } var that = this; if (!that.KbBar) { that.$playSound('error'); that.$toast.fail("è¯·å æ«æå¡æ¿æ¡ç "); return; } that.isLoading = true; that.AxiosHttp("post", 'Womdaa/handleAgvRk', { KbBar: that.KbBar, userAccount: that.userInfo.loginAccount, Postition: that.lcNum }, false) .then(function (res) { var json = res; if (json.status == 0) { that.$playSound('success'); that.$notify({ type: 'success', message: json.message }); } else { that.$playSound('error'); that.$toast.fail(json.message); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$playSound('error'); that.$toast.fail("AGVå ¥ç«åºå¤±è´¥ï¼è¯·éè¯ï¼"); that.$refs.KbBar.focus(); }); }, } }) H5/Js/Cpbdsj.js
@@ -412,14 +412,22 @@ //AGV鿣 handleAGVInspection() { this.$toast.fail("åè½å¼åæµè¯ä¸ï¼"); return; //this.$toast.fail("åè½å¼åæµè¯ä¸ï¼"); //return; if (this.isLoading) { return; } var that = this; if (that.agvChecked === false) { that.$playSound('error'); that.$toast.fail("AGVéæ£è¯·å å¾é AGV"); return; } if (!that.KbBar) { that.$playSound('error'); that.$toast.fail("è¯·å æ«æå¡æ¿æ¡ç "); @@ -455,15 +463,15 @@ .catch(function (error) { that.isLoading = false; that.$playSound('error'); that.$toast.fail("éæ£å¤±è´¥ï¼è¯·éè¯ï¼"); that.$toast.fail("AGVéæ£å¤±è´¥ï¼è¯·éè¯ï¼"); that.$refs.KbBar.focus(); }); }, //AGVå¼å« handleAGVCall() { this.$toast.fail("åè½å¼åæµè¯ä¸ï¼"); return; //this.$toast.fail("åè½å¼åæµè¯ä¸ï¼"); //return; if (this.isLoading) { return; @@ -475,6 +483,29 @@ that.$toast.fail("请å éæ©çº¿ä½"); return; } that.isLoading = true; that.AxiosHttp("post", 'Womdaa/handleAGVCall', { XtNum: that.xtNum, userAccount: that.userInfo.loginAccount }, false) .then(function (res) { var json = res; if (json.status == 0) { that.$playSound('success'); that.$notify({ type: 'success', message: json.message }); } else { that.$playSound('error'); that.$toast.fail(json.message); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$playSound('error'); that.$toast.fail("AGVå¼å«å¤±è´¥ï¼è¯·éè¯ï¼"); that.$refs.KbBar.focus(); }); } Images/Style.css
@@ -586,7 +586,8 @@ /*å ¨å±æé®ç¼©å°*/ .van-nav-bar__left, .van-nav-bar__right { font-size: .30rem; font-size: .40rem; padding: 0px .1rem; } /*è°æ´æç´¢æ¡åä½çé«åº¦å大å°*/ Mst.master
@@ -14,7 +14,7 @@ <script src="/scripts/config.js?<%=123611118 %>"></script> <link href="/scripts/vant/vant.css" rel="stylesheet" /> <script src="/scripts/vant/vant.js"></script> <link href="/Images/Style.css?<%=169951 %>" rel="stylesheet" /> <link href="/Images/Style.css?<%=169952 %>" rel="stylesheet" /> <script src="/Scripts/uni.webview.1.5.2.js"></script> <asp:ContentPlaceHolder ID="head" runat="server"> </asp:ContentPlaceHolder>