| | |
| | | <%@ Page Title="在库分料" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="BarCf.aspx.cs" Inherits="H5_Scll" %> |
| | | |
| | | <%@ Page Title="在库分料" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="BarCf.aspx.cs" Inherits="H5_Scll" %> |
| | | <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> |
| | | <style> |
| | | .bg-info { |
| | |
| | | v-focus.noKeyboard |
| | | @keyup.enter.native="getScan" |
| | | <%-- @change="getScan"--%> |
| | | ></van-field> |
| | | > |
| | | <template #button> |
| | | <van-button size="small" type="info" plain @click="BarRePrint" >条码重打</van-button> |
| | | </template> |
| | | </van-field> |
| | | <van-field |
| | | v-model="formData.itemNo" |
| | | label="物料编码" |
| | |
| | | <%--<comback ></comback>--%> |
| | | </asp:Content> |
| | | <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> |
| | | <script src="Js/BarCf.js?<%=1211111 %>"></script> |
| | | <script src="Js/BarCf.js?<%=1211113 %>"></script> |
| | | </asp:Content> |
| | |
| | | .replace(/^\./g, ''); |
| | | }, |
| | | |
| | | BarRePrint() { |
| | | if (this.isLoading) { |
| | | return; |
| | | } |
| | | |
| | | var that = this; |
| | | |
| | | if (that.formData.barcode.length * 1 <= 0) { |
| | | that.$toast.fail("物料条码不能为空!"); |
| | | return; |
| | | } |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'MesBarCF/BarRePrint', { |
| | | userName: that.userInfo.loginAccount, |
| | | barcode: that.formData.barcode |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | // that.modeInfo = json.data.tbBillList; |
| | | // 拆分全局调用方法 |
| | | that.sendPrintMessage(json.data.tbBillList); |
| | | that.$refs.barcode.focus(); |
| | | that.formData.barcode = null; |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.barcode.focus(); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | }); |
| | | }, |
| | | |
| | | |
| | | } |
| | | }) |
| | |
| | | ItemDetail: [], |
| | | splitNum: "", |
| | | zdy: "", |
| | | ItemTblDetail: [], |
| | | ItemBarKw: [], |
| | | currentIndex: -1, |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | handleRowClick(item, index) { |
| | | if (this.isLoading) { |
| | | return; |
| | | } |
| | | |
| | | // 重置所有行的选中状态 |
| | | this.currentIndex = -1; |
| | | |
| | | // 设置当前选中行 |
| | | this.currentIndex = index; |
| | | this.selItem = { |
| | | itemid: item.itemId, |
| | | index: index |
| | | }; |
| | | |
| | | console.log('当前选中项:', this.selItem); // 调试用 |
| | | |
| | | this.GetBarKwByItem(); |
| | | }, |
| | | GetBarKwByItem() { |
| | | |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'Womdaa/GetBarKwByItem', { |
| | | itemId: that.selItem.itemid, |
| | | userName: that.userInfo.loginAccount |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.ItemBarKw = json.data.tbBillList; |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.ItemBarKw = []; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | that.ItemBarKw = []; |
| | | }); |
| | | }, |
| | | getInfo() { |
| | | this.show = true; |
| | | |
| | |
| | | active: 0, |
| | | show: false, |
| | | actions: [], |
| | | ItemTblDetail: [], |
| | | ItemDetail: [], |
| | | ItemBarKw: [], |
| | | currentIndex: -1, |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | handleRowClick(item, index) { |
| | | if (this.isLoading) { |
| | | return; |
| | | } |
| | | |
| | | // 重置所有行的选中状态 |
| | | this.currentIndex = -1; |
| | | |
| | | // 设置当前选中行 |
| | | this.currentIndex = index; |
| | | this.selItem = { |
| | | itemid: item.itemId, |
| | | index: index |
| | | }; |
| | | |
| | | console.log('当前选中项:', this.selItem); // 调试用 |
| | | |
| | | this.GetBarKwByItem(); |
| | | }, |
| | | GetBarKwByItem() { |
| | | |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'Womdaa/GetBarKwByItem', { |
| | | itemId: that.selItem.itemid, |
| | | userName: that.userInfo.loginAccount |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.ItemBarKw = json.data.tbBillList; |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.ItemBarKw = []; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | that.ItemBarKw = []; |
| | | }); |
| | | }, |
| | | //获取发货通知单号 |
| | | getInfo() { |
| | | this.show = true; |
| | |
| | | <van-col span="3">待扫</van-col> |
| | | <van-col span="5">推荐库位</van-col> |
| | | </van-row> |
| | | <van-row v-for="(itm,index) in ItemDetail.items" :key="index"> |
| | | <van-row v-for="(itm,index) in ItemDetail.items" :key="index" |
| | | :style="{ background: currentIndex === index ? '#87CEEB' : '' }" |
| | | @click.native="handleRowClick(itm, 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="3" class="blue-text">{{itm.dsQty}}</van-col> |
| | | <van-col span="5">{{itm.recoKw}}</van-col> |
| | | </van-row> |
| | | </van-tab> |
| | | |
| | | <van-tab title="库位列表" class="mySolid font"> |
| | | <van-row> |
| | | <van-col span="10" class="text-left padding-left">条码编号</van-col> |
| | | <van-col span="5" class="text-left padding-left">库位</van-col> |
| | | <van-col span="4">数量</van-col> |
| | | <van-col span="5">仓库</van-col> |
| | | </van-row> |
| | | <van-row v-for="(itm,index) in ItemBarKw" :key="index"> |
| | | <van-col span="10" class="text-left padding-left"> |
| | | <div class="blue-text">{{itm.iteM_BARCODE}}</div> |
| | | </van-col> |
| | | <van-col span="5" class="text-left padding-left"> |
| | | <div>{{itm.depoT_SECTIONS_CODE}}</div> |
| | | </van-col> |
| | | <van-col span="4" class="blue-text">{{itm.quantity}}</van-col> |
| | | <van-col span="5" >{{itm.depot_name}}</van-col> |
| | | </van-row> |
| | | </van-tab> |
| | | |
| | |
| | | <%--<comback ></comback>--%> |
| | | </asp:Content> |
| | | <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> |
| | | <script src="Js/Qtck.js?<%=11306 %>"></script> |
| | | <script src="Js/Qtck.js?<%=111306 %>"></script> |
| | | </asp:Content> |
| | |
| | | <van-col span="3">待扫</van-col> |
| | | <van-col span="5">推荐库位</van-col> |
| | | </van-row> |
| | | <van-row v-for="(itm,index) in ItemBlDetail.items" :key="index"> |
| | | <van-row v-for="(itm,index) in ItemBlDetail.items" :key="index" |
| | | :style="{ background: currentIndex === index ? '#87CEEB' : '' }" |
| | | @click.native="handleRowClick(itm, 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="3" class="blue-text">{{itm.dsQty}}</van-col> |
| | | <van-col span="5">{{itm.recoKw}}</van-col> |
| | | </van-row> |
| | | </van-tab> |
| | | |
| | | <van-tab title="库位列表" class="mySolid font"> |
| | | <van-row> |
| | | <van-col span="10" class="text-left padding-left">条码编号</van-col> |
| | | <van-col span="5" class="text-left padding-left">库位</van-col> |
| | | <van-col span="4">数量</van-col> |
| | | <van-col span="5">仓库</van-col> |
| | | </van-row> |
| | | <van-row v-for="(itm,index) in ItemBarKw" :key="index"> |
| | | <van-col span="10" class="text-left padding-left"> |
| | | <div class="blue-text">{{itm.iteM_BARCODE}}</div> |
| | | </van-col> |
| | | <van-col span="5" class="text-left padding-left"> |
| | | <div>{{itm.depoT_SECTIONS_CODE}}</div> |
| | | </van-col> |
| | | <van-col span="4" class="blue-text">{{itm.quantity}}</van-col> |
| | | <van-col span="5" >{{itm.depot_name}}</van-col> |
| | | </van-row> |
| | | </van-tab> |
| | | |
| | |
| | | <%--<comback ></comback>--%> |
| | | </asp:Content> |
| | | <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> |
| | | <script src="Js/Xsck.js?<%=1271113 %>"></script> |
| | | <script src="Js/Xsck.js?<%=12711113 %>"></script> |
| | | </asp:Content> |