detail.wxml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <import src="detail.skeleton.wxml" />
  2. <template is="skeleton" wx:if="{{loading}}" />
  3. <view class="intr">
  4. <view class="num">
  5. {{detail.sonum}}
  6. </view>
  7. <view class="tags">
  8. <text wx:if="{{detail.brandname}}" style="background-color: #0079FE;">{{detail.brandname}}</text>
  9. <text wx:if="{{detail.tradefield}}" style="background-color: #4BD863;">{{detail.tradefield}}</text>
  10. </view>
  11. <view class="exp">订单类型:{{detail.type}}</view>
  12. <view class="exp">单据日期:{{detail.billdate || '暂无'}}</view>
  13. <view class="exp">订单状态:{{detail.status}}</view>
  14. <view wx:if="{{detail.sa_contractid}}" class="exp">借用套数:{{detail.toolcount}}套</view>
  15. <view class="exp">订单金额:{{detail.amount}}元</view>
  16. <navigator class="copy" url="#" bind:tap="onCopy">复制</navigator>
  17. </view>
  18. <navigator url="#" class="box location" bindtap="selectConsignee">
  19. <van-icon custom-class='icon' name="location" />
  20. <view class="content">
  21. <view class="name">
  22. {{detail.contacts.name || '暂无'}}<text>{{detail.contacts.phonenumber}}</text>
  23. </view>
  24. <view class="address">
  25. {{detail.contacts.address}}
  26. </view>
  27. </view>
  28. <view class="iconfont icon-dibu-bianji" />
  29. </navigator>
  30. <navigator url="#" class="box location" bindtap="selectFinance">
  31. <view class="content">
  32. <view class="name">
  33. 开票单位
  34. </view>
  35. <view class="address">
  36. {{detail.finance.enterprisename || '暂无'}}
  37. </view>
  38. </view>
  39. <view class="iconfont icon-dibu-bianji" />
  40. </navigator>
  41. <!-- 合同信息 -->
  42. <view wx:if="{{detail.sa_contractid}}" url="#" class="box location">
  43. <view class="content">
  44. <view class="name">
  45. 合同单号:{{detail.contract.billno}}
  46. </view>
  47. <view class="address">
  48. 有效期:{{detail.contract.begdate}}-{{detail.contract.enddate}}
  49. </view>
  50. </view>
  51. </view>
  52. <view class="box" style="padding: 10rpx 30rpx;">
  53. <view class="row">
  54. <view class="label">订单备注</view>
  55. <textarea disabled="{{detail.status!='新建'}}" bindtap="isEdit" class="remarks" placeholder-class='placeholder' bindblur="changeRemarks" value="{{detail.remarks}}" auto-height placeholder="订单备注" />
  56. </view>
  57. </view>
  58. <view style="height: 20rpx;" />
  59. <Yl_FunTabs list='{{tabsList}}' active='{{tabsActive}}' bind:onChenge="tabsChange">
  60. <Product slot='借用工具明细' id='Product' disabled="{{detail.status!='新建'}}" isAdd='{{detail.sa_contractid}}' />
  61. <Yl_Attachment slot='附件' id='Yl_Attachment' ownertable="sa_order" ownerid="{{detail.sa_orderid}}" disabled="{{detail.status!='新建'}}" />
  62. <Progress slot='订单进度' id='Progress' />
  63. </Yl_FunTabs>
  64. <view style="height: 130rpx;" />
  65. <view class="footer">
  66. <view class="count">
  67. {{detail.amount}}元
  68. </view>
  69. <view class="but-box">
  70. <van-button custom-class='but delete' wx:if="{{detail.status=='新建'}}" bind:click="deleteItem">删除订单</van-button>
  71. <van-button custom-class='but' wx:if="{{detail.status=='新建'}}" bind:click="submit">提交订单</van-button>
  72. <van-button custom-class='but' wx:if="{{detail.status=='交期待确认'}}" bind:click="notarize">确认交期</van-button>
  73. </view>
  74. </view>