master
xhj 8 months ago
parent 63f587387d
commit a4e1114925

@ -189,7 +189,7 @@
<el-input v-model="inParam.pl" type="search" placeholder="需求批量"></el-input> <el-input v-model="inParam.dcpl" type="search" placeholder="需求批量"></el-input>
<el-select v-model="inParam.lx" placeholder="流向" clearable style="width: 15%"> <el-select v-model="inParam.lx" placeholder="流向" clearable style="width: 15%">
<el-option <el-option
@ -376,7 +376,7 @@ export default {
], ],
inParam:{ inParam:{
dcch:'', dcch:'',
pl:'', dcpl:'',
pwwz:'', pwwz:'',
qgkw:'', qgkw:'',
jhrq:'', jhrq:'',
@ -851,14 +851,17 @@ 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)
if(selectRecords[i].ydid!==null){
this.$message({ message: '改数据已经匹配生产计划', type: 'warning' })
return
}
if(this.inParam.dcch !==''){ if(this.inParam.dcch !==''){
selectRecords[i].zych = this.inParam.dcch selectRecords[i].zych = this.inParam.dcch
} }
if(this.inParam.pl !==''){ if(this.inParam.dcpl !==''){
selectRecords[i].zypl = this.inParam.pl selectRecords[i].zypl = this.inParam.dcpl
} }
if(this.inParam.lx !==''){ if(this.inParam.lx !==''){
selectRecords[i].zylx = this.inParam.lx selectRecords[i].zylx = this.inParam.lx
@ -1224,8 +1227,8 @@ export default {
kcAdnSlBd1( kcAdnSlBd1(
// "data1":this.$refs.xGrid.getTableData().visibleData, // "data1":this.$refs.xGrid.getTableData().visibleData,
// "data2":this.$refs.xGrid1.getTableData().visibleData // "data2":this.$refs.xGrid1.getTableData().visibleData
this.$refs.xGrid.getUpdateRecords(),
this.$refs.xGrid.getCheckboxRecords()
).then((res) => { ).then((res) => {
// if(res.success){ // if(res.success){
this.initList() this.initList()

Loading…
Cancel
Save