7a2db79b by renchao@pashanhoo.com

Merge branch 'dev'

2 parents e1de1a15 5265bc92
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-15 09:32:40 4 * @LastEditTime: 2024-05-16 09:23:43
5 */ 5 */
6 import request from '@/utils/request' 6 import request from '@/utils/request'
7 import { log } from 'bpmn-js-token-simulation'
8 let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) 7 let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
9 /** 8 /**
10 * @description: 添加补录记录 9 * @description: 添加补录记录
......
1 /*
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2024-05-16 09:23:47
5 */
6 import request from '@/utils/request'
7 let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
8 /**
9 * @description: 上传电子签名
10 * @param {*} data
11 * @author: renchao
12 */
13 export function dzqmUpload (data) {
14 return request({
15 url: SERVER.SERVERAPI + '/rest/system/dzqm/upload',
16 method: 'post',
17 data
18 })
19 }
...\ No newline at end of file ...\ No newline at end of file
...@@ -21,3 +21,17 @@ export function upload (data) { ...@@ -21,3 +21,17 @@ export function upload (data) {
21 data 21 data
22 }) 22 })
23 } 23 }
24
25 /**
26 * @description: 上传电子签名
27 * @param {*} data
28 * @author: renchao
29 */
30 export function uploaddzqm (data) {
31 return request({
32 url: SERVER.SERVERAPI + '/rest/system/dzqm',
33 method: 'post',
34 data
35 })
36 }
37
......
1 <template>
2 <div class="from-clues">
3 <!-- 表单部分 -->
4 <div class="from-clues-header">
5 <el-form :model="ruleForm" label-width="100px">
6 <el-row>
7 <el-col :span="6">
8 <el-form-item label="用户名称:">
9 {{ruleForm.name}}
10 </el-form-item>
11 </el-col>
12 <el-col :span="6">
13 <el-form-item label="组织机构:">
14 {{ruleForm.organizationName}}
15 </el-form-item>
16 </el-col>
17 <el-col :span="6">
18 <el-form-item label="部门:">
19 {{ruleForm.departmentName}}
20 </el-form-item>
21 </el-col>
22 </el-row>
23 <el-row>
24 <el-col :span="24">
25 <el-form-item label="签名路径:">
26 <img :src="ruleForm.dzqmurl" class="signature-image">
27 </el-form-item>
28 </el-col>
29 </el-row>
30 </el-form>
31 </div>
32
33 <el-upload
34 class="upload-demo"
35 action=""
36 :limit="1"
37 multiple
38 :key="key"
39 :auto-upload="false"
40 accept=".jpg, .png, .jpeg"
41 :on-change="handleChange"
42 :before-upload="beforeUpload"
43 :show-file-list="false"
44 drag>
45 <i class="el-icon-upload"></i>
46 <div class="el-upload__text">将图片拖到此处,或<em>点击上传</em></div>
47 <div class="el-upload__tip" slot="tip">只能上传jpg/png文件,且不超过5MB</div>
48 </el-upload>
49 <!-- 表格 -->
50 </div>
51 </template>
52 <script>
53 import { dzqmUpload } from '@/api/dzqm'
54 import { getUserInfo } from '@/api/user'
55 export default {
56 name: "dzqm",
57 data () {
58 return {
59 ruleForm: {},
60 key: 0,
61 }
62 },
63 mounted () {
64 this.getUserInfo()
65 },
66 methods: {
67 async getUserInfo () {
68 let res = await getUserInfo()
69 this.ruleForm = res.result
70 },
71 beforeUpload (file) {
72 this.files = file;
73 const allowedExtensions = ['jpg', 'jpeg', 'png'];
74 const maxFileSizeMB = 5;
75
76 const extension = allowedExtensions.includes(file.name.split('.').pop().toLowerCase());
77 const isLt5M = file.size / 1024 / 1024 < maxFileSizeMB;
78
79 if (!extension) {
80 this.$message.warning('上传模板只能是 jpg、jpeg、png 格式!');
81 } else if (!isLt5M) {
82 this.$message.warning(`上传模板大小不能超过 ${maxFileSizeMB}MB!`);
83 }
84
85 return extension && isLt5M;
86 },
87 async handleChange (file) {
88 var formdata = new FormData();
89 formdata.append("file", file.raw);
90 dzqmUpload(formdata).then(res => {
91 if (res.code == 200) {
92 this.$message({
93 message: '上传成功!',
94 type: 'success'
95 })
96 this.key++
97 this.ruleForm.dzqmurl = res.message
98 }
99 })
100 }
101 }
102 };
103 </script>
104 <style scoped lang="scss">
105 @import "~@/styles/public.scss";
106 .signature-image {
107 width: 100%;
108 max-height: 360px;
109 object-fit: contain;
110 }
111 </style>
112
...\ No newline at end of file ...\ No newline at end of file
...@@ -50,6 +50,14 @@ class data extends filter { ...@@ -50,6 +50,14 @@ class data extends filter {
50 // } 50 // }
51 // }, 51 // },
52 { 52 {
53 label: "流程状态",
54 width: '80',
55 render: (h, scope) => {
56 return <div >完结</div>
57 }
58 },
59
60 {
53 label: "业务号", 61 label: "业务号",
54 width: '110', 62 width: '110',
55 render: (h, scope) => { 63 render: (h, scope) => {
......