freezeDetailModal.vue 2.6 KB

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