Approval.vue 2.34 KB
Newer Older
耿迪迪's avatar
耿迪迪 committed
1 2 3
<template>
  <div>
    <CommonInfo :tradeData="tradeData"/>
lizhichao's avatar
lizhichao committed
4
    <div style="margin: 11px 30px;color: #1890ff;">买方经办人审核</div>
耿迪迪's avatar
耿迪迪 committed
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
    <el-row style="margin-left:97px">
      <el-col :span="5">
        <el-row>
          <el-col :span="6">评价</el-col>
          <el-col :span="18">{{tradeData.tradeScore?tradeData.tradeScore:"-"}}</el-col>
        </el-row>
      </el-col>
      <el-col :span="5">
        <el-row>
          <el-col :span="8">成交价</el-col>
          <el-col :span="16">{{tradeData.dealPrice}}</el-col>
        </el-row>
      </el-col>
      <el-col :span="5">
        <el-row>
          <el-col :span="8">审核人</el-col>
          <el-col :span="16">{{tradeData.tradeDeptManagerName}}</el-col>
        </el-row>
      </el-col>
    </el-row>
    <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>
lizhichao's avatar
lizhichao committed
41
          <el-col :span="16"><el-input :value="$store.state.user.nickName" style="width: 90px" disabled/></el-col>
耿迪迪's avatar
耿迪迪 committed
42 43 44 45 46 47 48 49
        </el-row>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  import CommonInfo from "./CommonInfo";
耿迪迪's avatar
耿迪迪 committed
50
  import { settlementTrade } from "@/api/transaction/tradeProject.js";
耿迪迪's avatar
耿迪迪 committed
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
  export default {
    name: "approval",
    props:{
      tradeData: {
        type: Object
      }
    },
    components:{
      CommonInfo
    },
    watch:{
      radio(newVal,oldVal){
        if(newVal== "1"){
          this.tradeStatus = "3";

        }
        if(newVal== "2"){
          this.tradeStatus = "4";
        }
      }
    },
    data(){
        return{
          radio: "1",
          tradeStatus: "3"
        }
    },
    methods:{
耿迪迪's avatar
耿迪迪 committed
79 80 81
      resetSuggestion(){
        this.radio = "1";
      },
耿迪迪's avatar
耿迪迪 committed
82 83 84 85
      checkParam(){
        return false;
      },
      submitSuggestion(){
耿迪迪's avatar
耿迪迪 committed
86
        return {tradeId:this.tradeData.tradeId,tradeStatus:this.tradeStatus,applyDeptManagerId:this.$store.state.user.userId};
耿迪迪's avatar
耿迪迪 committed
87 88 89 90 91 92 93 94
      }
    }
  }
</script>

<style scoped>

</style>