freezeDetailModal.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <u-mask class="productModal" :show="isShow" :mask-click-able="false">
  3. <view class="product-con" v-if="infoData">
  4. <view class="product-head">
  5. <view>
  6. 修理厂提交以下订单,但未取货,请联系修理厂处理
  7. </view>
  8. </view>
  9. <scroll-view class="product-main" scroll-y>
  10. <view class="product-main-list">
  11. <view class="p-h1">
  12. <text>下单时间</text>
  13. <text>下单人员</text>
  14. <text>数量</text>
  15. </view>
  16. <view class="p-row" v-for="item in list" :key="item.id">
  17. <text>{{item.orderDate}}</text>
  18. <text>{{item.orderPersonName}}</text>
  19. <text>{{item.totalQty}}</text>
  20. </view>
  21. </view>
  22. </scroll-view>
  23. <view class="product-footer">
  24. <view class="button-cancel" @click="isShow=false">关闭</view>
  25. </view>
  26. </view>
  27. </u-mask>
  28. </template>
  29. <script>
  30. import { queryWaitListByShelfSn } from '@/api/stockCheck'
  31. export default {
  32. props: {
  33. openModal: { // 弹框显示状态
  34. type: Boolean,
  35. default: false
  36. },
  37. infoData: {
  38. tyoe: Object,
  39. default: ()=>{
  40. return null
  41. }
  42. },
  43. },
  44. data() {
  45. return {
  46. isShow: this.openModal, // 是否打开弹框
  47. list: []
  48. }
  49. },
  50. methods: {
  51. // 获取列表数据
  52. getList(){
  53. queryWaitListByShelfSn({
  54. shelfSn: this.infoData.shelfSn,
  55. productSn:this.infoData.productSn,
  56. }).then(res => {
  57. if(res.status == 200){
  58. this.list = res.data||[]
  59. }
  60. })
  61. }
  62. },
  63. watch: {
  64. // 父页面传过来的弹框状态
  65. openModal (newValue, oldValue) {
  66. this.isShow = newValue
  67. },
  68. // 重定义的弹框状态
  69. isShow (newValue, oldValue) {
  70. if (!newValue) {
  71. this.$emit('close')
  72. }else{
  73. this.getList()
  74. }
  75. }
  76. }
  77. }
  78. </script>
  79. <style lang="scss" scoped>
  80. .productModal{
  81. width: 100%;
  82. height: 100%;
  83. .product-head{
  84. font-size: 22rpx;
  85. padding: 30upx 30upx 15upx;
  86. color: #666;
  87. font-weight: bold;
  88. }
  89. .product-con{
  90. width: 580rpx;
  91. margin: 18vh auto 0;
  92. background-color: #fff;
  93. border-radius: 22upx;
  94. .product-main{
  95. padding: 0 30upx 20upx 30upx;
  96. font-size: 22upx;
  97. height: 40vh;
  98. width: 520rpx;
  99. .product-main-list{
  100. > view{
  101. display: flex;
  102. align-items: center;
  103. justify-content: space-between;
  104. border-bottom: 1upx solid #E5E5E5;
  105. padding: 15upx 0;
  106. > text{
  107. text-align: center;
  108. width: 33%;
  109. }
  110. &:last-child{
  111. border:0;
  112. }
  113. }
  114. }
  115. .p-h1{
  116. color: #999;
  117. }
  118. }
  119. .product-footer{
  120. font-size: 24upx;
  121. display: flex;
  122. justify-content: space-between;
  123. align-items: center;
  124. text-align: center;
  125. border-top: 1upx solid #E5E5E5;
  126. .button-cancel{
  127. color: #00aaff;
  128. flex-grow: 1;
  129. padding: 20upx 0;
  130. }
  131. }
  132. }
  133. }
  134. </style>