From 4ab195fc124abcefeb82601f8d0124c0ee4713b6 Mon Sep 17 00:00:00 2001 From: 董国庆 <364620639@qq.com> Date: 星期一, 24 三月 2025 16:32:06 +0800 Subject: [PATCH] Merge branch 'main' of http://120.76.84.145:10101/gitblit/r/H5/chongzhouResettle --- src/views/placement-batch/components/exportMoneyApplay.vue | 29 +++++++++++++++++++++++------ 1 files changed, 23 insertions(+), 6 deletions(-) diff --git a/src/views/placement-batch/components/exportMoneyApplay.vue b/src/views/placement-batch/components/exportMoneyApplay.vue index 1b7f66b..4afb65a 100644 --- a/src/views/placement-batch/components/exportMoneyApplay.vue +++ b/src/views/placement-batch/components/exportMoneyApplay.vue @@ -1,13 +1,14 @@ <template> - <el-dialog title="导入人员购房资金申请" :visible.sync="visible" width="600px" :close-on-click-modal="false" append-to-body> + <el-dialog :title="title" :visible.sync="visible" width="600px" @open="open" @close="" + :close-on-click-modal="false" append-to-body> <el-form ref="form" :model="form" :rules="rules" label-width="120px"> <el-form-item label="批次号" prop="batchNumber"> - <el-input v-model="form.batchNumber" placeholder="请输入" clearable></el-input> + <el-input :disabled="batchNumber" v-model="form.batchNumber" placeholder="请输入" clearable></el-input> </el-form-item> <div> - <el-form-item label="导入资金表" prop="assetFile"> + <el-form-item label="导入资金表" prop="assetFile" v-if="type != 2"> <el-upload class="upload-container" action="#" drag :auto-upload="false" accept=".xlsx,.xls" - :on-change="handlehouseholdFileChangePrice" :limit="1"> + :on-change="handlehouseholdFileChangePrice" :limit="1"> <div class="upload-area"> <i class="el-icon-folder"></i> <div class="upload-text">点击或将文件文件拖拽到这里上传</div> @@ -19,7 +20,7 @@ </el-upload> </el-form-item> - <el-form-item label="导入购房表" prop="householdFile"> + <el-form-item label="导入购房表" prop="householdFile" v-if="type != 1"> <el-upload class="upload-container" action="#" drag :auto-upload="false" accept=".xlsx,.xls" :on-change="handlehouseholdFileChange" :limit="1"> <div class="upload-area"> @@ -48,6 +49,18 @@ visible: { type: Boolean, default: false + }, + type: { + type: Number, + default: 3 + }, + title: { + type: String, + default: '导入自主购房安置资金申请' + }, + batchNumber: { + type: String, + default: '' } }, data() { @@ -73,6 +86,9 @@ } }, methods: { + open() { + this.form.batchNumber = JSON.parse(JSON.stringify(this.batchNumber)) + }, handlehouseholdFileChange(file, fileList) { this.form.householdFile = file.raw this.$refs.form.validateField('householdFile') @@ -102,7 +118,7 @@ this.$refs.form.validate(valid => { if (valid) { this.loading = true - this.$emit('importPrice', this.form) + this.$emit('importPrice', this.form) setTimeout(() => { this.loading = false this.resetForm() @@ -128,6 +144,7 @@ width: 100%; height: unset !important; } + .upload-container { .upload-area { width: 100%; -- Gitblit v1.7.1