scaned-pop.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <view>
  3. <u-popup :show="scanedShow" :closeOnClickOverlay="false" @close="closeClick" mode="center" :round="10">
  4. <view class="error-box">
  5. <view class="flex_box flex_row_center">
  6. <u-image src="@/static/image/error-img.png" width="112rpx" height="112rpx"></u-image>
  7. </view>
  8. <view class="tips-value">请确认该商品出库数量</view>
  9. <view class="num-box">
  10. <u-number-box v-model="numberVal">
  11. <view slot="minus" class="minus">
  12. <u-icon name="minus" color="#0256FF" size="12"></u-icon>
  13. </view>
  14. <text slot="input" class="input">{{numberVal}}</text>
  15. <view slot="plus" class="plus">
  16. <u-icon name="plus" color="#FFFFFF" size="12"></u-icon>
  17. </view>
  18. </u-number-box>
  19. </view>
  20. </good-item>
  21. <view class="btn-box">
  22. <u-button class="no-btn" type="primary" :plain="true" text="取消" @click="closeClick"></u-button>
  23. <u-button class="yes-btn" type="primary" text="确认" @click="confirmClick"></u-button>
  24. </view>
  25. </view>
  26. </u-popup>
  27. </view>
  28. </template>
  29. <script>
  30. export default{
  31. props:{
  32. value:{
  33. type:Boolean,
  34. default:false
  35. }
  36. },
  37. watch:{
  38. value: {
  39. handler(val) {
  40. this.scanedShow = val
  41. },
  42. immediate:true
  43. }
  44. },
  45. data() {
  46. return {
  47. scanedShow:false,
  48. numberVal:0
  49. }
  50. },
  51. methods:{
  52. closeClick() {
  53. this.$emit('close')
  54. },
  55. confirmClick() {
  56. this.$emit('confirm')
  57. }
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .error-box {
  63. width: 580rpx;
  64. padding: 48rpx 36rpx 48rpx;
  65. .tips-value {
  66. color: #1D212A;
  67. font-family: "PingFang SC";
  68. font-size: 32rpx;
  69. font-style: normal;
  70. font-weight: bold;
  71. margin-top: 30rpx;
  72. text-align: center;
  73. }
  74. .btn-box {
  75. display: flex;
  76. justify-content: space-between;
  77. margin-top: 40rpx;
  78. .no-btn {
  79. width: 244rpx;
  80. border-radius: 16rpx;
  81. border: 1px solid #BFC8DB;
  82. color: #86909C;
  83. font-size: 32rpx;
  84. }
  85. .yes-btn {
  86. width: 244rpx;
  87. border-radius: 16rpx;
  88. background: #0256FF;
  89. font-size: 32rpx;
  90. }
  91. }
  92. .num-box {
  93. display: flex;
  94. align-items: center;
  95. justify-content: center;
  96. margin-top: 30rpx;
  97. .input {
  98. width: 112rpx;
  99. text-align: center;
  100. border-bottom: 1px solid #0256FF;
  101. margin: 0 8rpx;
  102. }
  103. .minus {
  104. width: 40rpx;
  105. height: 40rpx;
  106. border-radius: 8rpx;
  107. border: 1px solid #0256FF;
  108. display: flex;
  109. align-items: center;
  110. justify-content: center;
  111. }
  112. .plus {
  113. width: 40rpx;
  114. height: 40rpx;
  115. border-radius: 8rpx;
  116. background-color: #0256FF;
  117. display: flex;
  118. align-items: center;
  119. justify-content: center;
  120. }
  121. }
  122. }
  123. </style>