|
@@ -326,7 +326,6 @@ import ProductType from '../../common/productType.js'
|
|
|
import ProductBrand from '../../common/productBrand.js'
|
|
|
import Print from '@/views/common/print.vue'
|
|
|
import importGuideModal from './importGuideModal.vue'
|
|
|
-import { toThousands } from '@/libs/tools'
|
|
|
import newProduct from '@/views/productManagement/productInfo/edit.vue'
|
|
|
import { hdPrint } from '@/libs/JGPrint'
|
|
|
export default {
|
|
@@ -334,6 +333,7 @@ export default {
|
|
|
components: { STable, VSelect, Print, ProductType, ProductBrand, newProduct, importGuideModal },
|
|
|
mixins: [commonMixin],
|
|
|
data () {
|
|
|
+ const _this = this
|
|
|
return {
|
|
|
isShowBisiceInfo: false,
|
|
|
advanced: false,
|
|
@@ -410,7 +410,7 @@ export default {
|
|
|
{ title: '单位', dataIndex: 'productUnit', width: '4%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '成本价', scopedSlots: { customRender: 'putCost' }, width: '7%', align: 'center' },
|
|
|
{ title: '数量', scopedSlots: { customRender: 'putQty' }, width: '7%', align: 'center' },
|
|
|
- { title: '成本小计', dataIndex: 'costSubtotal', width: '7%', align: 'right', customRender: function (text) { return ((text || text == 0) ? toThousands(text, 2) : '--') } },
|
|
|
+ { title: '成本小计', dataIndex: 'costSubtotal', width: '7%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } },
|
|
|
{ title: '仓库仓位', scopedSlots: { customRender: 'warehouse' }, width: '13%', align: 'center' },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }
|
|
|
],
|