123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <template>
- <u-mask class="productModal" :show="isShow" :mask-click-able="false">
- <view class="product-con">
- <view class="product-head">
- <view>
- 修理厂提交以下订单,但未取货,请联系修理厂处理
- </view>
- </view>
- <view class="product-main">
- <view class="p-h1">
- <text>下单时间</text>
- <text>下单人员</text>
- <text>数量</text>
- </view>
- <view class="p-row" v-for="item in list" :key="item.id">
- <text>下单时间</text>
- <text>下单人员</text>
- <text>数量</text>
- </view>
- </view>
- <view class="product-footer">
- <view class="button-cancel" @click="isShow=false">关闭</view>
- </view>
- </view>
- </u-mask>
- </template>
- <script>
- import { queryWaitListByShelfSn } from '@/api/stockCheck'
- export default {
- props: {
- openModal: {
- type: Boolean,
- default: false
- },
- infoData: {
- tyoe: Object,
- default: ()=>{
- return null
- }
- },
- },
- data() {
- return {
- isShow: this.openModal,
- list: []
- }
- },
- methods: {
-
- getList(){
- queryWaitListByShelfSn({
- shelfSn: this.infoData.shelfSn,
- productSn:this.infoData.productSn,
- }).then(res => {
- if(res.status == 200){
- this.list = res.data||[]
- }
- })
- }
- },
- watch: {
-
- openModal (newValue, oldValue) {
- this.isShow = newValue
- },
-
- isShow (newValue, oldValue) {
- if (!newValue) {
- this.$emit('close')
- }else{
- this.getList()
- }
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .productModal{
- width: 100%;
- height: 100%;
- .product-head{
- font-size: 24rpx;
- padding: 20upx 30upx 15upx;
- border-bottom: 2rpx solid #eee;
- color: #666;
- }
- .product-con{
- width: 78%;
- margin: 55% auto 0;
- background-color: #fff;
- border-radius: 24upx;
- .product-main{
- padding: 0 30upx 20upx 30upx;
- font-size: 24upx;
- max-height: 30vh;
- overflow: auto;
-
- }
- .product-footer{
- font-size: 30upx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- text-align: center;
- border-top: 1upx solid #E5E5E5;
- .button-cancel{
- color: #999;
- border-right: 1upx solid #E5E5E5;
- flex-grow: 1;
- padding: 20upx 0;
- }
- }
- }
- }
- </style>
|