approveListItem.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <view class="message-item white-wrap" @click="handleGoDetail">
  3. <view class="title flex">
  4. <image src="../../static/man.png" mode="aspectFill" class="icon"></image>
  5. <view>{{data.title}}</view>
  6. </view>
  7. <view class="message-content">
  8. <view class="info">归属公司:{{data.AffiliatedCompany||""}}</view>
  9. <view class="info">申请销售:{{data.saller}}</view>
  10. <view class="info">
  11. <text>申请类型:{{data.applyType}}</text>
  12. <van-tag type="warning" color="#f59a23" plain v-show="data.contractSourceTag"
  13. style="margin-left:24rpx ;">{{data.contractSourceTag}}</van-tag>
  14. </view>
  15. <view class="info" v-if="data.status==='待审批'||data.status==='处理中'">提交时间:{{data.submitTime|formatTime}}</view>
  16. <view class="info" v-if="data.status==='已审批'||data.status==='已驳回'">审批时间:{{data.approveTime|formatTime}}</view>
  17. <view class="info" v-if="data.status==='已撤回'">撤回时间:{{data.backTime|formatTime}}</view>
  18. <view class="info" v-if="data.status==='已作废'">作废时间:{{data.cancelTime|formatTime}}</view>
  19. <view class="info" v-if="data.status==='已签回'">签回时间:{{data.checkBackTime|formatTime}}</view>
  20. <view class="info" v-if="data.status==='待提交'">保存时间:{{data.ModifyTime|formatTime}}</view>
  21. <view class="info" v-if="data.status==='已解约'">解约时间:{{data.RescindTime|formatTime}}</view>
  22. </view>
  23. <view class="status approve-list-status-wait" v-if="data.status==='待审批'">待审批</view>
  24. <view class="status approve-list-status-wait" v-if="data.status==='待提交'">待提交</view>
  25. <view class="status approve-list-status-doing" v-if="data.status==='处理中'">处理中</view>
  26. <view class="status approve-list-status-success" v-if="data.status==='已审批'">已审批</view>
  27. <view class="status approve-list-status-fail" v-if="data.status==='已驳回'">已驳回</view>
  28. <view class="status approve-list-status-cancel" v-if="data.status==='已作废'">已作废</view>
  29. <view class="status approve-list-status-cancel" v-if="data.status==='已解约'">已解约</view>
  30. <view class="status approve-list-status-back" v-if="data.status==='已撤回'">已撤回</view>
  31. <view class="status approve-list-status-success" v-if="data.status==='已签回'">已签回</view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. props:{
  37. /**
  38. * {title:标题,
  39. * saller:申请销售,
  40. * applyType:申请类型,
  41. * contractSourceTag:合同类型,
  42. * submitTime:提交时间,
  43. * approveTime:审批时间,
  44. * backTime:撤回时间,
  45. * cancelTime:作废时间,
  46. * checkBackTime:签回时间
  47. * ModifyTime:修改时间
  48. * RescindTime:解约事件
  49. * status:状态,
  50. * type:类型(客户custome、合同contract、用印seal)
  51. * id:审批单id
  52. * ContractApprovalId:审批单id
  53. * ContractApprovalRecordId:审批流程单id
  54. * ContractId:合同id}
  55. */
  56. data:null
  57. },
  58. methods: {
  59. handleGoDetail() {
  60. if(this.data.type==='custome'){
  61. uni.navigateTo({
  62. url:'/pages-approve/custome/detail?id='+this.data.id
  63. })
  64. }
  65. if(this.data.type==='contract'){
  66. uni.navigateTo({
  67. url:`/pages-approve/contract/detail?ContractApprovalId=${this.data.ContractApprovalId}&ContractApprovalRecordId=${this.data.ContractApprovalRecordId}&ContractId=${this.data.ContractId}`
  68. })
  69. }
  70. if(this.data.type==='seal'){
  71. uni.navigateTo({
  72. url:`/pages-approve/seal/detail?ContractApprovalId=${this.data.ContractApprovalId}&ContractApprovalRecordId=${this.data.ContractApprovalRecordId}&SealId=${this.data.SealId}`
  73. })
  74. }
  75. }
  76. },
  77. }
  78. </script>
  79. <style lang="scss">
  80. .message-item {
  81. padding: 30rpx;
  82. box-shadow: 0px 3px 12px rgba(175, 175, 175, 0.16);
  83. border-radius: 8px;
  84. margin-bottom: 20rpx;
  85. .title {
  86. font-size: 16px;
  87. font-weight: bold;
  88. margin-bottom: 30rpx;
  89. .icon {
  90. width: 31rpx;
  91. height: 34rpx;
  92. flex-shrink: 0;
  93. margin-right: 10rpx;
  94. position: relative;
  95. top: 4rpx;
  96. }
  97. }
  98. .message-content {
  99. font-size: 14px;
  100. color: #666;
  101. .info {
  102. margin-bottom: 16rpx;
  103. }
  104. .info:last-child {
  105. margin-bottom: 0;
  106. }
  107. }
  108. .status {
  109. text-align: right;
  110. }
  111. }
  112. </style>