salesContract.vue 2.9 KB

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