|
@@ -90,9 +90,14 @@
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:action="{ row }">
|
|
<template v-slot:action="{ row }">
|
|
|
|
|
+ <!-- <el-popconfirm title="确定完成这个任务?" @confirm="sureData(row)">
|
|
|
|
|
+ <template v-slot:reference>
|
|
|
|
|
+ <el-link :underline="false" type="primary">确定 </el-link>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-popconfirm> -->
|
|
|
<el-popconfirm title="确认本次报工?" @confirm="saveData(row)">
|
|
<el-popconfirm title="确认本次报工?" @confirm="saveData(row)">
|
|
|
<template v-slot:reference>
|
|
<template v-slot:reference>
|
|
|
- <el-link :underline="false" type="primary">报工 </el-link>
|
|
|
|
|
|
|
+ <el-link :underline="false" type="primary">报工 </el-link>
|
|
|
</template>
|
|
</template>
|
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
|
|
|
|
|
@@ -101,7 +106,7 @@
|
|
|
:underline="false"
|
|
:underline="false"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
@click="viewRecords(row.id)"
|
|
@click="viewRecords(row.id)"
|
|
|
- >报工修改录</el-link
|
|
|
|
|
|
|
+ >报工修改记录</el-link
|
|
|
>
|
|
>
|
|
|
</template>
|
|
</template>
|
|
|
</ele-pro-table>
|
|
</ele-pro-table>
|
|
@@ -113,7 +118,8 @@
|
|
|
import {
|
|
import {
|
|
|
batchUpdateRealTime,
|
|
batchUpdateRealTime,
|
|
|
listUpdateRealTimeRecord,
|
|
listUpdateRealTimeRecord,
|
|
|
- pageAssigneeByTask
|
|
|
|
|
|
|
+ pageAssigneeByTask,
|
|
|
|
|
+ batchUpdateRealTimeConfirm
|
|
|
} from '@/api/workOrderList';
|
|
} from '@/api/workOrderList';
|
|
|
import modifyDialog from '@/views/taskList/components/modifyDialog.vue';
|
|
import modifyDialog from '@/views/taskList/components/modifyDialog.vue';
|
|
|
|
|
|
|
@@ -247,7 +253,7 @@
|
|
|
slot: 'action',
|
|
slot: 'action',
|
|
|
label: '操作',
|
|
label: '操作',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- width: 140,
|
|
|
|
|
|
|
+ width: 165,
|
|
|
resizable: false,
|
|
resizable: false,
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
fixed: 'right'
|
|
fixed: 'right'
|
|
@@ -267,13 +273,30 @@
|
|
|
categoryId: workData.categoryId,
|
|
categoryId: workData.categoryId,
|
|
|
apsWorkOrderId: workData.apsWorkOrderId
|
|
apsWorkOrderId: workData.apsWorkOrderId
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
this.getData();
|
|
this.getData();
|
|
|
},
|
|
},
|
|
|
|
|
+ // 确定完成
|
|
|
|
|
+ sureData(row) {
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ // realStartTime: row.realStartTime,
|
|
|
|
|
+ // realEndTime: row.realEndTime,
|
|
|
|
|
+ qualifiedQuantity: row.qualifiedQuantity,
|
|
|
|
|
+ qualifiedWeight: row.qualifiedWeight,
|
|
|
|
|
+ unqualifiedQuantity: row.unqualifiedQuantity,
|
|
|
|
|
+ unqualifiedWeight: row.unqualifiedWeight,
|
|
|
|
|
+ remark: row.assigneeRemark,
|
|
|
|
|
+ apsAssigneeId: row.id
|
|
|
|
|
+ };
|
|
|
|
|
+ batchUpdateRealTimeConfirm(params).then((res)=>{
|
|
|
|
|
+ console.log(res,'res 1111')
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
getData() {
|
|
getData() {
|
|
|
this.workList = [];
|
|
this.workList = [];
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
- for(let key in this.params){
|
|
|
|
|
- if(!this.params[key]){
|
|
|
|
|
|
|
+ for (let key in this.params) {
|
|
|
|
|
+ if (!this.params[key]) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -308,12 +331,21 @@
|
|
|
if (!row.unqualifiedWeight && row.unqualifiedWeight != 0) {
|
|
if (!row.unqualifiedWeight && row.unqualifiedWeight != 0) {
|
|
|
return this.$message.warning('请输入不合格重量');
|
|
return this.$message.warning('请输入不合格重量');
|
|
|
}
|
|
}
|
|
|
- if(((row.qualifiedQuantity - 0) + (row.unqualifiedQuantity - 0)) != (row.quantity - 0)){
|
|
|
|
|
- console.log(((row.qualifiedQuantity - 0) + (row.qualifiedQuantity - 0)),'--------------')
|
|
|
|
|
- return this.$message.warning(`合格数量加不合格数量需要等于任务数量${row.quantity}`);
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ row.qualifiedQuantity - 0 + (row.unqualifiedQuantity - 0) !=
|
|
|
|
|
+ row.quantity - 0
|
|
|
|
|
+ ) {
|
|
|
|
|
+ return this.$message.warning(
|
|
|
|
|
+ `合格数量加不合格数量需要等于任务数量${row.quantity}`
|
|
|
|
|
+ );
|
|
|
}
|
|
}
|
|
|
- if(((row.qualifiedWeight - 0) + (row.unqualifiedWeight - 0)) != (row.weight - 0)){
|
|
|
|
|
- return this.$message.warning(`合格重量加不合格重量需要等于任务重量${row.weight}`);
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ row.qualifiedWeight - 0 + (row.unqualifiedWeight - 0) !=
|
|
|
|
|
+ row.weight - 0
|
|
|
|
|
+ ) {
|
|
|
|
|
+ return this.$message.warning(
|
|
|
|
|
+ `合格重量加不合格重量需要等于任务重量${row.weight}`
|
|
|
|
|
+ );
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
let params = {
|
|
let params = {
|