Forráskód Böngészése

新增无需打卡状态

dev01 2 hónapja%!(EXTRA string=óta)
szülő
commit
0cefa3e0f9

+ 3 - 1
js/component/manageCenter/customer/publicStatistics/detailedList.jsx

@@ -128,7 +128,9 @@ class DetailedList extends Component {
           render: (text, record) => (
             <div>
               {text}
-              <Tag color={["#F21212", "#34DE38", "#ffd400"][record.clockIn]}>{["未打卡", "已打卡", "异常打卡"][record.clockIn]}</Tag>
+              {record.alone == 2 && record.assist == 1
+                ? <Tag color="#58a3ff">无需打卡</Tag>
+                : <Tag color={["#F21212", "#34DE38", "#ffd400"][record.clockIn]}>{["未打卡", "已打卡", "异常打卡"][record.clockIn]}</Tag>}
             </div>
           )
         },

+ 6 - 6
js/component/manageCenter/customer/publicSummary/index.jsx

@@ -146,12 +146,12 @@ class PublicSummary extends Component {
           width: 120,
           render: (text, record) => (
             <div>
-              {
-                text.split("\n").map(it =>
-                  <div>{it}</div>
-                )
-              }
-              <Tag color={["#F21212", "#34DE38", "#ffd400"][record.clockIn]}>{["未打卡", "已打卡", "异常打卡"][record.clockIn]}</Tag>
+              {text.split("\n").map(it =>
+                <div>{it}</div>
+              )}
+              {record.alone == 2 && record.assist == 1
+                ? <Tag color="#58a3ff">无需打卡</Tag>
+                : <Tag color={["#F21212", "#34DE38", "#ffd400"][record.clockIn]}>{["未打卡", "已打卡", "异常打卡"][record.clockIn]}</Tag>}
             </div>
           )
         },

+ 3 - 1
js/component/manageCenter/financialManage/account/accountDetails.jsx

@@ -566,7 +566,9 @@ class AccountDetails extends Component {
           render: (text, record) => (
             <span>
               <div style={{ width: 70 }}>{text}</div>
-              <Tag color={["#F21212", "#34DE38", "#ffd400"][record.clockIn]}>{["未打卡", "已打卡", "异常打卡"][record.clockIn]}</Tag>
+              {record.alone == 2 && record.assist == 1
+                ? <Tag color="#58a3ff">无需打卡</Tag>
+                : <Tag color={["#F21212", "#34DE38", "#ffd400"][record.clockIn]}>{["未打卡", "已打卡", "异常打卡"][record.clockIn]}</Tag>}
             </span>
           )
         },

+ 3 - 1
js/component/manageCenter/financialManage/account/accountTotal.jsx

@@ -394,7 +394,9 @@ const AccountTotal = React.createClass({
           render: (text, record) => (
             <span>
               <div style={{ width: 70 }}>{text}</div>
-              <Tag color={["#F21212", "#34DE38", "#ffd400"][record.clockIn]}>{["未打卡", "已打卡", "异常打卡"][record.clockIn]}</Tag>
+              {record.alone == 2 && record.assist == 1
+                ? <Tag color="#58a3ff">无需打卡</Tag>
+                : <Tag color={["#F21212", "#34DE38", "#ffd400"][record.clockIn]}>{["未打卡", "已打卡", "异常打卡"][record.clockIn]}</Tag>}
             </span>
           )
         },