陈婷婷
3 天以前 8d0dec5466aef7a6a90a717d0de1d9c7875371e8
src/views/warehouse/transfer/Kf_MoveStockRequestBillList.vue
@@ -227,6 +227,9 @@
export default {
  name: 'Kf_MoveStockRequestBillList',
  components: { RowSettings, Edit, PrintList },
  props: {
    openPage: { type: String },
  },
  data() {
    return {
      HModName: "Kf_MoveStockRequestBillList",
@@ -279,6 +282,10 @@
      lastSelectedRow: null, // 上一次选中的行
      selectedRow: null, // 当前选中的行
      rowForm: {},
      dialogTypeNum: null,
      deptform: {}, //弹窗选中数据
      openData: false, //数据弹窗
      dialogTitle: "",
      // 弹出层标题
      title: "",
      // 是否显示弹出层
@@ -606,6 +613,9 @@
      this.selectedRow = row; // 记录当前选中的行
      this.lastSelectedRowIndex = this.tableData.indexOf(row);
      this.$refs.tableData.toggleRowSelection(row);
      if (this.openPage) {
        this.$emit("deptEmit", row, 11);
      }
    },
    //选中行高亮样式
    rowStyle({ row, rowIndex }) {
@@ -613,10 +623,33 @@
        return { "background": "#ecf5ff" }
      }
    },
    dbEmitData(deptRow, num) {
      // num=1部门 num=2出库仓库
      if (num == 11){
        this.editData[this.zbIndex].HSourceBillNo = deptRow.单据号
        this.editData[this.zbIndex].HSourceBillType = deptRow.HBillSubType
        this.editData[this.zbIndex].HSourceInterID = deptRow.hmainid
        this.editData[this.zbIndex].HSourceEntryID = deptRow.hsubid
        this.gyCustomerShow = false
        this.openData = false
    }
  },
    emitData(deptRow, num) {
      this.dialogTypeNum = num;
      this.deptform = deptRow;
    },
    deptClickSub() {
      this.dbEmitData(this.deptform, this.dialogTypeNum)
      this.deptform = {}
    },
    //双击行
    handleDblclick(row, column, cell, event) {
      this.OperationType = 3
      this.handleEdit()
      if (this.openPage) {
        this.$emit("deptEmitDb", row, 11);
      } else {
        this.handleEdit(row);
      }
    },
    // 多选框选中数据
    handleSelectionChange(selection) {