Calculate.vue 1.82 KB
Newer Older
耿迪迪's avatar
耿迪迪 committed
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
<template>
  <div>
    <CommonInfo :debitData="debitData"/>
    <div style="margin: 11px 30px;color: #1890ff;">出借部门长审核</div>
    <el-form label-width="100px">
      <el-form-item label="审核人">{{ debitData.lendManageName }}</el-form-item>
    </el-form>
    <el-divider></el-divider>

    <div style="margin: 11px 30px;color: #1890ff;">核算部审批</div>
    <el-row style="margin-left:97px">
      <el-col :span="10">
        <el-row>
          <el-col :span="6">
            <el-radio v-model="radio" label="1">通过</el-radio>
          </el-col>
          <el-col :span="6">
            <el-radio v-model="radio" label="2">不通过</el-radio>
          </el-col>
        </el-row>
      </el-col>
      <el-col :span="10">
        <el-row>
          <el-col :span="5">审核人</el-col>
          <el-col :span="16"><el-input :value="$store.state.user.nickName" style="width: 90px" disabled/></el-col>
        </el-row>
      </el-col>
    </el-row>
  </div>

</template>

<script>
  import CommonInfo from "./CommonInfo";
  export default {
    name: "calculate",
    props:{
      debitData:{
        type: Object
      }
    },
    data(){
        return{
          radio: "1",
          debitStatus: "2"
        }
    },
    watch:{
      radio(newVal,oldVal){
        if(newVal== "1"){
          this.debitStatus = "2";

        }
        if(newVal== "2"){
          this.debitStatus = "4";
        }
      }
    },
    components:{
      CommonInfo
    },
    methods:{
      resetSuggestion(){
        this.radio = "1";
      },
      checkParam(){
        return false;
      },
      submitSuggestion(){
        let param = {...this.debitData};
        param.debitStatus = this.debitStatus;
        param.approvalId = this.$store.state.user.userId;
        return param;
      }
    }
  }
</script>

<style scoped>

</style>