| | |
| | | <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', { |
| | | axios.get(this.$baseUrl + '/Gy_Source/list_byPage', { |
| | | params: { |
| | | "sWhere": this.sWhere, |
| | | "user": sessionStorage["HUserName"], |
| | |
| | | }, |
| | | DisPlay_HideColumn(HModName, user, option, dataOption) { |
| | | this.totalNameList = [] |
| | | axios.get(this.baseURL + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', { |
| | | axios.get(this.$baseUrl + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', { |
| | | params: { |
| | | "HModName": HModName, |
| | | "user": user, |
| | |
| | | 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] |
| | | } |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | |
| | | //根据用户获取用户关联组织的过滤条件 |
| | | getOrgIDByUser() { |
| | | var res = ""; |
| | | axios.get(this.baseURL + '/Xt_User/getOrgIDListByUser', { |
| | | axios.get(this.$baseUrl + '/Xt_User/getOrgIDListByUser', { |
| | | params: { |
| | | HModName: this.HModName, |
| | | user: sessionStorage["HUserName"], |
| | |
| | | close() { |
| | | this.tableShow = true |
| | | this.openEdit = false |
| | | this.editShow= false |
| | | this.editShow = false |
| | | this.getList() |
| | | }, |
| | | //打开新增组件弹窗 |
| | |
| | | handleDelete() { |
| | | this.$modal.confirm('确认要删除吗,删除后不能恢复').then(() => { |
| | | if (!this.rowForm.审核人) { |
| | | axios.get(this.baseURL + "DeltetGy_Source", { |
| | | axios.get(this.$baseUrl + "DeltetGy_Source", { |
| | | params: { 'HItemID': this.rowForm.HItemID.toString(), 'user': sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | |
| | | set_CheckBill(num, form) { |
| | | var InterID = form.HItemID || form.HInterID |
| | | //逻辑审核方法 |
| | | axios.get(this.baseURL + "/Gy_Source/AuditGy_Source", { |
| | | axios.get(this.$baseUrl + "/Gy_Source/AuditGy_Source", { |
| | | params: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let result = response.data |
| | |
| | | set_De_Stop(num, form) { |
| | | var InterID = form.HItemID || form.HInterID |
| | | //逻辑审核方法 |
| | | axios.get(this.baseURL + "/Gy_Source/StopGy_Source", { |
| | | axios.get(this.$baseUrl + "/Gy_Source/StopGy_Source", { |
| | | params: { "HInterID": InterID, "IsStop": num, "CurUserName": sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let result = response.data |
| | |
| | | var sMainSub = sSubStr + '&和' + sessionStorage["HUserName"]; |
| | | axios({ |
| | | method: 'post', |
| | | url: this.baseURL + "/Gy_Source/Gy_Source_btnSave", |
| | | url: this.$baseUrl + "/Gy_Source/Gy_Source_btnSave", |
| | | data: { |
| | | 'sMainSub': sMainSub |
| | | }, |