瀏覽代碼

修改bug

chenrui 9 月之前
父節點
當前提交
6657f0ae9d

+ 5 - 3
src/views/easyPassManagement/shoppingProducts/chooseImportModal.vue

@@ -92,15 +92,17 @@ export default {
       nowColumns: [
         { title: '序号', dataIndex: 'no', width: '10%', align: 'center' },
         { title: '产品编码', dataIndex: 'productCode', width: '25%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '产品类目', dataIndex: 'shopCategoryName1', width: '25%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '一级商城类目', dataIndex: 'shopCategoryName1', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '二级商城类目', dataIndex: 'shopCategoryName2', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '售价', dataIndex: 'price', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
       ],
       loadData: [], // 可导入数据
       nowUnColumns: [
         { title: '序号', dataIndex: 'no', width: '9%', align: 'center' },
         { title: '产品编码', dataIndex: 'productCode', width: '21%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '产品类目', dataIndex: 'shopCategoryName1', width: '18%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '售价', dataIndex: 'price', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
+        { title: '一级商城类目', dataIndex: 'shopCategoryName1', width: '16%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '二级商城类目', dataIndex: 'shopCategoryName2', width: '16%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '售价', dataIndex: 'price', width: '6%', align: 'right', customRender: function (text) { return (text != 'null' ? (text || text == 0) ? _this.toThousands(text) : '--':'--') } },
         { title: '备注', dataIndex: 'remark', width: '14%', align: 'center', customRender: function (text) { return text || '--' } }
       ],
       unLoadData: [], // 导入错误数据

+ 1 - 1
src/views/easyPassManagement/shoppingProducts/list.vue

@@ -101,7 +101,7 @@
           </template>
           <!-- 售价类型 -->
           <template slot="priceType" slot-scope="text, record">
-            <span v-if="record.priceType">{{ record.priceType=='OCS_PRICE'?'终端价':'自定义终端价' }}</span>
+            <span v-if="record.priceType">{{ record.priceType=='OCS_PRICE'?'终端价':'自定义' }}</span>
             <span v-else>--</span>
           </template>
           <!-- 是否是热销产品 -->