freezeDetailModal.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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>下单时间</text>
  17. <text>下单人员</text>
  18. <text>数量</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: 24rpx;
  83. padding: 20upx 30upx 15upx;
  84. border-bottom: 2rpx solid #eee;
  85. color: #666;
  86. }
  87. .product-con{
  88. width: 78%;
  89. margin: 55% auto 0;
  90. background-color: #fff;
  91. border-radius: 24upx;
  92. .product-main{
  93. padding: 0 30upx 20upx 30upx;
  94. font-size: 24upx;
  95. max-height: 30vh;
  96. overflow: auto;
  97. }
  98. .product-footer{
  99. font-size: 30upx;
  100. display: flex;
  101. justify-content: space-between;
  102. align-items: center;
  103. text-align: center;
  104. border-top: 1upx solid #E5E5E5;
  105. .button-cancel{
  106. color: #999;
  107. border-right: 1upx solid #E5E5E5;
  108. flex-grow: 1;
  109. padding: 20upx 0;
  110. }
  111. }
  112. }
  113. }
  114. </style>