| H5/Js/UserLogin.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Js/Zzxdb.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Zzxdb.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Zzxdb.aspx.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Mst.master | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Scripts/config.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| UserLogin.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
H5/Js/UserLogin.js
@@ -5,6 +5,7 @@ isLoading: false, phone: '', passwd: '', rememberPwd: false, show: false, show2: false, } H5/Js/Zzxdb.js
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,261 @@ var vm = new Vue({ el: '#app', data: function () { return { isLoading: false, load: false, userInfo: { "loginGuid": '', "loginAccount": '', "loginOrgid":'', }, billNo: "", dckw: "", // è°åºåºä½ drkw: "", // è°å ¥åºä½ remark: "", // 夿³¨ barcode: "", ItemBlDetail: [], modeInfo: [], active: 0, show: false, actions: [], ItemDetail: { items: [] // ç¡®ä¿æè¿ä¸ªç»æ }, scanInfo: { barcodeNum: "", splitNum: "", barcode: "", }, dbNum: "", // è°æ¨æ°é kcNum: "", // 峿¶åºå printItemInfo: [], itemId:"", itemNo: "", // ç©æç¼ç item_name: "", // ç©æåç§° item_model: "" // ç©æè§æ ¼ } }, mounted() { var that = this; this.userInfo = { loginGuid: this.GetLoginInfor().loginGuid, loginAccount: this.GetLoginInfor().loginAccount, }; }, methods: { getInfo() { this.show = true; var that = this; that.isLoading = true; that.AxiosHttp("post", 'Zzxdb/GetItemNoList', { //name: that.userInfo.loginAccount, itemNo: that.itemNo }, false) .then(function (res) { var json = res; if (json.status == 0) { if (json.data.tbBillList.length == 0) { that.$toast.fail("æ²¡ææ¾å°å¯ä»¥éæ©çç©æç¼å·"); } that.actions = json.data.tbBillList.map(item => { return { name: item.item_no, itemId : item.item_id } }); } else { that.$toast.fail(json.message); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); console.log(error); }); }, onClick(index, title) { this.$toast(`${index} ${title}`); //this.$notify({ type: 'success', message: 'ææç©ææ«ç æåææç©ææ«ç æåææç©ææ«ç æåææç©ææ«ç æå' }); }, onSelect(item) { // é»è®¤æ åµä¸ç¹å»é项æ¶ä¸ä¼èªå¨æ¶èµ· // å¯ä»¥éè¿ close-on-click-action 屿§å¼å¯èªå¨æ¶èµ· this.show = false; //this.itemNo = item.name; this.itemId = item.itemId; console.log("ç©æid", this.itemId) this.itemNo = item.name.split('/')[0]; this.GetMesItemByItemNo(); //this.$toast(item.name); }, GetMesItemBlDetailByBillNo() { var that = this; that.isLoading = true; that.AxiosHttp("post", 'Zzxdb/GetKwByBillNo', { billNo: that.billNo }, false) .then(function (res) { var json = res; if (json.status == 0) { if (json.data.tbBillList.xcslItemList[0].rnum == 2) { that.drkw = 'Z2'; that.dckw = 'A14-3-33'; that.billNo = json.data.tbBillList.xcslItemList[0].billno; } else { that.drkw = 'A14-3-33'; that.dckw = 'Z2'; that.billNo = json.data.tbBillList.xcslItemList[0].billno; } } else { that.$toast.fail(json.message); that.billNo = ""; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); that.$refs.billNo.focus(); that.billNo = ""; that.ItemBlDetail = null; //console.log(error); }); }, GetMesItemByItemNo() { var that = this; that.isLoading = true; that.AxiosHttp("post", 'Zzxdb/GetMesItemByItemNo', { itemNo: that.itemNo, userName: that.userInfo.loginAccount, dckw: that.dckw, }, false) .then(function (res) { var json = res; if (json.status == 0) { that.itemNo = json.data.tbBillList.xcslItemList[0].item_no; that.item_model = json.data.tbBillList.xcslItemList[0].item_model; that.item_name = json.data.tbBillList.xcslItemList[0].item_name; that.kcNum = json.data.tbBillList.xcslItemList[0].kcnum; that.ItemDetail.items = json.data.tbBillList.itemDetail } else { that.$toast.fail(json.message); that.itemNo = ""; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); that.$refs.billNo.focus(); that.billNo = ""; that.ItemBlDetail = null; //console.log(error); }); }, saveDbsq() { var that = this; that.isLoading = true; if (that.dbNum <= 0) { that.$toast.fail("è°æ¨æ°éä¸è½ä¸º0"); that.isLoading = false; // æ·»å è¿è¡ return; // æ·»å è¿å } if (that.dbNum > that.kcNum) { that.$toast.fail("è°æ¨æ°éä¸è½å¤§äºå³æ¶åºå"); that.isLoading = false; // æ·»å è¿è¡ return; // æ·»å è¿å } that.AxiosHttp("post", 'Zzxdb/saveDbsq', { id: that.itemId, dbNum: that.dbNum, userName: that.userInfo.loginAccount, remark: that.remark, drkw: that.drkw, dckw: that.dckw, }, false) .then(function (res) { var json = res; if (json.status == 0) { that.GetMesItemByItemNo(); } else { that.$toast.fail(json.message); that.itemNo = ""; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); that.$refs.billNo.focus(); that.billNo = ""; that.ItemBlDetail = null; //console.log(error); }); }, deleteDbsqMx(mxid) { var that = this; that.isLoading = true; that.AxiosHttp("post", 'Zzxdb/deleteDbsqMx', { id: mxid, userName: that.userInfo.loginAccount, }, false) .then(function (res) { var json = res; if (json.status == 0) { that.GetMesItemByItemNo(); } else { that.$toast.fail(json.message); that.itemNo = ""; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); //console.log(error); }); }, submitDbBillNo() { var that = this; that.isLoading = true; that.AxiosHttp("post", 'Zzxdb/submit', { id: that.ItemDetail.items[0].pid, userName: that.userInfo.loginAccount, }, false) .then(function (res) { var json = res; if (json.status == 0) { that.GetMesItemByItemNo(); } else { that.$toast.fail(json.message); that.itemNo = ""; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); //console.log(error); }); } } }) H5/Zzxdb.aspx
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,213 @@ <%@ Page Title="å¨è½¬ç®±è°æ¨" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style> .bg-info { background-color: #fff; } .container { padding: 10px; } .header { background-color: #f5f5f5; padding: 8px 0; font-weight: bold; border-bottom: 1px solid #ebedf0; } .data-rows { max-height: 400px; overflow-y: auto; } .data-row { padding: 8px 0; border-bottom: 1px solid #ebedf0; } .text-left { text-align: left; } .padding-left { padding-left: 8px; } .blue-text { color: #1989fa; } .empty-state { text-align: center; padding: 20px; color: #969799; } .mySolid.font { font-size: 14px; } .van-button { margin: 5px; } .van-cell-group { margin-bottom: 10px; } </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> <van-nav-bar title="å¨è½¬ç®±è°æ¨" left-text="è¿å" left-arrow @click-left="GoBack()" ></van-nav-bar> <div> <van-cell-group> <van-field ref="billNo" v-model="billNo" label="åæ®ç¼å·" clearable placeholder="è¾å ¥ææ«æäºç»´ç " :right-icon-size="19" v-focus.noKeyboard @keyup.enter.native="GetMesItemBlDetailByBillNo()" ></van-field> <van-field ref="dckw" v-model="dckw" label="è°åºåºä½" clearable placeholder="è¾å ¥ææ«æäºç»´ç " :right-icon-size="19" v-focus.noKeyboard ></van-field> <van-field ref="drkw" v-model="drkw" label="è°å ¥åºä½" clearable placeholder="è¾å ¥ææ«æäºç»´ç " :right-icon-size="19" v-focus.noKeyboard ></van-field> <van-field v-model="itemNo" label="ç©æç¼ç " clearable placeholder="ç©æç¼ç " :right-icon-size="19" v-focus.noKeyboard @keyup.enter.native="GetMesItemByItemNo()" > <template #button> <van-button size="small" type="info" plain @click="getInfo">éæ©</van-button> </template> </van-field> <van-field ref="dbNum" v-model="dbNum" center clearable label="è°æ¨æ°é" placeholder="è¾å ¥è°æ¨æ°é" v-focus.noKeyboard ></van-field> <van-field v-model="item_name" label="ç©æåç§°" placeholder="" clearable :right-icon-size="19" disabled ></van-field> <van-field v-model="item_model" label="ç©æè§æ ¼" clearable placeholder="" :right-icon-size="19" disabled ></van-field> <van-field v-model="remark" label="夿³¨" clearable placeholder="è¾å ¥å¤æ³¨" :right-icon-size="19" ></van-field> <van-field v-model="kcNum" label="峿¶åºå" clearable placeholder="峿¶åºå" :right-icon-size="19" disabled ></van-field> </van-cell-group> </div> <div style="padding: 10px;"> <van-button type="primary" @click="saveDbsq" :loading="load" loading-text="åéä¸">ä¿å</van-button> <van-button type="primary" @click="submitDbBillNo" :loading="load" loading-text="åéä¸">ç¡®è®¤è°æ¨</van-button> </div> <van-tabs color="#000" title-active-color="#0283EF"> <van-tab title="å¾ ç¡®è®¤è°æ¨å" class="mySolid font"> <div class="container"> <!-- 表头 --> <van-row class="header"> <van-col span="3" class="text-left padding-left">è°åºåºä½</van-col> <van-col span="3" class="text-left padding-left">è°å ¥åºä½</van-col> <van-col span="5" class="text-left padding-left">ç©æç¼ç </van-col> <van-col span="3">è°æ¨æ°é</van-col> <van-col span="4" 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-row> <!-- æ°æ®è¡ --> <div class="data-rows"> <van-row v-for="(itm,index) in ItemDetail.items" :key="index" class="data-row"> <van-col span="3" class="text-left padding-left"> <div>{{itm.dckw}}</div> </van-col> <van-col span="3" class="text-left padding-left"> <div>{{itm.drkw}}</div> </van-col> <van-col span="5" class="text-left padding-left"> <div class="blue-text">{{itm.itemNo}}</div> </van-col> <van-col span="3" class="blue-text">{{itm.FQty}}</van-col> <van-col span="4" class="text-left padding-left"> <div>{{itm.itemName}}</div> </van-col> <van-col span="3">{{itm.itemModel}}</van-col> <van-col center span="3"> <van-tag type="danger" @click="deleteDbsqMx(itm.id)" style="font-size:15px" >å é¤</van-tag> </van-col> </van-row> <!-- ç©ºç¶ææç¤º --> <div v-if="!ItemDetail.items || ItemDetail.items.length === 0" class="empty-state"> ææ æ°æ® </div> </div> </div> </van-tab> </van-tabs> <van-action-sheet v-model="show" :actions="actions" @select="onSelect"></van-action-sheet> </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/Zzxdb.js?<%=11117 %>"></script> </asp:Content> H5/Zzxdb.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_Scbl : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } Mst.master
@@ -11,7 +11,7 @@ <script src="/Scripts/vue.min.js"></script> <script src="/Scripts/js.cookie.min.js"></script> <script src="/scripts/axios0.25.0.js"></script> <script src="/scripts/config.js?<%=123611130 %>"></script> <script src="/scripts/config.js?<%=123611131 %>"></script> <!-- <script src="/scripts/config.js?<%=DateTime.Now.Ticks %>"></script>--> <link href="/scripts/vant/vant.css" rel="stylesheet" /> <script src="/scripts/vant/vant.js"></script> Scripts/config.js
@@ -86,6 +86,8 @@ url = (APIURL_PC + url); } let headers = { 'Content-Type': 'application/json', } var orgId = Cookies.get('orgId') headers['OrgId'] = orgId; if (isToken) { var timestamp = (new Date()).getTime(); var token = Cookies.get('loginGuid') UserLogin.aspx
@@ -4,6 +4,35 @@ .bg-info { background-color:#fff; } .remember-pwd { display: flex; align-items: center; padding: 8px 16px; margin: 10px 0; } .remember-label { font-size: 14px; color: #323233; display: flex; align-items: center; } .custom-checkbox { transform: scale(0.9); /* 缩å°å¤éæ¡ */ margin-right: 6px; /* è°æ´ä¸æåçé´è· */ } .forgot-pwd { font-size: 14px; color: #1989fa; text-decoration: none; } /* 妿éè¦æ´ç²¾ç¡®çæ§å¶ï¼å¯ä»¥è¦çVantæ ·å¼ */ .van-checkbox__icon .van-icon { font-size: 18px; /* è°æ´å¾æ å¤§å° */ } .van-checkbox__label { margin-left: 5px; /* è°æ´æ ç¾å·¦è¾¹è· */ font-size: 14px; } </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server"> @@ -37,6 +66,16 @@ placeholder="请è¾å ¥å¯ç " :rules="[{ required: true, message: '请è¾å ¥å¯ç ' }]" ></van-field> <!-- è®°ä½å¯ç å¤éæ¡ - è°æ´ä½ç½®å°è¡¨å项å¤é¢ --> <div class="remember-pwd"> <van-checkbox v-model="rememberPwd" shape="square" icon-size="16px" class="remember-label"> è®°ä½å¯ç </van-checkbox> </div> </van-cell-group> <div class="margin padding margin-lg-bottom"> <van-button round block type="info" native-type="submit" :loading="isLoading"> @@ -54,5 +93,5 @@ <comloading v-if="isLoading"></comloading> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" runat="Server"> <script src="/H5/Js/UserLogin.js?<%=1236 %>"></script> <script src="/H5/Js/UserLogin.js?<%=1237 %>"></script> </asp:Content>