|
@@ -111,6 +111,19 @@
|
|
></el-input>
|
|
></el-input>
|
|
</el-col>
|
|
</el-col>
|
|
</el-form-item>
|
|
</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-form-item prop="signetCopies" label="盖章份数:">
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
<el-input
|
|
<el-input
|
|
@@ -290,6 +303,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { addCar } from "@/api/car";
|
|
import { addCar } from "@/api/car";
|
|
|
|
+import { getToken } from "@/utils/auth";
|
|
import {
|
|
import {
|
|
generNextStepNode,
|
|
generNextStepNode,
|
|
generNextStepAllNode,
|
|
generNextStepAllNode,
|
|
@@ -348,6 +362,12 @@ export default {
|
|
return {
|
|
return {
|
|
signet_type: useDict("signet_type").signet_type,
|
|
signet_type: useDict("signet_type").signet_type,
|
|
defaultTime: new Date(2000, 1, 1, 12, 0, 0),
|
|
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: [
|
|
optionsData: [
|
|
{
|
|
{
|
|
value: "选项1",
|
|
value: "选项1",
|
|
@@ -384,6 +404,7 @@ export default {
|
|
params: {},
|
|
params: {},
|
|
},
|
|
},
|
|
options: [],
|
|
options: [],
|
|
|
|
+ fujian: [],
|
|
leaveTime: "",
|
|
leaveTime: "",
|
|
formRules: {
|
|
formRules: {
|
|
createBy: [
|
|
createBy: [
|
|
@@ -500,6 +521,7 @@ export default {
|
|
onSubmit() {
|
|
onSubmit() {
|
|
this.$refs["ruleFormRef"].validate((valid) => {
|
|
this.$refs["ruleFormRef"].validate((valid) => {
|
|
this.form.useTime = this.form1.useTime;
|
|
this.form.useTime = this.form1.useTime;
|
|
|
|
+ this.form.fileId = this.fujian[0].response.data.fileId;
|
|
this.form.signetType = this.form1.signetType;
|
|
this.form.signetType = this.form1.signetType;
|
|
this.form.usingReason = this.form1.usingReason;
|
|
this.form.usingReason = this.form1.usingReason;
|
|
this.form.activeSend = this.form1.activeSend;
|
|
this.form.activeSend = this.form1.activeSend;
|
|
@@ -579,4 +601,15 @@ export default {
|
|
};
|
|
};
|
|
</script>
|
|
</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>
|