| 
					
				 | 
			
			
				@@ -7,7 +7,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <a id="custConfirm-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> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -30,7 +30,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <a-button style="margin-left:5px;" :loading="loading" @click="openPlSetReason">批量设置退货原因</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <span style="margin-left:10px;" v-if="selNums">已选{{ selNums }}项</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <a-button type="primary" :loading="loading" class="button-info" @click="setNewSalesRetrunOrder">生成新销退单</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <div style="float:right;color:#999;margin-top:8px;">说明:红色行表示收货时新增的产品;黄色表示客服确认时新增的产品;退货原因文字显示红色表示退货原因和退货类别不一致;</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div style="float:right;color:#999;margin-top:8px;">说明:红色行表示收货时新增的产品;黄色行表示客服确认时新增的产品;退货原因文字显示红色表示退货原因和退货类别不一致;</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <!-- 已选配件列表 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <s-table 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -120,11 +120,17 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <!-- 退货原因 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot="returnReason" slot-scope="text, record"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <returnReason v-if="record.isEdit" v-model="record.returnReasonCode"></returnReason> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <span v-else>{{ record.returnReason||'--' }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span v-else title="退货原因和退货类别不一致" :style="{color:record.needHandleFlag==1?'red':''}">{{ record.returnReason||'--' }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <!-- 备注 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot="remarks" slot-scope="text, record"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <a-input v-if="record.isEdit" size="small" :maxlength="50" v-model.trim="record.returnReasonRemarks" allowClear placeholder="请输入备注信息(最多50字符)"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <a-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-if="record.isEdit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :maxlength="50" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-model.trim="record.returnReasonRemarks" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              allowClear 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              placeholder="请输入备注信息(最多50字符)"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <span v-else>{{ record.returnReasonRemarks||'--' }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <!-- 操作 --> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -284,7 +290,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   computed: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    goodFlag() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    goodFlag () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       return this.ordeDetail && this.ordeDetail.goodFlag || '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     selNums () { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -336,7 +342,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           arr.map(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             snList.push(item.salesReturnDetailSn) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          salesReturnAgainCreate({ sourceBillSn: _this.orderSn,salesReturnBillDetailSnList: snList }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          salesReturnAgainCreate({ sourceBillSn: _this.orderSn, salesReturnBillDetailSnList: snList }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               _this.resetSearchForm(false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -360,6 +366,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const params = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         'salesReturnBillSn': this.orderSn, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         'salesReturnBillNo': this.ordeDetail.salesReturnBillNo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'goodFlag': this.goodFlag, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ...data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       insertByCustomerService(params).then(res => { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -411,7 +418,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         salesReturnDetailSetReason({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           salesReturnBillDetailSnList: snList, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          salesReturnBillSn : this.orderSn, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          salesReturnBillSn: this.orderSn, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           returnReason: rows ? rows.dispName : '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           returnReasonCode: this.plReturnReason, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           returnReasonRemarks: this.plReturnRemark 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -481,8 +488,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] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 |