1、集团单位新增上传承诺书功能

2、文件单传变多传
3、详情页下载附近合集
4、修改历史文件未清空bug
czks-cmt-gwj地图合并
liujun 2024-02-26 15:17:22 +08:00
parent 7b07159179
commit 1cd73243f6
3 changed files with 17 additions and 7 deletions

View File

@ -1,10 +1,10 @@
<template> <template>
<div> <div>
<el-dialog v-loading = "loading" :visible.sync="visible" :append-to-body="appendToBody" :before-close="beforeClose" title="审批" width="1200px" destroy-on-close> <el-dialog v-loading = "loading" :visible.sync="visible" :append-to-body="appendToBody" :before-close="beforeClose" title="审批" width="1200px" destroy-on-close>
<el-form ref="form" :model="form" :rules="rules" label-width="200px" label-position="right" type="flex"> <el-form ref="form" :model="form" :rules="rules" label-width="210px" label-position="right" type="flex">
<el-row :gutter="12"> <el-row :gutter="12">
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="APPOINT_DEPARTMENT_ID" label="指定管部门:"> <el-form-item prop="APPOINT_DEPARTMENT_ID" label="指定辖区单位主管部门:">
<Treeselect <Treeselect
:options="departmentTree" :options="departmentTree"
:normalizer="normalizer" :normalizer="normalizer"
@ -18,7 +18,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="APPOINT_USER_ID" label="指定管部门审批人:"> <el-form-item prop="APPOINT_USER_ID" label="指定辖区单位主管部门审批人:">
<el-select v-model="form.user" style="width: 300px" placeholder="请选择" @change="chooseUser"> <el-select v-model="form.user" style="width: 300px" placeholder="请选择" @change="chooseUser">
<el-option v-for="item in peopleList" :key="item.USER_ID" :value="JSON.stringify(item)" :label="item.NAME"/> <el-option v-for="item in peopleList" :key="item.USER_ID" :value="JSON.stringify(item)" :label="item.NAME"/>
</el-select> </el-select>
@ -32,7 +32,7 @@
:file-list.sync="form.APPOINT_ANNEX" :file-list.sync="form.APPOINT_ANNEX"
:multiple="false" :multiple="false"
:accept="'.pdf,.jpg,.png,doc,docx'" :accept="'.pdf,.jpg,.png,doc,docx'"
:limit="1" :limit="20"
:size="1024" :size="1024"
:upload-type="1"/> :upload-type="1"/>
</el-form-item> </el-form-item>
@ -133,7 +133,9 @@ export default {
Object.keys(this.form).map(key => { Object.keys(this.form).map(key => {
formData.append(key, this.form[key]) formData.append(key, this.form[key])
}) })
formData.append('weiTuoShu', this.form.APPOINT_ANNEX[0].raw) for (let i = 0; i < this.form.APPOINT_ANNEX.length; i++) {
formData.append('weiTuoShu', this.form.APPOINT_ANNEX[i].raw)
}
upload('/xgf/user/attorney', formData) upload('/xgf/user/attorney', formData)
.then((data) => { .then((data) => {
this.$message.success('推送成功') this.$message.success('推送成功')

View File

@ -43,7 +43,7 @@
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)"></el-button> <el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)"></el-button>
<el-button v-if="row.power_flag === '1'" type="primary" icon="el-icon-s-claim" size="mini" @click="approve([row])"></el-button> <el-button v-if="row.power_flag === '1'" type="primary" icon="el-icon-s-claim" size="mini" @click="approve([row])"></el-button>
<el-button v-if="row.power_flag === '1' && row.FLOWS_STEP === 1" type="primary" icon="el-icon-s-claim" size="mini" @click="entrust([row])"></el-button> <el-button v-if="row.power_flag === '1' && row.FLOWS_STEP === 1" type="primary" icon="el-icon-s-claim" size="mini" @click="entrust([row])"></el-button>
<el-button v-if="false" type="success" icon="el-icon-edit" size="mini" @click="getUserInfo(row)"></el-button> <el-button v-if="false" type="success" icon="el-icon-edit" size="mini" @click="getUserInfo(row)"></el-button>
</template> </template>
</el-table-column> </el-table-column>

View File

@ -139,12 +139,20 @@
</table> </table>
<div v-if="userDetailForm.ANNEX" style="padding-bottom: 10px"> <div v-if="userDetailForm.ANNEX" style="padding-bottom: 10px">
<div class="level-title"> <div class="level-title">
<h1>承诺书</h1> <h1>相关方承诺书</h1>
</div> </div>
<div> <div>
<el-button icon="el-icon-download" type="primary" @click = "download(userDetailForm.ANNEX)">下载附件</el-button> <el-button icon="el-icon-download" type="primary" @click = "download(userDetailForm.ANNEX)">下载附件</el-button>
</div> </div>
</div> </div>
<div v-if="userDetailForm.COMMITMENT_LETTER" style="padding-bottom: 10px">
<div class="level-title">
<h1>集团单位承诺书</h1>
</div>
<div>
<el-button icon="el-icon-download" type="primary" @click = "download(userDetailForm.COMMITMENT_LETTER)">下载附件</el-button>
</div>
</div>
<div v-if="userDetailForm.ATTORNEY" style="padding-bottom: 10px"> <div v-if="userDetailForm.ATTORNEY" style="padding-bottom: 10px">
<div class="level-title"> <div class="level-title">
<h1>委托书</h1> <h1>委托书</h1>