cdk
2025-09-09 cd757b79217ba11868a4e771298194a362621afe
其他出库销售出库增加库位查询
已修改4个文件
151 ■■■■■ 文件已修改
H5/Js/Qtck.js 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/Xsck.js 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Qtck.aspx 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Xsck.aspx 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 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>
@@ -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>