Browse Source

修改bug

chenrui 2 years ago
parent
commit
ecd8f7dfd1
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/inventoryManagement/inventoryWarning/list.vue

+ 3 - 3
src/views/inventoryManagement/inventoryWarning/list.vue

@@ -107,7 +107,7 @@
           <span v-else>--</span>
         </template>
         <!-- 在途数 -->
-        <template slot="inTransit" slot-scope="text, record" >
+        <!-- <template slot="inTransit" slot-scope="text, record" >
           <div>
             <a-input-number
               id="inventoryWarningList-inTransit"
@@ -120,7 +120,7 @@
               @change="numChange(record)"
               placeholder="请输入在途数" />
           </div>
-        </template>
+        </template> -->
         <!-- 最大库存数 -->
         <template slot="upperLimit" slot-scope="text, record" >
           <div>
@@ -216,7 +216,7 @@ export default {
         { title: '原厂编码', dataIndex: 'productOrigCode', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '产品品牌', dataIndex: 'brandName', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: 120, align: 'center' },
-        { title: '在途数(个)', scopedSlots: { customRender: 'inTransit' }, width: 80, align: 'center' },
+        { title: '在途数(个)', dataIndex: 'inTransit', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '总库存数(个)', dataIndex: 'currentStockQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '最大库存数(个)', scopedSlots: { customRender: 'upperLimit' }, width: 100, align: 'center' },
         { title: '最小库存数(个)', scopedSlots: { customRender: 'lowerLimit' }, width: 100, align: 'center' },