diff --git a/build/check-versions.js b/build/check-versions.js index c5c29e90..e697bfd5 100644 --- a/build/check-versions.js +++ b/build/check-versions.js @@ -19,13 +19,13 @@ const versionRequirements = [ } ] -if (shell.which('npm')) { - versionRequirements.push({ - name: 'npm', - currentVersion: exec('npm --version'), - versionRequirement: packageConfig.engines.npm - }) -} +// if (shell.which('npm')) { +// versionRequirements.push({ +// name: 'npm', +// currentVersion: exec('npm --version'), +// versionRequirement: packageConfig.engines.npm +// }) +// } module.exports = function() { const warnings = [] diff --git a/src/api/Inventory/MaterialOut.js b/src/api/Inventory/MaterialOut.js index a0b8dad4..e2c3f5fb 100644 --- a/src/api/Inventory/MaterialOut.js +++ b/src/api/Inventory/MaterialOut.js @@ -231,3 +231,18 @@ export function selectleaders(department) { } }) } +// 领料单查询 +export function searchList222(pageCurrent, pageSize, listPeople_check) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '车间装配管理_领料单明细_查询数据_新2', + param: '图号=' + listPeople_check, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/ManufacturingCenter/ScrappedSupplementaryInvestment.js b/src/api/ManufacturingCenter/ScrappedSupplementaryInvestment.js index 3b1b664c..5e9309fb 100644 --- a/src/api/ManufacturingCenter/ScrappedSupplementaryInvestment.js +++ b/src/api/ManufacturingCenter/ScrappedSupplementaryInvestment.js @@ -42,7 +42,7 @@ export function searchtable(check1, value1, check3, value3, check5, value5, valu } }) } -export function editSpare(CutCode, number, id) { +export function editSpare(CutCode, number, id, Unqualified, remarkGroup, people) { return request({ url: '', method: 'post', @@ -51,7 +51,7 @@ export function editSpare(CutCode, number, id) { ModularID: router.currentRoute.path, type: '2', name: '报废补投_提交报废_循环执行', - param: '工艺计划流水号组=' + CutCode + '&报废数量组=' + number + '&报废人=' + id + param: '工艺计划流水号组=' + CutCode + '&报废数量组=' + number + '&报废人=' + id + '&不合格原因组=' + Unqualified + '&备注组=' + remarkGroup + '&质检人组=' + people } }) } diff --git a/src/main.js b/src/main.js index a9b36909..5591690f 100644 --- a/src/main.js +++ b/src/main.js @@ -73,3 +73,66 @@ export function ExecDatabase(num) { }) } // end---> + +// 哈希表 +export function HashTable() { + let size = 0 + // eslint-disable-next-line no-new-object + let entry = new Object() + this.add = function(key, value) { + if (!this.containsKey(key)) { + size++ + } + entry[key] = value + } + this.getValue = function(key) { + return this.containsKey(key) ? entry[key] : null + } + this.remove = function(key) { + if (this.containsKey(key) && (delete entry[key])) { + size-- + } + } + this.containsKey = function(key) { + return (key in entry) + } + this.containsValue = function(value) { + for (const prop in entry) { + if (entry[prop] === value) { + return true + } + } + return false + } + this.getValues = function() { + // eslint-disable-next-line no-array-constructor + const values = new Array() + for (const prop in entry) { + values.push(entry[prop]) + } + return values + } + // this.getKey = function(value) { + // for (const prop in entry) { + // if (entry[key]) { + // return prop + // } + // } + // } + this.getKeys = function() { + // eslint-disable-next-line no-array-constructor + const keys = new Array() + for (const prop in entry) { + keys.push(prop) + } + return keys + } + this.getSize = function() { + return size + } + this.clear = function() { + size = 0 + // eslint-disable-next-line no-new-object + entry = new Object() + } +} diff --git a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue index 0db67419..c0a64188 100644 --- a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue +++ b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue @@ -839,7 +839,6 @@ export default { }, QualityType() { QualityType().then(response => { - console.log(response.data) for (let i = 0; i < response.data.length; i++) { this.QualityTypeNumber.push({ label: response.data[i].质检类型, diff --git a/src/views/Inventory/MaterialOut/index.vue b/src/views/Inventory/MaterialOut/index.vue index 0c654c30..1c687e0c 100644 --- a/src/views/Inventory/MaterialOut/index.vue +++ b/src/views/Inventory/MaterialOut/index.vue @@ -1,125 +1,134 @@ - + + + + + + + + + + + + +
- + @@ -239,18 +239,18 @@ - + - + diff --git a/src/views/ManufacturingCenter/PartWorkCraftSelect_rdlc/index.vue b/src/views/ManufacturingCenter/PartWorkCraftSelect_rdlc/index.vue index 5b99fec1..cb59faee 100644 --- a/src/views/ManufacturingCenter/PartWorkCraftSelect_rdlc/index.vue +++ b/src/views/ManufacturingCenter/PartWorkCraftSelect_rdlc/index.vue @@ -359,7 +359,7 @@ export default { if (val[i].进程 !== '编制中') { this.jinyong = true } - if (val[i].进程 === '编制中') { + if (val[i].进程 === '编制中' || val[i].进程 === '未分配') { this.jinyong1 = true } } diff --git a/src/views/ManufacturingCenter/ScrappedSupplementaryInvestment/index.vue b/src/views/ManufacturingCenter/ScrappedSupplementaryInvestment/index.vue index 69f166a6..1f329507 100644 --- a/src/views/ManufacturingCenter/ScrappedSupplementaryInvestment/index.vue +++ b/src/views/ManufacturingCenter/ScrappedSupplementaryInvestment/index.vue @@ -194,6 +194,9 @@ export default { procedureGroup: [], ScrapQuantity: [], ProcessPlanNumber: [], + Unqualified: [], + remarkGroup: [], + people: [], Data: [], tableData: [], // 表格数据 total: 0, // 总条数 @@ -287,12 +290,18 @@ export default { }).then(() => { this.ScrapQuantity = [] this.ProcessPlanNumber = [] + this.Unqualified = [] + this.remarkGroup = [] + this.people = [] for (let i = 0; i < this.procedureGroup.length; i++) { this.ScrapQuantity.push(this.procedureGroup[i].不合格数量) this.ProcessPlanNumber.push(this.procedureGroup[i].工艺计划流水号) + this.Unqualified.push(this.procedureGroup[i].不合格原因文本) + this.remarkGroup.push(this.procedureGroup[i].备注) + this.people.push(this.procedureGroup[i].人员编号) } this.handleEdit_disable = true - editSpare(this.ProcessPlanNumber, this.ScrapQuantity, this.id).then(response => { + editSpare(this.ProcessPlanNumber, this.ScrapQuantity, this.id, this.Unqualified, this.remarkGroup, this.people).then(response => { if (response.data[0].result === '1') { this.$message.success('报废成功') this.searchTable() diff --git a/src/views/layout/components/TagsView.vue b/src/views/layout/components/TagsView.vue index 2bb9ed52..d26a78b8 100644 --- a/src/views/layout/components/TagsView.vue +++ b/src/views/layout/components/TagsView.vue @@ -96,6 +96,11 @@ export default { document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1950px' document.getElementsByClassName('navbar')[0].style.minWidth = '1950px' break + case 'AutomaticScheduling': // 车间排产 + document.getElementById('app-main').style.width = '1910px' + document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1910px' + document.getElementsByClassName('navbar')[0].style.minWidth = '1910px' + break default: document.getElementById('app-main').style.width = '1380px' document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1380px'