合同
This commit is contained in:
parent
5421d71140
commit
caf22885f7
@ -47,6 +47,10 @@ export function initiate_contract(params: any) {
|
|||||||
export function generateGontract(params: any) {
|
export function generateGontract(params: any) {
|
||||||
return request.get({ url: '/company/Draftingcontracts', params })
|
return request.get({ url: '/company/Draftingcontracts', params })
|
||||||
}
|
}
|
||||||
|
// 发送个人合同
|
||||||
|
export function userGontract(params: any) {
|
||||||
|
return request.get({ url: '/user.user/Draftingcontracts', params })
|
||||||
|
}
|
||||||
// 发送短信
|
// 发送短信
|
||||||
export function authentication(params: any) {
|
export function authentication(params: any) {
|
||||||
return request.get({ url: '/company/authentication', params })
|
return request.get({ url: '/company/authentication', params })
|
||||||
|
@ -186,7 +186,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex mt-4 justify-end">
|
<div class="flex justify-end mt-4">
|
||||||
<pagination v-model="pager" @change="getLists" />
|
<pagination v-model="pager" @change="getLists" />
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
@ -229,13 +229,13 @@ import {
|
|||||||
import { timeFormat } from "@/utils/util";
|
import { timeFormat } from "@/utils/util";
|
||||||
import feedback from "@/utils/feedback";
|
import feedback from "@/utils/feedback";
|
||||||
import { dictDataLists } from "@/api/setting/dict";
|
import { dictDataLists } from "@/api/setting/dict";
|
||||||
import { generateGontract, sendMsgApi } from "@/api/company";
|
import { generateGontract, sendMsgApi,userGontract } from "@/api/company";
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const editRef = shallowRef<InstanceType<typeof EditPopup>>();
|
const editRef = shallowRef<InstanceType<typeof EditPopup>>();
|
||||||
// 是否显示编辑框
|
// 是否显示编辑框
|
||||||
const showEdit = ref(false);
|
const showEdit = ref(false);
|
||||||
const datalist = ref([]);
|
const datalist = ref([]);
|
||||||
|
let isIndividual=false
|
||||||
//弹窗
|
//弹窗
|
||||||
const showPop = ref(false);
|
const showPop = ref(false);
|
||||||
const showConctactPop = ref(false);
|
const showConctactPop = ref(false);
|
||||||
@ -248,16 +248,29 @@ const showCreateConctPop = (row: any) => {
|
|||||||
(showConctactPop.value = true),
|
(showConctactPop.value = true),
|
||||||
(contract_id.value = row.id),
|
(contract_id.value = row.id),
|
||||||
(party_b_id.value = row.party_b);
|
(party_b_id.value = row.party_b);
|
||||||
|
if(row.contract_type==22){
|
||||||
|
isIndividual=true
|
||||||
|
}
|
||||||
};
|
};
|
||||||
const offPop = () => {
|
const offPop = () => {
|
||||||
showPop.value = false;
|
showPop.value = false;
|
||||||
showConctactPop.value = false;
|
showConctactPop.value = false;
|
||||||
};
|
};
|
||||||
const creContct = async () => {
|
const creContct = async () => {
|
||||||
|
|
||||||
|
|
||||||
|
if(isIndividual){
|
||||||
|
await userGontract({
|
||||||
|
id: party_b_id.value,
|
||||||
|
contract_id: contract_id.value,
|
||||||
|
});
|
||||||
|
}else{
|
||||||
await generateGontract({
|
await generateGontract({
|
||||||
id: party_b_id.value,
|
id: party_b_id.value,
|
||||||
contract_id: contract_id.value,
|
contract_id: contract_id.value,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
isIndividual=false
|
||||||
getLists();
|
getLists();
|
||||||
offPop();
|
offPop();
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user