|
|
@@ -11,11 +11,11 @@
|
|
|
<span>{{ bankaccountno }}</span>
|
|
|
</template>
|
|
|
</Field>
|
|
|
- <Field type="number" v-model="formData.BillAmount" label="入金金额" placeholder="请填写入金金额"
|
|
|
+ <Field type="number" v-model="billAmount" label="入金金额" placeholder="请填写入金金额"
|
|
|
:rules="formRules.BillAmount" />
|
|
|
<Field readonly label="金额大写">
|
|
|
<template #input>
|
|
|
- <span>{{ numberToChinese(formData.BillAmount) }}</span>
|
|
|
+ <span>{{ numberToChinese(formatDecimal(billAmount)) }}</span>
|
|
|
</template>
|
|
|
</Field>
|
|
|
<Field v-model="Remark" label="备注" placeholder="请输入备注" />
|
|
|
@@ -34,7 +34,7 @@
|
|
|
import { shallowRef, ref } from 'vue'
|
|
|
import { Form, Field, CellGroup, Button, FieldRule, FormInstance } from 'vant'
|
|
|
import { useDoYJF_WithholdInApply } from '@/business/bank'
|
|
|
-import { numberToChinese } from '@/filters'
|
|
|
+import { numberToChinese, formatDecimal } from '@/filters'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
|
|
|
|
@@ -45,6 +45,8 @@ const refresh = shallowRef(false)
|
|
|
const formRef = shallowRef<FormInstance>()
|
|
|
/// 备注
|
|
|
const Remark = ref('')
|
|
|
+/// 金额
|
|
|
+const billAmount = ref(0.0)
|
|
|
|
|
|
// 关闭弹窗
|
|
|
const closed = (isRefresh = false) => {
|
|
|
@@ -67,6 +69,7 @@ const formRules: { [key: string]: FieldRule[] } = {
|
|
|
|
|
|
const formSubmit = () => {
|
|
|
fullloading((hideLoading) => {
|
|
|
+ formData.BillAmount = formatDecimal(billAmount.value)
|
|
|
onSubmit().then(() => {
|
|
|
hideLoading()
|
|
|
dialog('提交成功,请稍后确认结果。').then(() => {
|