From 973dd90ad4fb5061fbc8db0b2cb8ade7217328bf Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 04 二月 2020 17:18:37 +0800
Subject: [PATCH] 2020-02-04

---
 src/templates/tableshare/verifycard/index.jsx |   29 ++++++++++++++++++++++++-----
 1 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/src/templates/tableshare/verifycard/index.jsx b/src/templates/tableshare/verifycard/index.jsx
index 70059db..c0bc55c 100644
--- a/src/templates/tableshare/verifycard/index.jsx
+++ b/src/templates/tableshare/verifycard/index.jsx
@@ -126,28 +126,46 @@
       {
         title: '绫诲瀷',
         dataIndex: 'billType',
-        width: '15%',
+        width: '10%',
       },
       {
         title: '鍑瘉绫诲瀷',
         dataIndex: 'ModularCodeName',
-        width: '15%'
+        width: '13%'
       },
       {
         title: '鍑瘉鏍囪瘑',
         dataIndex: 'ModularDetailCode',
-        width: '15%'
+        width: '13%'
       },
       {
         title: '鍏宠仈瀛楁',
         dataIndex: 'linkFieldName',
-        width: '15%',
+        width: '13%',
         render: (text, record) => (record.linkField ? `${record.linkFieldName || ''}(${record.linkField})` : '')
       },
       {
         title: '浣嶆暟',
         dataIndex: 'Type',
-        width: '10%'
+        width: '8%'
+      },
+      {
+        title: '绀轰緥',
+        dataIndex: 'example',
+        width: '13%',
+        render: (text, record) => {
+          let _text = ''
+          if (record.TypeCharOne === 'n') {
+            _text = record.ModularDetailCode + Array(record.Type).join('0') + '1'
+          } else if (record.TypeCharOne === 'Y') {
+            _text = record.ModularDetailCode + moment().format('YYYYMMDD') + Array(record.Type).join('0') + '1'
+          } else if (record.TypeCharOne === 'Lp') {
+            _text = Array(record.Type).join('0') + '10'
+          } else if (record.TypeCharOne === 'BN') {
+            _text = moment().format('YYYYMMDD') + Array(record.Type).join('0') + '1'
+          }
+          return _text
+        }
       },
       {
         title: '鎿嶄綔',
@@ -686,6 +704,7 @@
           <BillcodeForm
             floor={this.props.floor}
             fields={fields}
+            billcodes={verify.billcodes}
             columns={this.props.columns}
             dict={this.props.dict}
             modular={orderModular}

--
Gitblit v1.8.0