|
@@ -167,6 +167,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { commonMixin } from '@/utils/mixin'
|
|
|
import { querySumByProductLocation } from '@/api/stock'
|
|
|
import { warehouseAllList } from '@/api/warehouse'
|
|
|
import productSalesRecordModal from './productSalesRecordModal.vue'
|
|
@@ -179,6 +180,7 @@ import defImg from '@/assets/def_img@2x.png'
|
|
|
export default {
|
|
|
name: 'QueryPart',
|
|
|
components: { STable, VSelect, Upload, productSalesRecordModal, carInfoModal, ProductType, ProductBrand },
|
|
|
+ mixins: [commonMixin],
|
|
|
props: {
|
|
|
newLoading: Boolean
|
|
|
},
|
|
@@ -270,6 +272,7 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
columns () {
|
|
|
+ const _this = this
|
|
|
const arr = [
|
|
|
{ title: '产品编码', dataIndex: 'productCode', width: '15%', align: 'center', sorter: true, customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品名称', dataIndex: 'productName', width: '18%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
@@ -279,16 +282,16 @@ export default {
|
|
|
{ title: '仓位', dataIndex: 'warehouseLocationName', width: '8%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
]
|
|
|
if (this.cost) {
|
|
|
- arr.push({ slots: { title: 'costTitle' }, dataIndex: 'putCost', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
|
|
|
+ arr.push({ slots: { title: 'costTitle' }, dataIndex: 'putCost', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
}
|
|
|
if (this.cityPrice) {
|
|
|
- arr.push({ title: '市级价', dataIndex: 'dealerProduct.cityPrice', width: '5%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
|
|
|
+ arr.push({ title: '市级价', dataIndex: 'dealerProduct.cityPrice', width: '5%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
}
|
|
|
if (this.tyuePrice) {
|
|
|
- arr.push({ title: '特约价', dataIndex: 'dealerProduct.specialPrice', width: '5%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
|
|
|
+ arr.push({ title: '特约价', dataIndex: 'dealerProduct.specialPrice', width: '5%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
}
|
|
|
if (this.zdPrice) {
|
|
|
- arr.push({ title: '终端价', dataIndex: 'dealerProduct.terminalPrice', width: '5%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
|
|
|
+ arr.push({ title: '终端价', dataIndex: 'dealerProduct.terminalPrice', width: '5%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
}
|
|
|
|
|
|
return arr.concat([
|