|
@@ -44,7 +44,7 @@
|
|
|
<a-alert style="margin-bottom: 10px;" type="info">
|
|
|
<div slot="message" class="total-bar">
|
|
|
<div>
|
|
|
- <span>申请退货数量:{{ ordeDetail&&(ordeDetail.totalQty || ordeDetail.totalQty==0) ? ordeDetail.totalQty : '--' }};</span>
|
|
|
+ <span>申请退货数量:{{ ordeDetail&&(ordeDetail.totalInitialQty || ordeDetail.totalInitialQty==0) ? ordeDetail.totalInitialQty : '--' }};</span>
|
|
|
<span v-if="$hasPermissions('B_isShowPrice')">参考退货金额:{{ ordeDetail&&(ordeDetail.totalAmount || ordeDetail.totalAmount==0) ? ordeDetail.totalAmount : '--' }}元;</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -90,7 +90,7 @@
|
|
|
<a-input-number
|
|
|
id="salesReturn-qty"
|
|
|
size="small"
|
|
|
- v-model="record.qty"
|
|
|
+ v-model="record.initialQty"
|
|
|
:precision="0"
|
|
|
:min="0"
|
|
|
:max="999999"
|
|
@@ -199,7 +199,7 @@ export default {
|
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
|
data.list[i].no = no + i + 1
|
|
|
- data.list[i].qtyBackups = data.list[i].qty
|
|
|
+ data.list[i].qtyBackups = data.list[i].initialQty
|
|
|
data.list[i].priceBackups = data.list[i].price
|
|
|
}
|
|
|
this.disabled = false
|
|
@@ -221,7 +221,7 @@ export default {
|
|
|
{ title: '产品编码', dataIndex: 'productEntity.code', width: '18%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品名称', dataIndex: 'productEntity.name', width: '25%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '单位', dataIndex: 'productEntity.unit', align: 'center', width: '6%', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '申请退货数量', dataIndex: 'qty', align: 'center', width: '8%', scopedSlots: { customRender: 'qty' } },
|
|
|
+ { title: '申请退货数量', dataIndex: 'initialQty', align: 'center', width: '8%', scopedSlots: { customRender: 'qty' } },
|
|
|
{ title: '退货原因', dataIndex: 'returnReason', align: 'center', width: '13%', scopedSlots: { customRender: 'returnReason' } },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
|
]
|
|
@@ -245,21 +245,21 @@ export default {
|
|
|
this.spinning = true
|
|
|
salesReturnDetailUpdateQty({
|
|
|
salesReturnDetailSn: record.salesReturnDetailSn,
|
|
|
- qty: record.qty,
|
|
|
+ initialQty: record.initialQty,
|
|
|
price: record.price
|
|
|
}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.resetTable(false)
|
|
|
this.$message.success(res.message)
|
|
|
this.spinning = false
|
|
|
- record.qtyBackups = record.qty
|
|
|
+ record.qtyBackups = record.initialQty
|
|
|
} else {
|
|
|
this.spinning = false
|
|
|
- record.qty = valBackups
|
|
|
+ record.initialQty = valBackups
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- record.qty = valBackups
|
|
|
+ record.initialQty = valBackups
|
|
|
}
|
|
|
},
|
|
|
// 修改退货原因
|
|
@@ -334,7 +334,7 @@ export default {
|
|
|
'cost': row.lastStockCost,
|
|
|
'returnReason': row.returnReason,
|
|
|
'productSn': row.productSn,
|
|
|
- 'qty': row.qty
|
|
|
+ 'initialQty': row.qty
|
|
|
}
|
|
|
this.spinning = true
|
|
|
salesReturnDetailInsert(params).then(res => {
|