|
|
@ -148,7 +148,28 @@
|
|
|
|
width="1000px"
|
|
|
|
width="1000px"
|
|
|
|
append-to-body
|
|
|
|
append-to-body
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="130px">
|
|
|
|
<el-upload
|
|
|
|
|
|
|
|
class="upload-demo"
|
|
|
|
|
|
|
|
drag
|
|
|
|
|
|
|
|
:limit="1"
|
|
|
|
|
|
|
|
:action="uploadUrl"
|
|
|
|
|
|
|
|
:file-list="fileList"
|
|
|
|
|
|
|
|
:headers="headers"
|
|
|
|
|
|
|
|
:on-success="handleSuccess"
|
|
|
|
|
|
|
|
name="multipartFile"
|
|
|
|
|
|
|
|
:multiple="false"
|
|
|
|
|
|
|
|
:accept="imgType"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<i class="el-icon-upload"></i>
|
|
|
|
|
|
|
|
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
|
|
|
|
|
|
|
</el-upload>
|
|
|
|
|
|
|
|
<el-form
|
|
|
|
|
|
|
|
ref="form"
|
|
|
|
|
|
|
|
:model="form"
|
|
|
|
|
|
|
|
:rules="rules"
|
|
|
|
|
|
|
|
label-width="130px"
|
|
|
|
|
|
|
|
style="margin-top: 20px"
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="OA/ERP流程编号" prop="flowCode">
|
|
|
|
<el-form-item label="OA/ERP流程编号" prop="flowCode">
|
|
|
@ -184,11 +205,11 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="8">
|
|
|
|
<!-- <el-col :span="8">
|
|
|
|
<el-form-item label="文件地址" prop="fileUrl">
|
|
|
|
<el-form-item label="文件地址" prop="fileUrl">
|
|
|
|
<el-input v-model="form.fileUrl" placeholder="请输入文件地址" />
|
|
|
|
<el-input v-model="form.fileUrl" placeholder="请输入文件地址" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col> -->
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="流程号" prop="flowId">
|
|
|
|
<el-form-item label="流程号" prop="flowId">
|
|
|
|
<el-input v-model="form.flowId" placeholder="请输入流程号" />
|
|
|
|
<el-input v-model="form.flowId" placeholder="请输入流程号" />
|
|
|
@ -248,6 +269,7 @@ import {
|
|
|
|
exportFlowExcel,
|
|
|
|
exportFlowExcel,
|
|
|
|
downloadXml,
|
|
|
|
downloadXml,
|
|
|
|
} from "@/api/accounting/flow";
|
|
|
|
} from "@/api/accounting/flow";
|
|
|
|
|
|
|
|
import { getAccessToken, getTenantId } from "@/utils/auth";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "Flow",
|
|
|
|
name: "Flow",
|
|
|
@ -269,6 +291,8 @@ export default {
|
|
|
|
// 是否显示弹出层
|
|
|
|
// 是否显示弹出层
|
|
|
|
open: false,
|
|
|
|
open: false,
|
|
|
|
open1: false,
|
|
|
|
open1: false,
|
|
|
|
|
|
|
|
fileList: [],
|
|
|
|
|
|
|
|
imgType: ".jpeg, .jpg, .png",
|
|
|
|
// 查询参数
|
|
|
|
// 查询参数
|
|
|
|
queryParams: {
|
|
|
|
queryParams: {
|
|
|
|
pageNo: 1,
|
|
|
|
pageNo: 1,
|
|
|
@ -297,6 +321,13 @@ export default {
|
|
|
|
form: {},
|
|
|
|
form: {},
|
|
|
|
// 表单校验
|
|
|
|
// 表单校验
|
|
|
|
rules: {},
|
|
|
|
rules: {},
|
|
|
|
|
|
|
|
fileList: [], // 文件列表
|
|
|
|
|
|
|
|
uploadUrl:
|
|
|
|
|
|
|
|
process.env.VUE_APP_BASE_API + "/admin-api//archives/flow/upload", // 上传地址地址
|
|
|
|
|
|
|
|
headers: {
|
|
|
|
|
|
|
|
Authorization: "Bearer " + getAccessToken(),
|
|
|
|
|
|
|
|
"tenant-id": getTenantId(),
|
|
|
|
|
|
|
|
}, // 设置上传的请求头
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
@ -363,6 +394,7 @@ export default {
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
handleAdd() {
|
|
|
|
handleAdd() {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
|
|
|
|
this.fileList = [];
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "添加审批流程";
|
|
|
|
this.title = "添加审批流程";
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -399,6 +431,11 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 上传成功的函数
|
|
|
|
|
|
|
|
handleSuccess(res) {
|
|
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
this.form.fileUrl = res.data.url;
|
|
|
|
|
|
|
|
},
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
handleDelete(row) {
|
|
|
|
handleDelete(row) {
|
|
|
|
const id = row.id;
|
|
|
|
const id = row.id;
|
|
|
|