| | |
| | | components: { RowSettings, Edit, BtnSettings }, |
| | | props: { |
| | | openPage: { type: String, }, |
| | | multiple: { type: Boolean, default: false }, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | this.getList() |
| | | }, |
| | | getTreeselect() { |
| | | axios.get(this.baseURL + '/Gy_Mould/TreeList', { |
| | | axios.get(this.$baseUrl + '/Gy_Mould/TreeList', { |
| | | params: { |
| | | "sWhere": this.sWhere, |
| | | "user": sessionStorage["HUserName"], |
| | |
| | | }, |
| | | //列表数据 |
| | | getList() { |
| | | this.clearData() |
| | | this.pageSize = 50 |
| | | this.tableShow = false |
| | | this.loading = true |
| | |
| | | } |
| | | this.sWhere += " and HUSEORGID = '" + this.queryParams.HUSEORGID + "'" |
| | | //生产资料列表 |
| | | axios.get(this.baseURL + '/Gy_Mould/page', { |
| | | axios.get(this.$baseUrl + '/Gy_Mould/page', { |
| | | params: { |
| | | "sWhere": this.sWhere, |
| | | "ModRightNameSelect": this.HModName, |
| | |
| | | }, |
| | | 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, |
| | |
| | | } |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | // this.rowForm = {} |
| | | handleSelectionChange(selection) { |
| | | if (this.openPage) { |
| | | //列表单选 |
| | | if (selection.length > 1) { |
| | | if (!this.multiple && selection.length > 1) { |
| | | const del_row = selection.shift() |
| | | this.$refs.tableData.toggleRowSelection(del_row, false) //设置这一行取消选中 |
| | | this.$refs.tableData.toggleRowSelection(del_row, false) |
| | | } |
| | | this.rowForm = {} |
| | | this.ids = selection.map(item => item.hmainid) |
| | | this.rowForm = selection[0] |
| | | if (this.multiple) { |
| | | this.ids = selection.map(item => item.hmainid) |
| | | this.rowForm = selection |
| | | } else { |
| | | this.ids = selection.map(item => item.hmainid) |
| | | this.rowForm = selection[0] |
| | | } |
| | | } else { |
| | | this.ids = selection.map(item => item.hmainid) |
| | | this.single = selection.length != 1 |
| | |
| | | //根据用户获取用户关联组织的过滤条件 |
| | | getOrgIDByUser() { |
| | | var res = ""; |
| | | axios.get(this.baseURL + '/Xt_User/getOrgIDListByUser', { |
| | | axios.get(this.$baseUrl + '/Xt_User/getOrgIDListByUser', { |
| | | params: { |
| | | HModName: this.HModName, |
| | | user: sessionStorage["HUserName"], |
| | |
| | | this.$modal.confirm('确认要删除吗,删除后不能恢复').then(() => { |
| | | var ModRightNameDelete = 'Gy_MouldFile_Delete' |
| | | if (!this.rowForm.审核人) { |
| | | axios.get(this.baseURL + "/Gy_Mould_Edit/Delete_Json", { |
| | | axios.get(this.$baseUrl + "/Gy_Mould_Edit/Delete_Json", { |
| | | params: { 'HItemID': this.rowForm.hmainid.toString(), "ModRightNameDelete": ModRightNameDelete, 'user': sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | |
| | | if (form.HBillStatus == 0 && num == 1) { |
| | | this.$modal.msgSuccess('单据已为未审核状态,无需反审核!'); |
| | | } else { |
| | | axios.get(this.baseURL + "/Gy_Mould/AuditProcessReportList", { |
| | | axios.get(this.$baseUrl + "/Gy_Mould/AuditProcessReportList", { |
| | | params: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let result = response.data |
| | |
| | | set_De_Stop(num, form) { |
| | | var InterID = form.hmainid || 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 |
| | | }, |
| | |
| | | this.uploadData = this.getPage(this.uploadPage, this.alluploadList) |
| | | }, 100) |
| | | }, |
| | | //清除选中数据的缓存 |
| | | clearData() { |
| | | this.ids = [] |
| | | this.multiple = true |
| | | this.single = true |
| | | this.OperationType = 0 |
| | | this.copyType = 0 |
| | | }, |
| | | |
| | | } |
| | | }; |
| | | </script> |