ke_junjie
2025-06-04 84620534eb627e95811b971a4b552b6a177829bf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<template>
    <el-dialog
        custom-class="sy-modal"
        
        title="计划下发的缺料信息"
        width="760px"
        :before-close="onClose"
    >
        <template #default>
            <div class="tasks-of-output-plan-check-modal-content">
                <el-scrollbar>
                    <el-alert title="您将要下发的出库计划有以下缺料状况,确认要继续下发吗?" type="warning" :closable="false" />
                    <div class="info-view">
                        <!-- ##################### -->
                        <div class="info-row" v-for="(item,index) in infos" :key="'check-info-'+index">
                            <p>计划号{{item.PlanNo}}:<span v-if="!item.Data || item.Data.length===0">无缺料</span></p>
                            <div class="missing-list" v-if="item.Data && item.Data.length>0">
                                <el-table :data="item.Data" border stripe>
                                    <el-table-column width="55" label="序号">
                                        <template #default="scope">{{scope.$index+1}}</template>
                                    </el-table-column>
                                    <el-table-column prop="SerialNumber" label="序列号" />
                                    <el-table-column prop="OrderNo" label="订货号" />
                                </el-table>
                            </div>
                        </div>
                        <!-- ##################### -->
                    </div>
                </el-scrollbar>
            </div>
 
        </template>
        <!-- ************************************ -->
        <template #footer>
            <span class="dialog-footer">
                <el-button @click="onClose">取&nbsp;消</el-button>
                <el-button type="primary" @click="onSubmit">确&nbsp;定</el-button>
            </span>
        </template>
    </el-dialog>
</template>
 
<script>
export default {
    name:'tasksOfOutputPlanCheckModalCompontent',
    emits:['submitCallback','update:visible'],
    props:{
        visible:{
            type:Boolean,
            default:false
        },
        infos:{
            type:Object,
            default:function(){
                return []
            }
        }
    },
    data(){
        return {
            
        }
    },
    watch:{
        visible(newVal,oldVal){
            if (newVal!==oldVal) {
                if (newVal) {
                    this.initShow();
                } else {
                    
                }
            }
        }
    },
    methods:{
        initShow(){
            
        },
        close(){
            this.$emit('update:visible',false)
        },
        onClose(){
            this.close();
        },
        onSubmit(){
            this.close();
            this.$emit('submitCallback')
        }
    }
}
</script>
 
<style scoped lang="scss">
.tasks-of-output-plan-check-modal-content{
    height: 400px;
    box-sizing: border-box;
    padding: 8px;
    .info-view{
        padding-top: 8px;
        .info-row{
            margin-bottom: 10px;
            .missing-list{
                padding-top: 6px;
            }
            &:last-child{
                margin-bottom: 0;
            }
        }
    }
}
</style>