fix : 修复金额千位格式化,新增征集时添加"新增专项资金"按钮

This commit is contained in:
2024-09-07 15:09:37 +08:00
parent cff3198dcd
commit fc41bd8e6d
22 changed files with 191 additions and 34 deletions

View File

@@ -222,7 +222,16 @@ const schema = computed(() => {
prop: 'specialFundAmount',
colProps: {
span: 6
}
},
component: () => (
<div>
{
basicData.value?.specialFundAmount ?
<span>{ toThousands(basicData.value?.specialFundAmount )}</span>
: <span>{'--'}</span>
}
</div>
)
},
{
label: '部门分管领导',
@@ -545,6 +554,7 @@ const search = (val) => {
}
onActivated(() => {
init()
search()
})
</script>

View File

@@ -236,7 +236,16 @@ const schema = computed(() => {
prop: 'specialFundAmount',
colProps: {
span: 6
}
},
component: () => (
<div>
{
baseFormData.value?.specialFundAmount ?
<span>{toThousands(baseFormData.value?.specialFundAmount)}</span>
: <span>{'--'}</span>
}
</div>
)
},
{
label: '部门分管领导',

View File

@@ -280,7 +280,16 @@ const schema = computed(() => {
prop: 'specialFundAmount',
colProps: {
span: 6
}
},
component: () => (
<div>
{
baseFormData.value?.specialFundAmount ?
<span>{toThousands(baseFormData.value?.specialFundAmount)}</span>
: <span>{'--'}</span>
}
</div>
)
},
{
label: '部门分管领导',

View File

@@ -223,7 +223,16 @@ const schema = computed(() => {
prop: 'specialFundAmount',
colProps: {
span: 6
}
},
component: () => (
<div>
{
baseFormData.value?.specialFundAmount ?
<span>{toThousands(baseFormData.value?.specialFundAmount)}</span>
: <span>{'--'}</span>
}
</div>
)
},
{
label: '部门分管领导',

View File

@@ -204,7 +204,16 @@ const schema = computed(() => {
prop: 'specialFundAmount',
colProps: {
span: 6
}
},
component: () => (
<div>
{
baseFormData.value?.specialFundAmount ?
<span>{toThousands(baseFormData.value?.specialFundAmount)}</span>
: <span>{'--'}</span>
}
</div>
)
},
{
label: '部门分管领导',
@@ -219,11 +228,11 @@ const schema = computed(() => {
const baseForm = ref()
const searchConfig = reactive([
{
label: '项目人员',
label: '研发人员',
prop: 'researchPersonnel',
component: 'el-input',
props: {
placeholder: '请输入项目人员查询'
placeholder: '请输入研发人员查询'
}
},
{

View File

@@ -19,7 +19,7 @@
</el-form-item>
</el-form>
<!-- <baseTitle title="其他文件"></baseTitle>-->
<file-upload @getFile="getFile" :disabled="!formData.tagName" :title="!formData.tagName?'请先选择/输入标签!':''"/>
<file-upload @getFile="getFile" :disabled="!formData.tagName" :title="!formData.tagName?'请先选择/输入标签!':''" style="margin-left: 15px"/>
<fvTable style="width: 100%;max-height: 318px;" v-if="showTable" height="318" :tableConfig="tableConfig"
:data="fileList" :isSettingCol="false" :pagination="false">
<template #empty>
@@ -241,7 +241,16 @@ const schema = computed(() => {
prop: 'specialFundAmount',
colProps: {
span: 6
}
},
component: () => (
<div>
{
baseFormData.value?.specialFundAmount ?
<span>{ toThousands(baseFormData.value?.specialFundAmount )}</span>
: <span>{'--'}</span>
}
</div>
)
},
{
label: '部门分管领导',

View File

@@ -58,8 +58,15 @@
<el-table-column prop="afterTax" label="税后余额(元)" min-width="220">
<template #default="scope">
<el-form-item prop="afterTax" :rules="scope.row.afterTax?'1':rules.afterTax">
<el-input-number v-model="scope.row.afterTax" placeholder="请输入税后余额" :controls="false">
</el-input-number>
<el-input
v-model="scope.row.afterTax"
placeholder="请输入税后余额"
clearable
:formatter="(value) => value.replace(/\B(?=(\d{3})+(?!\d))/g, ',')"
:parser="(value) => value.replace(/\$\s?|(,*)+[^0-9.]/g, '')"
/>
<!-- <el-input-number v-model="scope.row.afterTax" placeholder="请输入税后余额" :controls="false">-->
<!-- </el-input-number>-->
</el-form-item>
</template>
</el-table-column>
@@ -312,7 +319,16 @@ const schema = computed(() => {
prop: 'specialFundAmount',
colProps: {
span: 6
}
},
component: () => (
<div>
{
baseFormData.value?.specialFundAmount ?
<span>{toThousands(baseFormData.value?.specialFundAmount)}</span>
: <span>{'--'}</span>
}
</div>
)
},
{
label: '部门分管领导',