b48cbaed482a5e530052a9e31fa0d2e8fd06cec4..3709a0fc4ab3848a12f15128bdb9ba4ba27a6fab
2 天以前 南骏 池
1.销售出库bug优化
3709a0 对比 | 目录
2 天以前 cdk
其他出库销售出库增加库位查询
cd757b 对比 | 目录
2 天以前 南骏 池
1.PDA条码重打
78061b 对比 | 目录
已修改6个文件
201 ■■■■■ 文件已修改
H5/BarCf.aspx 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/BarCf.js 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/Qtck.js 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/Xsck.js 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Qtck.aspx 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Xsck.aspx 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/BarCf.aspx
@@ -1,4 +1,5 @@
<%@ 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 {
@@ -31,7 +32,11 @@
  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="物料编码"
@@ -78,5 +83,5 @@
    <%--<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>
H5/Js/BarCf.js
@@ -167,6 +167,45 @@
                .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);
                });
        },
    }
})
H5/Js/Qtck.js
@@ -20,6 +20,9 @@
            ItemDetail: [],
            splitNum: "",
            zdy: "",
            ItemTblDetail: [],
            ItemBarKw: [],
            currentIndex: -1,
        }
    },
    mounted() {
@@ -30,6 +33,53 @@
        };
    },
    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;
H5/Js/Xsck.js
@@ -19,6 +19,10 @@
            active: 0,
            show: false,
            actions: [],
            ItemTblDetail: [],
            ItemDetail: [],
            ItemBarKw: [],
            currentIndex: -1,
        }
    },
    mounted() {
@@ -29,6 +33,53 @@
        };
    },
    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;
H5/Qtck.aspx
@@ -101,7 +101,9 @@
            <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>
@@ -111,6 +113,25 @@
            </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>
@@ -144,5 +165,5 @@
  <%--<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>
H5/Xsck.aspx
@@ -77,7 +77,9 @@
            <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>
@@ -87,6 +89,25 @@
            </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>
@@ -120,5 +141,5 @@
  <%--<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>