|
@@ -19,14 +19,28 @@
|
|
ref="signatureFormRef"
|
|
ref="signatureFormRef"
|
|
>
|
|
>
|
|
<el-form-item
|
|
<el-form-item
|
|
- label="印章名称:"
|
|
|
|
|
|
+ label="签章名称:"
|
|
prop="signatureName"
|
|
prop="signatureName"
|
|
:rules="[{ required: true, message: '请输入印章名称' }]"
|
|
:rules="[{ required: true, message: '请输入印章名称' }]"
|
|
style="width: 400px"
|
|
style="width: 400px"
|
|
>
|
|
>
|
|
<el-input v-model="form.signatureName" />
|
|
<el-input v-model="form.signatureName" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
-
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
+ label="签章人名称:"
|
|
|
|
+ prop="signUser"
|
|
|
|
+ :rules="[{ required: true, message: '请选择签章人名称' }]"
|
|
|
|
+ style="width: 400px"
|
|
|
|
+ >
|
|
|
|
+ <el-select v-model="form.signUser" filterable>
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in userList"
|
|
|
|
+ :key="item.userName"
|
|
|
|
+ :label="item.userName"
|
|
|
|
+ :value="item.userName"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
label="签章归属:"
|
|
label="签章归属:"
|
|
prop="signatureAttribution"
|
|
prop="signatureAttribution"
|
|
@@ -401,6 +415,7 @@ import { useDebounceFn } from "@vueuse/core";
|
|
import html2canvas from "html2canvas";
|
|
import html2canvas from "html2canvas";
|
|
import { uploadFileApi } from "@/api/file";
|
|
import { uploadFileApi } from "@/api/file";
|
|
import Cropper from "cropperjs";
|
|
import Cropper from "cropperjs";
|
|
|
|
+import { getUserList } from "@/api/system/user";
|
|
import "cropperjs/dist/cropper.css";
|
|
import "cropperjs/dist/cropper.css";
|
|
import {
|
|
import {
|
|
addSignature,
|
|
addSignature,
|
|
@@ -410,6 +425,7 @@ import {
|
|
} from "@/api/signature";
|
|
} from "@/api/signature";
|
|
|
|
|
|
const { dicts } = useDictionaryStore();
|
|
const { dicts } = useDictionaryStore();
|
|
|
|
+const userList = ref([]);
|
|
const Visible = ref(true);
|
|
const Visible = ref(true);
|
|
const addStatus = ref(false);
|
|
const addStatus = ref(false);
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
@@ -422,6 +438,11 @@ const form = ref({
|
|
signatureFiles: "",
|
|
signatureFiles: "",
|
|
signatureAttribution: "",
|
|
signatureAttribution: "",
|
|
});
|
|
});
|
|
|
|
+const queryUserList = () => {
|
|
|
|
+ getUserList({}).then((data) => {
|
|
|
|
+ userList.value = data.data;
|
|
|
|
+ });
|
|
|
|
+};
|
|
const changeMyselfUpload = () => {
|
|
const changeMyselfUpload = () => {
|
|
form.value.signatureFiles = null;
|
|
form.value.signatureFiles = null;
|
|
};
|
|
};
|
|
@@ -905,10 +926,12 @@ const {
|
|
sealRotateChange,
|
|
sealRotateChange,
|
|
buildCropperImage,
|
|
buildCropperImage,
|
|
} = GZUseHook();
|
|
} = GZUseHook();
|
|
-onMounted(() => {
|
|
|
|
|
|
+onMounted(async () => {
|
|
|
|
+ await queryUserList();
|
|
if (props.editStatus == true) {
|
|
if (props.editStatus == true) {
|
|
addStatus.value = false;
|
|
addStatus.value = false;
|
|
form.value.signatureName = props.rowObj.signatureName;
|
|
form.value.signatureName = props.rowObj.signatureName;
|
|
|
|
+ form.value.signUser = props.rowObj.signUser;
|
|
form.value.signatureState = props.rowObj.signatureState;
|
|
form.value.signatureState = props.rowObj.signatureState;
|
|
form.value.signatureType = props.rowObj.signatureType;
|
|
form.value.signatureType = props.rowObj.signatureType;
|
|
form.value.signatureAttribution = props.rowObj.signatureAttribution;
|
|
form.value.signatureAttribution = props.rowObj.signatureAttribution;
|