12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <template>
- <a-modal
- v-model="opened"
- :title="title"
- centered
- :maskClosable="false"
- :confirmLoading="confirmLoading"
- :width="560"
- :footer="null"
- @cancel="cancel"
- >
- <a-spin :spinning="spinning" tip="Loading...">
- <a-form-model
- id="applyWithdrawal-form"
- ref="ruleForm"
- :model="form"
- :rules="rules"
- :label-col="formItemLayout.labelCol"
- :wrapper-col="formItemLayout.wrapperCol"
- >
- <a-form-model-item label="申请提现金额" prop="consigneeName">
- <a-input
- id="applyWithdrawal"
- placeholder="请输入正数(最多两位小数)"
- allowClear />
- </a-form-model-item>
- <a-form-model-item label="实际扣除金额">
- <span>{{}}元 </span><span style="color: #999;">(申请提现金额-提现手续费)</span>
- </a-form-model-item>
- <a-form-model-item label="提现账户">
- <span>{{}}</span>
- </a-form-model-item>
- <a-form-model-item :wrapper-col="{ span: 12, offset: 6 }" style="text-align: center;">
- <a-button type="primary" :loading="confirmLoading" @click="handleSubmit" id="applyWithdrawal-btn-submit">确定</a-button>
- <a-button @click="cancel" style="margin-left: 15px" id="applyWithdrawal-btn-back">取消</a-button>
- </a-form-model-item>
- </a-form-model>
- </a-spin>
- </a-modal>
- </template>
- <script>
- export default {
- props: {
- isOpenModal: {
- type: Boolean,
- default: false
- },
- currentData: {
- type: Object,
- default: function () {
- return {}
- }
- }
- },
- data () {
- return {
- formItemLayout: {
- labelCol: { span: 6 },
- wrapperCol: { span: 15 }
- },
- opened: this.isOpenModal,
- title: '申请提现',
- confirmLoading: false,
- spinning: false,
- rules: []
- }
- },
- methods: {
- // 保存
- handleSubmit () {
- this.$emit('close')
- },
- // 取消
- cancel () {
- this.$emit('close')
- }
- },
- watch: {
- isOpenModal (nVal, oVal) {
- this.opened = nVal
- }
- }
- }
- </script>
- <style>
- </style>
|