|
@@ -40,11 +40,8 @@
|
|
|
@click="details('report', row)"
|
|
@click="details('report', row)"
|
|
|
>报工
|
|
>报工
|
|
|
</el-link>
|
|
</el-link>
|
|
|
- <el-link
|
|
|
|
|
- :underline="false"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- @click="viewRecords(row.id)"
|
|
|
|
|
- >修改记录
|
|
|
|
|
|
|
+ <el-link :underline="false" type="primary" @click="viewRecords(row.id)"
|
|
|
|
|
+ >修改记录
|
|
|
</el-link>
|
|
</el-link>
|
|
|
</template>
|
|
</template>
|
|
|
</ele-pro-table>
|
|
</ele-pro-table>
|
|
@@ -64,7 +61,7 @@
|
|
|
} from '@/api/workOrderList';
|
|
} from '@/api/workOrderList';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
- components: { TaskSearch, Ddtails,modifyDialog },
|
|
|
|
|
|
|
+ components: { TaskSearch, Ddtails, modifyDialog },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
loading: false,
|
|
loading: false,
|
|
@@ -219,7 +216,7 @@
|
|
|
label: '要求生产重量',
|
|
label: '要求生产重量',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
- width: 110,
|
|
|
|
|
|
|
+ width: 110
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: 'planStartTime',
|
|
prop: 'planStartTime',
|
|
@@ -251,6 +248,27 @@
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
width: 180
|
|
width: 180
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '实际开始时间',
|
|
|
|
|
+ prop: 'realStartTime',
|
|
|
|
|
+ minWidth: 150,
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '实际结束时间',
|
|
|
|
|
+ prop: 'realEndTime',
|
|
|
|
|
+ minWidth: 150,
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '工时',
|
|
|
|
|
+ prop: 'durationText',
|
|
|
|
|
+ width: 150,
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
prop: 'firstTaskName',
|
|
prop: 'firstTaskName',
|
|
|
label: '首工序',
|
|
label: '首工序',
|
|
@@ -266,7 +284,7 @@
|
|
|
width: 180
|
|
width: 180
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop:'statusText',
|
|
|
|
|
|
|
+ prop: 'statusText',
|
|
|
label: '状态',
|
|
label: '状态',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
// formatter: (row) => {
|
|
// formatter: (row) => {
|
|
@@ -310,9 +328,7 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {},
|
|
created() {},
|
|
|
- mounted() {
|
|
|
|
|
-
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ mounted() {},
|
|
|
methods: {
|
|
methods: {
|
|
|
handleTabClick(e) {
|
|
handleTabClick(e) {
|
|
|
this.tabValue = e.name;
|
|
this.tabValue = e.name;
|
|
@@ -337,7 +353,7 @@
|
|
|
workOrderCode: row.workOrderCode,
|
|
workOrderCode: row.workOrderCode,
|
|
|
productionPlanCode: row.productionPlanCode,
|
|
productionPlanCode: row.productionPlanCode,
|
|
|
produceRoutingName: row.produceRoutingName,
|
|
produceRoutingName: row.produceRoutingName,
|
|
|
- formingNum: row.formingNum,
|
|
|
|
|
|
|
+ formingNum: row.quantity,
|
|
|
assignTeamName: row.assignTeamName,
|
|
assignTeamName: row.assignTeamName,
|
|
|
formingWeight: row.quantity,
|
|
formingWeight: row.quantity,
|
|
|
planStartTime: row.planStartTime,
|
|
planStartTime: row.planStartTime,
|
|
@@ -351,7 +367,7 @@
|
|
|
assigneeName: row.assigneeName,
|
|
assigneeName: row.assigneeName,
|
|
|
weight: row.weight,
|
|
weight: row.weight,
|
|
|
quantity: row.quantity,
|
|
quantity: row.quantity,
|
|
|
- durationText:row.durationText,
|
|
|
|
|
|
|
+ durationText: row.durationText,
|
|
|
apsAssigneeId: row.id
|
|
apsAssigneeId: row.id
|
|
|
};
|
|
};
|
|
|
let form = {
|
|
let form = {
|
|
@@ -361,20 +377,22 @@
|
|
|
unqualifiedQuantity: row.unqualifiedQuantity,
|
|
unqualifiedQuantity: row.unqualifiedQuantity,
|
|
|
qualifiedWeight: row.qualifiedWeight,
|
|
qualifiedWeight: row.qualifiedWeight,
|
|
|
remark: row.assigneeRemark,
|
|
remark: row.assigneeRemark,
|
|
|
- qualifiedQuantity: row.qualifiedQuantity,
|
|
|
|
|
- }
|
|
|
|
|
- this.$refs.detailsRef.open(type, currentRow,form);
|
|
|
|
|
|
|
+ qualifiedQuantity: row.qualifiedQuantity
|
|
|
|
|
+ };
|
|
|
|
|
+ this.$refs.detailsRef.open(type, currentRow, form);
|
|
|
},
|
|
},
|
|
|
- viewRecords(apsAssigneeId){
|
|
|
|
|
- listUpdateRealTimeRecord(apsAssigneeId).then(res => {
|
|
|
|
|
- if (res && res.length > 0){
|
|
|
|
|
- this.$refs.modifyRef.open(res)
|
|
|
|
|
- }else{
|
|
|
|
|
- this.$message.warning('暂无修改历史记录数据')
|
|
|
|
|
- }
|
|
|
|
|
- }).catch((err)=>{
|
|
|
|
|
- this.$message.error(err.message)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ viewRecords(apsAssigneeId) {
|
|
|
|
|
+ listUpdateRealTimeRecord(apsAssigneeId)
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ if (res && res.length > 0) {
|
|
|
|
|
+ this.$refs.modifyRef.open(res);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.warning('暂无修改历史记录数据');
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch((err) => {
|
|
|
|
|
+ this.$message.error(err.message);
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|