| | |
| | | <div style="margin: 10px;"> |
| | | <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_PrintReport">打印</el-button> |
| | | <!-- <el-button type="primary" @click="close">退 出</el-button> --> |
| | | </div> |
| | | <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">条码生成</div> |
| | | <el-form :model="initMainData" label-width="80px"> |
| | |
| | | </el-form> |
| | | |
| | | <!-- 打印弹窗 --> |
| | | <!-- <el-dialog title="打印模板选择" :visible.sync="openPrintList" width="800px" append-to-body> |
| | | <el-dialog title="打印模板选择" :visible.sync="openPrintList" width="800px" append-to-body> |
| | | <PrintList :linterid="rowSel.toString()" :MyMsg="rowSel.toString()" Type="HGy_BarCodeBill" |
| | | HModName="HGy_BarCodeBill" @rowEditClose="rowSetClose" v-if="printListShow" /> |
| | | </el-dialog> --> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | <script> |
| | |
| | | ], |
| | | tableData_BarCode:[], //条码列表table 数据 |
| | | RowIndex_BarCode:0, //条码列表table 行索引 |
| | | |
| | | openPrintList:true, //打印弹窗显示标记 |
| | | printListShow:false, //打印模板数据显示标记 |
| | | selectedData_BarCode:0, //条码列表table 选中数据集合 |
| | | }; |
| | | }, |
| | | async created() { |
| | |
| | | }, |
| | | //#endregion |
| | | |
| | | //#region 打印按钮点击事件 |
| | | get_PrintReport() { |
| | | if (this.selectedData_BarCode.length == 0) { |
| | | this.$modal.msgError("请选择数据"); |
| | | } else { |
| | | this.rowSel = []; |
| | | for (var i = 0; i < this.selectedData_BarCode.length; i++) { |
| | | this.rowSel.push(this.selectedData_BarCode[i].HItemID.toString()); |
| | | } |
| | | this.printListShow = true; |
| | | this.openPrintList = true; |
| | | } |
| | | }, |
| | | //#endregion |
| | | |
| | | //#region 条码列表复选框选择状态变更监听事件 |
| | | onSelectionChange_BarCode(selection){ |
| | | |
| | | this.selectedData_BarCode = selection; |
| | | }, |
| | | //#endregion |
| | | |
| | |
| | | this.initMainData.HSupNumber = dataArray[0].供应商代码==null?"":dataArray[0].供应商代码; |
| | | this.initMainData.HSupName = dataArray[0].供应商==null?"":dataArray[0].供应商; |
| | | this.initMainData.HBatchNo = dataArray[0].批号==null?"":dataArray[0].批号; |
| | | this.initMainData.HQty_SourceBill = (dataArray[0].数量 * 1) - (dataArray[0].已生成条码数量 * 1); |
| | | this.initMainData.HQty_SourceBill = ((dataArray[0].数量 * 1) - (dataArray[0].已生成条码数量 * 1))<0?0:((dataArray[0].数量 * 1) - (dataArray[0].已生成条码数量 * 1)); |
| | | this.initMainData.HReInspectionFlag = dataArray[0].复检标记==1?true:false; |
| | | this.initMainData.HInspectionCycle = dataArray[0].复检标记==1?dataArray[0].复检周期:0; |
| | | this.initMainData.HInspectionDate = dataArray[0].复检标记==1?moment(dataArray[0].检验日期).format('YYYY-MM-DD'):null; |