Wg.vue 2.68 KB
Newer Older
1
<template>
2 3
    <div class="eibs">
        <el-col :span="12" style="padding-right: 20px">
nanrui committed
4 5 6 7 8 9
            <c-col :span="24">
                <el-form-item label="申报类型" prop="bopmod.szflg">
                    <c-select v-model="model.bopmod.szflg" style="width:100%" placeholder="请选择申报类型" :code="codes.szflg">
                    </c-select>
                </el-form-item>
            </c-col>
10

nanrui committed
11 12 13 14
            <c-col :span="24">
                <c-checkbox :disabled="this.flag1" v-model="model.bopmod.basflg" style="margin: 0px 0 10px 150px;">基础数据
                </c-checkbox>
            </c-col>
潘际乾 committed
15 16 17



nanrui committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
            <c-col :span="24">
                <el-form-item label="款项去向" prop="bopmod.acttyp">
                    <c-select :code="codes.acttyp" :disabled="this.flag2" v-model="model.bopmod.acttyp"
                        style="width:100%" placeholder="请选择款项去向">
                    </c-select>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="地区机构号" prop="bopmod.ownextkey">
                    <c-select :code="codes.ownextkey1" :disabled="this.flag3" v-model="model.bopmod.ownextkey"
                        style="width:100%" placeholder="请选择地区机构号">
                    </c-select>
                </el-form-item>
            </c-col>
        </el-col>
    </div>
35 36 37 38 39 40 41 42 43
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Bctset/Event"

export default {
    inject: ['root'],
nanrui committed
44
    props: ["model", "codes"],
45
    mixins: [commonProcess],
nanrui committed
46
    data() {
47
        return {
nanrui committed
48 49 50
            flag1: true,
            flag2: true,
            flag3: true,
51 52
        }
    },
nanrui committed
53 54
    methods: { ...Event },
    created: function () {
55 56

    },
nanrui committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
    watch: {
        "model.bopmod.szflg": {
            immediate: true,
            handler(val, oldVal) {
                if (val == "3") {
                    this.flag1 = true
                    this.flag2 = true
                    this.flag3 = true
                    this.model.bopmod.ownextkey = ''
                }
                if (val == "2") {
                    this.flag1 = false
                    this.flag2 = true
                    this.flag3 = false
                    this.model.bopmod.ownextkey = '08350012'
                }
                if (val == "1") {
                    this.flag1 = false
                    this.flag2 = false
                    this.flag3 = false
                    this.model.bopmod.ownextkey = '08350012'
                }
            },
        }
81 82 83 84 85 86 87

    },
}
</script>
<style>

</style>