<view id="placeholder" />
<My_listBox id='ListBox' height="{{listHeight}}" bind:getlist='getList'>
    <view class="header">
        提报任务
    </view>
    <view class="item" wx:for="{{list}}" wx:key="item.sa_salesforecastmodelid">
        <view class="introduce">
            <image class="image" src="/static/image/forecast.png" />
            <view class="title line-1">{{item.title}}</view>
            <view class="explain line-1">提报周期：每{{item.periodtype}} {{item.periodpointchange}} {{item.periodtype=='月'?'号':''}}</view>
            <view class="explain line-1">提报要求：{{item.baseonproject=='1'?'按项目及产品类别预测':'按产品类别预测'}}</view>
        </view>
        <view class="handle">
            <navigator url="#" data-item="{{item}}" bindtap="toDetail">
                <van-icon size='24rpx' name="add-o" /> 创建/编辑提报
            </navigator>
            <navigator wx:if="{{per.query(auth,'查看记录')}}" url="./record?id={{item.sa_salesforecastmodelid}}">
                <van-icon size='24rpx' name="search" /> 提报记录
            </navigator>
        </view>
    </view>
    <view style="height:30px;" />
</My_listBox>

<wxs src='../../utils/wxmlQueryPer.wxs' module="per" />