Browse Source

bug修复

chenrui 4 năm trước cách đây
mục cha
commit
2b767d88f6

+ 1 - 1
src/views/supplierManagement/associatedProduct/add.vue

@@ -124,7 +124,7 @@ export default {
         { title: '产品名称', dataIndex: 'product.name', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
         { title: '产品编码', dataIndex: 'product.code', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '原厂编码', dataIndex: 'product.origCode', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '成本价', dataIndex: 'cost', width: 100, align: 'center', customRender: function (text) { return '¥' + (text || 0) } },
+        { title: '成本价', dataIndex: 'cost', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? '¥' + text : '--') } },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: 170, align: 'center', fixed: 'right' }
       ],
       // 加载数据方法 必须为 Promise 对象

+ 1 - 1
src/views/supplierManagement/associatedProductDetails/list.vue

@@ -93,7 +93,7 @@ export default {
         { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: 200, align: 'center' },
         { title: '产品名称', dataIndex: 'product.name', width: 220, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '产品编码', dataIndex: 'product.code', width: 220, align: 'center' },
-        { title: '成本价(¥)', dataIndex: 'cost', width: 110, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '成本价(¥)', dataIndex: 'cost', width: 110, align: 'center', customRender: function (text) { return ((text || text == 0) ? '¥' + text : '--') } },
         { title: '原厂编码', dataIndex: 'product.origCode', width: 220, align: 'center', customRender: function (text) { return text == '' ? '--' : text } }
       ],
       // 加载数据方法 必须为 Promise 对象