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