chenrui 2 meses atrás
pai
commit
19bb3120be

+ 4 - 4
src/config/productManagement.js

@@ -370,8 +370,8 @@ export default {
       component: BlankLayout,
       meta: {
         title: '外贸产品',
-        icon: 'radar-chart'
-        // permission: 'M_foreignTradeGoodsList'
+        icon: 'radar-chart',
+        permission: 'M_foreignTradeGoodsList'
       },
       hideChildrenInMenu: true,
       children: [
@@ -382,8 +382,8 @@ export default {
           meta: {
             title: '外贸产品',
             icon: 'radar-chart',
-            hidden: true
-            // permission: 'M_foreignTradeGoodsList'
+            hidden: true,
+            permission: 'M_foreignTradeGoodsList'
           }
         }
       ]

+ 6 - 11
src/views/productManagement/foreignTradeGoods/chooseImportModal.vue

@@ -19,7 +19,7 @@
         :columns="nowColumns"
         :dataSource="loadData"
         :loading="loading"
-        :scroll="{ y: 200 }"
+        :scroll="{ y: 600 }"
         :pagination="false"
         bordered>
       </a-table>
@@ -71,7 +71,7 @@ export default {
       nowColumns: [
         { title: '序号', dataIndex: 'no', width: '8%', align: 'center' },
         { title: '查询码', dataIndex: 'queryCode', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: 'OE码', dataIndex: 'oeCode', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: 'OE码', dataIndex: 'oeCode', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '大厂码',
           children: [
             {
@@ -99,20 +99,16 @@ export default {
         { title: '产品三级分类', dataIndex: 'productEntity.productTypeName3', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '主材料', dataIndex: 'material', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '含盒报价', dataIndex: 'priceFreeBox', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
-        { title: '无盒报价', dataIndex: 'priceWithBox', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
-        { title: '备注', dataIndex: 'remark', width: '8%', align: 'center', customRender: function (text) { return text || '--' } }
+        { title: '无盒报价', dataIndex: 'priceWithBox', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
       ],
       loadData: [],
       loading: false
     }
   },
   methods: {
-    // 表格标红
+    // 表格换行
     getRowClassName (record, index) {
-      if (record.flag) {
-        return 'red-text'
-      }
-      return '' // 如果没有条件匹配,则返回空字符串不添加任何类名
+      return 'red-text' // 如果没有条件匹配,则返回空字符串不添加任何类名
     },
     getData () {
       const _this = this
@@ -126,7 +122,6 @@ export default {
           if (res.data && res.data.length > 0) {
             res.data.map((item, index) => {
               item.no = index + 1
-              item.remark = item.flag ? '异常数据' : ''
             })
           }
           _this.loadData = res.data || []
@@ -180,7 +175,7 @@ export default {
   .chooseImport-modal{
     .chooseImport-con{
       /deep/.red-text{
-        color: #f30;
+        white-space: pre-line;
       }
       .btn-con{
         text-align: center;

+ 2 - 2
src/views/productManagement/foreignTradeGoods/importGuideModal.vue

@@ -95,12 +95,12 @@ export default {
     }
   },
   methods: {
-    // 下一步
+    // 查询
     handlerNextStep () {
       if (this.paramsData) {
         this.openImportModal = true
       } else {
-        this.$message.warning('添加文件后再进行下一步操作!')
+        this.$message.warning('添加文件后再进行查询操作!')
       }
     },
     // 上传文件  change