niefei 4 months ago
parent
commit
3f89b620e9
  1. 2
      src/views/business/dealCashout/index.vue
  2. 18
      src/views/business/dealPay/index.vue
  3. 18
      src/views/business/dealReceive/index.vue
  4. 18
      src/views/business/dealTransfer/index.vue

2
src/views/business/dealCashout/index.vue

@ -338,11 +338,11 @@
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
this.form.status = this.value;
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
this.buttonLoading = true; this.buttonLoading = true;
if (this.form.id != null) { if (this.form.id != null) {
this.form.status = this.value;
updateDealCashout(this.form).then(response => { updateDealCashout(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;

18
src/views/business/dealPay/index.vue

@ -54,9 +54,9 @@
<el-table-column label="付款备注" align="center" prop="remark" /> <el-table-column label="付款备注" align="center" prop="remark" />
<el-table-column label="状态" align="center" prop="status"> <el-table-column label="状态" align="center" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.status == '0'">提交</span> <span v-if="scope.row.status == '0'" style="color: deepskyblue; font-size: 18px;">提交</span>
<span v-if="scope.row.status == '1'">拒绝</span> <span v-if="scope.row.status == '1'" style="color: red; font-size: 18px;">拒绝</span>
<span v-if="scope.row.status == '2'">通过</span> <span v-if="scope.row.status == '2'" style="color: green; font-size: 18px;">通过</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建时间" align="center" prop="createTime" width="180"> <el-table-column label="创建时间" align="center" prop="createTime" width="180">
@ -102,6 +102,11 @@
<el-form-item label="二维码解析" prop="qrCode"> <el-form-item label="二维码解析" prop="qrCode">
<el-input v-model="form.qrCode" placeholder="请输入二维码解析" /> <el-input v-model="form.qrCode" placeholder="请输入二维码解析" />
</el-form-item> </el-form-item>
<el-form-item label="状态" prop="amount" v-if="statusShow">
<el-switch v-model="value" active-color="#13ce66" inactive-color="#ff4949" active-value="2"
inactive-value="1">
</el-switch>
</el-form-item>
<el-form-item label="付款备注" prop="remark"> <el-form-item label="付款备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入付款备注" /> <el-input v-model="form.remark" placeholder="请输入付款备注" />
</el-form-item> </el-form-item>
@ -160,6 +165,9 @@
name: "DealPay", name: "DealPay",
data() { data() {
return { return {
//
statusShow: false,
value: '2',
// loading // loading
buttonLoading: false, buttonLoading: false,
// //
@ -316,6 +324,9 @@
getDealPay(id).then(response => { getDealPay(id).then(response => {
this.loading = false; this.loading = false;
this.form = response.data; this.form = response.data;
if (this.form.status == "0") {
this.statusShow = true;
}
this.open = true; this.open = true;
this.title = "修改付款"; this.title = "修改付款";
}); });
@ -326,6 +337,7 @@
if (valid) { if (valid) {
this.buttonLoading = true; this.buttonLoading = true;
if (this.form.id != null) { if (this.form.id != null) {
this.form.status = this.value;
updateDealPay(this.form).then(response => { updateDealPay(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;

18
src/views/business/dealReceive/index.vue

@ -57,9 +57,9 @@
<el-table-column label="提现备注" align="center" prop="remark" /> <el-table-column label="提现备注" align="center" prop="remark" />
<el-table-column label="状态" align="center" prop="status"> <el-table-column label="状态" align="center" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.status == '0'">提交</span> <span v-if="scope.row.status == '0'" style="color: deepskyblue; font-size: 18px;">提交</span>
<span v-if="scope.row.status == '1'">拒绝</span> <span v-if="scope.row.status == '1'" style="color: red; font-size: 18px;">拒绝</span>
<span v-if="scope.row.status == '2'">通过</span> <span v-if="scope.row.status == '2'" style="color: green; font-size: 18px;">通过</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建时间" align="center" prop="createTime" width="180"> <el-table-column label="创建时间" align="center" prop="createTime" width="180">
@ -105,6 +105,11 @@
<el-form-item label="二维码解析" prop="qrCode"> <el-form-item label="二维码解析" prop="qrCode">
<el-input v-model="form.qrCode" placeholder="请输入二维码解析" /> <el-input v-model="form.qrCode" placeholder="请输入二维码解析" />
</el-form-item> </el-form-item>
<el-form-item label="状态" prop="amount" v-if="statusShow">
<el-switch v-model="value" active-color="#13ce66" inactive-color="#ff4949" active-value="2"
inactive-value="1">
</el-switch>
</el-form-item>
<el-form-item label="提现备注" prop="remark"> <el-form-item label="提现备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入提现备注" /> <el-input v-model="form.remark" placeholder="请输入提现备注" />
</el-form-item> </el-form-item>
@ -163,6 +168,9 @@
name: "DealReceive", name: "DealReceive",
data() { data() {
return { return {
//
statusShow: false,
value: '2',
// loading // loading
buttonLoading: false, buttonLoading: false,
// //
@ -306,6 +314,9 @@
getDealReceive(id).then(response => { getDealReceive(id).then(response => {
this.loading = false; this.loading = false;
this.form = response.data; this.form = response.data;
if (this.form.status == "0") {
this.statusShow = true;
}
this.open = true; this.open = true;
this.title = "修改收款"; this.title = "修改收款";
}); });
@ -316,6 +327,7 @@
if (valid) { if (valid) {
this.buttonLoading = true; this.buttonLoading = true;
if (this.form.id != null) { if (this.form.id != null) {
this.form.status = this.value;
updateDealReceive(this.form).then(response => { updateDealReceive(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;

18
src/views/business/dealTransfer/index.vue

@ -50,9 +50,9 @@
<el-table-column label="转账备注" align="center" prop="remark" /> <el-table-column label="转账备注" align="center" prop="remark" />
<el-table-column label="状态" align="center" prop="status"> <el-table-column label="状态" align="center" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.status == '0'">提交</span> <span v-if="scope.row.status == '0'" style="color: deepskyblue; font-size: 18px;">提交</span>
<span v-if="scope.row.status == '1'">拒绝</span> <span v-if="scope.row.status == '1'" style="color: red; font-size: 18px;">拒绝</span>
<span v-if="scope.row.status == '2'">通过</span> <span v-if="scope.row.status == '2'" style="color: green; font-size: 18px;">通过</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建时间" align="center" prop="createTime" width="180"> <el-table-column label="创建时间" align="center" prop="createTime" width="180">
@ -95,6 +95,11 @@
<el-form-item label="转账金额" prop="amount"> <el-form-item label="转账金额" prop="amount">
<el-input v-model="form.amount" placeholder="请输入转账金额" /> <el-input v-model="form.amount" placeholder="请输入转账金额" />
</el-form-item> </el-form-item>
<el-form-item label="状态" prop="amount" v-if="statusShow">
<el-switch v-model="value" active-color="#13ce66" inactive-color="#ff4949" active-value="2"
inactive-value="1">
</el-switch>
</el-form-item>
<el-form-item label="转账备注" prop="remark"> <el-form-item label="转账备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入转账备注" /> <el-input v-model="form.remark" placeholder="请输入转账备注" />
</el-form-item> </el-form-item>
@ -152,6 +157,9 @@
name: "DealTransfer", name: "DealTransfer",
data() { data() {
return { return {
//
statusShow: false,
value: '2',
// loading // loading
buttonLoading: false, buttonLoading: false,
// //
@ -301,6 +309,9 @@
getDealTransfer(id).then(response => { getDealTransfer(id).then(response => {
this.loading = false; this.loading = false;
this.form = response.data; this.form = response.data;
if (this.form.status == "0") {
this.statusShow = true;
}
this.open = true; this.open = true;
this.title = "修改转账"; this.title = "修改转账";
}); });
@ -311,6 +322,7 @@
if (valid) { if (valid) {
this.buttonLoading = true; this.buttonLoading = true;
if (this.form.id != null) { if (this.form.id != null) {
this.form.status = this.value;
updateDealTransfer(this.form).then(response => { updateDealTransfer(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;

Loading…
Cancel
Save