|  | @@ -1652,30 +1652,29 @@ export default {
 | 
	
		
			
				|  |  |                          this.$set(this.optionContactsBack, 'disabled', true)
 | 
	
		
			
				|  |  |                          this.$refs["form"].validate((valid, done) => {
 | 
	
		
			
				|  |  |                              done();
 | 
	
		
			
				|  |  | -                            console.log(valid);
 | 
	
		
			
				|  |  |                              if (valid) {
 | 
	
		
			
				|  |  |                                  submit({
 | 
	
		
			
				|  |  |                                      bsType: "XS",
 | 
	
		
			
				|  |  |                                      ...this.form
 | 
	
		
			
				|  |  |                                  }).then(res => {
 | 
	
		
			
				|  |  | -                                    console.log(1);
 | 
	
		
			
				|  |  |                                      this.refresh(res.data.data.id)
 | 
	
		
			
				|  |  |                                      this.isDisabledTask = false
 | 
	
		
			
				|  |  |                                      generateShipTask(this.form).then(res => {
 | 
	
		
			
				|  |  |                                          console.log(res.data);
 | 
	
		
			
				|  |  | +                                        this.$message.success("生成出库任务成功");
 | 
	
		
			
				|  |  |                                          // 将按钮文本更改为"撤销任务"
 | 
	
		
			
				|  |  |                                          this.buttonText = '撤销任务';
 | 
	
		
			
				|  |  |                                          // 将按钮颜色更改为对应的颜色
 | 
	
		
			
				|  |  |                                          this.buttonColor = 'warning'; // 比如改为warning
 | 
	
		
			
				|  |  |                                          this.refreshs(res.data.data.id, true)
 | 
	
		
			
				|  |  |                                          this.isContacts = true
 | 
	
		
			
				|  |  | -                                        this.$message.success("生成出库任务成功");
 | 
	
		
			
				|  |  |                                          this.isApplySettlement = false
 | 
	
		
			
				|  |  |                                          this.isAdd = true
 | 
	
		
			
				|  |  |                                          this.isDisabled = true
 | 
	
		
			
				|  |  |                                          this.isAddBtn = true
 | 
	
		
			
				|  |  |                                          this.editButton = true // 把编辑按钮显示出来
 | 
	
		
			
				|  |  | -                                    }).finally(() => {
 | 
	
		
			
				|  |  | +                                        loading.close();
 | 
	
		
			
				|  |  | +                                    }).catch(() => {
 | 
	
		
			
				|  |  |                                          loading.close();
 | 
	
		
			
				|  |  |                                      });
 | 
	
		
			
				|  |  |                                  }).catch(() => {
 |