| | |
| | | <div style=" margin-bottom: 10px; border-bottom: 1px solid #f6f6f6;"> |
| | | <el-button type="primary" @click="onClickMethod_BarCodeProduce" :disabled="disabledFlag_BarCodeProduce">生成</el-button> |
| | | <el-button type="primary" @click="get_PrintReport">打印</el-button> |
| | | <!-- <el-button type="primary" @click="close">退 出</el-button> --> |
| | | <el-button type="primary" @click="get_BarCodeBillList">条码档案</el-button> |
| | | </div> |
| | | <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">条码生成</div> |
| | | <el-form :model="initMainData" label-width="80px"> |
| | |
| | | ,HReInspectionDate:null //复检日期 |
| | | ,HPOOrderBillMTO:"" //采购跟踪号 |
| | | ,HSeOrderBillNo:"" //客户订单号 |
| | | ,HCusModel:"" //产品型号 |
| | | ,HCusModel:"" //产品型号 |
| | | ,HMTONo:null //计划跟踪号 |
| | | |
| | | ,HOrganizationID:0 //组织ID |
| | | ,HOrganization:"" //组织名称 |
| | |
| | | return Result = false; |
| | | } |
| | | |
| | | var regex = /^\d{4}-\d{2}-\d{2}$/; //正则表达式:校验 yyyy-MM-dd |
| | | temp = this.initMainData.HInspectionDate; |
| | | if(!regex.test(temp)){ |
| | | this.$modal.msgError("请设置生产日期!!!"); |
| | | return Result = false; |
| | | } |
| | | |
| | | // var HEndQty = this.initMainData.HEndQty; |
| | | // if (HEndQty == "") { |
| | | // this.$modal.msgError("尾包数量不能为空!!"); |
| | |
| | | , "HReInspectionDate": this.initMainData.HReInspectionDate |
| | | , "HPOOrderBillMTO": this.initMainData.HPOOrderBillMTO |
| | | , "HSeOrderBillNo": this.initMainData.HSeOrderBillNo |
| | | , "HMTONo": this.initMainData.HMTONo |
| | | } |
| | | ] |
| | | |
| | |
| | | this.printListShow = true; |
| | | this.openPrintList = true; |
| | | } |
| | | }, |
| | | //#endregion |
| | | |
| | | //#region 条码档案按钮点击事件 |
| | | get_BarCodeBillList(){ |
| | | this.$router.push({ path: "/warehouse/barcodeMaster/Gy_BarCodeBillList_JinLong_AutoLogin" }).catch(() => { }); |
| | | }, |
| | | //#endregion |
| | | |
| | |
| | | this.initMainData.HPOOrderBillMTO = dataArray[0].采购跟踪号; |
| | | this.initMainData.HSeOrderBillNo = dataArray[0].客户订单号; |
| | | this.initMainData.HCusModel = dataArray[0].产品型号; |
| | | this.initMainData.HMTONo = dataArray[0].计划跟踪号; |
| | | this.initMainData.HMinQty = 0; |
| | | if(this.initMainData.HMinQty>0){ |
| | | this.initMainData.HBQty = (this.initMainData.HQty_SourceBill / this.initMainData.HMinQty) + (this.initMainData.HQty_SourceBill%this.initMainData.HMinQty == 0?0:1); |