|
@@ -111,6 +111,19 @@
|
|
|
></el-input>
|
|
|
</el-col>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="附件信息:">
|
|
|
+ <el-upload
|
|
|
+ ref="fujianUpload"
|
|
|
+ v-model:file-list="fujian"
|
|
|
+ :action="upload.url"
|
|
|
+ :headers="upload.headers"
|
|
|
+ :limit="1"
|
|
|
+ :on-success="uploadFuJianFiles1"
|
|
|
+ multiple
|
|
|
+ >
|
|
|
+ <el-button type="primary">点击上传附件</el-button>
|
|
|
+ </el-upload>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item prop="signetCopies" label="盖章份数:">
|
|
|
<el-col :span="24">
|
|
|
<el-input
|
|
@@ -290,6 +303,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { addCar } from "@/api/car";
|
|
|
+import { getToken } from "@/utils/auth";
|
|
|
import {
|
|
|
generNextStepNode,
|
|
|
generNextStepAllNode,
|
|
@@ -348,6 +362,12 @@ export default {
|
|
|
return {
|
|
|
signet_type: useDict("signet_type").signet_type,
|
|
|
defaultTime: new Date(2000, 1, 1, 12, 0, 0),
|
|
|
+ upload: {
|
|
|
+ // 设置上传的请求头部
|
|
|
+ headers: { Authorization: "Bearer " + getToken() },
|
|
|
+ // 上传的地址
|
|
|
+ url: import.meta.env.VITE_APP_BASE_API + "/system/file/fileupload",
|
|
|
+ },
|
|
|
optionsData: [
|
|
|
{
|
|
|
value: "选项1",
|
|
@@ -384,6 +404,7 @@ export default {
|
|
|
params: {},
|
|
|
},
|
|
|
options: [],
|
|
|
+ fujian: [],
|
|
|
leaveTime: "",
|
|
|
formRules: {
|
|
|
createBy: [
|
|
@@ -500,6 +521,7 @@ export default {
|
|
|
onSubmit() {
|
|
|
this.$refs["ruleFormRef"].validate((valid) => {
|
|
|
this.form.useTime = this.form1.useTime;
|
|
|
+ this.form.fileId = this.fujian[0].response.data.fileId;
|
|
|
this.form.signetType = this.form1.signetType;
|
|
|
this.form.usingReason = this.form1.usingReason;
|
|
|
this.form.activeSend = this.form1.activeSend;
|
|
@@ -579,4 +601,15 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped></style>
|
|
|
+<style lang="scss" scoped>
|
|
|
+::v-deep .el-upload-list__item {
|
|
|
+ transition: all .5s cubic-bezier(.55,0,.1,1);
|
|
|
+ font-size: 14px;
|
|
|
+ color: var(--el-text-color-regular);
|
|
|
+ margin-bottom: 5px;
|
|
|
+ position: relative;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border-radius: 4px;
|
|
|
+ width: 200px;
|
|
|
+}
|
|
|
+</style>
|