diff --git a/src/views/business/dealCashout/index.vue b/src/views/business/dealCashout/index.vue index cd17919..ffa205a 100755 --- a/src/views/business/dealCashout/index.vue +++ b/src/views/business/dealCashout/index.vue @@ -338,11 +338,11 @@ }, /** 提交按钮 */ submitForm() { - this.form.status = this.value; this.$refs["form"].validate(valid => { if (valid) { this.buttonLoading = true; if (this.form.id != null) { + this.form.status = this.value; updateDealCashout(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; diff --git a/src/views/business/dealPay/index.vue b/src/views/business/dealPay/index.vue index 18cdc89..293ce17 100755 --- a/src/views/business/dealPay/index.vue +++ b/src/views/business/dealPay/index.vue @@ -54,9 +54,9 @@ @@ -102,6 +102,11 @@ + + + + @@ -160,6 +165,9 @@ name: "DealPay", data() { return { + // 滑块 + statusShow: false, + value: '2', // 按钮loading buttonLoading: false, // 遮罩层 @@ -316,6 +324,9 @@ getDealPay(id).then(response => { this.loading = false; this.form = response.data; + if (this.form.status == "0") { + this.statusShow = true; + } this.open = true; this.title = "修改付款"; }); @@ -326,6 +337,7 @@ if (valid) { this.buttonLoading = true; if (this.form.id != null) { + this.form.status = this.value; updateDealPay(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; diff --git a/src/views/business/dealReceive/index.vue b/src/views/business/dealReceive/index.vue index e255480..d3e3924 100755 --- a/src/views/business/dealReceive/index.vue +++ b/src/views/business/dealReceive/index.vue @@ -57,9 +57,9 @@ @@ -105,6 +105,11 @@ + + + + @@ -163,6 +168,9 @@ name: "DealReceive", data() { return { + // 滑块 + statusShow: false, + value: '2', // 按钮loading buttonLoading: false, // 遮罩层 @@ -306,6 +314,9 @@ getDealReceive(id).then(response => { this.loading = false; this.form = response.data; + if (this.form.status == "0") { + this.statusShow = true; + } this.open = true; this.title = "修改收款"; }); @@ -316,6 +327,7 @@ if (valid) { this.buttonLoading = true; if (this.form.id != null) { + this.form.status = this.value; updateDealReceive(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; diff --git a/src/views/business/dealTransfer/index.vue b/src/views/business/dealTransfer/index.vue index 9fb84c4..d9ad018 100755 --- a/src/views/business/dealTransfer/index.vue +++ b/src/views/business/dealTransfer/index.vue @@ -50,9 +50,9 @@ @@ -95,6 +95,11 @@ + + + + @@ -152,6 +157,9 @@ name: "DealTransfer", data() { return { + // 滑块 + statusShow: false, + value: '2', // 按钮loading buttonLoading: false, // 遮罩层 @@ -301,6 +309,9 @@ getDealTransfer(id).then(response => { this.loading = false; this.form = response.data; + if (this.form.status == "0") { + this.statusShow = true; + } this.open = true; this.title = "修改转账"; }); @@ -311,6 +322,7 @@ if (valid) { this.buttonLoading = true; if (this.form.id != null) { + this.form.status = this.value; updateDealTransfer(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false;