acquisition_information_details.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <template>
  2. <view class="wrap">
  3. <view class='content1'>
  4. <view class='row'>
  5. <view class="left">{{dataList.warehouseName}}</view>
  6. </view>
  7. <view class='row '>
  8. <textarea placeholder="请输入仓库信息" class="textarea" maxlength="2000"
  9. v-model="dataList.acquisitionInformation" disabled></textarea>
  10. <view class="textarea-bottom">
  11. {{dataList.acquisitionInformation?dataList.acquisitionInformation.length:'0'}}/2000字</view>
  12. </view>
  13. <view class='row content-item'>
  14. 显示在易粮易运收购信息中
  15. <view class="right">
  16. <u-switch v-model="checked" active-color="#22C572" inactive-color="#eee" size='40' disabled="disabled"></u-switch>
  17. </view>
  18. </view>
  19. </view>
  20. <u-toast ref="uToast" />
  21. <view style='padding:10px;' class='flex bottom-btn'>
  22. <u-button @click='returnPage' type="error" class="btn1" hover-class='none'>返回</u-button>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import {
  28. mapState
  29. } from 'vuex';
  30. export default {
  31. components: {},
  32. data() {
  33. return {
  34. isSHowBtn: true,
  35. isShowAlert: false,
  36. checked: false,
  37. toexamineId: "",
  38. isShow: false,
  39. dataList: {},
  40. everyCheck: "",
  41. }
  42. },
  43. onBackPress(e) {
  44. if (this.everyCheck) {
  45. uni.navigateTo({
  46. url: "/pages/task/my_task"
  47. })
  48. return true;
  49. }
  50. },
  51. onLoad(options) {
  52. this.toexamineId = options.id
  53. this.isShow = options.isShowbtn
  54. this.everyCheck = uni.getStorageSync("everyTask")
  55. },
  56. computed: {
  57. ...mapState(['hasLogin', 'userInfo']),
  58. },
  59. onShow() {
  60. this.getList()
  61. },
  62. methods: {
  63. getList() {
  64. this.$api.doRequest('get', '/acquisitionInfo/getAcquisition', {
  65. id: this.toexamineId
  66. }).then(res => {
  67. if (res.data.code == 200) {
  68. this.dataList = res.data.data
  69. if (this.dataList.checkFlag == 1) {
  70. this.checked = true
  71. } else {
  72. this.checked = false
  73. }
  74. }
  75. })
  76. },
  77. returnPage(){
  78. uni.navigateBack()
  79. },
  80. }
  81. }
  82. </script>
  83. <style lang='scss' scoped>
  84. .wrap {
  85. background: #fff;
  86. margin: 10px;
  87. border-radius: 10px;
  88. padding: 40rpx 30rpx;
  89. }
  90. .content-item {
  91. margin-top: 50rpx;
  92. font-size: 28rpx;
  93. }
  94. .row {
  95. display: flex;
  96. justify-content: space-between;
  97. position: relative;
  98. /* border-bottom: 1px solid #EEEEEE; */
  99. .right,
  100. input {
  101. font-size: 28rpx;
  102. // color: #333333;
  103. }
  104. .left {
  105. font-size: 34rpx;
  106. color: #333333;
  107. font-weight: 600;
  108. }
  109. }
  110. .textarea {
  111. background: #F9F9FA;
  112. font-size: 26rpx;
  113. text-align: left;
  114. width: 100%;
  115. height: 60px;
  116. padding: 32rpx;
  117. border-radius: 10rpx;
  118. margin-top: 40rpx;
  119. height: 50vh;
  120. padding-bottom: 20rpx;
  121. color: #AFB3BF;
  122. }
  123. .textarea-bottom {
  124. position: absolute;
  125. bottom: 20rpx;
  126. right: 20rpx;
  127. color: #606266;
  128. }
  129. .bottom-btn {
  130. width: 100%;
  131. position: fixed;
  132. bottom: 0;
  133. display: flex;
  134. z-index: 2;
  135. left: 0;
  136. background-color: #f8f8f8;
  137. flex-direction: column;
  138. .btn1,
  139. .btn2 {
  140. width: 100%;
  141. margin-bottom: 26rpx;
  142. border-radius: 90rpx;
  143. }
  144. .btn1 {
  145. background: white;
  146. color: #00C265;
  147. }
  148. }
  149. .cancel,
  150. .confirm {
  151. position: absolute;
  152. display: inline-block;
  153. width: 50%;
  154. text-align: center;
  155. bottom: 0;
  156. padding: 10px;
  157. border-top: 1px solid #eee;
  158. font-size: 34rpx;
  159. }
  160. .cancel {
  161. left: 0;
  162. border-right: 1px solid #eee;
  163. color: #AFB3BF;
  164. }
  165. .confirm {
  166. right: 0;
  167. color: #22C572;
  168. }
  169. .u-textarea-style {
  170. margin: 20rpx;
  171. background: #F9F9FA;
  172. border-radius: 10px;
  173. border: 1px solid #EEEEEE;
  174. padding: 10rpx 20rpx;
  175. position: relative;
  176. .right-bottom {
  177. position: absolute;
  178. right: 20rpx;
  179. bottom: 20rpx;
  180. color: #AFB3BF;
  181. }
  182. }
  183. </style>