diff --git a/src/api/WorkshopProcurement/ProcurementContractApproval.js b/src/api/WorkshopProcurement/ProcurementContractApproval.js index 537d2474..d7f6fe41 100644 --- a/src/api/WorkshopProcurement/ProcurementContractApproval.js +++ b/src/api/WorkshopProcurement/ProcurementContractApproval.js @@ -43,19 +43,7 @@ export function searchTable2(num) { method: 'post', data: { type: '1', - name: '车间采购管理_采购合同_查询数据_外购件', - param: '采购合同流水号=' + num - } - }) -} -// 采购合同明细查询 -export function searchTable3(num) { - return request({ - url: '', - method: 'post', - data: { - type: '1', - name: '车间采购管理_采购合同_查询数据_基本件', + name: '车间采购管理_采购合同明细_查询数据NEW', param: '采购合同流水号=' + num } }) diff --git a/src/api/WorkshopProcurement/ProcurementContractEnquiry.js b/src/api/WorkshopProcurement/ProcurementContractEnquiry.js index 5548a8bf..9e4bdcfc 100644 --- a/src/api/WorkshopProcurement/ProcurementContractEnquiry.js +++ b/src/api/WorkshopProcurement/ProcurementContractEnquiry.js @@ -43,7 +43,7 @@ export function searchTable2(num) { method: 'post', data: { type: '1', - name: '车间采购管理_采购合同_查询数据_外购件', + name: '车间采购管理_采购合同明细_查询数据NEW', param: '采购合同流水号=' + num } }) diff --git a/src/views/ManufacturingCenter/PartAssignment/index.vue b/src/views/ManufacturingCenter/PartAssignment/index.vue index d9c7f19e..8a1adc39 100644 --- a/src/views/ManufacturingCenter/PartAssignment/index.vue +++ b/src/views/ManufacturingCenter/PartAssignment/index.vue @@ -401,7 +401,6 @@ diff --git a/src/views/ManufacturingCenter/ProjectPlanningQuery/index.vue b/src/views/ManufacturingCenter/ProjectPlanningQuery/index.vue index b70b2b43..b1f11e64 100644 --- a/src/views/ManufacturingCenter/ProjectPlanningQuery/index.vue +++ b/src/views/ManufacturingCenter/ProjectPlanningQuery/index.vue @@ -59,59 +59,84 @@

总计划

- + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + @@ -138,12 +163,12 @@ @@ -178,12 +203,12 @@ @@ -218,12 +243,12 @@ @@ -258,12 +283,12 @@ @@ -298,12 +323,12 @@ @@ -358,10 +383,22 @@ export default { this.fetchData() }, methods: { - colorJudge(time1) { - console.log(new Date(time1) - this.now) - if ((new Date(time1) - this.now) > 0 && (new Date(time1) - this.now) < (86400000 * this.warningValue)) { - return 'orange' + colorJudge(time1, time2) { + if (time2 === null) { + if ((new Date(time1) - this.now) > 0 && (new Date(time1) - this.now) < (86400000 * this.warningValue)) { + return 'orange' + } else if ((new Date(time1) - this.now) < 0) { + return 'red' + } else { + return 'black' + } + } else { + return '' + } + }, + colorActual(time1, time2) { + if ((new Date(time1) - new Date(time2)) > 0) { + return 'green' } else if ((new Date(time1) - this.now) < 0) { return 'red' } else { @@ -569,6 +606,9 @@ export default { .black{ color: white; } + .green{ + color: #63a35c; + }