Browse Source

fix:结算模块-附件字段

liqh 2 months ago
parent
commit
3dd30bdfa2

+ 9 - 1
src/views/project/settlement-manage/InvoiceRegistrationList/index.vue

@@ -87,8 +87,16 @@
       },
       {
         title: '发票附件',
-        dataIndex: 'attachment',
+        // dataIndex: 'attachment',
         align: 'center',
+        customRender: ({ text, record, index, column }) => {
+          const imageUrls = record.attachment || [
+            'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
+            'https://aliyuncdn.antdv.com/vue.png',
+            'https://aliyuncdn.antdv.com/logo.png',
+          ];
+          return imageUrls.map((imgUrl, imgIndex) => <a-image width={40} src={imgUrl} alt={`发票附件 ${imgIndex + 1}`} />);
+        },
       },
       {
         title: '发起人',