报工弄好看点

master
zhaoxiaolin 10 months ago
parent aecc1c53ca
commit f50e3220c8

@ -184,10 +184,17 @@
<el-table-column label="排产数量" align="center" prop="quantity" width="100"/> <el-table-column label="排产数量" align="center" prop="quantity" width="100"/>
<el-table-column label="单位" align="center" prop="unit" /> <el-table-column label="单位" align="center" prop="unit" />
<el-table-column label="累计报工数量" align="center" prop="quantityFeedback" width="100"/> <el-table-column label="累计报工数量" align="center" prop="quantityFeedback" width="100"/>
<el-table-column label="累计用人数" align="center" prop="useMan" width="100"/> <el-table-column label="用人数" align="center" prop="useMan" width="100"/>
<el-table-column label="累计工时" align="center" prop="workTime" /> <el-table-column label="累计工时" align="center" prop="workTime" />
<el-table-column label="生产时间" align="center" prop="productDate" width="100"/> <el-table-column label="生产时间" align="center" prop="productDate" width="100"/>
<el-table-column label="SAP报工状态" align="center" prop="uploadStatus" width="150"/> <el-table-column label="SAP报工状态" align="center" prop="uploadStatus" width="150">
<template slot-scope="scope">
<dict-tag
:options="dict.type.report_sap_status"
:value="scope.row.uploadStatus"
/>
</template>
</el-table-column>
<el-table-column label="SAP报工时间" align="center" prop="uploadTime" width="150"/> <el-table-column label="SAP报工时间" align="center" prop="uploadTime" width="150"/>
<el-table-column label="SAP报工信息" align="center" prop="uploadMsg" width="150" :show-overflow-tooltip="true"/> <el-table-column label="SAP报工信息" align="center" prop="uploadMsg" width="150" :show-overflow-tooltip="true"/>
</el-table> </el-table>
@ -648,7 +655,7 @@ import moment from 'moment';
import { getlistCK } from '@/api/wms/outorder' import { getlistCK } from '@/api/wms/outorder'
export default { export default {
name: "ReportWork", name: "ReportWork",
dicts: ['report_type'], dicts: ['report_type','report_sap_status'],
components: {ReportWorkConsume,ItemSelectUser,ItemSelectWorkOrder,ItemSelectEquip}, components: {ReportWorkConsume,ItemSelectUser,ItemSelectWorkOrder,ItemSelectEquip},
data() { data() {
return { return {
@ -968,7 +975,7 @@ export default {
this.reset(); this.reset();
let sr = this.selectRow[0]; let sr = this.selectRow[0];
if(sr.uploadStatus =='sap报工成功'){ if(sr.uploadStatus =='1'){
this.optType = 'view' this.optType = 'view'
}else{ }else{
this.optType = '' this.optType = ''
@ -1005,7 +1012,7 @@ export default {
this.reset(); this.reset();
this.optType = "edit"; this.optType = "edit";
let sr = this.selectRow[0]; let sr = this.selectRow[0];
if(sr.uploadStatus =='sap报工成功'){ if(sr.uploadStatus =='1'){
this.$modal.msgError(`上传sap成功,不允许修改`); this.$modal.msgError(`上传sap成功,不允许修改`);
return return
} }
@ -1041,7 +1048,7 @@ export default {
handleDelete(row) { handleDelete(row) {
let sr = this.selectRow[0]; let sr = this.selectRow[0];
if(sr.uploadStatus =='sap报工成功'){ if(sr.uploadStatus =='1'){
this.$modal.msgError(`上传sap成功,不允许删除`); this.$modal.msgError(`上传sap成功,不允许删除`);
return return
} }
@ -1058,7 +1065,7 @@ export default {
handleReport(row) { handleReport(row) {
this.loading = true; this.loading = true;
let sr = this.selectRow[0]; let sr = this.selectRow[0];
if(sr.uploadStatus =='sap报工成功'){ if(sr.uploadStatus =='1'){
this.$modal.msgError(`上报sap已完成,不能重复报工`); this.$modal.msgError(`上报sap已完成,不能重复报工`);
return return
} }
@ -1103,7 +1110,7 @@ export default {
this.reset(); this.reset();
let sr = row; let sr = row;
if(sr.uploadStatus =='sap报工成功'){ if(sr.uploadStatus =='1'){
this.optType = 'view' this.optType = 'view'
}else{ }else{
this.optType = '' this.optType = ''
@ -1172,7 +1179,6 @@ export default {
}, },
/** 报工损耗按钮操作 */ /** 报工损耗按钮操作 */
handleConsumeHz(row) { handleConsumeHz(row) {
debugger
this.reset(); this.reset();
let sr = this.selectRow[0]; let sr = this.selectRow[0];
this.queryParams.workorderCode = sr.workorderCode; this.queryParams.workorderCode = sr.workorderCode;

Loading…
Cancel
Save