|
@@ -182,13 +182,14 @@
|
|
|
.replace(/^\./g, '')
|
|
|
.replace(/\.{2,}/g, '.')
|
|
|
.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.')
|
|
|
- .replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^0+/, '0')" class="m-2" placeholder="请输入资产总额" clearable></el-input>
|
|
|
+ .replace(/(?<=\.\d{6})\d+/g, '')
|
|
|
+ .replace(/^(\-)*(\d+)\.(\d{6}).*$/, '$1$2.$3').replace(/^0+/, '0')" class="m-2" placeholder="请输入资产总额" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="存放地点(区位码)" prop="storagePlace"
|
|
|
+ <el-form-item label="存放地点(区位码)" prop="storagePlaces"
|
|
|
:rules="[{required: true, message:'存放地点不能为空', trigger:'blur'}]">
|
|
|
- <el-select style="width:100%;" v-model="inputForm.storagePlace" class="m-2" placeholder="请选择" clearable>
|
|
|
+ <el-select multiple style="width:100%;" v-model="inputForm.storagePlaces" class="m-2" placeholder="请选择" clearable>
|
|
|
<el-option
|
|
|
v-for="item in $dictUtils.getDictList('storage_place')"
|
|
|
:key="item.value"
|
|
@@ -266,7 +267,7 @@
|
|
|
bookNumbers:'',
|
|
|
originalContract:'',
|
|
|
totalAssets:'',
|
|
|
- storagePlace:'',
|
|
|
+ storagePlaces:'',
|
|
|
remarks:'',
|
|
|
},
|
|
|
baseKey: '',
|
|
@@ -346,7 +347,7 @@
|
|
|
bookNumbers:'',
|
|
|
originalContract:'',
|
|
|
totalAssets:'',
|
|
|
- storagePlace:'',
|
|
|
+ storagePlaces:'',
|
|
|
remarks:'',
|
|
|
}
|
|
|
if (method === 'add') {
|
|
@@ -408,7 +409,7 @@
|
|
|
this.$message.error('报告文号不能为空')
|
|
|
throw new Error('报告文号不能为空')
|
|
|
}
|
|
|
- if (this.commonJS.isEmpty(this.inputForm.storagePlace)){
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.storagePlaces)){
|
|
|
this.loading = false
|
|
|
this.$message.error('存放地区不能为空')
|
|
|
throw new Error('存放地区不能为空')
|