| 
					
				 | 
			
			
				@@ -6,17 +6,24 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    @click="backToList">返回列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div v-if="!checkDisabled"  class="upper_right_button"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button type="primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                   size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                   v-if="viewDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                   class="el-button--small-yh " 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                   :loading="buttonLoading" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                   @click.stop="openDisabled()">编辑 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-button type="warning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    class="el-button--small-yh " 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    :loading="buttonLoading" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                   :disabled="!form.id" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                   :disabled="!form.id || viewDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    @click.stop="applyPayment('申请')">申请货款 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-button type="info" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    :loading="buttonLoading" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                   :disabled="!form.id" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                   :disabled="!form.id  || viewDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    @click="openApplicationDialog" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         >查看申请记录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-button> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -24,7 +31,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    class="el-button--small-yh " 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    :loading="buttonLoading" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                   :disabled="!form.id" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                   :disabled="!form.id  || viewDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    @click.stop="applyPayment('收费')">退款 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-button type="success" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -38,7 +45,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           class="el-button--small-yh " 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           type="primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          :disabled="disabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          :disabled="disabled  || viewDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           @click="editCustomer" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           :loading="buttonLoading" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         >{{form.id?'确认修改':'确认新增'}} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -233,14 +240,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                :disabled="row.actualQuantity !=0 || checkDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                :disabled="row.actualQuantity !=0 || checkDisabled || viewDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 @click="rowCell(row,index)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               >{{ row.$cellEdit ? '修改完成' : '修改' }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                :disabled="row.actualQuantity !=0 || checkDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                :disabled="row.actualQuantity !=0 || checkDisabled || viewDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 @click="rowDel(row,index)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               >删除 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </el-button> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -249,14 +256,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-button type="primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                          icon="el-icon-plus" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                          size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                         :disabled=" checkDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                         :disabled=" checkDisabled || viewDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                          @click="commoditySelection" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               >录入明细 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-button type="warning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                          size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                         :disabled="selectContact.length == 0 || checkDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                         :disabled="selectContact.length == 0 || checkDisabled || viewDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                          @click="beforePage(false)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               >生成收货单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </el-button> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -266,14 +273,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <fee-info 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           ref="feeInfo" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           :orderFeesList="orderFeesList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          :disabled="checkDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          :disabled="checkDisabled || viewDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           @beforeFinance="beforeFinance" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           feeUrl="" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <upload-file 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           ref="uploadFile" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           title="合同附件" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          :disabled="checkDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          :disabled="checkDisabled || viewDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           :orderFilesList="orderFilesList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           delUrl="" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -362,6 +369,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       commodityData: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       takeDisabled:false, //收货状态 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       checkDisabled:false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      viewDisabled:false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       tableData: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       billUrl:"/purchase/contract/index", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       billType:"", 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -765,6 +773,11 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.getWorkDicts("payment_term").then(res =>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.paymentTypeDic = res.data.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if(this.detailData.view){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.viewDisabled = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (this.detailData.id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.buttonLoading = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       let id = this.detailData.id.replace(/\"/g, "") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -979,6 +992,9 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.oldFilesList = this.deepClone(form.orderFilesList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    openDisabled(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.viewDisabled = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     selectionContact(row){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.selectContact = row; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 |