<template>
  <a-form v-bind="formLayout" :form="form">
    <a-form-item label="历史累积总">
			<a-input-number
				:min="0"
				style="width:100%"
				v-decorator="[
					'history_total_count',
					{
						initialValue: modalData.history_total_count || 0,
						rules: [{ required: true, message: '历史累积总不能为空' }]
					}
				]" />
    </a-form-item>
    <a-form-item label="冻结金额">
			<a-input-number
				:min="0"
				style="width:100%"
				v-decorator="[
					'total_freeze_count',
					{
						initialValue: modalData.total_freeze_count || 0,
						rules: [{ required: true, message: '冻结金额不能为空' }]
					}
				]" />
    </a-form-item>
    <a-form-item label="总额">
			<a-input-number
				:min="0"
				style="width:100%"
				v-decorator="[
					'total_count',
					{
						initialValue: modalData.total_count || 0,
						rules: [{ required: true, message: '总额不能为空' }]
					}
				]" />
    </a-form-item>
  </a-form>
</template>
<script>
import mix from './mixins'
import common from '../mixins/common'
export default {
  data() {
    return {
      formLayout: {
        labelCol: { span: 6 },
        wrapperCol: { span: 18 }
      }
    }
  },
  mixins: [mix, common],
  computed: {
    successMessage() {
      return '修改成功'
    }
  },
  methods: {
    async submit(values) {
      const res = await this.request_api.finance_property.correct({
				uuid: this.modalData.uuid,
				version: this.modalData.version,
				...values
			})
      return res
    }
  }
}
</script>
