purchaseContract.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <template>
  2. <view>
  3. <view class='content'>
  4. <view class='content-item' v-for='item in contractList'>
  5. <view style='padding:10px 0;' class="flex justify-between">
  6. <view class="title">合同编号</view>
  7. <view>{{item.contractNo}}</view>
  8. </view>
  9. <view style='padding:10px 0;' class="flex justify-between">
  10. <view class="title">客户</view>
  11. <view>{{item.seller}}</view>
  12. </view>
  13. <view style='padding:10px 0;' class="flex justify-between">
  14. <view class="title">合同重量(吨)</view>
  15. <view>{{item.weight}}</view>
  16. </view>
  17. <view style='padding:10px 0;' class="flex justify-between">
  18. <view class="title">合同单价(元)</view>
  19. <view>{{item.unitContractPrice}}</view>
  20. </view>
  21. <view style='padding:10px 0;' class="flex justify-between">
  22. <view class="title">合同总价(元)</view>
  23. <view>{{item.totalContractPrice}}</view>
  24. </view>
  25. <view style='padding:10px 0;' class="flex justify-between">
  26. <view class="title">已付款(元)</view>
  27. <view>{{item.mildewGrain}}</view>
  28. </view>
  29. <view style='padding:10px 0;' class="flex justify-between">
  30. <view class="title">已开发票 (元)</view>
  31. <view>{{item.goodsNames}}</view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. data() {
  40. return {
  41. chartlist: [],
  42. carCount1: '',
  43. carCount2: '',
  44. carCount3: '',
  45. inventoryCost: '',
  46. inventoryValue: '',
  47. ZChart: {},
  48. // url:"https://datav.aliyuncs.com/share/235518097ffd673bc1eb05011b9a02b6",
  49. url: '',
  50. flag: true,
  51. chartData: {},
  52. ringoptions: {},
  53. contractType:2,
  54. contractList:[],
  55. currentPage:1,
  56. pageSize:10
  57. }
  58. },
  59. onLoad: function(option) {
  60. uni.showLoading({
  61. title: "加载中",
  62. mask: true
  63. })
  64. this.init()
  65. },
  66. methods: {
  67. skipContent(index){
  68. console.log(index)
  69. if(index<2){
  70. uni.navigateTo({
  71. url:'/pages/user/contractLook/purchaseContract'
  72. })
  73. }else if(index>2&&index<6){
  74. uni.navigateTo({
  75. url:'/pages/user/contractLook/salesContract'
  76. })
  77. }
  78. },
  79. init() {
  80. this.$api.doRequest('get', '/contractManagementInfo/selectInfo',
  81. {compId:uni.getStorageSync('pcUserInfo').compId,
  82. contractType: this.contractType,goodsType:1,currentPage: this.currentPage,pageSize: this.pageSize}).then(res => {
  83. uni.hideLoading()
  84. this.contractList=res.data.data.records
  85. })
  86. },
  87. getdata(e) {
  88. console.log(e)
  89. }
  90. }
  91. }
  92. </script>
  93. <style scoped lang="scss">
  94. .content{
  95. background:#F5F6FA;
  96. }
  97. .content-item{
  98. background:#fff;
  99. margin:10px;
  100. padding:10px;
  101. border-radius:6px;
  102. font-size:14px;
  103. .title {
  104. color:#9698A2;
  105. font-size:26rpx;
  106. }
  107. }
  108. charts-box {
  109. // background: black;
  110. position: relative;
  111. // top: 70vh;
  112. }
  113. .content2 .row,
  114. .content4 .row {
  115. display: flex;
  116. justify-content: space-around;
  117. background: #24262d;
  118. padding: 40rpx 20rpx;
  119. .item-top,
  120. .item-bottom {
  121. color: #d5d5d5;
  122. }
  123. .item-bottom {
  124. display: flex;
  125. align-items: center;
  126. }
  127. }
  128. .bottom-tip {
  129. position: absolute;
  130. z-index: 11;
  131. color: #8c8c8d;
  132. right: 10px;
  133. bottom: 10px;
  134. }
  135. .title-margin {
  136. bottom: 120rpx;
  137. }
  138. </style>