| 
					
				 | 
			
			
				@@ -7,7 +7,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <a id="salesReturnCheck-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <span style="margin: 0 15px;color: #666;">客户名称:{{ ordeDetail&&ordeDetail.buyerName || '--' }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <span style="margin: 0 10px;color: #666;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            退货类别:{{ordeDetail&&ordeDetail.goodFlagDictValue}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            退货类别:{{ ordeDetail&&ordeDetail.goodFlagDictValue }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </a-page-header> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -77,7 +77,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <!-- 备注 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot="remarksInfo" slot-scope="text, record"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <a-input size="small" v-model.trim="record.returnReasonRemarks" @blur="e => updateReason(e, record, 1)" :maxlength="50" allowClear placeholder="请输入备注信息(最多50字符)"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <a-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-model.trim="record.returnReasonRemarks" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              @blur="e => updateReason(e, record, 1)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :maxLength="50" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              allowClear 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              placeholder="请输入备注信息(最多50字符)"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </s-table> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <div class="footer-btn"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -96,19 +102,19 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <chooseTypeModal :openModal="openTypeModal" :type="actionType" @close="openTypeModal=false" @confirm="plconfirm"></chooseTypeModal> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 批量设置退货原因 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <commonModal modalTit="批量设置退货原因" :openModal="showPlModal" @cancel="showPlModal=false" @ok="setPlReturnReason"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-       <div style="text-align: left;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-         <div style="line-height: 24px;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           <div><span style="color:red;">*</span>退货原因</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           <div><returnReason size="large" v-model="plReturnReason"></returnReason></div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-         <div style="line-height: 24px;margin-top:10px;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           <a-checkbox :checked="showEditRemarks" @change="e => showEditRemarks=!showEditRemarks">是否设置备注</a-checkbox> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-         <div style="line-height: 24px;margin-top:10px;" v-if="showEditRemarks"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           <div>备注</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           <div><a-input size="large" :maxlength="50" placeholder="请输入备注(最多50字符)" v-model="plReturnRemark"></a-input></div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-       </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <div style="text-align: left;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <div style="line-height: 24px;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div><span style="color:red;">*</span>退货原因</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div><returnReason size="large" v-model="plReturnReason"></returnReason></div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <div style="line-height: 24px;margin-top:10px;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <a-checkbox :checked="showEditRemarks" @change="e => showEditRemarks=!showEditRemarks">是否设置备注</a-checkbox> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <div style="line-height: 24px;margin-top:10px;" v-if="showEditRemarks"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div>备注</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div><a-input size="large" :maxLength="50" placeholder="请输入备注(最多50字符)" v-model="plReturnRemark"></a-input></div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </commonModal> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -196,7 +202,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   computed: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    goodFlag() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    goodFlag () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       return this.ordeDetail && this.ordeDetail.goodFlag || '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     selNums () { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -313,10 +319,10 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         salesReturnDetailSetReason({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           salesReturnBillDetailSnList: snList, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          salesReturnBillSn : this.orderSn, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          salesReturnBillSn: this.orderSn, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           returnReason: rows ? rows.dispName : '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           returnReasonCode: this.plReturnReason, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          returnReasonRemarks: this.plReturnRemark, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          returnReasonRemarks: this.showEditRemarks ? this.plReturnRemark || '' : undefined, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           goodFlag: rows.lookupCode 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (res.status == 200) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -334,15 +340,15 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         salesReturnDetailSn: record.salesReturnDetailSn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 退货原因 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if(type == 0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (type == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         const rows = this.returnReasonlist.find(item => item.code == val) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        params.returnReasonCode = val||'' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        params.returnReasonCode = val || '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         params.returnReason = rows ? rows.dispName : '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         params.goodFlag = rows.lookupCode 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 备注 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         params.returnReasonRemarks = val.target.value 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(!params.returnReasonRemarks){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (!params.returnReasonRemarks) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -414,8 +420,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getOrderDetail () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       salesReturnDetail({ sn: this.orderSn }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.ordeDetail = res.data || null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(res.data){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.returnReasonlist = [...this.$store.state.app.goodReturnReason,...this.$store.state.app.defectiveReturnReason] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (res.data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.returnReasonlist = [...this.$store.state.app.goodReturnReason, ...this.$store.state.app.defectiveReturnReason] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 |