优化问题

This commit is contained in:
duan
2024-06-27 17:55:33 +08:00
parent ad74689313
commit 939702e998
10 changed files with 97 additions and 25 deletions

View File

@@ -65,7 +65,7 @@
</div>
</div>
</div>
<div class="head-container">
<!-- <div class="head-container">
<div class="select_count_wrap">
<div class="select_count">
<i class="icon el-icon-warning"></i>
@@ -75,7 +75,7 @@
</div>
<el-button>批量付款</el-button>
</div>
</div>
</div> -->
<div class="head-container">
<el-table :data="tableData.list" v-loading="tableData.loading" @select="selectHandle"
@select-all="selectHandle">
@@ -92,7 +92,7 @@
</el-table-column>
<el-table-column label="应付金额" prop="totalAmount">
<template v-slot="scope">
{{ scope.row.totalAmount }}
<span v-if="scope.row.type != 'purveyor'">-</span> {{ 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" >{{ scope.row.waitAmount }}</span>
<span class="num"><span v-if="scope.row.type != 'purveyor'">-</span> {{ scope.row.waitAmount }}</span>
</template>
</el-table-column>
<el-table-column label="状态" prop="status">
@@ -114,6 +114,7 @@
</el-tag>
</template>
</el-table-column>
<el-table-column label="付款方式" prop="payType"></el-table-column>
<el-table-column label="备注" prop="remark"></el-table-column>
<el-table-column label="付款时间" prop="updatedAt">
<template v-slot="scope">
@@ -137,10 +138,13 @@
<el-form>
<el-form-item label="付款金额" label-width="80px">
<el-input v-model="montey" type="number" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="付款方式" label-width="80px">
<el-input v-model="payType" type="text" autocomplete="off"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogTableVisible = false"> </el-button>
<el-button @click="dialogTableVisible = false; montey = '';payType=''"> </el-button>
<el-button type="primary" @click="sumbit()"> </el-button>
</div>
</el-dialog>
@@ -206,6 +210,7 @@ export default {
}
],
montey: null,
payType:null,
selectCount: 0,
query: {
type: '',
@@ -237,11 +242,14 @@ export default {
const res = await paidAmount({
id: this.idinfo,
paidAmount: this.montey,
payType:this.payType
})
this.$message({ type: 'success', message: '付款成功!' });
setTimeout(() => {
this.dialogTableVisible = false
this.montey = ''
this.payType = ''
this.getTableData()
}, 1500);