duhe
6 天以前 168463c3e779479fdc957090573ce8c1b3572c25
锦隆条码生成:增加打印功能
2个文件已修改
38 ■■■■ 已修改文件
src/views/purchase/cgPoInStockBill/cgPoInStockBill.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong.vue 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/purchase/cgPoInStockBill/cgPoInStockBill.vue
@@ -257,7 +257,7 @@
        >
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-plus" size="mini" @click="onClickMethod_pushBarCodeProduce(row = rowForm, OperationType = 4)" >下推条码</el-button>
        <el-button type="primary" icon="el-icon-plus" size="mini" @click="onClickMethod_pushBarCodeProduce(row = rowForm, OperationType = 4)" :disabled="disabledFlag_pushBarCode">下推条码</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
@@ -695,6 +695,7 @@
      lastSelectedRowIndex: null, // 用于记录上次点击的行索引
      lastSelectedRow: null, // 上一次选中的行
      selectedRow: null, // 当前选中的行
      disabledFlag_pushBarCode:true,        //下推条码 按钮禁用标记
      rowForm: {},
      checkedSysZb: [],
      editData: [], //生产资料子表
@@ -1211,6 +1212,9 @@
      this.multiple = !selection.length;
      if (!this.single) {
        this.rowForm = selection[0];
        this.disabledFlag_pushBarCode = false;
      }else{
        this.disabledFlag_pushBarCode = true;
      }
    },
    //打开侧边搜索弹窗
@@ -1372,6 +1376,7 @@
      this.tableShow = true;
      this.openEdit = false;
      this.openFlag_pushBarCode = false;
      this.disabledFlag_pushBarCode = true;
      this.getList();
    },
    //打开新增组件弹窗
src/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong.vue
@@ -2,8 +2,8 @@
    <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">
@@ -155,10 +155,10 @@
        </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>
@@ -270,6 +270,10 @@
            ],
            tableData_BarCode:[],                                       //条码列表table 数据
            RowIndex_BarCode:0,                                         //条码列表table 行索引
            openPrintList:true,                                         //打印弹窗显示标记
            printListShow:false,                                        //打印模板数据显示标记
            selectedData_BarCode:0,                                     //条码列表table 选中数据集合
        };
    },
    async created() {
@@ -520,9 +524,24 @@
        },
        //#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
    
@@ -614,7 +633,7 @@
            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;