lilei 2 سال پیش
والد
کامیت
2ebdc0d1ac
2فایلهای تغییر یافته به همراه13 افزوده شده و 2 حذف شده
  1. 1 1
      public/version.json
  2. 12 1
      src/views/inventoryManagement/inventoryWarning/chooseImportModal.vue

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1675409883156
+  "version": 1675410541290
 }

+ 12 - 1
src/views/inventoryManagement/inventoryWarning/chooseImportModal.vue

@@ -37,6 +37,16 @@
         :scroll="{ y: 200 }"
         :pagination="false"
         bordered>
+        <template slot="errorMsg" slot-scope="text,record">
+          <a-popover placement="topRight">
+            <template slot="content">
+              <p v-for="d in record.importErrorMsgSet" v-if="d">{{ d }};</p>
+            </template>
+            <a-button type="link">
+              查看
+            </a-button>
+          </a-popover>
+        </template>
       </a-table>
       <!-- 按钮 -->
       <div class="btn-con">
@@ -100,7 +110,7 @@ export default {
         { title: '在途数(个)', dataIndex: 'inTransit', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '最大库存数(个)', dataIndex: 'upperLimit', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '最小库存数(个)', dataIndex: 'lowerLimit', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '错误原因', dataIndex: 'errorMsg', width: '17%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true }
+        { title: '错误原因', scopedSlots: { customRender: 'errorMsg' }, width: '10%', align: 'center' }
       ],
       loadData: [],
       unLoadData: [],
@@ -122,6 +132,7 @@ export default {
           if (res.data.errorList && res.data.errorList.length > 0) {
             res.data.errorList.map((item, index) => {
               item.no = index + 1
+              item.importErrorMsgSet = item.errorMsg ? item.errorMsg.split(';') : []
             })
           }
           _this.loadData = res.data.rightList || []