终检生成报表方法,工单号获取修改为当前工单号,分页参数调整
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
</el-form>
|
||||
</div>
|
||||
<div style="width: 100%;display: flex;justify-content: flex-end;">
|
||||
<pagination :pageSizes="[6,60,120,300]" :total="pagination.total" :page.sync="pagination.pageNum" :limit.sync="pagination.pageSize" @pagination="getList" />
|
||||
<pagination :pageSizes="[12,60,120,300]" :total="pagination.total" :page.sync="pagination.pageNum" :limit.sync="pagination.pageSize" @pagination="getList" />
|
||||
</div>
|
||||
<div style="width: 100%">
|
||||
<div style="font-size: 20px;text-align: center; margin 0 auto">{{ reportType_options[search.reportType].label }}</div>
|
||||
|
||||
@@ -904,19 +904,21 @@ export default {
|
||||
},
|
||||
//todo 工单完成
|
||||
workOrderCompleted() {
|
||||
// 待保存的工单Id
|
||||
const saveWorkorderID = JSON.parse(JSON.stringify(this.CurrentWorkorder.clientWorkorder));
|
||||
this.$modal
|
||||
.confirm('是否确认完成本工单?')
|
||||
.then(() => {
|
||||
this.getNext_current_workorder()
|
||||
//todo 更改这个工单状态为2
|
||||
return update_workorder_status({ workorderID: this.CurrentWorkorder.clientWorkorder })
|
||||
return update_workorder_status({ workorderID: saveWorkorderID })
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.$notify.success('工单完成')
|
||||
//todo 生成质量统计表 !!!!需要工单和班组
|
||||
let query={
|
||||
workorderID: this.CurrentWorkorder.clientWorkorder,
|
||||
workorderID: saveWorkorderID,
|
||||
team:this.CurrentWorkorder.team,
|
||||
firstquality_time:this.$store.state.quality.firstquality_time,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user