| | |
| | | </el-form-item> |
| | | <el-form-item label="组织"> |
| | | <el-select v-model="queryParams.HUSEORGID" placeholder="请选择"> |
| | | <el-option v-for="(item, index) in organizationList" :key="index" :label="item.Name" :value="item.ID"> |
| | | <el-option v-for="(item, index) in organizationList" :key="index" :label="item.Name" :value="item.Name"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | open: false, |
| | | // 查询参数 |
| | | queryParams: { |
| | | HUSEORGID: sessionStorage["OrganizationID"] - 0, |
| | | HUSEORGID: sessionStorage["Organization"], |
| | | HName: null, |
| | | HNumber: null, |
| | | HSupTypeID: null, |
| | |
| | | this.getList() |
| | | }, |
| | | getTreeselect() { |
| | | axios.get(this.baseURL + '/Gy_BadReason/Gy_SupTypeTreeListByLevel',).then(response => { |
| | | axios.get(this.$baseUrl + '/Gy_BadReason/Gy_SupTypeTreeListByLevel',).then(response => { |
| | | let data1 = response.data |
| | | if (data1.count == 1) { |
| | | this.treeOptions = JSON.parse(data1.data); |
| | |
| | | } |
| | | // this.sWhere += " and HUSEORGID = '" + this.queryParams.HUSEORGID + "'" |
| | | //生产资料列表 |
| | | axios.get(this.baseURL + '/Gy_Supplier/page', { |
| | | axios.get(this.$baseUrl + '/Gy_Supplier/page', { |
| | | params: { |
| | | "sWhere": this.sWhere, |
| | | "user": sessionStorage["HUserName"], |
| | | "Organization": sessionStorage["Organization"], |
| | | "Organization": this.queryParams.HUSEORGID, |
| | | "page": this.page, |
| | | "size": this.pageSize |
| | | }, |
| | |
| | | }, |
| | | 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, |
| | |
| | | }, |
| | | //点击行 |
| | | handleRowClick(row, column, event) { |
| | | if (this.checkIsIframe()) { |
| | | // 将当前选中的数据暴露到window中 |
| | | window.selectedRow = row; |
| | | } |
| | | this.lastSelectedRow = this.selectedRow; // 记录上一次选中的行 |
| | | this.selectedRow = row; // 记录当前选中的行 |
| | | this.lastSelectedRowIndex = this.tableData.indexOf(row); |
| | | this.$refs.tableData.toggleRowSelection(row); |
| | | if (this.openPage) { |
| | | if (this.openPage) { |
| | | this.$emit('deptEmit', row, 6) |
| | | } |
| | | }, |
| | |
| | | return { "background": "#ecf5ff" } |
| | | } |
| | | }, |
| | | checkIsIframe() { |
| | | if (window.self == window.top) { |
| | | return false; |
| | | } |
| | | return true; |
| | | }, |
| | | //双击行 |
| | | handleDblclick(row, column, cell, event) { |
| | | if (this.checkIsIframe()) { |
| | | window.parent.iframeSupplierCallBack(row); |
| | | return; |
| | | } |
| | | this.OperationType = 3 |
| | | if (this.openPage) { |
| | | this.$emit('deptEmitDb', row, 6) |
| | |
| | | if (this.queryParams.HName) { |
| | | this.sWhere += " and 供应商名称 like '%" + this.queryParams.HName + "%'"; |
| | | } |
| | | if (this.queryParams.HUSEORGID) { |
| | | this.sWhere += " and HUSEORGID = '" + this.queryParams.HUSEORGID + "'" |
| | | } |
| | | // if (this.queryParams.HUSEORGID) { |
| | | // this.sWhere += " and HUSEORGID = '" + this.queryParams.HUSEORGID + "'" |
| | | // } |
| | | // this.sWhere += this.addSWhereByOpenType() |
| | | // this.sWhere += this.getOrgIDByUser() |
| | | this.clearData() |
| | | this.getList() |
| | | |
| | | }, |
| | |
| | | //根据用户获取用户关联组织的过滤条件 |
| | | getOrgIDByUser() { |
| | | var res = ""; |
| | | axios.get(this.baseURL + '/Xt_User/getOrgIDListByUser', { |
| | | axios.get(this.$baseUrl + '/Xt_User/getOrgIDListByUser', { |
| | | params: { |
| | | HModName: this.HModName, |
| | | user: sessionStorage["HUserName"], |
| | |
| | | resetQuery() { |
| | | this.sWhere = '' |
| | | this.queryParams = { |
| | | HUSEORGID: null, |
| | | HUSEORGID:sessionStorage["Organization"], |
| | | HName: null, |
| | | HNumber: null, |
| | | Comparator1: '', |
| | |
| | | ColContent: '', |
| | | } |
| | | this.resetForm("queryForm") |
| | | this.clearData() |
| | | this.getList() |
| | | }, |
| | | |
| | | clearData() { |
| | | this.single = true |
| | | this.multiple = true |
| | | this.OperationType = 0 |
| | | this.copyType = 0 |
| | | this.ids = [] |
| | | }, |
| | | //退出 |
| | | close() { |
| | | this.tableShow = true |
| | | this.openEdit = false |
| | | this.editShow = false |
| | | this.clearData() |
| | | this.getList() |
| | | }, |
| | | //打开新增组件弹窗 |
| | |
| | | editGyClose(val) { |
| | | this.editShow = false |
| | | this.openEdit = false |
| | | this.multiple = true, |
| | | this.getList() |
| | | this.clearData() |
| | | 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_Supplier/AuditGy_Supplier", { |
| | | params: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let result = response.data |
| | |
| | | else { |
| | | this.$modal.msgError("错误:" + result.code + result.Message,); |
| | | } |
| | | this.clearData() |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | |
| | | set_De_Stop(num, form) { |
| | | var InterID = form.HItemID || form.HInterID |
| | | //逻辑审核方法 |
| | | axios.get(this.baseURL + "/Gy_Source/StopGy_Source", { |
| | | axios.get(this.$baseUrl + "/Gy_Supplier/StopGy_Supplier", { |
| | | params: { "HInterID": InterID, "IsStop": num, "CurUserName": sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let result = response.data |
| | |
| | | else { |
| | | this.$modal.msgError("错误:" + result.code + result.Message,); |
| | | } |
| | | this.clearData() |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | |
| | | 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 |
| | | }, |