|
@@ -102,6 +102,9 @@
|
|
|
<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>
|
|
@@ -177,8 +180,9 @@ export default {
|
|
|
},
|
|
|
rowSelectionInfo: null,
|
|
|
plReturnReason: undefined,
|
|
|
- plReturnRemark: '',
|
|
|
+ plReturnRemark: undefined,
|
|
|
showPlModal: false,
|
|
|
+ showEditRemarks: false,
|
|
|
returnReasonlist: []
|
|
|
}
|
|
|
},
|
|
@@ -186,7 +190,8 @@ export default {
|
|
|
showPlModal (newValue, oldValue) {
|
|
|
if (!newValue) {
|
|
|
this.plReturnReason = undefined
|
|
|
- this.plReturnRemark = ''
|
|
|
+ this.plReturnRemark = undefined
|
|
|
+ this.showEditRemarks = false
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -311,7 +316,8 @@ export default {
|
|
|
salesReturnBillSn : this.orderSn,
|
|
|
returnReason: rows ? rows.dispName : '',
|
|
|
returnReasonCode: this.plReturnReason,
|
|
|
- returnReasonRemarks: this.plReturnRemark
|
|
|
+ returnReasonRemarks: this.plReturnRemark,
|
|
|
+ goodFlag: rows.lookupCode
|
|
|
}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.showPlModal = false
|
|
@@ -325,14 +331,14 @@ export default {
|
|
|
// 修改退货原因
|
|
|
updateReason (val, record, type) {
|
|
|
const params = {
|
|
|
- salesReturnDetailSn: record.salesReturnDetailSn,
|
|
|
- goodFlag: this.goodFlag
|
|
|
+ salesReturnDetailSn: record.salesReturnDetailSn
|
|
|
}
|
|
|
// 退货原因
|
|
|
if(type == 0){
|
|
|
const rows = this.returnReasonlist.find(item => item.code == val)
|
|
|
params.returnReasonCode = val||''
|
|
|
params.returnReason = rows ? rows.dispName : ''
|
|
|
+ params.goodFlag = rows.lookupCode
|
|
|
}else{
|
|
|
// 备注
|
|
|
params.returnReasonRemarks = val.target.value
|