|
@@ -94,7 +94,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { commonMixin } from '@/utils/mixin'
|
|
|
-import { queryStockProductPage } from '@/api/stock'
|
|
|
+import { queryDealerProductPage } from '@/api/salesReturn'
|
|
|
import returnReason from '@/views/common/returnReason'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
export default {
|
|
@@ -127,7 +127,7 @@ export default {
|
|
|
loadData: parameter => {
|
|
|
this.disabled = true
|
|
|
this.queryParam.dealerSn = this.buyerSn
|
|
|
- return queryStockProductPage(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
+ return queryDealerProductPage(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
let data
|
|
|
if (res.status == 200) {
|
|
|
data = res.data
|
|
@@ -167,12 +167,12 @@ export default {
|
|
|
},
|
|
|
pageInit (buyerSn, warehouseSn) {
|
|
|
this.buyerSn = buyerSn
|
|
|
- this.queryParam.warehouseSn = warehouseSn
|
|
|
+ // this.queryParam.warehouseSn = warehouseSn
|
|
|
const arr = [
|
|
|
{ title: '序号', dataIndex: 'no', width: '6%', align: 'center' },
|
|
|
- { title: '产品编码', dataIndex: 'productCode', width: '24%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品名称', dataIndex: 'productName', width: '27%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '单位', dataIndex: 'productUnit', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '产品编码', dataIndex: 'code', width: '24%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '产品名称', dataIndex: 'name', width: '27%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
+ { title: '单位', dataIndex: 'unit', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '申请退货数量', dataIndex: 'qty', width: '9%', align: 'center', scopedSlots: { customRender: 'qty' } },
|
|
|
{ title: '退货原因', dataIndex: 'returnReason', width: '10%', align: 'center', scopedSlots: { customRender: 'returnReason' } },
|
|
|
{ slots: { title: 'customTitle' }, scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|