Browse Source

修改货架数量字段

chenrui 2 years ago
parent
commit
536a00ec11

+ 2 - 2
src/views/common/shelfList.js

@@ -19,7 +19,7 @@ const shelfSList = {
     `,
   props: {
     value: {
-      type: [String,Array],
+      type: [String, Array],
       defatut: ''
     },
     id: {
@@ -28,7 +28,7 @@ const shelfSList = {
     },
     mode: {
       type: String,
-      defatut: 'default'
+      default: 'default'
     }
   },
   data () {

+ 1 - 1
src/views/numsGoodsShelves/customerAnalysis/list.vue

@@ -167,7 +167,7 @@ export default {
         {
           slots: { title: 'customTitle' },
           children: [
-            { title: '铺货数量', dataIndex: 'totalShelfMaxQty', width: '8%', align: 'center', customRender: function (text) { return text && toThousands(text, 2) || '--' }, sorter: true },
+            { title: '铺货数量', dataIndex: 'totalShelfMaxQty', width: '8%', align: 'center', customRender: function (text) { return (text || text == 0) ? text : '--' }, sorter: true },
             { title: '铺货金额', dataIndex: 'totalShelfMaxCost', width: '8%', align: 'center', customRender: function (text) { return text && toThousands(text, 2) || '--' }, sorter: true }
           ]
         },