|
@@ -74,6 +74,15 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column prop="chargeProportion" label="收费比例(%)" width="100px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div class="advancePayment-style">
|
|
|
+ <el-input placeholder="0" v-model="scope.row.chargeProportion"></el-input>
|
|
|
+ <i class="el-icon-edit" style="margin-top: 8px" @click="editchargeProportion(scope.row)"></i>
|
|
|
+ <!-- <span class="btn_css" @click="userSee(scope.row)">查看</span> -->
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="账户" min-width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<el-popover placement="right" width="400" trigger="click" @show="getBillList(scope.row.commonId)">
|
|
@@ -318,6 +327,14 @@
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning",
|
|
|
}).then(() => {
|
|
|
+ // 收费比例/100
|
|
|
+ if(val.chargeProportion){
|
|
|
+ val.chargeProportion = (val.chargeProportion/100).toFixed(2)
|
|
|
+ }
|
|
|
+ //垫付比例
|
|
|
+ if(val.advancePayment){
|
|
|
+ val.advancePayment = (val.advancePayment/100).toFixed(2)
|
|
|
+ }
|
|
|
this.listLoading = true;
|
|
|
editInfo(val)
|
|
|
.then((response) => {
|
|
@@ -335,6 +352,38 @@
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ editchargeProportion(val){
|
|
|
+ this.$confirm("确定修改该货主的收费比例?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }).then(() => {
|
|
|
+ // 收费比例/100
|
|
|
+ if(val.chargeProportion){
|
|
|
+ val.chargeProportion = (val.chargeProportion/100).toFixed(2)
|
|
|
+ }
|
|
|
+ //垫付比例
|
|
|
+ if(val.advancePayment){
|
|
|
+ val.advancePayment = (val.advancePayment/100).toFixed(2)
|
|
|
+ }
|
|
|
+ this.listLoading = true;
|
|
|
+ editInfo(val)
|
|
|
+ .then((response) => {
|
|
|
+ if (response.code == 200) {
|
|
|
+ this.$notify({
|
|
|
+ title: "成功",
|
|
|
+ message: "修改成功!",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.listLoading = false;
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ },
|
|
|
getBillList(id) {
|
|
|
let _obj = {
|
|
|
commonId: id,
|
|
@@ -359,6 +408,14 @@
|
|
|
getList(_obj)
|
|
|
.then((response) => {
|
|
|
this.tableData = response.data.records;
|
|
|
+ for(let i = 0 ;i<this.tableData.length;i++){
|
|
|
+ if(this.tableData[i].advancePayment){
|
|
|
+ this.tableData[i].advancePayment = this.tableData[i].advancePayment*100
|
|
|
+ }
|
|
|
+ if(this.tableData[i].chargeProportion){
|
|
|
+ this.tableData[i].chargeProportion = this.tableData[i].chargeProportion*100
|
|
|
+ }
|
|
|
+ }
|
|
|
this.deptBudgetTotal = response.data.total;
|
|
|
this.listLoading = false;
|
|
|
})
|