<?xml version="1.0" encoding="UTF-8"?>

<!--
    $Author: huangtianyang
    $Date: 2018/7/9 下午1:26
    $Revision: 1.0
    合同统计
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure/>
    <a:view template="default" package="leaf.ui.std">
        <style>
            #row-second-middle-top-body-foot1_widget514 {
                margin-left: 140px;
            }
        </style>
        <div></div>
        <script>
            var statusInfo = [
                {
                    statusValue: "新建",
                    status: "NEW",
                    color: "#2EC3E8",
                    valueParam: "credit_line_count"
                },
                {
                    statusValue: "审批中",
                    status: "APPROVING",
                    color: "#FFCD55",
                    valueParam: "credit_line_count"
                },
                {
                    statusValue: "审批通过",
                    status: "APPROVED",
                    color: "#A0D469",
                    valueParam: "credit_line_count"
                },
                /*{
                    statusValue: "审批退回",
                    status: "APPROVED_RETURN",
                    color: "#E75B8D",
                    valueParam: "credit_line_count"
                },*/
                {
                    statusValue: "审批拒绝",
                    status: "REJECT",
                    color: "#7085BF",
                    valueParam: "credit_line_count"
                }/*,
                {
                    statusValue: "挂起",
                    status: "PENDING",
                    color: "#FA6A4D",
                    valueParam: "credit_line_count"
                }*/
                /*{
                    statusValue: "申请通过",
                    status: "APPROVED",
                    color: "#A0D469",
                    valueParam: "creditLineCount"
                },
                {
                    statusValue: "拒绝",
                    status: "REJECT",
                    color: "#FFCD55",
                    valueParam: "creditLineCount"
                },
                {
                    statusValue: "取消",
                    status: "CANCEL",
                    color: "#8CC375",
                    valueParam: "creditLineCount"
                }*/
            ];
        </script>
        <a:dataSets>
            <a:dataSet id="widget514_ds" model="hls_component_demo.hls_component_demo" autoQuery="true">
            </a:dataSet>
        </a:dataSets>
        <a:hlsAnalyseCountChart id="widget514" status="statusInfo" bindtarget="widget514_ds"
                                style="width: 870px;height:270px" color="colors" titleBgColor="yellow"
                                clickFunc="queryLineInfo" haveTitle="true" rightTitle="本月新增合同" title="合同总数">
            <a:items>
                <a:item name="status" map="credit_line_status" defaultMessage="授信状态"/>
                <a:item name="percentCount" map="credit_line_count_percent" defaultMessage="占比"/>
                <a:item name="itemNum" map="credit_line_count" defaultMessage="数量"/>
            </a:items>
        </a:hlsAnalyseCountChart>
        <a:screenBody/>
    </a:view>
</a:screen>