| H5/Js/Strk.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Js/Sttl.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Strk.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Sttl.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
H5/Js/Strk.js
@@ -17,7 +17,12 @@ depot: {}, show: false, actions: [], ItemTblDetail:[] ItemBlDetail: [], // 待扫 ItemYsDetail: [], // 已扫 ItemTblDetail: [], ItemDetail: [], ItemBarKw: [], currentIndex: -1, } }, mounted() { @@ -43,6 +48,7 @@ if (json.status == 0) { if (json.data.tbBillList.length <= 0) { that.$toast.fail("没有可用的数据"); that.show = false; } else { that.actions = json.data.tbBillList.map(item => { return { name: item } @@ -58,6 +64,7 @@ that.isLoading = false; that.$toast.fail("网络错误,请重试!"); console.log(error); that.show = false; }); }, //onClick(index, title) { @@ -70,6 +77,8 @@ // 可以通过 close-on-click-action 属性开启自动收起 this.show = false; this.billNo = item.name; // 清空库位列表 this.ItemBarKw = []; this.getMesItemDetailByBillNo(); //this.$toast(item.name); }, @@ -82,7 +91,9 @@ .then(function (res) { var json = res; if (json.status == 0) { that.ItemTblDetail = json.data.tbBillList; var tbBillList = json.data.tbBillList || {}; that.ItemBlDetail = tbBillList.blDetails || []; // 待扫 that.ItemYsDetail = tbBillList.ysDetails || []; // 已扫 that.$refs.sectionCode.focus(); } else { @@ -165,6 +176,7 @@ that.itemNo = json.data.tbBillList.itemNo; that.sms = json.data.tbBillList.num; that.$notify({ type: 'success', message: '扫描成功' }); that.$toast.success("扫描成功"); that.$refs.barcode.focus(); that.barcode = null; that.getMesItemDetailByBillNo(); H5/Js/Sttl.js
@@ -14,11 +14,12 @@ selectType: "", daa001: "", barcode: "", ItemBlDetail:[], modeInfo: [], active: 0, show: false, actions: [], ItemBlDetail: [], // 待扫 ItemYsDetail: [], // 已扫 ItemTblDetail: [], ItemDetail: [], ItemBarKw: [], @@ -51,6 +52,7 @@ console.log('当前选中项:', this.selItem); // 调试用 this.GetBarKwByItem(); //this.active = 1; //自动切换到库位列表tab }, GetBarKwByItem() { @@ -118,7 +120,7 @@ //onClick(index, title) { // this.$toast(`${index} ${title}`); // this.$notify({ type: 'success', message: '某某物料扫码成功某某物料扫码成功某某物料扫码成功某某物料扫码成功' }); //that.$playSound('success'); //}, onSelect(item) { // 默认情况下点击选项时不会自动收起 @@ -142,8 +144,10 @@ .then(function (res) { var json = res; if (json.status == 0) { that.ItemBlDetail = json.data.tbBillList; //that.daa001 = json.data.tbBillList.item1; //that.ItemBlDetail = json.data.tbBillList; var tbBillList = json.data.tbBillList || {}; that.ItemBlDetail = tbBillList.blDetails || []; // 待扫 that.ItemYsDetail = tbBillList.ysDetails || []; // 已扫 that.$refs.barcode.focus(); } else { @@ -213,11 +217,13 @@ that.num = null; //that.ItemBlDetail = json.data.tbBillList.item2 that.$notify({ type: 'success', message: '扫描成功' }); that.$playSound('success'); that.GetMesItemDetailByBillNo(); that.$refs.barcode.focus(); that.barcode = ""; that.num = ""; that.splitNum = ""; that.GetBarKwByItem(); // 退料后刷新库位 } else if (json.status == 2) { @@ -301,11 +307,14 @@ if (json.status == 0) { that.ItemBlDetail = json.data.pendingList; that.$notify({ type: 'success', message: '扫描成功' }); that.$playSound('success'); that.sendPrintMessage(json.data.tbBillList);//打印 that.$refs.barcode.focus(); that.barcode = ""; that.num = ""; that.splitNum = ""; that.GetMesItemDetailByBillNo(); that.GetBarKwByItem();// 退料后刷新库位 } else { that.$toast.fail(json.message); H5/Strk.aspx
@@ -8,6 +8,11 @@ </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> <van-notice-bar :scrollable="false" :text="'当前组织:' + (Cookies.get('orgName') || '暂无组织信息')" class="org-info" /></van-notice-bar> <van-nav-bar title="受托入库" left-text="返回" @@ -68,24 +73,46 @@ </van-cell-group> </div> <van-tabs <%--@click="onClick"--%> color="#000" title-active-color="#0283EF" > <van-tab title="待退明细" class="mySolid font"> <van-tabs color="#000" title-active-color="#0283EF"> <van-tab title="待扫物料" class="mySolid font"> <van-row> <van-col span="12" class="text-left padding-left">物料</van-col> <van-col span="6">待扫</van-col> <van-col span="6">已扫</van-col> <van-col span="8" class="text-left padding-left">物料</van-col> <van-col span="8" 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="value in ItemTblDetail" class="font"> <van-col span="12" class="text-left padding-left"> <div>{{value.itemNo}}</div> <div>{{value.itemName}}</div> <van-row v-for="(itm,index) in ItemBlDetail" :key="index"> <van-col span="8" class="text-left padding-left"> <div class="blue-text">{{itm.itemNo}}</div> <div>{{itm.itemName}}</div> </van-col> <van-col span="6">{{value.fQty}}</van-col> <van-col span="6">{{value.sQty || 0}}</van-col> <van-col span="8" class="text-left padding-left"> <div>{{itm.itemModel}}</div> </van-col> <van-col span="3" class="blue-text">{{itm.dsQty}}</van-col> <van-col span="5">{{itm.recoKw}}</van-col> </van-row> </van-tab> <van-tab title="已退明细"></van-tab> <van-tab title="已扫物料" class="mySolid font"> <van-row> <van-col span="8" class="text-left padding-left">物料</van-col> <van-col span="8" 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 ItemYsDetail" :key="index"> <van-col span="8" class="text-left padding-left"> <div class="blue-text">{{itm.itemNo}}</div> <div>{{itm.itemName}}</div> </van-col> <van-col span="8" class="text-left padding-left"> <div>{{itm.itemModel}}</div> </van-col> <van-col span="3">{{itm.fQty}}</van-col> <van-col span="5" class="blue-text">{{itm.sQty}}</van-col> </van-row> </van-tab> </van-tabs> <van-action-sheet v-model="show" :actions="actions" @select="onSelect" ></van-action-sheet> @@ -96,6 +123,6 @@ <%--<comback ></comback>--%> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <script src="Js/Strk.js?<%=17 %>"></script> <script src="Js/Strk.js?<%=1764 %>"></script> </asp:Content> H5/Sttl.aspx
@@ -68,7 +68,7 @@ </div> <van-tabs color="#000" title-active-color="#0283EF"> <van-tabs v-model="active" van-tabs color="#000" title-active-color="#0283EF"> <van-tab title="待扫物料" class="mySolid font"> <van-row> <van-col span="8" class="text-left padding-left">物料</van-col> @@ -117,7 +117,7 @@ <van-col span="3">需领数</van-col> <van-col span="5">已领数</van-col> </van-row> <van-row v-for="(itm,index) in ItemBlDetail" :key="index"> <van-row v-for="(itm,index) in ItemYsDetail" :key="index"> <van-col span="8" class="text-left padding-left"> <div class="blue-text">{{itm.itemNo}}</div> <div>{{itm.itemName}}</div> @@ -140,5 +140,5 @@ <%--<comback ></comback>--%> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <script src="Js/Sttl.js?<%=1294 %>"></script> <script src="Js/Sttl.js?<%=1307 %>"></script> </asp:Content>