Explorar el Código

Merge branch 'develop_yh36_2' of jianguan-web/jg-ocs-html into pre-release

李磊 hace 1 año
padre
commit
43433f6699
Se han modificado 1 ficheros con 13 adiciones y 12 borrados
  1. 13 12
      src/views/salesReturnManagement/salesReturn/salesReturnEdit.vue

+ 13 - 12
src/views/salesReturnManagement/salesReturn/salesReturnEdit.vue

@@ -367,7 +367,7 @@ export default {
           this.resetTable(false)
           this.$message.success(res.message)
         } else {
-          row.returnReasonCode = record.returnReasonBackups
+          record.returnReasonCode = record.returnReasonBackups
         }
         this.spinning = false
       })
@@ -375,9 +375,10 @@ export default {
     // 批量设置退货原因
     openPlSetReason (type) {
       // 整单设置
-      if(type==1){
+      if (type == 1) {
+        this.$refs.table.clearSelected()
         this.showPlModal = true
-      }else{
+      } else {
         if (this.selNums) {
           this.showPlModal = true
         } else {
@@ -391,22 +392,22 @@ export default {
       } else {
         const rows = this.returnReasonlist.find(item => item.code == this.plReturnReason)
         const params = {
-            salesReturnBillSn: this.orderSn,
-            returnReason: rows ? rows.dispName : '',
-            returnReasonCode: this.plReturnReason,
-            returnReasonRemarks: this.showEditRemarks ? this.plReturnRemark || '' : undefined
-          }
+          salesReturnBillSn: this.orderSn,
+          returnReason: rows ? rows.dispName : '',
+          returnReasonCode: this.plReturnReason,
+          returnReasonRemarks: this.showEditRemarks ? this.plReturnRemark || '' : undefined
+        }
         // 批量或整单设置
         const funs = this.selNums ? salesReturnDetailSetReason : salesReturnUpdateAllReason
-        
+
         // 批量设置
-        if(this.selNums){
+        if (this.selNums) {
           const snList = []
           const arr = this.rowSelectionInfo && this.rowSelectionInfo.selectedRows || []
           arr.map(item => snList.push(item.salesReturnDetailSn))
           params.salesReturnBillDetailSnList = snList
-        } 
-        
+        }
+
         this.spinning = true
         funs(params).then(res => {
           if (res.status == 200) {