|
|
@@ -93,6 +93,11 @@
|
|
|
label="企业名称"
|
|
|
width="180"
|
|
|
></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="boss"
|
|
|
+ label="法人"
|
|
|
+ width="180"
|
|
|
+ ></el-table-column>
|
|
|
<el-table-column
|
|
|
prop="artificialPersonN"
|
|
|
label="联系人"
|
|
|
@@ -124,12 +129,26 @@
|
|
|
label="租赁期限"
|
|
|
width="180"
|
|
|
></el-table-column>
|
|
|
- <!-- <el-table-column prop="rent" label="租金" width="180"></el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="paymentMethod"
|
|
|
- label="缴纳方式"
|
|
|
- width="180"
|
|
|
- ></el-table-column> -->
|
|
|
+ <el-table-column prop="wechatPay" label="微信支付" >
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <el-switch
|
|
|
+ v-model="row.wechatPay"
|
|
|
+ active-color="#13ce66"
|
|
|
+ inactive-color="#ff4949"
|
|
|
+ @change="handlChange(row)">
|
|
|
+ </el-switch>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="aliPay" label="支付宝支付" >
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <el-switch
|
|
|
+ v-model="row.aliPay"
|
|
|
+ active-color="#13ce66"
|
|
|
+ inactive-color="#ff4949"
|
|
|
+ @change="handlChange(row)">
|
|
|
+ </el-switch>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="操作" fixed="right" width="220">
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-button size="mini" type="primary" @click="handlePayment(row)"
|
|
|
@@ -339,6 +358,26 @@ export default {
|
|
|
this.changePage(this.pageIndex);
|
|
|
}
|
|
|
},
|
|
|
+ handlChange(record){
|
|
|
+ var self = this;
|
|
|
+ var formData = new FormData();
|
|
|
+ self.loading = true;
|
|
|
+
|
|
|
+ formData.append("id", record.id);
|
|
|
+ formData.append("wechatPay", record.wechatPay);
|
|
|
+ formData.append("aliPay", record.aliPay);
|
|
|
+
|
|
|
+ checkinInfoApi.updateWechatPayOrAliPay(formData).then(function (response) {
|
|
|
+ var jsonData = response.data;
|
|
|
+ self.loading = false;
|
|
|
+ if (jsonData.result) {
|
|
|
+ self.changePage(self.pageIndex);
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ self.$message.error(jsonData.message + "");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
mounted: function () {
|
|
|
this.changePage(1);
|