|
@@ -61,8 +61,8 @@
|
|
|
@change="onCellChange(record.id, 'qty', $event)" />
|
|
|
</template>
|
|
|
<!-- 退货原因 -->
|
|
|
- <template slot="remarks" slot-scope="text, record">
|
|
|
- <a-input placeholder="30个字符内" maxlength="30" v-model="record.remarks" @change="updateRemark(record)"></a-input>
|
|
|
+ <template slot="remark" slot-scope="text, record">
|
|
|
+ <a-input placeholder="30个字符内" maxlength="30" v-model="record.remark" @blur="updateRemark(record)"></a-input>
|
|
|
</template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
@@ -174,10 +174,10 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
title: '退货原因',
|
|
|
- dataIndex: 'remarks',
|
|
|
+ dataIndex: 'remark',
|
|
|
align: 'center',
|
|
|
width: 150,
|
|
|
- scopedSlots: { customRender: 'remarks' }
|
|
|
+ scopedSlots: { customRender: 'remark' }
|
|
|
},
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }
|
|
|
],
|
|
@@ -226,7 +226,7 @@ export default {
|
|
|
updateRemark (row) {
|
|
|
salesReturnDetailUpdateReason({
|
|
|
salesReturnDetailSn: row.salesReturnDetailSn,
|
|
|
- remarks: row.remarks
|
|
|
+ remark: row.remark
|
|
|
}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.resetSearchForm(true)
|