diff --git a/src/views/ManufacturingCenter/TraceabilityOfParts/index.vue b/src/views/ManufacturingCenter/TraceabilityOfParts/index.vue index 890198e2..b59c78e1 100644 --- a/src/views/ManufacturingCenter/TraceabilityOfParts/index.vue +++ b/src/views/ManufacturingCenter/TraceabilityOfParts/index.vue @@ -123,12 +123,12 @@ {{ scope.row.操作者 }} - + - + @@ -191,27 +191,15 @@ export default { timestamp: '制造部:计划员', type: '', size: 'large' - }, { - id: 4, - content: '工艺制定', - timestamp: '工艺部:工艺员', - type: '', - size: 'large' }, { id: 5, - content: '定额制定', + content: '工艺定额', timestamp: '工艺部:工艺员', type: '', size: 'large' - }, { - id: 6, - content: '生产能力平衡', - timestamp: '制造部:计划员', - type: '', - size: 'large' }, { id: 7, - content: '加工', + content: '生产加工', timestamp: '金工车间:操作工', type: '', size: 'large' diff --git a/src/views/MarketingCenter/ComprehensiveInquiryMS/index.vue b/src/views/MarketingCenter/ComprehensiveInquiryMS/index.vue index c7279629..e6802ffe 100644 --- a/src/views/MarketingCenter/ComprehensiveInquiryMS/index.vue +++ b/src/views/MarketingCenter/ComprehensiveInquiryMS/index.vue @@ -38,7 +38,7 @@ {{ scope.row.客户名称 }} - + @@ -48,6 +48,61 @@ {{ Number(scope.row.合同总金额).toFixed(2) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -116,7 +171,7 @@ diff --git a/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue b/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue index 7b5265b4..c1887847 100644 --- a/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue +++ b/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue @@ -502,7 +502,7 @@ export default { }, methods: { getCurrentTime() { - this.dateRange = [this.getTime1(70), this.getTime0(0)] + this.dateRange = [this.getTime1(70), this.getTime0(1)] }, getTime0(num) { var date0 = new Date() diff --git a/src/views/WorkshopProcurement/NewArrivalList/index.vue b/src/views/WorkshopProcurement/NewArrivalList/index.vue index 0052481a..bc4d377d 100644 --- a/src/views/WorkshopProcurement/NewArrivalList/index.vue +++ b/src/views/WorkshopProcurement/NewArrivalList/index.vue @@ -119,7 +119,7 @@ 备料材料 - +
@@ -267,7 +267,7 @@ - + @@ -283,7 +283,7 @@ - + @@ -292,7 +292,19 @@
- + - + - + @@ -251,38 +247,13 @@ export default { }, methods: { getSummaries(param) { // 合计 - const { columns, data } = param - const sums = [] - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计' - } else if (index === 2) { - const values = data.map(item => Number(parseFloat(item['开票金额']))) - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr) - if (!isNaN(value)) { - return prev + curr - } else { - return prev - } - }, 0) - sums[index] = sums[index].toFixed(2) + ' 元' - } else { - sums[index] = 'N/A' - } - } - }) - return sums - }, - getSummaries1(param) { // 合计 const { columns, data } = param const sums = [] columns.forEach((column, index) => { if (index === 0) { sums[index] = '合计' } else if (index === 3) { - const values = data.map(item => Number(parseFloat(item['请款金额']))) + const values = data.map(item => Number(parseFloat(item['开票金额']))) if (!values.every(value => isNaN(value))) { sums[index] = values.reduce((prev, curr) => { const value = Number(curr) @@ -309,7 +280,7 @@ export default { param[2] = ['结束时间', this.dateRange[1]] param[3] = ['供应商名称_check', this.check2] param[4] = ['供应商名称', this.supplierName0] - var Data = this.CreateData('2001', '报表_备料管理_请款_查询数据', param) + var Data = this.CreateData('03', '报表_备料管理_请款_查询数据', param) this.exportExcel_NPOI(Data) }, // dateFormat(row, column) { @@ -357,14 +328,17 @@ export default { this.tableData01 = [] }, searchTable01() { // 查询待请款 - this.contractGroup = [] - this.supplierValue ? this.check = 1 : this.check = 0 - searchOfflineContract1(this.check, this.supplierValue).then(response => { - this.tableData01 = response.data - }) + if (this.supplierValue !== null) { + this.contractGroup = [] + this.supplierValue ? this.check = 1 : this.check = 0 + searchOfflineContract1(this.check, this.supplierValue).then(response => { + this.tableData01 = response.data + }) + } else { + this.tableData01 = [] + } }, handleSelectionChange(val) { - this.SUM = 0 this.contractGroup = [] this.sumGroup = [] for (let i = 0; i < val.length; i++) { @@ -372,6 +346,7 @@ export default { this.contractGroup.push(val[i].发票流水号) this.sumGroup.push(val[i].开票金额) } + this.SUM = Number(this.SUM).toFixed(2) }, submitRequestFund() { // 确认请款 if (this.supplierValue && this.contractGroup.length !== 0) {