南骏 池
2025-09-05 7ae27d18e908f643d873b5312bf88df5cfdb7503
1.其他出库拆分+制单人
2.生产领料加开工时间
已修改4个文件
155 ■■■■ 文件已修改
H5/Js/Qtck.js 104 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/Scll.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Qtck.aspx 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Scll.aspx 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/Qtck.js
@@ -18,6 +18,8 @@
            show: false,
            actions: [],
            ItemDetail: [],
            splitNum: "",
            zdy: "",
        }
    },
    mounted() {
@@ -87,7 +89,10 @@
                    var json = res;
                    if (json.status == 0) {
                        that.ItemDetail = json.data.tbBillList;
                        that.zdy = json.data.tbBillList.allList[0].createNmae;
                        //that.ItemBlDetail = json.data.tbBillList;
                        that.$refs.barcode.focus();
                        that.barcode = "";
                    }
                    else {
                        that.$toast.fail(json.message);
@@ -140,18 +145,23 @@
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        that.itemNo = json.data.form.itemNo;
                        that.num = json.data.form.num;
                        that.fnm = json.data.form.fum;
                        that.barcode = json.data.form.barcode;
                        that.ItemBlDetail = json.data.item
                        that.$notify({ type: 'success', message: json.data.message });
                        that.num = json.data.tbBillList.barcodeNum;
                        that.GetMesItemBlDetailByBillNo();
                        that.$refs.barcode.focus();
                        that.barcode = null;
                        that.$playSound('success');
                        that.$notify({ type: 'success', message: json.message });
                    }
                    else if (json.status == 2) {
                        that.$refs.splitNum.focus();
                        that.splitNum = json.data.tbBillList.splitNum;
                        that.num = json.data.tbBillList.barcodeNum;
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$playSound('error');
                        that.$toast.fail(json.message);
                        that.$refs.barcode.focus();
                        that.barcode = null;
                    }
                    that.isLoading = false;
                })
@@ -234,6 +244,82 @@
                    that.$playSound('error');
                    console.log(error);
                });
        }
        },
        getChaiFen() {
            //this.isPrinterPopupVisible = true; // 显示弹窗
            if (this.isLoading) {
                return;
            }
            var that = this;
            if (!that.userInfo.loginAccount) {
                this.$toast.fail("请重新检查登录状态");
                that.$playSound('error');
                that.isLoading = false;
                return;
            }
            if (!that.barcode) {
                this.$toast.fail("条码不能为空");
                that.$playSound('error');
                that.isLoading = false;
                return;
            }
            if (!that.billNo) {
                this.$toast.fail("申请单号不能为空");
                that.$playSound('error');
                that.isLoading = false;
                return;
            }
            //that.ip = "";
            //that.prot = "";
            //that.getPrintInfo();
            //if (that.ip.length <= 0 || that.prot.length <= 0) {
            //    alert(that.ip);
            //    alert(that.prot);
            //    return;
            //}
            that.isLoading = true;
            that.AxiosHttp("post", 'MesItemQt/ScanCodeCF', {
                userName: that.userInfo.loginAccount,
                barcode: that.barcode,
                billNo: that.billNo,
                Num: that.splitNum,
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        //  that.modeInfo = json.data.tbBillList;
                        that.splitNum = null;
                        that.num = null;
                        that.barcode = null;
                        that.$notify({ type: 'success', message: json.message });
                        that.$playSound('success');
                        that.GetMesItemBlDetailByBillNo();
                        //that.sendMessage(json.data.tbBillList);
                        that.sendPrintMessage(json.data.tbBillList);
                        that.$refs.barcode.focus();
                    }
                    else {
                        that.$playSound('error');
                        that.$toast.fail(json.message);
                    }
                    that.isLoading = false;
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                });
        },
    }
})
H5/Js/Scll.js
@@ -107,6 +107,7 @@
                    if (json.status == 0) {
                        that.ItemDetail = json.data.tbBillList;
                        that.modeInfo.planNo = json.data.tbBillList.planNo;
                        that.modeInfo.startTime = json.data.tbBillList.startTime;
                        that.$refs.barcode.focus();
                        // 重置所有行的选中状态
                        that.currentIndex = -1; 
@@ -118,6 +119,7 @@
                        that.$refs.daa001.focus();
                        that.modeInfo.daa001 = "";
                        that.modeInfo.planNo = "";
                        that.modeInfo.startTime = "";
                        that.ItemDetail = [];
                    }
                    that.isLoading = false;
@@ -378,8 +380,8 @@
                            that.itemInfo = json.data.tbBillList;
                            that.actions = json.data.tbBillList.map(item => {
                                return {
                                    name: item.daaInfo  // 拼接字段
                                    name: item.daaInfo,  // 拼接字段
                                    subname: item.startTime
                                };
                            });
                        }
H5/Qtck.aspx
@@ -35,6 +35,7 @@
    <van-button size="small" type="info" plain @click="getInfo" >选择</van-button>
  </template></van-field>
 <van-field
     ref="barcode"
  value=""
  label="物料条码"
   clearable 
@@ -47,11 +48,11 @@
></van-field>
 <van-field
  value=""
  label="物料编码"
  label="制单人"
   clearable 
 placeholder="物料编码"
 placeholder="制单人"
  :right-icon-size="19"
     v-model="itemNo"
     v-model="zdy"
  v-focus.noKeyboard
     disabled
></van-field>
@@ -62,15 +63,22 @@
  placeholder="条码数量"
  disabled
></van-field>
<van-field
  value=""
       v-model="fnm"
  label="发料数量"
  placeholder="发料数量"
  disabled
><template #button>
    <van-button size="small" type="info" plain @click="tmcf" >条码拆分</van-button>
  </template></van-field>
            <van-field
    ref="splitNum"
    v-model="splitNum"
    center
    clearable
    label="发料数量"
    placeholder="发料数量">
    <van-button
        slot="button"
        type="info"
        size="small"
        plain
        @click="getChaiFen">
        条码拆分
    </van-button>
</van-field>
</van-cell-group>
    </div>
@@ -136,5 +144,5 @@
  <%--<comback ></comback>--%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
 <script src="Js/Qtck.js?<%=11303 %>"></script>
 <script src="Js/Qtck.js?<%=11306 %>"></script>
</asp:Content>
H5/Scll.aspx
@@ -60,6 +60,15 @@
                    placeholder="任务单号"
                    disabled>
                </van-field>
                <van-field
                    v-model="modeInfo.startTime"
                    label="开工时间"
                    clearable
                    :right-icon-size="19"
                    placeholder="开工时间"
                    disabled>
                </van-field>
                
                <van-field
                    ref="barcode"
@@ -173,5 +182,5 @@
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
    <script src="Js/Scll.js?<%=123336158 %>"></script>
    <script src="Js/Scll.js?<%=1233361591 %>"></script>
</asp:Content>