Wg.vue 2.89 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<template>
  <div class="eibs-tab">
       <el-col :span="11">
        <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>

       <c-col :span="24">
	    <c-checkbox 
潘际乾 committed
18
        :disabled="this.flag1"
19 20 21 22
      v-model="model.bopmod.basflg"
      style="margin: 0px 0 10px 150px;"
      >基础数据</c-checkbox>
       </c-col>
潘际乾 committed
23 24 25 26
   


       <c-col :span="24">
27
        <el-form-item label="款项去向" prop="bopmod.acttyp">
潘际乾 committed
28 29 30
            <c-select 
            :code="codes.acttyp"
            :disabled="this.flag2"
31
            v-model="model.bopmod.acttyp" style="width:100%" placeholder="请选择款项去向">
潘际乾 committed
32
            </c-select>
33 34 35 36 37
        </el-form-item>
       </c-col>
                                   
       <c-col :span="24">
        <el-form-item label="地区机构号" prop="bopmod.ownextkey">
潘际乾 committed
38
            <c-select 
wangren committed
39
            :code="codes.ownextkey1"
潘际乾 committed
40
            :disabled="this.flag3"
41
            v-model="model.bopmod.ownextkey" style="width:100%" placeholder="请选择地区机构号">
潘际乾 committed
42
            </c-select>
43 44
        </el-form-item>
       </c-col>
潘际乾 committed
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
       </el-col>                                        
       
                  
       
                  
       <!-- <c-col :span="12">
	    <c-checkbox v-model="model.bopmod.dclflg">申报数据</c-checkbox>
       </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.bopmod.vrfflg">核销数据</c-checkbox>
       </c-col> -->
                                   
      
  </div>
</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'],
    props:["model","codes"],
    mixins: [commonProcess],
    data(){
        return {
潘际乾 committed
74 75 76
            flag1:true,
            flag2:true,
            flag3:true,
77 78 79 80 81 82 83 84 85 86 87 88 89 90
        }
    },
    methods:{...Event},
    created:function(){

    },
    watch:{
    "model.bopmod.szflg":{
        immediate:true,
        handler(val ,oldVal){
            if(val=="3"){
                this.flag1=true
                this.flag2=true
                this.flag3=true
wangren committed
91
                this.model.bopmod.ownextkey=''
92 93
            }
            if(val=="2"){
潘际乾 committed
94 95
                this.flag1=false
                this.flag2=true
96
                this.flag3=false
wangren committed
97
                this.model.bopmod.ownextkey='08350012'
98 99 100 101 102
            }
            if(val=="1"){
                this.flag1=false
                this.flag2=false
                this.flag3=false
wangren committed
103
                this.model.bopmod.ownextkey='08350012'
104 105 106 107 108 109 110 111 112 113
            }
        },
    }    

    },
}
</script>
<style>

</style>