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

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