schangxiang@126.com
2025-05-21 a3a2b238a2626ef8744e7a135f9ca2e2fbb5184c
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
<template>
    <view class="forma-item">
        <scan-input-form-item placeholder="请选择" :clearable="false" :hasScan="false" :hasSearch="false"
            @click.native="visible=true" class="forma-item" :label="label" v-model="value" :disabled="disabled"/>
        <EasyPicker :visible.sync="visible" :list="selectData" :labelField="labelField" :valueField="valueField"
            @select="getSelectData" />
    </view>
</template>
<script>
    import {
        parseDic
    } from '@/static/js/utils/index.js'
    import EasyPicker from '@/components/EasyPicker.vue'
    import ScanInputFormItem from '@/components/ScanInputFormItem.vue'
    export default {
        props: {
            selectData: {
                type: Array,
                default: () => []
            },
            value:{
                type: String,
                default: ''
            },
            label:{
                type:String,
                default:''
            },
            labelField:{
                type:String,
                default:''
            },
            valueField:{
                type:String,
                default:''
            },
            disabled:{
                type:Boolean,
                default:false
            }
            
        },
        components: {
            EasyPicker,
            ScanInputFormItem
        },
        data() {
            return {
                radiolist1: [],
                radiovalue1: '',
                visible:false,
            }
        },
 
        methods: {
            getSelectData(val,obj){
                this.$emit('update:value',val,obj)
            },
            parseDic
        }
    }
</script>
 
<!-- <style scoped>
    .custom-radio {
        font-size: 16px;
        line-height: 24px;
    }
 
    .material-item-group {
        padding-top: 10rpx;
        display: flex;
 
        .material-list-item {
            border-bottom: 2rpx solid $uni-border-color;
            padding-bottom: 10rpx;
            position: relative;
            flex: 1;
 
            &:last-child {
                border-bottom: 0;
            }
        }
    }
 
    .radio-row {
        background-color: rgb(255, 255, 255);
        margin-bottom: 10px;
        padding-top: 15px;
        padding-bottom: 15px;
    }
 
    .p-form-label {
        font-size: 32rpx;
        color: $u-tips-color;
        padding-bottom: 12rpx;
        padding-left: 20rpx;
 
        .required-tag {
            color: $u-error;
        }
    }
 
    .radio-group u-radio {
        width: 50%;
    }
</style> -->