优化支付问题
This commit is contained in:
parent
ef518bafa0
commit
9c815458a5
|
|
@ -83,7 +83,7 @@
|
|||
<template v-slot="scope">
|
||||
<div class="name_wrap">
|
||||
<span class="name">{{ scope.row.name }}</span>
|
||||
<el-tag type="info" v-if="scope.row.specSnap" size="mini">{{ scope.row.specSnap }}</el-tag>
|
||||
<!-- <el-tag type="info" v-if="scope.row.specSnap" size="mini">{{ scope.row.specSnap }}</el-tag> -->
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="应付金额" prop="totalAmount">
|
||||
<template v-slot="scope">
|
||||
<span v-if="scope.row.type != 'purveyor'">-</span> ¥{{ scope.row.totalAmount }}
|
||||
¥{{ scope.row.totalAmount }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="已付款金额" prop="totalAmount">
|
||||
|
|
@ -104,7 +104,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="待付款金额" prop="waitAmount">
|
||||
<template v-slot="scope">
|
||||
<span class="num"><span v-if="scope.row.type != 'purveyor'">-</span> ¥{{ scope.row.waitAmount }}</span>
|
||||
<span class="num"> ¥{{ scope.row.waitAmount }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" prop="status">
|
||||
|
|
@ -226,7 +226,7 @@ export default {
|
|||
loading: false,
|
||||
list: []
|
||||
},
|
||||
info: ''
|
||||
info: '',
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
|
@ -238,6 +238,7 @@ export default {
|
|||
this.idinfo = id
|
||||
},
|
||||
async sumbit() {
|
||||
this.dialogTableVisible = false
|
||||
try {
|
||||
const res = await paidAmount({
|
||||
id: this.idinfo,
|
||||
|
|
@ -246,12 +247,9 @@ export default {
|
|||
})
|
||||
|
||||
this.$message({ type: 'success', message: '付款成功!' });
|
||||
setTimeout(() => {
|
||||
this.dialogTableVisible = false
|
||||
this.montey = ''
|
||||
this.payType = ''
|
||||
this.getTableData()
|
||||
}, 1500);
|
||||
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
|
|
|
|||
Loading…
Reference in New Issue