监管端上传委托书功能

2024年2月22日v1.0.55
liujun 2024-02-04 11:03:10 +08:00
parent e1bd6891fb
commit df78271dc5
2 changed files with 22 additions and 3 deletions

View File

@ -44,6 +44,17 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="APPOINT_ANNEX" label="承诺书:">
<upload-file
:file-list.sync="form.APPOINT_ANNEX"
:multiple="false"
:accept="'.pdf,.jpg,.png,doc,docx'"
:limit="1"
:size="1024"
:upload-type="1"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
@ -59,9 +70,11 @@
import vueQr from 'vue-qr'
import Treeselect from '@riophae/vue-treeselect'
import { requestFN } from '@/utils/request'
import uploadFile from '../../../util/uploadFile/index.vue'
import { upload } from '@/utils/upload'
export default {
components: { Treeselect, vueQr },
components: { Treeselect, vueQr, uploadFile },
props: {
appendToBody: {
type: Boolean,
@ -95,6 +108,7 @@ export default {
APPOINT_DEPARTMENT_NAME: '',
APPOINT_USER_ID: '',
APPOINT_USER_NAME: '',
APPOINT_ANNEX: [],
user: '',
tm: new Date().getTime(),
list: []
@ -172,7 +186,12 @@ export default {
this.$message.error('请填写完整信息')
} else {
this.form.list = this.heirloom
requestFN('/trainingbatch/sendMessage', this.form
const formData = new FormData()
Object.keys(this.form).map(key => {
formData.append(key, this.form[key])
})
formData.append('chenNuoShu', this.form.APPOINT_ANNEX[0].raw)
upload('/trainingbatch/sendMessage', formData
).then((data) => {
if (data.code !== '0') {
this.$message.error(data.msg)

View File

@ -39,7 +39,7 @@ export default {
},
info: {
type: String,
default: '文件大小不超过500kb'
default: '文件大小不超过500MB'
}
},
data() {