|
|
|
@ -884,21 +884,34 @@ export default {
|
|
|
|
|
if(selectRecords.length>0){
|
|
|
|
|
for(let i = 0; i < selectRecords.length; i++) {
|
|
|
|
|
console.log(selectRecords[i].ydid)
|
|
|
|
|
if(selectRecords[i].ydid!==null){
|
|
|
|
|
this.$message({ message: '改数据已经匹配生产计划', type: 'warning' })
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.inParam.dcch !==''){
|
|
|
|
|
if(selectRecords[i].ydid!==null){
|
|
|
|
|
this.$message({ message: '改数据已经匹配生产计划', type: 'warning' })
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
selectRecords[i].zych = this.inParam.dcch
|
|
|
|
|
}
|
|
|
|
|
if(this.inParam.dcpl !==''){
|
|
|
|
|
if(selectRecords[i].ydid!==null){
|
|
|
|
|
this.$message({ message: '改数据已经匹配生产计划', type: 'warning' })
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
selectRecords[i].zypl = this.inParam.dcpl
|
|
|
|
|
}
|
|
|
|
|
if(this.inParam.lx !==''){
|
|
|
|
|
if(selectRecords[i].ydid!==null){
|
|
|
|
|
this.$message({ message: '改数据已经匹配生产计划', type: 'warning' })
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
selectRecords[i].zylx = this.inParam.lx
|
|
|
|
|
}
|
|
|
|
|
if(this.inParam.qgkw !==''){
|
|
|
|
|
if(selectRecords[i].ydid!==null){
|
|
|
|
|
this.$message({ message: '改数据已经匹配生产计划', type: 'warning' })
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
selectRecords[i].sldw = this.inParam.qgkw
|
|
|
|
|
}
|
|
|
|
|
if(this.inParam.pwwz!==''){
|
|
|
|
@ -1266,9 +1279,9 @@ export default {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
saveOne(){
|
|
|
|
|
if(this.queryParam.rqopt!=='01'){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
// if(this.queryParam.rqopt!=='01'){
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kcAdnSlBd1(
|
|
|
|
|