|
|
|
@ -331,9 +331,9 @@ |
|
|
|
width="115" |
|
|
|
:label="'操作'"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.FinishedFlag != 'N'" @click="replaceMaterialModal(scope.row)" |
|
|
|
<a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag != 'N'" @click="warnReopenSfdcRollsConfirm(scope.row)" |
|
|
|
>重打开</a> |
|
|
|
<a class="customer-a" v-if="scope.row.finishedFlag == 'N' && scope.row.histType == '发料'" @click="cuttingMaterialModal(scope.row)" |
|
|
|
<a class="customer-a" v-if="operatorData.operatorName != ''" @click="warnDeleteSfdcRollsConfirm(scope.row)" |
|
|
|
>删除卷</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -535,6 +535,8 @@ import { |
|
|
|
refreshWorkPlatformButtons, |
|
|
|
checkScheduleButton, |
|
|
|
createNewRoll, |
|
|
|
reopenSfdcRolls,/*重新打开卷操作*/ |
|
|
|
deleteSfdcRolls,/*删除sfdcRolls的操作*/ |
|
|
|
} from "@/api/yieldReport/produce_report_normal.js"; |
|
|
|
/*引入组件*/ |
|
|
|
import comSwitchOperator from "./com_switch_operator";/*切换操作员*/ |
|
|
|
@ -3289,8 +3291,66 @@ export default { |
|
|
|
this.$message.error(data.msg); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
/*提醒是否重新打开的提示*/ |
|
|
|
warnReopenSfdcRollsConfirm(sfdcRollRow){ |
|
|
|
this.$confirm('确实要重新打开卷'+sfdcRollRow.rollNo+'吗?', '提示', { |
|
|
|
confirmButtonText: '确认', |
|
|
|
celButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() =>{ |
|
|
|
//执行重新打开sfdcRolls记录的操作 |
|
|
|
this.reopenSfdcRollsOperation(sfdcRollRow); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
/*执行重新sfdcRolls表的记录*/ |
|
|
|
reopenSfdcRollsOperation(sfdcRollRow){ |
|
|
|
let sfdcRoll = {'site': this.scheduleData.site, 'orderNo': this.scheduleData.orderNo, |
|
|
|
'itemNo': this.scheduleData.itemNo, 'seqNo': this.scheduleData.seqNo, |
|
|
|
'rollNo': sfdcRollRow.rollNo, 'operatorId': this.scheduleData.operatorId}; |
|
|
|
reopenSfdcRolls(sfdcRoll).then(({data}) => { |
|
|
|
//判断是否成功 |
|
|
|
if(data.code == 500){ |
|
|
|
this.$message.error(data.msg); |
|
|
|
}else{ |
|
|
|
this.$message.info(data.resultMap.resultMsg); |
|
|
|
//刷新报工的页面 |
|
|
|
this.refreshPageData(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
/*提醒是否删除的提示*/ |
|
|
|
warnDeleteSfdcRollsConfirm(sfdcRollRow){ |
|
|
|
this.$confirm('确实要删除该卷吗?', '提示', { |
|
|
|
confirmButtonText: '确认', |
|
|
|
celButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() =>{ |
|
|
|
//执行重新打开sfdcRolls记录的操作 |
|
|
|
this.deleteSfdcRollsOperation(sfdcRollRow); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
/*执行删除sfdcRolls的数据功能*/ |
|
|
|
deleteSfdcRollsOperation(sfdcRollRow){ |
|
|
|
let sfdcRoll = {'site': this.scheduleData.site, 'orderNo': this.scheduleData.orderNo, |
|
|
|
'itemNo': this.scheduleData.itemNo, 'seqNo': this.scheduleData.seqNo, |
|
|
|
'rollNo': sfdcRollRow.rollNo, 'oriRollNo': sfdcRollRow.oriRollNo, 'operatorId': this.scheduleData.operatorId}; |
|
|
|
//执行删除卷的操作 |
|
|
|
deleteSfdcRolls(sfdcRoll).then(({data}) => { |
|
|
|
//判断是否成功 |
|
|
|
if(data.code == 500){ |
|
|
|
this.$message.error(data.msg); |
|
|
|
}else{ |
|
|
|
this.$message.info(data.resultMap.resultMsg); |
|
|
|
//刷新报工的页面 |
|
|
|
this.refreshPageData(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
created() { |
|
|
|
|