南骏 池
2025-02-13 409c7f4171e4c5689eda68bb1e52ae7ae2905c8d
1.成品入库初步
2.其他入库优化
已修改4个文件
129 ■■■■ 文件已修改
H5/Js/Qtrk.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/cprk.js 86 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Qtrk.aspx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/cprk.aspx 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/Qtrk.js
@@ -172,11 +172,12 @@
                    var json = res;
                    if (json.status == 0) {
                        that.itemNo = json.data.tbBillList.form.itemNo;
                        that.num = json.data.tbBillList.form.num;
                        that.itemNo = json.data.form.itemNo;
                        that.num = json.data.form.num;
                        that.barcode = null;
                        that.ItemBlDetail = json.data.tbBillList.item
                        that.ItemBlDetail = json.data.items;
                        that.$notify({ type: 'success', message: '扫描成功' });
                        //that.GetMesItemBlDetailByBillNo()
                    }
                    else {
                        that.$toast.fail(json.message);
H5/Js/cprk.js
@@ -69,11 +69,11 @@
                    that.$refs.sectionCode.focus();
                });
        },
        getScan() {
        getBarInfo() {
            var that = this;
             
            that.isLoading = true;
            that.AxiosHttp("post", 'MesInvItemInCDetails/SaveBarCodes', {
            that.AxiosHttp("post", 'MesCprk/GetBarInfo', {
                sectionCode: that.formData.sectionCode,
                userName: that.userInfo.loginAccount,
                barcode: that.formData.barcode,
@@ -81,15 +81,17 @@
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        that.formData.itemNo = json.data.tbBillList.itemNo;
                        that.formData.sumQuantity = json.data.tbBillList.sumQuantity;
                        that.itemInsFormData = json.data.tbBillList.itemIns;
                        that.itemTableData = json.data.tbBillList.itemInDetails;
                        that.tableData = json.data.tbBillList.invItemInCDetails;
                        that.barMessage = json.data.tbBillList.message;
                        that.$refs.barcode.focus();
                        that.formData.barcode = null;
                        that.formData.itemNo = json.data.tbMesItems.itemNo;
                        that.formData.itemName = json.data.tbMesItems.itemName;
                        that.formData.itemModel = json.data.tbMesItems.itemModel;
                        that.formData.barQuantity = json.data.tbBillList.quantity;
                        that.formData.DAA001 = json.data.tbBillList.billNo;
                        //that.formData.sumQuantity = json.data.tbMesItems.quantity;
                        if (that.formData.sectionCode == "" || that.formData.sectionCode == null) {
                            that.$refs.sectionCode.focus();
                        } else {
                            that.getScan();
                        }
                    }
                    else {
                        that.$toast.fail(json.message);
@@ -106,33 +108,35 @@
                    that.$refs.barcode.focus();
                });
        },
        getChaiFen() {
        getScan() {
            var that = this;
            if (that.modeInfo.daa001.length <= 0) {
                that.$toast.fail("领料单号不能为空!");
            if (that.formData.sectionCode.length * 1 <= 0) {
                that.$toast.fail("库位编码不能为空!");
                return;
            }
            if (that.scanInfo.splitNum * 1 <= 0) {
                that.$toast.fail("拆分数量不能为空!");
                return;
            }
            if (that.scanInfo.barcode.length * 1 <= 0) {
            if (that.formData.barcode.length * 1 <= 0) {
                that.$toast.fail("物料条码不能为空!");
                return;
            }
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/ScanCode', {
                daa001: that.modeInfo.daa001,
            that.AxiosHttp("post", 'MesBarCF/CPRK', {
                userName: that.userInfo.loginAccount,
                barcode: that.modeInfo.barcode,
                sectionCode: that.formData.sectionCode,
                barcode: that.formData.barcode,
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                      //  that.modeInfo = json.data.tbBillList;
                        //  that.modeInfo = json.data.tbBillList;
                        that.$refs.barcode.focus();
                        that.formData.barcode = null;
                        that.formData.cfNum = null;
                        that.$notify({ type: 'success', message: json.message });
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$refs.cfNum.focus();
                    }
                    that.isLoading = false;
                })
@@ -142,6 +146,42 @@
                    console.log(error);
                });
        },
        //getChaiFen() {
        //    var that = this;
        //    if (that.modeInfo.daa001.length <= 0) {
        //        that.$toast.fail("领料单号不能为空!");
        //        return;
        //    }
        //    if (that.scanInfo.splitNum * 1 <= 0) {
        //        that.$toast.fail("拆分数量不能为空!");
        //        return;
        //    }
        //    if (that.scanInfo.barcode.length * 1 <= 0) {
        //        that.$toast.fail("物料条码不能为空!");
        //        return;
        //    }
        //    that.isLoading = true;
        //    that.AxiosHttp("post", 'Womdaa/ScanCode', {
        //        daa001: that.modeInfo.daa001,
        //        userName: that.userInfo.loginAccount,
        //        barcode: that.modeInfo.barcode,
        //    }, false)
        //        .then(function (res) {
        //            var json = res;
        //            if (json.status == 0) {
        //              //  that.modeInfo = json.data.tbBillList;
        //            }
        //            else {
        //                that.$toast.fail(json.message);
        //            }
        //            that.isLoading = false;
        //        })
        //        .catch(function (error) {
        //            that.isLoading = false;
        //            that.$toast.fail("网络错误,请重试!");
        //            console.log(error);
        //        });
        //},
        cleraCode() {
            this.formData.sectionCode = null;
        },
H5/Qtrk.aspx
@@ -86,5 +86,5 @@
  <comback ></comback>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
 <script src="Js/Qtrk.js?<%=1234 %>"></script>
 <script src="Js/Qtrk.js?<%=1235 %>"></script>
</asp:Content>
H5/cprk.aspx
@@ -34,18 +34,42 @@
 placeholder="请扫码"
  :right-icon-size="19"
  v-focus.noKeyboard
  @change="getScan"
  @change="getBarInfo"
></van-field>
   <van-field
  v-model="formData.itemNo"
  label="物料编码"
  placeholder="物料编码"
  placeholder=""
  disabled
></van-field>
   <van-field
  v-model="formData.itemName"
  label="物料名称"
  placeholder=""
  disabled
></van-field>
   <van-field
  v-model="formData.itemModel"
  label="物料规格"
  placeholder=""
  disabled
></van-field>
   <van-field
  v-model="formData.barQuantity"
  label="条码数量"
  placeholder=""
  disabled
></van-field>
   <van-field
  v-model="formData.DAA001"
  label="工单单号"
  placeholder=""
  disabled
></van-field>
   <van-field
  v-model="formData.sumQuantity"
  label="当前条码入库数量"
  placeholder="当前条码入库数量"
  label="当前工单入库数量"
  placeholder=""
  disabled
></van-field>
</van-cell-group>
@@ -61,5 +85,5 @@
    <comback ></comback>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
    <script src="Js/cprk.js?<%=1211 %>"></script>
    <script src="Js/cprk.js?<%=1212 %>"></script>
</asp:Content>