|  | @@ -659,7 +659,7 @@ export default {
 | 
	
		
			
				|  |  |            },
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  |              label: '最迟付款日期',
 | 
	
		
			
				|  |  | -            prop: 'LatestDate',
 | 
	
		
			
				|  |  | +            prop: 'latestDate',
 | 
	
		
			
				|  |  |              type:'date',
 | 
	
		
			
				|  |  |              rules: [
 | 
	
		
			
				|  |  |                {
 | 
	
	
		
			
				|  | @@ -745,28 +745,7 @@ export default {
 | 
	
		
			
				|  |  |        let id = this.detailData.id.replace(/\"/g, "")
 | 
	
		
			
				|  |  |        detailListData(id).then(res => {
 | 
	
		
			
				|  |  |          this.form = res.data.data;
 | 
	
		
			
				|  |  | -        this.oldForm = Object.assign({},res.data.data);
 | 
	
		
			
				|  |  | -        this.configuration.dicData = this.form.corpsName
 | 
	
		
			
				|  |  | -        this.pConfiguration.dicData = this.form.purchaserName
 | 
	
		
			
				|  |  | -        if(res.data.data.itemsVOList){
 | 
	
		
			
				|  |  | -          this.contactsData = res.data.data.itemsVOList
 | 
	
		
			
				|  |  | -          this.oldContactsData = this.deepClone(res.data.data.itemsVOList)
 | 
	
		
			
				|  |  | -          //明细列表内是否有 已经收货的 如果有  则禁用一些输入框
 | 
	
		
			
				|  |  | -          this.takeDisabled = this.contactsData.map(item =>{if(item.actualQuantity != 0) return true}).some(item => {return item == true})
 | 
	
		
			
				|  |  | -          this.basicData.column.forEach(item =>{
 | 
	
		
			
				|  |  | -            if(item.prop == "businesDate" || item.prop == "requiredDeliveryDate"  || item.prop == "requiredArrivalDate" || item.prop == ""){
 | 
	
		
			
				|  |  | -              item.disabled = this.takeDisabled
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -          })
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        if(res.data.data.orderFeesList){
 | 
	
		
			
				|  |  | -          this.orderFeesList = res.data.data.orderFeesList
 | 
	
		
			
				|  |  | -          this.oldFeesList = this.deepClone(res.data.data.orderFeesList)
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        if( res.data.data.orderFilesList){
 | 
	
		
			
				|  |  | -          this.orderFilesList = res.data.data.orderFilesList
 | 
	
		
			
				|  |  | -          this.oldFilesList = this.deepClone(res.data.data.orderFilesList)
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | +        this.afterEcho(res.data.data)
 | 
	
		
			
				|  |  |        }).finally(()=>{
 | 
	
		
			
				|  |  |          this.buttonLoading = false;
 | 
	
		
			
				|  |  |        })
 | 
	
	
		
			
				|  | @@ -898,21 +877,7 @@ export default {
 | 
	
		
			
				|  |  |                this.$message.success("操作成功!")
 | 
	
		
			
				|  |  |                detailListData(this.form.id).then(res => {
 | 
	
		
			
				|  |  |                  this.form = res.data.data;
 | 
	
		
			
				|  |  | -                this.oldForm = Object.assign({},res.data.data);
 | 
	
		
			
				|  |  | -                this.configuration.dicData = this.form.corpsName
 | 
	
		
			
				|  |  | -                this.pConfiguration.dicData = this.form.purchaserName
 | 
	
		
			
				|  |  | -                if(res.data.data.itemsVOList){
 | 
	
		
			
				|  |  | -                  this.contactsData = res.data.data.itemsVOList
 | 
	
		
			
				|  |  | -                  this.oldContactsData = this.deepClone(res.data.data.itemsVOList)
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -                if(res.data.data.orderFeesList){
 | 
	
		
			
				|  |  | -                  this.orderFeesList = res.data.data.orderFeesList
 | 
	
		
			
				|  |  | -                  this.oldFeesList = this.deepClone(res.data.data.orderFeesList)
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -                if( res.data.data.orderFilesList){
 | 
	
		
			
				|  |  | -                  this.orderFilesList = res.data.data.orderFilesList
 | 
	
		
			
				|  |  | -                  this.oldFilesList = this.deepClone(res.data.data.orderFilesList)
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | +                this.afterEcho(res.data.data)
 | 
	
		
			
				|  |  |                })
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            }).finally(()=>{
 | 
	
	
		
			
				|  | @@ -926,6 +891,31 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    //回调
 | 
	
		
			
				|  |  | +    afterEcho(form){
 | 
	
		
			
				|  |  | +      this.oldForm = Object.assign({},form);
 | 
	
		
			
				|  |  | +      this.configuration.dicData = this.form.corpsName
 | 
	
		
			
				|  |  | +      this.pConfiguration.dicData = this.form.purchaserName
 | 
	
		
			
				|  |  | +      if(form.itemsVOList){
 | 
	
		
			
				|  |  | +        this.contactsData = form.itemsVOList
 | 
	
		
			
				|  |  | +        this.oldContactsData = this.deepClone(form.itemsVOList)
 | 
	
		
			
				|  |  | +        //明细列表内是否有 已经收货的 如果有  则禁用一些输入框
 | 
	
		
			
				|  |  | +        this.takeDisabled = this.contactsData.map(item =>{if(item.actualQuantity != 0) return true}).some(item => {return item == true})
 | 
	
		
			
				|  |  | +        this.basicData.column.forEach(item =>{
 | 
	
		
			
				|  |  | +          if(item.prop == "businesDate" || item.prop == "requiredDeliveryDate"  || item.prop == "requiredArrivalDate" || item.prop == "latestDate"  || item.prop == ""){
 | 
	
		
			
				|  |  | +            item.disabled = this.takeDisabled
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      if(form.orderFeesList){
 | 
	
		
			
				|  |  | +        this.orderFeesList = form.orderFeesList
 | 
	
		
			
				|  |  | +        this.oldFeesList = this.deepClone(form.orderFeesList)
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      if( form.orderFilesList){
 | 
	
		
			
				|  |  | +        this.orderFilesList = form.orderFilesList
 | 
	
		
			
				|  |  | +        this.oldFilesList = this.deepClone(form.orderFilesList)
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      selectionContact(row){
 | 
	
		
			
				|  |  |        this.selectContact = row;
 | 
	
		
			
				|  |  |      },
 | 
	
	
		
			
				|  | @@ -1005,7 +995,7 @@ export default {
 | 
	
		
			
				|  |  |          price:this.form.salesPrice,
 | 
	
		
			
				|  |  |          corpsName:this.form.corpsName,
 | 
	
		
			
				|  |  |          corpId:this.form.corpId,
 | 
	
		
			
				|  |  | -        accDate:this.form.businesDate,
 | 
	
		
			
				|  |  | +        // accDate:this.billType:   this.form.businesDate,
 | 
	
		
			
				|  |  |          currency:this.form.currency,
 | 
	
		
			
				|  |  |          exchangeRate:this.form.exchangeRate,
 | 
	
		
			
				|  |  |          srcParentId:this.form.id,
 |