|
@@ -51,7 +51,7 @@
|
|
|
bordered>
|
|
|
<!-- 价格 -->
|
|
|
<template slot="price" slot-scope="text, record">
|
|
|
- <span v-if="grabFlag==1">{{ text }}</span>
|
|
|
+ <span v-if="grabFlag==1">{{ toThousands(text) }}</span>
|
|
|
<div v-else>
|
|
|
<a-input-number
|
|
|
size="small"
|
|
@@ -131,6 +131,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { commonMixin } from '@/utils/mixin'
|
|
|
import { salesReturnProductList } from '@/api/salesReturn'
|
|
|
import { stockList } from '@/api/stock'
|
|
|
import { STable, VSelect } from '@/components'
|
|
@@ -138,6 +139,7 @@ import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
export default {
|
|
|
name: 'QueryPart',
|
|
|
components: { STable, VSelect, rangeDate },
|
|
|
+ mixins: [commonMixin],
|
|
|
props: {
|
|
|
// buyerSn: {
|
|
|
// type: [Number, String],
|
|
@@ -222,6 +224,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
+ const _this = this
|
|
|
// 抓单
|
|
|
if (this.grabFlag == 1) {
|
|
|
this.columns = [
|
|
@@ -231,7 +234,7 @@ export default {
|
|
|
{ title: '原厂编码', dataIndex: 'dealerProductEntity.origCode', width: '14%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '销售单号', dataIndex: 'salesBillNo', width: '13%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '销售审核时间', dataIndex: 'auditDate', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '售价', dataIndex: 'price', align: 'center', width: '5%', scopedSlots: { customRender: 'price' } },
|
|
|
+ { title: '售价', dataIndex: 'price', align: 'right', width: '5%', scopedSlots: { customRender: 'price' } },
|
|
|
{ title: '单位', dataIndex: 'dealerProductEntity.unit', width: '4%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '销售数量', dataIndex: 'qty', width: '7%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '已退数量', dataIndex: 'hasReturnQty', width: '7%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
@@ -245,7 +248,7 @@ export default {
|
|
|
{ title: '产品编码', dataIndex: 'productCode', width: '22%', align: 'center', customRender: function (text) { return text || '--' }, sorter: true },
|
|
|
{ title: '产品名称', dataIndex: 'productName', width: '22%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '原厂编码', dataIndex: 'productOrigCode', width: '21%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '售价', dataIndex: 'salePrice', width: '10%', align: 'center', scopedSlots: { customRender: 'price' } },
|
|
|
+ { title: '售价', dataIndex: 'salePrice', width: '10%', align: 'right', scopedSlots: { customRender: 'price' } },
|
|
|
{ title: '单位', dataIndex: 'productUnit', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '仓库仓位', scopedSlots: { customRender: 'warehouse' }, width: '10%', align: 'center' },
|
|
|
{ title: '本次退货数量', align: 'center', width: '7%', scopedSlots: { customRender: 'returnQty' } },
|