|  | @@ -433,37 +433,45 @@
 | 
	
		
			
				|  |  |          formData.id = '';
 | 
	
		
			
				|  |  |          formData.billCode = '';
 | 
	
		
			
				|  |  |          formData.submit= undefined;
 | 
	
		
			
				|  |  | +        formData.sourceCode = '';
 | 
	
		
			
				|  |  | +        formData.sourceCode2 = '';
 | 
	
		
			
				|  |  | +        formData.project=''
 | 
	
		
			
				|  |  | +        formData.projectName=''
 | 
	
		
			
				|  |  |          //子表数据
 | 
	
		
			
				|  |  |          const PurOrderFormShipFormShipDataList = await queryPurOrderFormShipFormShippTable(id);
 | 
	
		
			
				|  |  |          PurOrderFormShipFormShipTable.dataSource = [...PurOrderFormShipFormShipDataList];
 | 
	
		
			
				|  |  | +        data.map(item=>{
 | 
	
		
			
				|  |  | +          item.sourceId=''
 | 
	
		
			
				|  |  | +          item.sourceType =''
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  |          purOrderFormShipFormProductTable.dataSource = [...data];
 | 
	
		
			
				|  |  | -        isSelect();
 | 
	
		
			
				|  |  | +        notAllowEdit.value = false;
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        // 判断有没有参照的子表
 | 
	
		
			
				|  |  | -      function isSelect() {
 | 
	
		
			
				|  |  | -        var arrQuo = [],
 | 
	
		
			
				|  |  | -          arrCon = [];
 | 
	
		
			
				|  |  | -        purOrderFormShipFormProductTable.dataSource.map((item) => {
 | 
	
		
			
				|  |  | -          var sign = '';
 | 
	
		
			
				|  |  | -          sign = item.sourceId ? item.sourceId.substring(0, 3) : '';
 | 
	
		
			
				|  |  | -          if (item.sourceId && sign == 'Quo') {
 | 
	
		
			
				|  |  | -            arrQuo.push(item.sourceId);
 | 
	
		
			
				|  |  | -          } else if (item.sourceId && sign == 'Con') {
 | 
	
		
			
				|  |  | -            arrCon.push(item.sourceId);
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | -        if (arrQuo.length == 0 && arrCon.length == 0) {
 | 
	
		
			
				|  |  | -          formData.sourceCode2 = '';
 | 
	
		
			
				|  |  | -          formData.sourceCode = '';
 | 
	
		
			
				|  |  | -          notAllowEdit.value = false;
 | 
	
		
			
				|  |  | -        } else if (arrQuo.length == 0) {
 | 
	
		
			
				|  |  | -          formData.sourceCode = '';
 | 
	
		
			
				|  |  | -          notAllowEdit.value = true;
 | 
	
		
			
				|  |  | -        } else if (arrCon.length == 0) {
 | 
	
		
			
				|  |  | -          formData.sourceCode2 = '';
 | 
	
		
			
				|  |  | -          notAllowEdit.value = true;
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | +      // function isSelect() {
 | 
	
		
			
				|  |  | +      //   var arrQuo = [],
 | 
	
		
			
				|  |  | +      //     arrCon = [];
 | 
	
		
			
				|  |  | +      //   purOrderFormShipFormProductTable.dataSource.map((item) => {
 | 
	
		
			
				|  |  | +      //     var sign = '';
 | 
	
		
			
				|  |  | +      //     sign = item.sourceId ? item.sourceId.substring(0, 3) : '';
 | 
	
		
			
				|  |  | +      //     if (item.sourceId && sign == 'Quo') {
 | 
	
		
			
				|  |  | +      //       arrQuo.push(item.sourceId);
 | 
	
		
			
				|  |  | +      //     } else if (item.sourceId && sign == 'Con') {
 | 
	
		
			
				|  |  | +      //       arrCon.push(item.sourceId);
 | 
	
		
			
				|  |  | +      //     }
 | 
	
		
			
				|  |  | +      //   });
 | 
	
		
			
				|  |  | +      //   if (arrQuo.length == 0 && arrCon.length == 0) {
 | 
	
		
			
				|  |  | +      //     formData.sourceCode2 = '';
 | 
	
		
			
				|  |  | +      //     formData.sourceCode = '';
 | 
	
		
			
				|  |  | +      //     notAllowEdit.value = false;
 | 
	
		
			
				|  |  | +      //   } else if (arrQuo.length == 0) {
 | 
	
		
			
				|  |  | +      //     formData.sourceCode = '';
 | 
	
		
			
				|  |  | +      //     notAllowEdit.value = true;
 | 
	
		
			
				|  |  | +      //   } else if (arrCon.length == 0) {
 | 
	
		
			
				|  |  | +      //     formData.sourceCode2 = '';
 | 
	
		
			
				|  |  | +      //     notAllowEdit.value = true;
 | 
	
		
			
				|  |  | +      //   }
 | 
	
		
			
				|  |  | +      // }
 | 
	
		
			
				|  |  |        async function edit(row) {
 | 
	
		
			
				|  |  |          //主表数据
 | 
	
		
			
				|  |  |          await queryMainData(row.id);
 |