H5/Dhdsh.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Dhdsh.aspx.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/Dhdsh.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
H5/Dhdsh.aspx
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,191 @@ <%@ Page Title="å°è´§åæ¶è´§" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" %> <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; /* 鲿¢å å®¹æº¢åº */ } </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()" @click-right="showButton = true"> <template #right> <van-icon name="ellipsis" /> </template> </van-nav-bar> <div class="mySolid"> <van-cell-group> <van-field ref="shdh" v-model="shdh" label="éè´§åå·" placeholder="éè´§åå·" @keyup.enter.native="GetItemsShdh" autofocus="true" > </van-field> <%-- <van-field v-model="gys" label="ä¾åºå" placeholder="ä¾åºå" autofocus="true" readonly> </van-field>--%> <van-field ref="Bar" v-model="Bar" label="ç©ææ¡ç " placeholder="请æ«ç©ææ¡ç " @keyup.enter.native="Scandhdsh" autofocus="true"> </van-field> </van-cell-group> </div> <van-tabs color="#000" title-active-color="#0283EF"> <van-tab title="ææå表" class="mySolid font"> <van-row> <van-col span="5" class="text-left padding-left">ç©æ</van-col> <van-col span="3">å°è´§æ°</van-col> <van-col span="3">å·²æ¶æ°</van-col> <van-col span="3">å¾ æ¶æ°</van-col> <van-col span="6" >ç©æè§æ ¼</van-col> <van-col span="4" >éè´è®¢å</van-col> </van-row> <van-row v-for="(itm,index) in ItemList" :key="index"> <van-col span="5" class="text-left padding-left"> <div class="blue-text">{{itm.item_no}}</div> <div>{{itm.item_name}}</div> </van-col> <van-col span="3" >{{itm.shsl}}</van-col> <van-col span="3" class="blue-text">{{itm.ysl}}</van-col> <van-col span="3" class="blue-text">{{itm.dssl}}</van-col> <van-col span="6"><div>{{itm.item_model}}</div></van-col> <van-col span="4"><div>{{itm.po_erp_no}}</div></van-col> </van-row> </van-tab> <van-tab title="æ¡ç å表" class="mySolid font"> <van-row> <van-col span="7" class="text-left padding-left">æ¡ç </van-col> <van-col span="6" class="text-left padding-left">ç©æ</van-col> <van-col span="3" class="text-left padding-left">æ°é</van-col> <van-col span="3" >æ¥æ¶æ°</van-col> <van-col span="5" >éè´è®¢å</van-col> </van-row> <van-row v-for="(itm,index) in BarList" :key="index"> <van-col span="7" class="text-left padding-left">{{itm.small_barcode}}</van-col> <van-col span="6" class="text-left padding-left"> <div class="blue-text">{{itm.item_no}}</div> <div>{{itm.item_name}}</div> </van-col> <van-col span="3" class="text-left padding-left"> <div>{{itm.include_qty}}</div> </van-col> <van-col span="3"> <div class="blue-text">{{itm.ysl}}</div> </van-col> <van-col span="5"> <div>{{itm.po_erp_no}}</div> </van-col> </van-row> </van-tab> </van-tabs> <!-- å¼¹åºèå --> <van-popup v-model="showButton" position="bottom" :style="{ width: '100%' }" :close-on-click-overlay="!ttrre1 && !ttrre2" lock-scroll > <div style="padding: 12px;"> <van-button block type="info" @click="submit" :loading="ttrre1" loading-text="å è½½ä¸..." >æäº¤æ£éª</van-button> </div> <div style="padding: 12px;"> <van-button block type="info" @click="Fsubmit" :loading="ttrre2" loading-text="å è½½ä¸..." >æ¤åæ£éª</van-button> </div> </van-popup> </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/Dhdsh.js?<%=1111111111 %>"></script> </asp:Content> H5/Dhdsh.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_Dhdsh : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } H5/Js/Dhdsh.js
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,186 @@ var vm = new Vue({ el: '#app', data: function () { return { isLoading: false, userInfo: { "loginGuid": '', "loginAccount": '', }, UserName: Cookies.get('loginName'),//ç¨æ·åç§° Bar: "",//ç©ææ¡ç XbarInfo: [], shdh: "",//éè´§åå· gys: [],//ä¾åºå ItemList: [], //ææå表 BarList: [],//æ¡ç å表 showButton: false,//å³ä¸è§èå触å ttrre1: false, ttrre2: false, //ttrre: "true", dhdGuid:"", } }, mounted() { var that = this; this.userInfo = { loginGuid: this.GetLoginInfor().loginGuid, loginAccount: this.GetLoginInfor().loginAccount, }; }, methods: { GetItemsShdh() { var that = this; if (that.shdh.length <= 0) { that.$toast.fail("éè´§åå·ä¸è½ä¸ºç©ºï¼"); that.$refs.shdh.focus(); return; } that.isLoading = true; that.AxiosHttp("post", 'MesXkyShd/GetShdhItems', { shdh: that.shdh }, false) .then(function (res) { var json = res; if (json.status == 0) { that.ItemList = json.data.tbBillList; that.dhdGuid = json.data.tbBillList[0].ddhid; that.BarList = json.data.tbMesItems; that.$refs.Bar.focus(); } else { that.$toast.fail(json.message); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); }); }, Scandhdsh() { // æ·»å 鲿夿 if (this.isLoading) { return; } var that = this; if (that.Bar.length <= 0) { that.$toast.fail("ç©ææ¡ç ä¸è½ä¸ºç©ºï¼"); that.$refs.Bar.focus(); return; } if (that.shdh.length <= 0) { that.$toast.fail("éè´§åå·ä¸è½ä¸ºç©ºï¼"); that.$refs.shdh.focus(); return; } that.isLoading = true; that.AxiosHttp("post", 'MesXkyShd/ScanBar', { shdh: that.shdh, barcode: that.Bar, userName: that.userInfo.loginAccount, }, false) .then(function (res) { var json = res; if (json.status == 0) { // that.scanInfo = json.data.tbBillList; that.$notify({ type: 'success', message: json.message }); that.GetItemsShdh(); } else { that.$toast.fail(json.message); } that.isLoading = false; that.$refs.Bar.focus(); that.Bar = ""; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); }); }, submit() { // æ·»å 鲿夿 if (this.ttrre1 || this.ttrre2) { return; } var that = this; if (!that.shdh ||that.shdh.length <= 0) { that.$toast.fail("éè´§åå·ä¸è½ä¸ºç©ºï¼"); that.$refs.shdh.focus(); return; } if (!that.dhdGuid || that.dhdGuid.length <= 0) { // æ·»å nullæ£æ¥ that.$toast.fail("SRMéè´§åè¿æªçæMESéè´§åï¼"); that.$refs.shdh.focus(); return; } //that.ttrre = true; // æäº¤ç¶æè®¾ä¸ºtrueæ¶ï¼èªå¨ç¦ç¨é®ç½©ç¹å» that.ttrre1 = true; // æäº¤ç¶æè®¾ä¸ºtrueæ¶ï¼èªå¨ç¦ç¨é®ç½©ç¹å» console.log(that.dhdGuid); that.AxiosHttp("post", 'MesInvItemArnManager/EditModelSubmit', { guid: that.dhdGuid }, true, 1).then(function (res1) { if (res1.rtnData.outSum == 1) { that.$notify({ type: 'success', message: 'æäº¤æå' }); } else { that.$toast.fail(res1.rtnData.outMsg); } that.ttrre1 = false // 宿忢å¤å¯å ³éç¶æ that.showButton = false; }).catch(function (error) { that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); that.ttrre1 = false // å¼å¸¸æ¶ä¹æ¢å¤ç¶æ that.showButton = false; }); }, Fsubmit() { // æ·»å 鲿夿 if (this.ttrre1 || this.ttrre2) { return; } var that = this; if (that.shdh.length <= 0) { that.$toast.fail("éè´§åå·ä¸è½ä¸ºç©ºï¼"); that.$refs.shdh.focus(); return; } if (that.dhdGuid.length <= 0) { that.$toast.fail("SRMéè´§åè¿æªçæMESéè´§åï¼"); that.$refs.shdh.focus(); return; } //that.ttrre = true; that.ttrre2 = true; console.log(that.dhdGuid); that.AxiosHttp("post", 'MesInvItemArnManager/EditModelSubmitF', { guid: that.dhdGuid }, true, 1).then(function (res1) { if (res1.rtnData.outSum == 1) { that.$notify({ type: 'success', message: 'æ¤åæå' }); } else { that.$toast.fail(res1.rtnData.outMsg); } that.ttrre2 = false; that.showButton = false; // 宿åå ³éå¼¹çª }).catch(function (error) { that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); that.ttrre2 = false that.showButton = false; // 宿åå ³éå¼¹çª console.log(error); }); }, } })