salesContract.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <view>
  3. <view style='background:#fff;padding:15px 10px;border-radius:0 0 10px 10px;'>
  4. <u-search bgColor='#F5F6F9' @change='keyWordChange' :show-action="false" placeholder="请输入合同编号或客户名称" v-model="searchKeyWord"></u-search>
  5. </view>
  6. <view class='content'>
  7. <view class='content-item' v-for='item in contractList'>
  8. <view style='padding:10px 0;' class="flex justify-between">
  9. <view class="title">合同编号</view>
  10. <view>{{item.contractNo}}</view>
  11. </view>
  12. <view style='padding:10px 0;' class="flex justify-between">
  13. <view class="title">客户</view>
  14. <view>{{item.buyer}}</view>
  15. </view>
  16. <view style='padding:10px 0;' class="flex justify-between">
  17. <view class="title">合同重量(吨)</view>
  18. <view>{{item.weight}}</view>
  19. </view>
  20. <view style='padding:10px 0;' class="flex justify-between">
  21. <view class="title">合同单价(元)</view>
  22. <view>{{item.unitContractPrice}}</view>
  23. </view>
  24. <view style='padding:10px 0;' class="flex justify-between">
  25. <view class="title">合同总价(元)</view>
  26. <view>{{item.totalContractPrice}}</view>
  27. </view>
  28. <view style='padding:10px 0;' class="flex justify-between">
  29. <view class="title">已付款(元)</view>
  30. <view>{{item.mildewGrain}}</view>
  31. </view>
  32. <view style='padding:10px 0;' class="flex justify-between">
  33. <view class="title">已开发票 (元)</view>
  34. <view>{{item.goodsNames}}</view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. chartlist: [],
  45. carCount1: '',
  46. carCount2: '',
  47. carCount3: '',
  48. inventoryCost: '',
  49. inventoryValue: '',
  50. ZChart: {},
  51. // url:"https://datav.aliyuncs.com/share/235518097ffd673bc1eb05011b9a02b6",
  52. url: '',
  53. flag: true,
  54. chartData: {},
  55. ringoptions: {},
  56. contractType:1,
  57. contractList:[],
  58. currentPage:1,
  59. pageSize:10,
  60. searchKeyWord:''
  61. }
  62. },
  63. onLoad: function(option) {
  64. uni.showLoading({
  65. title: "加载中",
  66. mask: true
  67. })
  68. this.init()
  69. },
  70. methods: {
  71. keyWordChange(e){
  72. this.searchKeyWord=e
  73. uni.showLoading({
  74. title: "加载中",
  75. mask: true
  76. })
  77. this.init()
  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,searchKeyWord:this.searchKeyWord}).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>