index.wxml 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. <block wx:if="{{list.length==0}}">
  2. <view class="head">
  3. <view class="count">{{language['请添加项目']||'请添加项目'}}</view>
  4. <view class="expand">
  5. <navigator wx:if="{{disabled}}" url="#" class="but" bindtap="addProject">
  6. <van-icon name="plus" />
  7. </navigator>
  8. </view>
  9. </view>
  10. <My_empty />
  11. </block>
  12. <van-tabs active="{{sa_projectid}}" wx:elif="{{list.length>1}}" nav-class='tabs' color='#3874F6' title-active-color='#3874F6' bind:change='onChange'>
  13. <van-tab title="{{item.projectname}}" wx:for="{{list}}" wx:key="sa_projectid" name='{{item.sa_projectid}}' />
  14. </van-tabs>
  15. <block wx:if="{{project}}">
  16. <view class="head">
  17. <view class="count">{{project.projectname}}</view>
  18. <view class="expand">
  19. <navigator wx:if="{{disabled}}" url="#" class="but" bindtap="toAddProduct">
  20. <van-icon name="plus" />
  21. </navigator>
  22. </view>
  23. </view>
  24. <view class="discount">
  25. <view class="label" style="margin-left: 30rpx;">{{language['折扣(%)']||'折扣(%)'}}:</view>
  26. <input class="input" disabled='{{!disabled}}' type="digit" value="{{project.zk}}" bindblur='onBlur' />
  27. <view class="label" style="margin-left: 97rpx;">{{language['金额']||'金额'}}:</view>
  28. <view class="price">{{project.shouAmount}}</view>
  29. </view>
  30. <Product list="{{productList}}" disabled='{{disabled}}' sa_salesforecastprojectid='{{project.sa_salesforecastprojectid}}' catchchangeAmount='updateAmount' />
  31. </block>