Commit 431e7288 authored by 邓春圆's avatar 邓春圆

审核组件调用接口修改

parent 9c82e980
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<el-descriptions-item label="业务员">{{record.salesmanName}}</el-descriptions-item> <el-descriptions-item label="业务员">{{record.salesmanName}}</el-descriptions-item>
<el-descriptions-item label="付款金额">{{record.totalAmount}}rmb</el-descriptions-item> <el-descriptions-item label="付款金额">{{record.totalAmount}}rmb</el-descriptions-item>
</el-descriptions> </el-descriptions>
<router-link :to="{path:'/financial/commission-requestFunds',query:{lookId: this.id}}"> <router-link :to="{path:'/financial/commission-requestFunds',query:{lookId: this.record.id}}">
<el-button>查看详情</el-button> <el-button>查看详情</el-button>
</router-link> </router-link>
</div> </div>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<script> <script>
import {getCommissionPayment} from "@/api/ecw/financial"; import {commissionPaymentGetPaymentApprove, getCommissionPayment} from "@/api/ecw/financial";
import {parseTime} from "../../../../utils/ruoyi"; import {parseTime} from "../../../../utils/ruoyi";
export default { export default {
...@@ -35,9 +35,10 @@ export default { ...@@ -35,9 +35,10 @@ export default {
watch:{ watch:{
id:{ id:{
handler:function (newVal){ handler:function (newVal){
getCommissionPayment({id:newVal}).then(r => { commissionPaymentGetPaymentApprove({id:newVal}).then(r => {
console.log(r.data, '审批') getCommissionPayment({id:r.data.paymentId}).then(res => {
this.record = r.data; this.record = res.data;
})
}) })
}, },
immediate:true, immediate:true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment