From f6908d87cc7e3fe432b03b6763b580e0251dc6bb Mon Sep 17 00:00:00 2001 From: zhangdingyu <974548713@qq.com> Date: Tue, 3 Dec 2019 17:13:16 +0800 Subject: [PATCH 01/17] =?UTF-8?q?=E8=BD=A6=E9=97=B4=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.js | 2 +- .../CompletionOfWorkshopComponents/index.vue | 74 ++++++++++++++----- 2 files changed, 55 insertions(+), 21 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index fc41e22d..2cb92ad8 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -26,7 +26,7 @@ export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFil export const MESUploadFile = `http://192.168.1.231:8411/submit/MESUploadFile.ashx` export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx` const service = axios.create({ - baseURL: `http://192.168.1.231:8411/submit/MESCommonBase.ashx`, + baseURL: `http://192.168.0.110:8002/submit/MESCommonBase.ashx`, timeout: 1500000 // 请求超时时间 }) export default service diff --git a/src/views/ManufacturingCenter/CompletionOfWorkshopComponents/index.vue b/src/views/ManufacturingCenter/CompletionOfWorkshopComponents/index.vue index 75fdae4d..76e64941 100644 --- a/src/views/ManufacturingCenter/CompletionOfWorkshopComponents/index.vue +++ b/src/views/ManufacturingCenter/CompletionOfWorkshopComponents/index.vue @@ -23,15 +23,14 @@ - - + - + @@ -39,17 +38,22 @@ {{ scope.row.投产数量 }} + + + - + 机床图号:{{ 机床图号 }} 机床名称:{{ 机床名称 }} -
+
- + @@ -159,8 +163,11 @@ export default { firstLevel.children = [] for (let j = 0; j < response.data.length; j++) { firstLevel.children.push({ - label: (response.data[j].零件图号 ? response.data[j].零件图号 : '无零件图号') + '\xa0\xa0\xa0\xa0\xa0\xa0' + (response.data[j].规格 ? response.data[j].规格 : '') + '\xa0\xa0\xa0\xa0\xa0\xa0' + (response.data[j].投产总数量 ? response.data[j].投产总数量 : '') + '..........' + (response.data[j].零件名称 ? response.data[j].零件名称 : '无零件名称'), + label: (response.data[j].零件图号 ? response.data[j].零件图号 : '无零件图号') + '\xa0\xa0\xa0\xa0\xa0\xa0' + (response.data[j].规格 ? response.data[j].规格 : '') + '\xa0\xa0\xa0\xa0\xa0\xa0' + (response.data[j].投产总数量 ? response.data[j].投产总数量 : '') + '..........' + (response.data[j].零件名称 ? response.data[j].零件名称 : '无零件名称') + (response.data[j].零件类型 === 1 ? '' : '\xa0\xa0\xa0\xa0\xa0\xa0外购'), value: response.data[j].工艺计划流水号, + 考核状态: response.data[j].考核状态, + 采购状态: response.data[j].采购状态, + 零件类型: response.data[j].零件类型, father: false }) } @@ -173,18 +180,41 @@ export default { onClick(num) { this.tableData1 = [] this.tableData2 = [] - if (num.father === true) { - selectParts(1, num.value, 0, 0).then(response => { - this.tableData2 = response.data - }) - } else { - selectParts(0, 0, 1, num.value).then(response => { - this.tableData2 = response.data - }) + if (num.father === false) { + if (num.零件类型 === 1) { + selectProcedure(num.value).then(response => { + this.tableData1 = response.data + }) + } } + // if (num.father === true) { + // selectParts(1, num.value, 0, 0).then(response => { + // this.tableData2 = response.data + // }) + // } else { + // selectParts(0, 0, 1, num.value).then(response => { + // this.tableData2 = response.data + // }) + // } }, renderContent(h, { node, data, store }) { - return ({node.label}) + if (node.data.father === false) { + if (node.data.零件类型 === 1) { // 自制 + if (parseInt(node.data.考核状态) > 6) { + return ({node.label}) + } else { + return ({node.label}) + } + } else { // 外购 + if (node.data.采购状态 === '已完成') { + return ({node.label}) + } else { + return ({node.label}) + } + } + } else { + return ({node.label}) + } }, searchTable1(row) { this.tableData1 = [] @@ -205,7 +235,11 @@ export default { background-color: #ccc !important; } } - .treeNotes { - background-color: green; + .treeNotesComplate { + color: black; + background-color: #67C23A; + } + .treeNotesUnComplate { + color: black; } From 266a82f423bdc7c8d67a209566ea1523bdda1287 Mon Sep 17 00:00:00 2001 From: liushuai Date: Tue, 3 Dec 2019 18:01:28 +0800 Subject: [PATCH 02/17] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ContractInformationManagement/index.vue | 1 + .../CreateInquirySheet/index.vue | 69 ++++---- .../PurchaseTaskAllocate/index.vue | 158 ++++++++++-------- 3 files changed, 126 insertions(+), 102 deletions(-) diff --git a/src/views/MarketingCenter/ContractInformationManagement/index.vue b/src/views/MarketingCenter/ContractInformationManagement/index.vue index 6b1e4638..5cdd64f2 100644 --- a/src/views/MarketingCenter/ContractInformationManagement/index.vue +++ b/src/views/MarketingCenter/ContractInformationManagement/index.vue @@ -992,6 +992,7 @@ export default { this.form.付款方式 = parseInt(row.付款方式代码) this.biddingNumber = row.招标保证金流水号 this.form.bidding = row.招标企业 + this.form.contractAmount = row.合同总金额 this.disabled = true this.temp = 2 this.isTrue = false diff --git a/src/views/PurchasingCenter/CreateInquirySheet/index.vue b/src/views/PurchasingCenter/CreateInquirySheet/index.vue index aad45b46..ab4a225d 100644 --- a/src/views/PurchasingCenter/CreateInquirySheet/index.vue +++ b/src/views/PurchasingCenter/CreateInquirySheet/index.vue @@ -16,22 +16,22 @@ - - - 刷新 | 待采购零件数 - - - - - -
- {{ machine.机床图号 }} -
-
-
-
-
- + + + + + + + + + + + + + + + +
@@ -46,7 +46,7 @@ - + --> - 查询 + 查询 导出未询价单 - + + + - 调整采购任务 - - - + +
+ + + + 确定 +
+ 调整采购任务 +
@@ -1443,7 +1450,7 @@ export default { where 采购管理_采购合同_采购部.是否未通过 = 0 ) as 通过的合同 on 通过的合同.组件零件流水号 = MRP_计划订单_组件零件清单_标准件和外购件_视图.组件零件流水号 left join 采购管理_供应商 on 通过的合同.供应商流水号 = 采购管理_供应商.供应商流水号 - where 询价状态编号 = 1 and 采购状态编号 = 1 and 零件类型 = 2 + where 询价状态编号 = 1 and 采购状态编号 = 1 and 人员编号 = ${this.id} group by 项目流水号,机床流水号,机床图号,人员编号 union all @@ -1715,7 +1722,7 @@ export default { this.machineValue ? check5 = 1 : check5 = 0 this.groupValue ? check6 = 1 : check6 = 0 this.startTime ? check7 = 1 : (check7 = 0, this.startTime = '') - searchMaterial(this.pageCurrent11, this.pageSize11, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.materialName, check2, this.materialSpec, check3, this.materialModel, this.id, check4, this.projectValue, check5, this.machineValue, check6, this.groupValue, check7, this.startTime[0], this.startTime[1]).then(response => { + searchMaterial(this.pageCurrent11, this.pageSize11, 3, check1, this.materialName, check2, this.materialSpec, check3, this.materialModel, this.id, check4, this.projectValue, check5, this.machineValue, check6, this.groupValue, check7, this.startTime[0], this.startTime[1]).then(response => { this.tableData11 = response.data.rows this.total11 = response.data.total const remark = [] @@ -1754,7 +1761,7 @@ export default { this.machineValue ? check5 = 1 : check5 = 0 this.groupValue ? check6 = 1 : check6 = 0 this.endTime ? check7 = 1 : (check7 = 0, this.endTime = '') - searchPart(this.pageCurrent12, this.pageSize12, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.partNum, check2, this.partName, check3, this.partSpec, this.id, check4, this.projectValue, check5, this.machineValue, check6, this.groupValue, check7, this.endTime[0], this.endTime[1]).then(response => { + searchPart(this.pageCurrent12, this.pageSize12, 3, check1, this.partNum, check2, this.partName, check3, this.partSpec, this.id, check4, this.projectValue, check5, this.machineValue, check6, this.groupValue, check7, this.endTime[0], this.endTime[1]).then(response => { this.tableData12 = response.data.rows this.total12 = response.data.total const remark = [] @@ -1789,7 +1796,7 @@ export default { this.machineValue ? check5 = 1 : check5 = 0 this.groupValue ? check6 = 1 : check6 = 0 this.endTime ? check7 = 1 : (check7 = 0, this.endTime = '') - searchPart(this.pageCurrent12, this.pageSize12, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.partNum, check2, this.partName, check3, this.partSpec, this.id, check4, this.projectValue, check5, this.machineValue, check6, this.groupValue, check7, this.endTime[0], this.endTime[1]).then(response => { + searchPart(this.pageCurrent12, this.pageSize12, 3, check1, this.partNum, check2, this.partName, check3, this.partSpec, this.id, check4, this.projectValue, check5, this.machineValue, check6, this.groupValue, check7, this.endTime[0], this.endTime[1]).then(response => { this.tableData12 = response.data.rows this.total12 = response.data.total const remark = [] diff --git a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue index d55e39f8..ff1732ee 100644 --- a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue +++ b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue @@ -29,7 +29,7 @@ - + - 查询 + 查询 + 未分配 + 已分配
采购员: @@ -113,7 +115,7 @@
- +