From 66a4d3e816a75e14d9a1cf833c182d24dbb05760 Mon Sep 17 00:00:00 2001 From: liushuai Date: Tue, 7 Jan 2020 12:17:45 +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 --- src/views/Inventory/Inboundscanning/index.vue | 34 +++++++------------ .../MonthEndHourAccounting/index.vue | 14 ++++---- 2 files changed, 20 insertions(+), 28 deletions(-) diff --git a/src/views/Inventory/Inboundscanning/index.vue b/src/views/Inventory/Inboundscanning/index.vue index eaceafc5..92e3f4f7 100644 --- a/src/views/Inventory/Inboundscanning/index.vue +++ b/src/views/Inventory/Inboundscanning/index.vue @@ -11,15 +11,6 @@ 入库 - - 移除 - @@ -27,7 +18,6 @@ + + + @@ -122,17 +122,9 @@ export default { }, methods: { // 移除 - handleDelete() { - this.tableDataNum.splice(this.NUM, 1) - this.tableData.splice(this.NUM, 1) - this.NUM = '' - }, - tableRowClassName({ row, rowIndex }) { - console.log(rowIndex) - this.NUM = rowIndex - }, - searchData(index) { - this.NUM = index + handleDelete(index, row) { + this.tableDataNum.splice(index, 1) + this.tableData.splice(index, 1) }, // 获取人员编号 getpeopleid() { diff --git a/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue b/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue index affbd18b..4a51526e 100644 --- a/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue +++ b/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue @@ -37,19 +37,19 @@ {{ scope.row.工序顺序 }} - + - + - + @@ -132,8 +132,8 @@ export default { return } import('@/vendor/Export2Excel').then(excel => { - const tHeader = ['姓名', '图号', '跟单号', '序号', '工序名称', '准结工时', '定额工时', '合格数', '不合格数', '备注', '日期', '计划准结工时', '计划定额工时', '项目名称', '机床图号', '组号', '设计', '材料'] - const filterVal = ['姓名', '零件图号_短', '跟单号', '工序顺序', '工艺名称', '准结工时', '单件工时', '合格数', '不合格数', '备注', '操作时间', '准结定额工时', '单件定额工时', '项目名称', '机床图号', '组号', '设计者', '材料'] + const tHeader = ['姓名', '图号', '跟单号', '序号', '工序名称', '录入准结工时', '实际工时', '合格数', '不合格数', '备注', '日期', '计划准结工时', '计划定额工时', '项目名称', '机床图号', '组号', '设计', '材料'] + const filterVal = ['姓名', '零件图号_短', '跟单号', '工序顺序', '工艺名称', '修补准结工时', '设备工时', '合格数', '不合格数', '备注', '操作时间', '准结定额工时', '单件定额工时', '项目名称', '机床图号', '组号', '设计者', '材料'] const list = this.tableData const data = this.formatJson(filterVal, list) excel.export_json_to_excel({