|
|
@@ -143,6 +143,7 @@
|
|
|
<SignatureField
|
|
|
v-model="currentAgreement.partyBSign"
|
|
|
placeholder=""
|
|
|
+ :upload="uploadAgreementSign"
|
|
|
/>
|
|
|
</template>
|
|
|
</Field>
|
|
|
@@ -217,6 +218,7 @@ import Form, { type FormInstance } from '@/components/form/Form.vue';
|
|
|
import type { Rules } from 'async-validator';
|
|
|
import { useLoadQuerys } from '@/common/composeabe/LoadQuerys';
|
|
|
import CommonRoot from '@/components/dialog/CommonRoot.vue';
|
|
|
+import { useImageSimpleUploadCo } from '@/common/components/upload/ImageUploadCo';
|
|
|
|
|
|
const { querys } = useLoadQuerys({
|
|
|
id: 0,
|
|
|
@@ -320,6 +322,17 @@ const signBlockStyle = {
|
|
|
paddingTop: '8rpx',
|
|
|
};
|
|
|
|
|
|
+async function loadBasicInfo() {
|
|
|
+ const basicInfo = await AssessmentContentApi.getInheritorBasic(authStore.userInfo?.id);
|
|
|
+ assertNotNull(currentAgreement.value, 'currentAgreement is null');
|
|
|
+ currentAgreement.value.partyB = basicInfo.name;
|
|
|
+ currentAgreement.value.mobile = basicInfo.mobile;
|
|
|
+ currentAgreement.value.idCard = basicInfo.idCard;
|
|
|
+ currentAgreement.value.ich = basicInfo.ichName;
|
|
|
+}
|
|
|
+
|
|
|
+const uploadAgreementSign = useImageSimpleUploadCo();
|
|
|
+
|
|
|
const agreementYear = computed(() => currentAgreement.value?.year ?? new Date().getFullYear());
|
|
|
|
|
|
const levelTitle = computed(() => {
|
|
|
@@ -348,7 +361,7 @@ const loader = useSimpleDataLoader(async () => {
|
|
|
const detail = await AssessmentContentApi.getAgreementDetail(list.data[0].id);
|
|
|
currentAgreement.value = detail;
|
|
|
partyAStampDate.value = { year: '', month: '', day: '' };
|
|
|
- partyBSignDate.value = { year: '', month: '', day: '' };
|
|
|
+ partyBSignDate.value = { year: detail.updatetime.getFullYear().toString(), month: (detail.updatetime.getMonth() + 1).toString(), day: detail.updatetime.getDate().toString() };
|
|
|
} else {
|
|
|
currentAgreement.value = null;
|
|
|
}
|
|
|
@@ -370,6 +383,7 @@ function createAgreement() {
|
|
|
partyAStampDate.value = { year: now.getFullYear().toString(), month: (now.getMonth() + 1).toString(), day: now.getDate().toString() };
|
|
|
partyBSignDate.value = { year: now.getFullYear().toString(), month: (now.getMonth() + 1).toString(), day: now.getDate().toString() };
|
|
|
currentAgreement.value = detail;
|
|
|
+ loadBasicInfo();
|
|
|
}
|
|
|
async function saveAgreement() {
|
|
|
const detail = currentAgreement.value;
|