| | |
| | | <template> |
| | | <div style="padding: 10px;"> |
| | | <div style="padding: 10px; position: relative;"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="98px" class="searchBox"> |
| | | <el-row> |
| | | <el-form-item label="生产资源代码" prop="HNumber" style="margin-left: 100px;"> |
| | |
| | | <RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="rowSetClose" v-if="rowHideShow" /> |
| | | </el-dialog> |
| | | <!-- 编辑 --> |
| | | <el-dialog title="编辑生产资料" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" |
| | | @close="close"> |
| | | <el-dialog title="编辑生产资料" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close"> |
| | | <edit :OperationType=OperationType :linterid=this.rowForm.HItemID :HSouceBillType=this.rowForm.HSourceBillType |
| | | :copyType="copyType" @editCloseGy="editGyClose" v-if="editShow" /> |
| | | </el-dialog> |
| | |
| | | open: false, |
| | | // 查询参数 |
| | | queryParams: { |
| | | HOrgID: null, |
| | | HOrgID: sessionStorage["OrganizationID"] - 0, |
| | | HName: null, |
| | | HNumber: null, |
| | | Comparator1: '', |
| | |
| | | if (this.pageSize == 0) { |
| | | this.pageSize = 50 |
| | | } |
| | | this.queryParams.HOrgID = sessionStorage["OrganizationID"]-0 |
| | | this.sWhere += " and HUSEORGID = '" + this.queryParams.HOrgID + "'" |
| | | //生产资料列表 |
| | | axios.get(this.baseURL + '/Gy_Source/list_byPage', { |
| | |
| | | this.selectedRow = row; // 记录当前选中的行 |
| | | this.lastSelectedRowIndex = this.tableData.indexOf(row); |
| | | this.$refs.tableData.toggleRowSelection(row); |
| | | if (this.openPage) { |
| | | this.$emit('deptEmit', row, 5) |
| | | } |
| | | }, |
| | | //选中行高亮样式 |
| | | rowStyle({ row, rowIndex }) { |
| | |
| | | //双击行 |
| | | handleDblclick(row, column, cell, event) { |
| | | this.OperationType = 3 |
| | | this.handleEdit() |
| | | if (this.openPage) { |
| | | this.$emit('deptEmitDb', row, 5) |
| | | } else { |
| | | this.handleEdit(); |
| | | } |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | // this.rowForm = {} |
| | | this.ids = selection.map(item => item.HItemID) |
| | | this.single = selection.length != 1 |
| | | this.multiple = !selection.length |
| | | if (!this.single) { |
| | | if (this.openPage) { |
| | | //列表单选 |
| | | if (selection.length > 1) { |
| | | const del_row = selection.shift() |
| | | this.$refs.tableData.toggleRowSelection(del_row, false) //设置这一行取消选中 |
| | | } |
| | | this.rowForm = {} |
| | | this.ids = selection.map(item => item.HItemID) |
| | | this.rowForm = selection[0] |
| | | } else { |
| | | this.ids = selection.map(item => item.HItemID) |
| | | this.single = selection.length != 1 |
| | | this.multiple = !selection.length |
| | | if (!this.single) { |
| | | this.rowForm = selection[0] |
| | | } |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | |
| | | close() { |
| | | this.tableShow = true |
| | | this.openEdit = false |
| | | this.editShow= false |
| | | this.editShow = false |
| | | this.getList() |
| | | }, |
| | | //打开新增组件弹窗 |