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