|
@@ -357,8 +357,17 @@
|
|
|
this.selectedRows = selectionRows;
|
|
|
},
|
|
|
handleOk(){
|
|
|
+ var idExistence = 'yes'
|
|
|
+ //判断有没有未保存数据
|
|
|
+ this.selectedRows.map(item=>{
|
|
|
+ if(!item.id||item.id==''){
|
|
|
+ idExistence = 'no'
|
|
|
+ }
|
|
|
+ })
|
|
|
if(this.selectedRows.length==0){
|
|
|
this.$message.warning('请勾选数据')
|
|
|
+ }else if(idExistence=='no'){
|
|
|
+ this.$message.warning('请先保存成品明细')
|
|
|
}else{
|
|
|
this.loading =true
|
|
|
postAction('/productionOrder/madeProductionOrders/outMadeProductionOrdersOutList', {madeProductionOrdersInList:this.selectedRows}).then((res) => {
|