procurement-popup.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <template>
  2. <view>
  3. <tui-bottom-popup :zIndex="1002" :maskZIndex="1001" :show.sync="popupShow" @close="$emit('handlerPopupClose', false)">
  4. <view class="popup_content">
  5. <view class="pro_popup_title">参与需求</view>
  6. <view class="popup_form">
  7. <view class="popup_form_item">商品图片:</view>
  8. <view class="popup_img">
  9. <image style="width: 100%;height: 100%;" :src="isImageUrl(joinData.productImage) ? imageUrl : joinData.productImage" mode="aspectFill"></image>
  10. </view>
  11. </view>
  12. <view class="popup_form">
  13. <view class="popup_form_item">商品名称:</view>
  14. <view class="popup_form_name">{{ joinData.productName }}</view>
  15. </view>
  16. <form>
  17. <view class="uni-form-item uni-column">
  18. <view class="title">
  19. <text style="font-size: 26rpx;color: #F85050;">*</text>
  20. 期望单价:
  21. </view>
  22. <view style="position: relative;">
  23. <view class="input_icon">¥</view>
  24. <input
  25. class="uni-input"
  26. type="number"
  27. maxlength="10"
  28. :always-embed="true"
  29. :adjust-position="true"
  30. cursor-spacing="30"
  31. v-model="joinData.price"
  32. @input="fpNumInput($event, 'joinData', 'price')"
  33. />
  34. </view>
  35. </view>
  36. <view class="uni-form-item uni-column">
  37. <view class="title">
  38. <text style="font-size: 26rpx;color: #F85050;">*</text>
  39. 采购数量:
  40. </view>
  41. <view style="position: relative;">
  42. <input
  43. class="uni-input"
  44. maxlength="10"
  45. type="number"
  46. :always-embed="true"
  47. :adjust-position="true"
  48. cursor-spacing="30"
  49. v-model="joinData.number"
  50. @input="NumberInput($event, 'joinData', 'number')"
  51. />
  52. </view>
  53. </view>
  54. <view class="submit_btn">
  55. <button class="popup_btn cancel" @click="$emit('handlerPopupClose', false)">取消</button>
  56. <button class="popup_btn submit" @click="$emit('procurementParticipate', joinData)">确定</button>
  57. </view>
  58. </form>
  59. </view>
  60. </tui-bottom-popup>
  61. </view>
  62. </template>
  63. <script>
  64. import procurementMixins from '../mixins/procurementMixins.js'
  65. export default {
  66. mixins: [procurementMixins],
  67. props: {
  68. dataObj: {
  69. type: Object,
  70. default: () => ({})
  71. },
  72. isShow: {
  73. type: Boolean,
  74. default: () => false
  75. }
  76. },
  77. data() {
  78. return {
  79. popupShow: false, // 显示隐藏
  80. joinData: {}, // 数据
  81. }
  82. },
  83. watch: {
  84. dataObj(val) {
  85. if(JSON.stringify(val) != '{}') {
  86. this.joinData = val
  87. }
  88. },
  89. isShow(val) {
  90. this.popupShow = val
  91. }
  92. },
  93. methods: {
  94. },
  95. }
  96. </script>
  97. <style scoped lang="scss">
  98. .popup_content {
  99. padding: 0 64rpx;
  100. }
  101. .pro_popup_title {
  102. font-size: 32rpx;
  103. font-weight: bold;
  104. color: #333333;
  105. margin: 40rpx auto;
  106. text-align: center;
  107. }
  108. .popup_form {
  109. margin-bottom: 32rpx;
  110. }
  111. .popup_form .popup_form_item {
  112. color: #999999;
  113. font-size: 26rpx;
  114. margin-bottom: 16rpx;
  115. }
  116. .popup_form .popup_img {
  117. width: 136rpx;
  118. height: 136rpx;
  119. }
  120. .popup_form .popup_form_name {
  121. color: #333333;
  122. font-size: 26rpx;
  123. font-weight: 400;
  124. line-height: 44rpx;
  125. }
  126. .uni-form-item .title {
  127. color: #999999;
  128. font-size: 26rpx;
  129. margin-bottom: 16rpx;
  130. }
  131. .input_icon {
  132. position: absolute;
  133. left: 15rpx;
  134. top: 24rpx;
  135. color: #b2b2b2;
  136. font-size: 26rpx;
  137. }
  138. .uni-form-item .uni-input {
  139. height: 80rpx;
  140. border: 1px solid #b2b2b2;
  141. border-radius: 6rpx 6rpx 6rpx 6rpx;
  142. font-size: 26rpx;
  143. padding-left: 47rpx;
  144. margin-bottom: 32rpx;
  145. }
  146. .submit_btn {
  147. margin-top: 56rpx;
  148. height: 84rpx;
  149. display: flex;
  150. justify-content: space-between;
  151. align-items: center;
  152. margin-bottom: 50rpx;
  153. }
  154. .submit_btn .popup_btn {
  155. width: 280rpx;
  156. height: 100%;
  157. border-radius: 45rpx 45rpx 45rpx 45rpx;
  158. text-align: center;
  159. line-height: 84rpx;
  160. }
  161. ::v-deep .submit_btn .cancel {
  162. background-color: #fff4e6;
  163. color: #f3b574;
  164. font-size: 32rpx;
  165. }
  166. ::v-deep .submit_btn .submit {
  167. background-color: #f3b574;
  168. color: #ffffff;
  169. font-size: 32rpx;
  170. }
  171. </style>