home.wxml 9.7 KB
<!--pages/main/addtionalreduce/home.wxml-->
<view class='page'>
  <!-- 新增日期选择器 -->
  <picker mode="date" fields="year" start="2019-01-01" end="2020-01-01" bindchange="datePickerChange">
    <view style="height:80rpx;width:280rpx">
      <text style="line-height:80rpx;margin:0 20rpx;font-size: 28rpx;color: #999;">年份: </text>
      <text style="line-height:80rpx;font-size: 28rpx;color: #333;">{{choosed_date}} </text>
      <image style=" width: 24rpx;height: 16rpx;align-items: center;" src="/images/arrow_down.png"></image>
    </view>
  </picker>
  <view style='height:20rpx;background:#F5F5F5'></view>
  <!-- 新增弹窗 -->
  <view wx:if="{{show_modal}}" class="mask"></view>
  <view wx:if="{{show_modal}}" style='top:320rpx;position:absolute;z-index:10;width:650rpx;right:0;left:0;margin:auto;'>
    <image class='modal_img' src="/images/home_tip.png"></image>
    <view style="background:white;">
      <view style='font-size:30rpx;color:#666;padding:20rpx 40rpx'>{{tip_detail}}</view>
      <view class="divide_line" style="margin-top:40rpx"></view>
      <view style='height:100rpx;width:100%;display: flex;'>
        <text class='text_cancel' bindtap='doNotConfirm'>暂不确认</text>
        <view style='width:1px;background:#e5e5e5;'></view>
        <text class='text_confirm' bindtap='doConfirm'>立即确认</text>
      </view>
    </view>
  </view>
  <!-- 数据列表 -->
  <view wx:if="{{additionlist.length>0}}" style='margin-bottom:30rpx;background:#fff'>
    <view wx:for="{{additionlist}}" wx:key="" style='display:flex;flex-direction:column' wx:for-index="idx01" wx:for-item="item">
      <view style='margin:30rpx 44rpx;float:left;display:flex;flex-direction:column'>
        <text class=' text_333_40  float_left'>{{item.legal_entity}}</text>
        <view wx:if="{{item.employee_status!='inactive'&&item.addition_items.length<1&&item.status=='init'}}" class='view_godeclare_wrap' bindtap='godeclare' id='{{idx01}}'>
          <!-- <view wx:if="{{item.status=='to_declare'}}" class='view_godeclare_wrap' bindtap='godeclare' id='{{idx01}}'> -->
          立即申报
        </view>
        <view wx:elif="{{complete_item.length<4}}" class='view_godeclare_wrap' bindtap='goupdate' id='{{idx01}}'>
          查看并调整
        </view>
      </view>
      <view wx:if="{{item.addition_items&&item.addition_items.length>0}}">
        <block wx:for="{{item.addition_items}}" wx:key="" wx:for-item="itemData" wx:for-index="idx02">
          <view wx:if="{{itemData.addition_category!='medical_fund'}}">
            <view style='margin:0 50rpx;background:#e5e5e5;height:2rpx;'></view>
            <view style='padding:30rpx 40rpx;display:flex;flex-direction:column ' bindtap='lookandadd' id='{{idx01}}-{{idx02}}'>
              <view style='height:40rpx'>
                <text class='text_333_32 float_left'>{{additiontitle[itemData.addition_category]}}</text>
                <text class='text_333_32 float_left' hidden="{{(itemData.addition_category=='continuing_education'||itemData.addition_category=='house_fund')||itemData.count<2}}">({{itemData.count}})</text>
                <image class='arrow_img_wrap float_right' src="/images/arrow_right.png"></image>
                <text class='text_999_28' style='margin-bottom:8rpx;float:right'>查看</text>
              </view>
              <view wx:if="{{itemData.addition_category=='continuing_education'&&itemData.detail_items.length>0}}" style='padding:20rpx'>
                <view wx:for="{{itemData.majors}}" wx:key="" wx:for-item="major">
                  <view wx:if="{{index==0}}">
                    <text wx:if='{{itemData.majors.length>1}}' style='font-size:28rpx;color:#666'>学历(学位)继续教育 ({{itemData.majors.length}})</text>
                    <text wx:else style='font-size:28rpx;color:#666'>学历(学位)继续教育</text>
                    <view style='width:100%;display:flex;flex-direction:row '>
                      <view class='float_left' style='flex:1'>
                        <text class='text_999_24 '>扣除方式</text>
                        <text class='text_gray_28' style='margin-left:20rpx'>{{reducetype[major.deduction_type]}}度</text>
                      </view>
                      <view class='float_right' style='flex:1'>
                        <text class='text_999_24 '>可扣除金额</text>
                        <text class='text_orange_28 ' style='margin-left:20rpx'>¥{{major.deduction_amount}}/{{reducetype[major.deduction_type]}}</text>
                      </view>
                    </view>
                  </view>
                </view>
                <view wx:for="{{itemData.professions}}" wx:key="" wx:for-item="profession">
                  <view wx:if="{{index==0}}">
                    <text wx:if='{{itemData.professions.length>1}}' style='font-size:28rpx;color:#666'>职业资格继续教育 ({{itemData.professions.length}})</text>
                    <text wx:else style='font-size:28rpx;color:#666'>职业资格继续教育</text>
                    <text style='font-size:28rpx;color:#666' hidden='{{profession.detail_count<2}}'>({{profession.detail_count}})</text>
                    <view style='width:100%;display:flex;flex-direction:row '>
                      <view class='float_left' style='flex:1'>
                        <text class='text_999_24 '>扣除方式</text>
                        <text class='text_gray_28' style='margin-left:20rpx'>{{reducetype[profession.deduction_type]}}度</text>
                      </view>
                      <view class='float_right' style='flex:1'>
                        <text class='text_999_24 '>可扣除金额</text>
                        <text class='text_orange_28 ' style='margin-left:20rpx'>¥{{profession.deduction_amount}}/{{reducetype[profession.deduction_type]}}</text>
                      </view>
                    </view>
                  </view>
                </view>
                <!-- <view wx:for="{{itemData.detail_items}}" wx:key="" wx:for-item="itemtypedetail">
                  <view wx:if="{{itemtypedetail.continue_education_type=='major'}}">
                    <text style='font-size:28rpx;color:#666'>学历教育</text>
                    <view style='width:100%;display:flex;flex-direction:row '>
                      <view class='float_left' style='flex:1'>
                        <text class='text_999_24 '>扣除方式</text>
                        <text class='text_gray_28' style='margin-left:20rpx'>{{reducetype[itemtypedetail.deduction_type]}}度</text>
                      </view>
                      <view class='float_right' style='flex:1'>
                        <text class='text_999_24 '>可扣除金额</text>
                        <text class='text_orange_28 ' style='margin-left:20rpx'>¥{{itemtypedetail.deduction_amount}}/{{reducetype[itemtypedetail.deduction_type]}}</text>
                      </view>
                    </view>
                  </view>
                  <view wx:else>
                    <text style='font-size:28rpx;color:#666'>非学历教育</text>
                    <text style='font-size:28rpx;color:#666' hidden='{{itemtypedetail.detail_count<2}}'>({{itemtypedetail.detail_count}})</text>
                    <view style='width:100%;display:flex;flex-direction:row '>
                      <view class='float_left' style='flex:1'>
                        <text class='text_999_24 '>扣除方式</text>
                        <text class='text_gray_28' style='margin-left:20rpx'>{{reducetype[itemtypedetail.deduction_type]}}度</text>
                      </view>
                      <view class='float_right' style='flex:1'>
                        <text class='text_999_24 '>可扣除金额</text>
                        <text class='text_orange_28 ' style='margin-left:20rpx'>¥{{itemtypedetail.deduction_amount}}/{{reducetype[itemtypedetail.deduction_type]}}</text>
                      </view>
                    </view>
                  </view>
                </view> -->

              </view>
              <view wx:else style='width:100%;padding:20rpx 20rpx;display:flex;flex-direction:row '>
                <view class='float_left' style='flex:1'>
                  <text class='text_999_24 '>扣除方式</text>
                  <text class='text_gray_28' style='margin-left:20rpx'>{{reducetype[itemData.deduction_type]}}度</text>
                </view>
                <view class='float_right' style='flex:1'>
                  <text class='text_999_24 '>可扣除金额</text>
                  <text class='text_orange_28 ' style='margin-left:20rpx'>¥{{itemData.deduction_amount}}/{{reducetype[itemData.deduction_type]}}</text>
                </view>
              </view>
            </view>
          </view>
        </block>
      </view>
      <view style='height:20rpx;background:#F5F5F5'></view>
    </view>
    <!-- <view wx:else>
      <image style='width:55%;height:254rpx;margin:166rpx;' src='/images/noreduce_img.png'></image>
    </view> -->

  </view>
  <view wx:if="{{hascompleted&&additionlist.length<1&&choosed_date!=2020}}" style='background:#fff;'>
        <image style='width:55%;height:254rpx;margin:400rpx 166rpx 0 166rpx;' src='/images/noreduce_img.png'></image>
  </view>
  <view wx:if="{{hascompleted&&additionlist.length<1&&choosed_date==2020}}" style='background:#fef6e9;padding:40rpx 30rpx;display:flex;'>
    <view style="margin-right:20rpx;margin-top:10rpx">
      <image style='width:40rpx;height:40rpx;' src='/images/warn_yellow.png'></image>
    </view>
    <view >
      <text style="font-size: 32rpx;color: #2B2B2B;">您还没有填报2020年度的专项附加扣除,点击</text>
      <text style="font-size: 32rpx;color: #357AEB;" bindtap="quickAdd"> [一键带入] </text>
      <text style="font-size: 32rpx;color: #2B2B2B;">将2019年度已填报的扣除信息在2020年度继续填报。</text>
    </view>

  </view>
</view>