master
xhj 8 months ago
parent 32c000c491
commit c1f31c93c3

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

Loading…
Cancel
Save