From 3c9e0cb1b57233603b653fdde2a94f1f0cd2a8d5 Mon Sep 17 00:00:00 2001 From: liushuai Date: Thu, 19 Mar 2020 17:53:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManHourStatistics/index.vue | 36 ++-- .../CreateInquirySheet/index.vue | 48 +++-- .../CreatePurchaseContract/index.vue | 62 +++--- .../PurchasingCenter/FundApproval1/index.vue | 173 +++++++++-------- .../OfflineContract/index.vue | 139 +++++++------- .../ProjectTotalSearch/index.vue | 15 +- .../PurchaseContractRequestFund/index.vue | 176 ++++++++++-------- .../PurchaseTaskAllocate/index.vue | 18 +- .../CreatingProcurementContracts/index.vue | 98 +++++----- .../NewArrivalList/index.vue | 80 +++++++- .../RequestOutsourcingMaterials/index.vue | 3 +- 11 files changed, 474 insertions(+), 374 deletions(-) diff --git a/src/views/ManufacturingCenter/ManHourStatistics/index.vue b/src/views/ManufacturingCenter/ManHourStatistics/index.vue index de30f08f..1f63fbcb 100644 --- a/src/views/ManufacturingCenter/ManHourStatistics/index.vue +++ b/src/views/ManufacturingCenter/ManHourStatistics/index.vue @@ -31,7 +31,7 @@ @@ -172,7 +172,7 @@ export default { } searchtable(this.workerName_ckeck, this.workerName, check1, this.dateRange[0], this.dateRange[1]).then(response => { response.data.map(v => { - this.$set(v, '工时比值', v.计划工时 === 0 ? 0 : Math.round(v.扫码工时 / v.计划工时 * 100) / 100.00) + this.$set(v, '工时比值', v.计划工时 === 0 ? 0 : Math.round(v.录入工时 / v.计划工时 * 100) / 100.00) }) this.tableData = response.data this.loading = false @@ -180,22 +180,22 @@ export default { }, // 导出 exportTable() { - import('./Export2Excel').then(excel => { - const filterVal1 = ['姓名', '计划工时', '实际工时', '扫码工时', '工时比值'] - const data1 = this.tableData.map(v => filterVal1.map(j => v[j])) - const dataGroup = [] - dataGroup.push(data1) - const headerGroup = [['操作员', '计划工时', '录入工时', '扫码工时', '工时比值']] - const sheetGroup = ['工时统计表'] - excel.export_json_to_excel({ - headerGroup: headerGroup, - dataGroup: dataGroup, - sheetGroup: sheetGroup, - filename: '工时统计表', - autoWidth: true, - bookType: 'xlsx' - }) - }) + let check, check1 + this.workerName ? check = 1 : check = 0 + this.dateRange ? check1 = 1 : (check1 = 0, this.dateRange = '') + var param = [] + param[0] = ['操作者_check', check] + param[1] = ['姓名', this.workerName] + param[6] = ['时间_check', check1] + if (check1 === 0) { + param[7] = ['开始时间', ''] + param[8] = ['结束时间', ''] + } else { + param[7] = ['开始时间', this.dateRange[0]] + param[8] = ['结束时间', this.dateRange[1]] + } + var Data = this.CreateData('2001', '报表_人员工时查询', param) + this.exportExcel_NPOI(Data) }, searchTable2() { this.loading2 = true diff --git a/src/views/PurchasingCenter/CreateInquirySheet/index.vue b/src/views/PurchasingCenter/CreateInquirySheet/index.vue index 4e990571..ab7f91da 100644 --- a/src/views/PurchasingCenter/CreateInquirySheet/index.vue +++ b/src/views/PurchasingCenter/CreateInquirySheet/index.vue @@ -46,8 +46,8 @@ - - + + --> 查询 导出未询价单 - + - -
- - - - 确定 -
- 调整采购任务 -
+ 调整采购任务 + + + @@ -114,15 +109,15 @@ :row-class-name="tableRowClassName" border style="width: 100%;max-height: 500px;" - height="400px" + height="300px" size="mini" @sort-change="sortChange" @selection-change="handleSelectionChange1" @select="handleSelection"> - + @@ -273,8 +268,8 @@ - - + + 查询 导出未询价单 - 调整采购任务 - + 调整采购任务 + - + 询价单 编辑 @@ -1351,6 +1346,7 @@ export default { // 2020 03 04 刘路加表头排序 // 1 供货商 2 机床图号 3 物料名称 4 物料型号 sortChange(column, prop, order) { + console.log(column + '-' + column.prop + '-' + column.order, 11111) if (column.prop === '供货商') { this.ordername = 1 } else if (column.prop === '机床图号') { diff --git a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue index c9e2591b..4129dcb0 100644 --- a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue +++ b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue @@ -61,7 +61,7 @@ - + -
- -
+ + + + + + + + + + +
- - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -132,7 +141,7 @@ export default { contractDetail1: '', contractDetail2: [], tableData1: [], - pageSize1: 10, + pageSize1: 10000, pageCurrent1: 1, total1: 0, tableData2: [], diff --git a/src/views/PurchasingCenter/OfflineContract/index.vue b/src/views/PurchasingCenter/OfflineContract/index.vue index 1668409c..8f4c7b87 100644 --- a/src/views/PurchasingCenter/OfflineContract/index.vue +++ b/src/views/PurchasingCenter/OfflineContract/index.vue @@ -25,19 +25,14 @@ start-placeholder="开始日期" end-placeholder="结束日期"/> 查询 - -
- - - - 确定 -
- 调整采购任务 -
+ 调整采购任务 + + + @@ -100,7 +95,7 @@ {{ Number(scope.row.零件类型) === 1 ? scope.row.库存 = Number(scope.row.货位存量 ? scope.row.货位存量 : 0) - Number(scope.row.占用数量) : '-' }}
- + -
+ + 选入物料 + +
- + 查询 @@ -195,7 +193,10 @@ -
+ + 选入物料 + +
查询 - - 选入物料 + 创建离线合同 + + 生成离线合同 - +

税率:

- - 生成离线合同 - - 创建离线合同 +
- - - - + + + + + + + + + + @@ -260,7 +259,7 @@ {{ scope.row.离线合同名称 }} - + @@ -290,19 +289,19 @@ -
- -
+ + + + + + + + + + + - + - + - + @@ -356,9 +355,9 @@ {{ hasTax==='含税' ? scope.row.含税总额 = (Number(scope.row.数量) * Number(scope.row.单价)).toFixed(2) : scope.row.含税总额 = (scope.row.未税总额 * (1+taxRate)).toFixed(2) }} - + @@ -570,13 +569,13 @@ - - - - - - - + + + + + + + - + @@ -83,7 +85,7 @@ - + @@ -124,7 +126,8 @@ export default { pageCurrent1: 1, pageSize1: 10, total1: 0, - tableData1: [] + tableData1: [], + projectTotalPrice: '' } }, computed: { @@ -177,6 +180,7 @@ export default { }) }, searchTable1() { + this.projectTotalPrice = '' if (this.projectValue) { let check2, check3 this.machineValue ? check2 = 1 : check2 = 0 @@ -184,6 +188,9 @@ export default { console.log(1, this.projectValue, check2, this.machineValue, check3, this.groupValue) searchProjectTotal(1, this.projectValue, check2, this.machineValue, check3, this.groupValue).then(response => { this.tableData1 = response.data + for (let i = 0; i <= response.data.length; i++) { + this.projectTotalPrice = Number(this.projectTotalPrice) + Number(response.data[i].优惠后单价) * Number(response.data[i].数量) + } }) } else { this.$message.error('请选择项目') diff --git a/src/views/PurchasingCenter/PurchaseContractRequestFund/index.vue b/src/views/PurchasingCenter/PurchaseContractRequestFund/index.vue index 2c9ca0e4..9c9ebbba 100644 --- a/src/views/PurchasingCenter/PurchaseContractRequestFund/index.vue +++ b/src/views/PurchasingCenter/PurchaseContractRequestFund/index.vue @@ -23,9 +23,10 @@ end-placeholder="结束日期"/> 查询 请款 + 导出
- + - + @@ -84,7 +85,9 @@ @@ -104,82 +107,87 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -329,6 +337,20 @@ export default { // this.searchTable1() }, methods: { + exportExcel() { // 合同请款导出 + let check1, check2 + this.dateRange ? check1 = 1 : (check1 = 0, this.dateRange = '') + this.supplierValue ? check2 = 1 : check2 = 0 + var param = [] + param[0] = ['时间段_check', check1] + param[1] = ['开始时间', this.dateRange[0]] + param[2] = ['结束时间', this.dateRange[1]] + param[3] = ['供应商流水号_check', check2] + param[4] = ['供应商流水号', this.supplierValue] + console.log(param, 'param') + var Data = this.CreateData('2001', '报表_合同请款', param) + this.exportExcel_NPOI(Data) + }, timeToStamp(param) { // 转时间戳 return timeToStamp(param) }, diff --git a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue index 51eb795f..5a01127b 100644 --- a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue +++ b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue @@ -92,7 +92,7 @@ - + - + - + @@ -313,7 +313,7 @@ 已分配 - + - + - + @@ -385,7 +385,7 @@ {{ scope.row.物料类别 }} - + @@ -493,7 +493,7 @@ 已分配 - + - + diff --git a/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue b/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue index c37c583c..bbe038b6 100644 --- a/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue +++ b/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue @@ -44,7 +44,6 @@ - - 合计: + 合计: 提交请款审批
@@ -341,6 +341,7 @@ export default { handleSelectionChange(val) { this.contractGroup = [] this.sumGroup = [] + this.SUM = 0 for (let i = 0; i < val.length; i++) { this.SUM += parseFloat(val[i].开票金额) this.contractGroup.push(val[i].发票流水号)