| | |
| | | export default { |
| | | name: 'Kf_MoveStockRequestBillList', |
| | | components: { RowSettings, Edit, PrintList }, |
| | | props: { |
| | | openPage: { type: String }, |
| | | }, |
| | | data() { |
| | | return { |
| | | HModName: "Kf_MoveStockRequestBillList", |
| | |
| | | lastSelectedRow: null, // 上一次选中的行 |
| | | selectedRow: null, // 当前选中的行 |
| | | rowForm: {}, |
| | | dialogTypeNum: null, |
| | | deptform: {}, //弹窗选中数据 |
| | | openData: false, //数据弹窗 |
| | | dialogTitle: "", |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | |
| | | 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 }) { |
| | |
| | | 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) { |