...
|
...
|
@@ -19,7 +19,7 @@ |
|
|
<Date-picker v-model="endStr" type="date" placeholder="选择日期时间" @on-change="changeEndStr" />
|
|
|
</Form-item>
|
|
|
<Form-item label="提现金额" prop="withdrawAmount">
|
|
|
<input v-model="data.withdrawAmount" disabled placeholder="请选择日期时间获取提现金额" />
|
|
|
<input v-model="data.withdrawAmount" disabled placeholder="请选择日期获取提现金额" />
|
|
|
</Form-item>
|
|
|
<Form-item label="提现到帐号">
|
|
|
<span>{{ data.withdrawAccount }}</span>
|
...
|
...
|
@@ -31,7 +31,7 @@ |
|
|
<span>{{ data.remark }}</span>
|
|
|
</Form-item>
|
|
|
<Form-item>
|
|
|
<Button id="btnSubmit" type="primary" size="large" @click="save">确认提现</Button>
|
|
|
<Button id="btnSubmit" type="primary" size="large" :disabled="submitDisabled" @click="save">确认提现</Button>
|
|
|
<Button id="cancel" type="primary" size="large" @click="backList">取消</Button>
|
|
|
</Form-item>
|
|
|
</Form>
|
...
|
...
|
@@ -64,6 +64,7 @@ export default { |
|
|
this.endStr = this.formatDate(result.data.billEndTime);
|
|
|
this.beginTimeStr = this.formatDate(result.data.billBeginTime);
|
|
|
this.endTimeStr = this.formatDate(result.data.billEndTime);
|
|
|
this.submitDisabled = false;
|
|
|
this.data.beginTime = result.data.billBeginTime;
|
|
|
this.data.endTime = result.data.billEndTime;
|
|
|
this.data.withdrawAmount = result.data.withdrawAmount ? result.data.withdrawAmount : 0;
|
...
|
...
|
@@ -110,6 +111,7 @@ export default { |
|
|
save() {
|
|
|
const applyParams = this.beforeSave();
|
|
|
this.$Loading.start();
|
|
|
this.submitDisabled = true;
|
|
|
return this.financeService.shopWithdrawApply(applyParams).then(result => {
|
|
|
if (result.code === 200) {
|
|
|
this.$Loading.finish();
|
...
|
...
|
@@ -120,6 +122,7 @@ export default { |
|
|
this.backList();
|
|
|
} else {
|
|
|
this.$Loading.error();
|
|
|
this.submitDisabled = false;
|
|
|
this.$Notice.error({
|
|
|
title: '提交错误',
|
|
|
desc: result.message,
|
...
|
...
|
@@ -152,6 +155,13 @@ export default { |
|
|
const params = {};
|
|
|
params.beginTime = this.beginStr;
|
|
|
params.endTime = this.endStr;
|
|
|
if (this.beginStr > this.endStr) {
|
|
|
this.$Notice.error({
|
|
|
title: '时间范围异常',
|
|
|
desc: '请正确选择开始结束时间',
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
this.financeService.shopGetAvailableAmount(params).then(result => {
|
|
|
if (result.code === 200) {
|
|
|
this.data.withdrawAmount = result.data.availableAmount;
|
...
|
...
|
|