|
|
@ -29,6 +29,16 @@ |
|
|
|
<span v-else-if="item === 'QM_ReclinerReclst-CreateTime'"> {{ parseTime(scope.row[item]) }} </span> |
|
|
|
<span v-else>{{ scope.row[item] }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" align="center" width="125"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-delete" |
|
|
|
@click="handlePrint(scope.row)" |
|
|
|
>打印</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<pagination |
|
|
@ -42,7 +52,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { queryRepairRecord } from '@/api/productplan/base' |
|
|
|
import { queryRepairRecord, addPrinterInfo } from '@/api/productplan/base' |
|
|
|
export default { |
|
|
|
name: 'reworklist', |
|
|
|
data() { |
|
|
@ -99,6 +109,25 @@ export default { |
|
|
|
this.queryParams.pageNumber = 1 |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
// 打印 |
|
|
|
handlePrint(row) { |
|
|
|
let params = { |
|
|
|
"QM_ReclinerReclst-PlantNr": row['QM_ReclinerReclst-PlantNr'], |
|
|
|
"QM_ReclinerReclst-ReclinerNr": row['QM_ReclinerReclst-ReclinerNr'], |
|
|
|
"QM_ReclinerReclst-SerialOrderId": row['QM_ReclinerReclst-SerialOrderId'], |
|
|
|
"QM_ReclinerReclst-ArtId": row['QM_ReclinerReclst-ArtId'] |
|
|
|
} |
|
|
|
this.$confirm('是否确认打印"' + row['QM_ReclinerReclst-ArtId'] + '"的数据项?', '警告', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(function() { |
|
|
|
return addPrinterInfo(params) |
|
|
|
}).then(() => { |
|
|
|
this.msgSuccess('打印成功') |
|
|
|
this.getList() |
|
|
|
}).catch(function() {}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |