{
    "title": "库存汇总",
    "filter": {{ .filter }},
    "tabs": [
        {
            "name":       "仓库",
            "listApi":    "rpt_goods_stock_sum.list?sum=warehouse",
            "itemHeight": 100.0,
            "actionParams": {
                "pageName": "/client_rpt_goods_stock_v2",
                "arguments": { "stock_item_type": 1,"filterText":"跳转条件","filterSelectedDatas":"{{ "{{" }}extra.filterSelectedDatas{{ "}}" }}","filterCustomSelectedDatas":"{{ "{{" }}extra.filterCustomSelectedDatas{{ "}}" }}" }
            },
            "extraFilterSelectedDatas":{
                "{{ "{{" }}#if:!extra.issum{{ "}}" }}warehouses":[{"id": "{{ "{{" }}data.code{{ "}}" }}","name": "{{ "{{" }}data.name{{ "}}" }}"}]
            }
        },
        {
            "name":       "店铺",
            "listApi":    "rpt_goods_stock_sum.list?sum=shop",
            "itemHeight": 100.0,
            "actionParams": {
                "pageName": "/client_rpt_goods_stock_v2",
                "arguments": { "stock_item_type": 2,"filterText":"跳转条件","filterSelectedDatas":"{{ "{{" }}extra.filterSelectedDatas{{ "}}" }}","filterCustomSelectedDatas":"{{ "{{" }}extra.filterCustomSelectedDatas{{ "}}" }}" }
            },
            "extraFilterSelectedDatas":{
                "{{ "{{" }}#if:!extra.issum{{ "}}" }}shops":[{"id": "{{ "{{" }}data.code{{ "}}" }}","name": "{{ "{{" }}data.name{{ "}}" }}"}]
            }
        },
        {
            "name":       "品牌",
            "listApi":    "rpt_goods_stock_sum.list?sum=brand",
            "itemHeight": 100.0,
            "actionParams": {
                "pageName": "/client_rpt_goods_stock_v2",
                "arguments": { "filterText":"跳转条件","filterSelectedDatas":"{{ "{{" }}extra.filterSelectedDatas{{ "}}" }}","filterCustomSelectedDatas":"{{ "{{" }}extra.filterCustomSelectedDatas{{ "}}" }}" }
            },
            "extraFilterSelectedDatas":{
                "{{ "{{" }}#if:!extra.issum{{ "}}" }}brands":[{"id": "{{ "{{" }}data.code{{ "}}" }}","name": "{{ "{{" }}data.code{{ "}}" }}"}]
            }
        },
        {
            "name":       "类别",
            "listApi":    "rpt_goods_stock_sum.list?sum=category",
            "itemHeight": 100.0,
            "actionParams": {
                "pageName": "/client_rpt_goods_stock_v2",
                "arguments": { "filterText":"跳转条件","filterSelectedDatas":"{{ "{{" }}extra.filterSelectedDatas{{ "}}" }}","filterCustomSelectedDatas":"{{ "{{" }}extra.filterCustomSelectedDatas{{ "}}" }}" }
            },
            "extraFilterSelectedDatas":{
                "{{ "{{" }}#if:!extra.issum{{ "}}" }}categories":[{"id": "{{ "{{" }}data.code{{ "}}" }}","name": "{{ "{{" }}data.code{{ "}}" }}"}]
            }
        },
        {
            "name":       "二级类别",
            "listApi":    "rpt_goods_stock_sum.list?sum=category2",
            "itemHeight": 100.0,
            "actionParams": {
                "pageName": "/client_rpt_goods_stock_v2",
                "arguments": { "filterText":"跳转条件","filterSelectedDatas":"{{ "{{" }}extra.filterSelectedDatas{{ "}}" }}","filterCustomSelectedDatas":"{{ "{{" }}extra.filterCustomSelectedDatas{{ "}}" }}" }
            },
            "extraFilterSelectedDatas":{
                "{{ "{{" }}#if:!extra.issum{{ "}}" }}categories2":[{"id": "{{ "{{" }}data.code{{ "}}" }}","name": "{{ "{{" }}data.code{{ "}}" }}"}]
            }
        },
        {
            "name":       "年份季节",
            "listApi":    "rpt_goods_stock_sum.list?sum=yearseason",
            "itemHeight": 100.0,
            "actionParams": {
                "pageName": "/client_rpt_goods_stock_v2",
                "arguments": { "filterText":"跳转条件","filterSelectedDatas":"{{ "{{" }}extra.filterSelectedDatas{{ "}}" }}","filterCustomSelectedDatas":"{{ "{{" }}extra.filterCustomSelectedDatas{{ "}}" }}" }
            },
            "extraFilterSelectedDatas":{
                "{{ "{{" }}#if:!extra.issum{{ "}}" }}years":[{"id": "{{ "{{" }}data.code{{ "}}" }}","name": "{{ "{{" }}data.code{{ "}}" }}"}],
                "{{ "{{" }}#if:!extra.issum{{ "}}" }}seasons":[{"id": "{{ "{{" }}data.name{{ "}}" }}","name": "{{ "{{" }}data.name{{ "}}" }}"}]
            }
        }
        {{ if .showSupplier }}
        ,{
			"name":       "供应商",
			"listApi":    "rpt_goods_stock_sum.list?sum=supplier",
			"itemHeight": 100.0,
            "actionParams": {
                "pageName": "/client_rpt_goods_stock_v2",
                "arguments": { "filterText":"跳转条件","filterSelectedDatas":"{{ "{{" }}extra.filterSelectedDatas{{ "}}" }}","filterCustomSelectedDatas":"{{ "{{" }}extra.filterCustomSelectedDatas{{ "}}" }}" }
            },
            "extraFilterSelectedDatas":{
                "{{ "{{" }}#if:!extra.issum{{ "}}" }}suppliers":[{"id": "{{ "{{" }}data.code{{ "}}" }}","name": "{{ "{{" }}data.name{{ "}}" }}"}]
            }
		}
        {{end}}
    ],
    "itemWidget": {{ .itemWidget }}
}