git代码同步-过滤发料仓库为空的行
This commit is contained in:
		
							parent
							
								
									bd29134fac
								
							
						
					
					
						commit
						956daa5329
					
				|  | @ -468,6 +468,31 @@ async function destIssue(flag) { | |||
|             indexs.push(item.index); | ||||
|         }); | ||||
|     } | ||||
|     //过滤发料仓库为空的行
 | ||||
|     let realDate = []; | ||||
|     let cflag = false; | ||||
|     let cindex = ''; | ||||
|     tableData.forEach((row) => { | ||||
|         let org_name = row.values['pk_org'].display; | ||||
|         if (!(row.values['cprojectid'] && row.values['cprojectid'].value && row.values['vsourcebillcode'] && row.values['vsourcebillcode'].value) && '山东泰开电力开关有限公司' == org_name) { | ||||
|             cflag = true; | ||||
|             cindex = indexMap.get(row.values.cpickm_bid.value) + 1; | ||||
|             return; | ||||
|         } | ||||
|     }); | ||||
|     if (cflag) { | ||||
|         toast({ | ||||
|             content: "第" + cindex + "行,项目、生产订单不能为空!", | ||||
|             color: 'danger', | ||||
|         }); | ||||
|         return; | ||||
|     } | ||||
|     tableData.forEach((row) => { | ||||
|         if (row.values['coutstockid'] && row.values['coutstockid'].value) { | ||||
|             realDate.push(row); | ||||
|         } | ||||
|     }); | ||||
|     tableData = realDate; | ||||
|     let checkErr = this.props.editTable.checkRequired(AREA.pickmViewTableArea, tableData); | ||||
|     if (!checkErr) { | ||||
|         return; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue