|
@@ -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) {
|