|
|
|
@ -894,52 +894,49 @@ export default {
|
|
|
|
|
updates2(){
|
|
|
|
|
let selectRecords = this.$refs.xGrid.getCheckboxRecords()
|
|
|
|
|
|
|
|
|
|
if(this.queryParam.rqopt!=='01'){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(selectRecords.length>0){
|
|
|
|
|
for(let i = 0; i < selectRecords.length; i++) {
|
|
|
|
|
console.log(selectRecords[i].ydid)
|
|
|
|
|
if(this.queryParam.rqopt==='01'){
|
|
|
|
|
if(selectRecords.length>0){
|
|
|
|
|
for(let i = 0; i < selectRecords.length; i++) {
|
|
|
|
|
console.log(selectRecords[i].ydid)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.inParam.dcch !==''){
|
|
|
|
|
// if(selectRecords[i].ydid!==null || selectRecords[i].ydid!==''){
|
|
|
|
|
// 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!==''){
|
|
|
|
|
selectRecords[i].pwwz = this.inParam.pwwz
|
|
|
|
|
}
|
|
|
|
|
if(this.inParam.jhrq !==''){
|
|
|
|
|
selectRecords[i].dhh = this.inParam.jhrq
|
|
|
|
|
}
|
|
|
|
|
if(this.inParam.bz !==''){
|
|
|
|
|
selectRecords[i].bz = this.inParam.bz
|
|
|
|
|
}
|
|
|
|
|
if(this.inParam.dcch !==''){
|
|
|
|
|
// if(selectRecords[i].ydid!==null || selectRecords[i].ydid!==''){
|
|
|
|
|
// 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!==''){
|
|
|
|
|
selectRecords[i].pwwz = this.inParam.pwwz
|
|
|
|
|
}
|
|
|
|
|
if(this.inParam.jhrq !==''){
|
|
|
|
|
selectRecords[i].dhh = this.inParam.jhrq
|
|
|
|
|
}
|
|
|
|
|
if(this.inParam.bz !==''){
|
|
|
|
|
selectRecords[i].bz = this.inParam.bz
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -949,9 +946,21 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
this.$refs.xGrid.updateData(this.list)
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
if(selectRecords.length>0){
|
|
|
|
|
for(let i = 0; i < selectRecords.length; i++) {
|
|
|
|
|
if(this.inParam.bz !==''){
|
|
|
|
|
selectRecords[i].bz = this.inParam.bz
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.$refs.xGrid.updateData(this.list)
|
|
|
|
|
}
|
|
|
|
|
this.$refs.xGrid.updateData(this.list)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
updates(type){
|
|
|
|
|
|
|
|
|
@ -1165,10 +1174,10 @@ export default {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(this.inParam.dcpl ===''){
|
|
|
|
|
this.$message({ message: '请输入需求批量', type: 'warning' })
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
// if(this.inParam.dcpl ===''){
|
|
|
|
|
// this.$message({ message: '请输入需求批量', type: 'warning' })
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
let obj =this.$refs.xGrid.getTableData().visibleData;
|
|
|
|
|
if(obj.length<=0){
|
|
|
|
|
this.$message({ message: '页面无数据', type: 'warning' })
|
|
|
|
|