|
@@ -196,7 +196,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- goodFlag() {
|
|
|
+ goodFlag () {
|
|
|
return this.ordeDetail && this.ordeDetail.goodFlag || ''
|
|
|
},
|
|
|
columns () {
|
|
@@ -355,18 +355,18 @@ export default {
|
|
|
goodFlag: this.goodFlag
|
|
|
}
|
|
|
// 退货原因
|
|
|
- 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 : ''
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
// 备注
|
|
|
params.returnReasonRemarks = val.target.value
|
|
|
- if(!params.returnReasonRemarks){
|
|
|
+ if (!params.returnReasonRemarks) {
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
this.loading = true
|
|
|
this.spinning = true
|
|
|
salesReturnDetailUpdateReason(params).then(res => {
|
|
@@ -384,8 +384,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]
|
|
|
}
|
|
|
})
|
|
|
},
|