{
    "title": "采购汇总",
    "filter": {{ .filter }},
    "tabs": [
        {{ if .showSupplier }}
        {
			"name":       "供应商",
			"listApi":    "rpt_purchase_sum.list?sum=supplier",
			"itemHeight": 100.0,
            "actionParams": {
                "pageName": "/rpt_purchase_track",
                "arguments": { "filterText":"跳转条件","filterSelectedDatas":"{{ "{{" }}extra.filterSelectedDatas{{ "}}" }}","filterCustomSelectedDatas":"{{ "{{" }}extra.filterCustomSelectedDatas{{ "}}" }}" }
            },
            "extraFilterSelectedDatas":{
                "{{ "{{" }}#if:!extra.issum{{ "}}" }}suppliers":[{"id": "{{ "{{" }}data.code{{ "}}" }}","name": "{{ "{{" }}data.name{{ "}}" }}"}]
            }
		},
        {{end}}
        {
            "name":       "货品",
            "listApi":    "rpt_purchase_sum.list?sum=goods",
            "itemHeight": 100.0,
            "actionParams": {
                "pageName": "/rpt_purchase_track",
                "arguments": { "filterText":"跳转条件","filterSelectedDatas":"{{ "{{" }}extra.filterSelectedDatas{{ "}}" }}","filterCustomSelectedDatas":"{{ "{{" }}extra.filterCustomSelectedDatas{{ "}}" }}" }
            },
            "extraFilterSelectedDatas":{
                "{{ "{{" }}#if:!extra.issum{{ "}}" }}goodses":[{"id": "{{ "{{" }}data.code{{ "}}" }}"}]
            }
        },
        {
            "name":       "品牌",
            "listApi":    "rpt_purchase_sum.list?sum=brand",
            "itemHeight": 100.0,
            "actionParams": {
                "pageName": "/rpt_purchase_track",
                "arguments": { "filterText":"跳转条件","filterSelectedDatas":"{{ "{{" }}extra.filterSelectedDatas{{ "}}" }}","filterCustomSelectedDatas":"{{ "{{" }}extra.filterCustomSelectedDatas{{ "}}" }}" }
            },
            "extraFilterSelectedDatas":{
                "{{ "{{" }}#if:!extra.issum{{ "}}" }}brands":[{"id": "{{ "{{" }}data.code{{ "}}" }}"}]
            }
        },
        {
            "name":       "类别",
            "listApi":    "rpt_purchase_sum.list?sum=category",
            "itemHeight": 100.0,
            "actionParams": {
                "pageName": "/rpt_purchase_track",
                "arguments": { "filterText":"跳转条件","filterSelectedDatas":"{{ "{{" }}extra.filterSelectedDatas{{ "}}" }}","filterCustomSelectedDatas":"{{ "{{" }}extra.filterCustomSelectedDatas{{ "}}" }}" }
            },
            "extraFilterSelectedDatas":{
                "{{ "{{" }}#if:!extra.issum{{ "}}" }}categories":[{"id": "{{ "{{" }}data.code{{ "}}" }}"}]
            }
        },
        {
            "name":       "年份季节",
            "listApi":    "rpt_purchase_sum.list?sum=yearseason",
            "itemHeight": 100.0,
            "actionParams": {
                "pageName": "/rpt_purchase_track",
                "arguments": { "filterText":"跳转条件","filterSelectedDatas":"{{ "{{" }}extra.filterSelectedDatas{{ "}}" }}","filterCustomSelectedDatas":"{{ "{{" }}extra.filterCustomSelectedDatas{{ "}}" }}" }
            },
            "extraFilterSelectedDatas":{
                "{{ "{{" }}#if:!extra.issum{{ "}}" }}years":[{"id": "{{ "{{" }}data.code{{ "}}" }}"}],
                "{{ "{{" }}#if:!extra.issum{{ "}}" }}seasons":[{"id": "{{ "{{" }}data.name{{ "}}" }}"}]
            }
        }
       
    ],
    "itemWidget": {{ .itemWidget }}
}