优化支付问题
This commit is contained in:
parent
ef518bafa0
commit
9c815458a5
|
|
@ -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">
|
||||||
|
|
@ -144,7 +144,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="dialogTableVisible = false; montey = '';payType=''">取 消</el-button>
|
<el-button @click="dialogTableVisible = false; montey = ''; payType = ''">取 消</el-button>
|
||||||
<el-button type="primary" @click="sumbit()">确 定</el-button>
|
<el-button type="primary" @click="sumbit()">确 定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
@ -210,7 +210,7 @@ export default {
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
montey: null,
|
montey: null,
|
||||||
payType:null,
|
payType: null,
|
||||||
selectCount: 0,
|
selectCount: 0,
|
||||||
query: {
|
query: {
|
||||||
type: '',
|
type: '',
|
||||||
|
|
@ -226,7 +226,7 @@ export default {
|
||||||
loading: false,
|
loading: false,
|
||||||
list: []
|
list: []
|
||||||
},
|
},
|
||||||
info: ''
|
info: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -238,24 +238,22 @@ export default {
|
||||||
this.idinfo = id
|
this.idinfo = id
|
||||||
},
|
},
|
||||||
async sumbit() {
|
async sumbit() {
|
||||||
try {
|
this.dialogTableVisible = false
|
||||||
const res = await paidAmount({
|
try {
|
||||||
id: this.idinfo,
|
const res = await paidAmount({
|
||||||
paidAmount: this.montey,
|
id: this.idinfo,
|
||||||
payType:this.payType
|
paidAmount: this.montey,
|
||||||
})
|
payType: this.payType
|
||||||
|
})
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getTableData() {
|
async getTableData() {
|
||||||
this.tableData.loading = true
|
this.tableData.loading = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue