| | |
| | | :with-credentials="true" |
| | | :on-preview="handlePictureCardPreview" |
| | | :on-success="handIdCardMaterials" |
| | | :on-remove="handleRemove" |
| | | :on-remove="handleRemovecard" |
| | | :file-list="auditInfo.cardimg" |
| | | > |
| | | <i slot="default" class="el-icon-plus"></i> |
| | | </el-upload> |
| | |
| | | :with-credentials="true" |
| | | :on-preview="handlePictureCardPreview" |
| | | :on-success="handContractMaterials" |
| | | :on-remove="handleRemove" |
| | | :on-remove="handleRemovecontractimg" |
| | | :file-list="auditInfo.contractimg" |
| | | > |
| | | <i slot="default" class="el-icon-plus"></i> |
| | | </el-upload> |
| | |
| | | :with-credentials="true" |
| | | :on-preview="handlePictureCardPreview" |
| | | :on-success="handTransactionMaterials" |
| | | :on-remove="handleRemove" |
| | | :on-remove="handleRemovetransaction" |
| | | :file-list="auditInfo.transactionimg" |
| | | > |
| | | <i slot="default" class="el-icon-plus"></i> |
| | | </el-upload> |
| | |
| | | :with-credentials="true" |
| | | :on-preview="handlePictureCardPreview" |
| | | :on-success="handTlseMaterials" |
| | | :on-remove="handleRemove" |
| | | :on-remove="handleRemoveelse" |
| | | :file-list="auditInfo.elseimg" |
| | | > |
| | | <i slot="default" class="el-icon-plus"></i> |
| | | </el-upload> |
| | |
| | | <el-button type="primary" @click="checkAdd">确 定</el-button> |
| | | </span> |
| | | <!-- 图片放大弹窗 --> |
| | | <el-dialog :visible.sync="dialogVisible"> |
| | | <el-dialog :visible.sync="dialogVisible" append-to-body> |
| | | <img width="100%" :src="dialogImageUrl" alt=""> |
| | | </el-dialog> |
| | | <el-dialog |
| | |
| | | methods: { |
| | | handTlseMaterials(res){ |
| | | if (res.code === 200) { |
| | | this.elseList.push({ |
| | | data: res.data |
| | | this.auditInfo.elseimg.push({ |
| | | name: res.data, |
| | | url: '/minio/img/' + res.data, |
| | | // uid: this.addPublicityForm.img.length |
| | | response: {data:res.data} |
| | | }) |
| | | } else { |
| | | this.$message.error(res.msg) |
| | |
| | | }, |
| | | handTransactionMaterials(res){ |
| | | if (res.code === 200) { |
| | | this.transacList.push({ |
| | | data: res.data |
| | | this.auditInfo.transactionimg.push({ |
| | | name: res.data, |
| | | url: '/minio/img/' + res.data, |
| | | // uid: this.addPublicityForm.img.length |
| | | response: {data:res.data} |
| | | }) |
| | | } else { |
| | | this.$message.error(res.msg) |
| | |
| | | }, |
| | | handContractMaterials(res){ |
| | | if (res.code === 200) { |
| | | this.contractList.push({ |
| | | data: res.data |
| | | this.auditInfo.contractimg.push({ |
| | | name: res.data, |
| | | url: '/minio/img/' + res.data, |
| | | // uid: this.addPublicityForm.img.length |
| | | response: {data:res.data} |
| | | }) |
| | | } else { |
| | | this.$message.error(res.msg) |
| | |
| | | console.log(res,this.auditInfo) |
| | | }, |
| | | handIdCardMaterials(res){ |
| | | console.log(res) |
| | | if (res.code === 200) { |
| | | this.idCardList.push({ |
| | | data: res.data |
| | | this.auditInfo.cardimg.push({ |
| | | name: res.data, |
| | | url: '/minio/img/' + res.data, |
| | | // uid: this.addPublicityForm.img.length |
| | | response: {data:res.data} |
| | | }) |
| | | } else { |
| | | this.$message.error(res.msg) |
| | |
| | | // file是点击删除的文件,fileList时删除后剩下的文件列表 |
| | | console.log(file,fileList) |
| | | // this.auditInfo.idCardMaterials = fileList[0].response |
| | | }, |
| | | handleRemovecard(file,fileList){ |
| | | console.log(fileList) |
| | | this.auditInfo.cardimg = fileList |
| | | }, |
| | | handleRemovecontractimg(file,fileList){ |
| | | this.auditInfo.contractimg = fileList |
| | | }, |
| | | handleRemovetransaction(file,fileList){ |
| | | this.auditInfo.transactionimg = fileList |
| | | }, |
| | | handleRemoveelse(file,fileList){ |
| | | this.auditInfo.elseimg = fileList |
| | | }, |
| | | handlePictureCardPreview(file) { |
| | | this.dialogImageUrl = file.url |
| | |
| | | let form = null; |
| | | form = this.auditInfo; |
| | | console.log(form,this.idCardList) |
| | | //处理图片身份证 |
| | | if (this.idCardList.length>0){ |
| | | form.idCardMaterials=this.idCardList.map(item=>item.data).join(',') |
| | | }else {form.idCardMaterials=''} |
| | | if (this.contractList.length>0){ |
| | | form.contractMaterials=this.contractList.map(item=>item.data).join(',') |
| | | }else {form.contractMaterials=''} |
| | | if (this.transacList.length>0){ |
| | | form.transactionMaterials=this.transacList.map(item=>item.data).join(',') |
| | | }else {form.transactionMaterials=''} |
| | | if (this.elseList.length>0){ |
| | | form.elseMaterials=this.elseList.map(item=>item.data).join(',') |
| | | }else {form.elseMaterials=''} |
| | | |
| | | if (this.fromTitle=='添加'){ |
| | | //处理图片身份证 |
| | | if (form.cardimg.length>0){ |
| | | form.idCardMaterials=form.cardimg.map(item=>item.response.data).join(',') |
| | | }else {form.idCardMaterials=''} |
| | | if (form.contractimg.length>0){ |
| | | form.contractMaterials=form.contractimg.map(item=>item.response.data).join(',') |
| | | }else {form.contractMaterials=''} |
| | | if (form.transactionimg.length>0){ |
| | | form.transactionMaterials=form.transactionimg.map(item=>item.response.data).join(',') |
| | | }else {form.transactionMaterials=''} |
| | | if (form.elseimg.length>0){ |
| | | form.elseMaterials=form.elseimg.map(item=>item.response.data).join(',') |
| | | }else {form.elseMaterials=''} |
| | | report(form).then(res=>{ |
| | | this.checkVisible=false |
| | | console.log(res) |
| | |
| | | |
| | | async getCauseOptions() { |
| | | const { data: data } = await this.$http.get('/api/cause/getCauseIdAndName'); |
| | | data.data.map(item=>{ |
| | | item.id=Number(item.id) |
| | | }) |
| | | this.causeOptions = data.data; |
| | | console.log(this.causeOptions) |
| | | }, |
| | |
| | | this.fromDis=false |
| | | this.picShow= '' |
| | | this.auditInfo= { |
| | | elseimg:[], |
| | | transactionimg:[], |
| | | cardimg:[], |
| | | contractimg:[], |
| | | pic: '', |
| | | reporterName: '', |
| | | mobile: '', |