更新
This commit is contained in:
parent
a5f6554ec4
commit
cdeb7f8d19
@ -6,7 +6,7 @@ const config = {
|
|||||||
import.meta.env.VITE_APP_BASE_URL
|
import.meta.env.VITE_APP_BASE_URL
|
||||||
}/`, //请求接口域名
|
}/`, //请求接口域名
|
||||||
urlPrefix: "adminapi", //请求默认前缀
|
urlPrefix: "adminapi", //请求默认前缀
|
||||||
timeout: 10 * 1000, //请求超时时长
|
timeout: 20 * 1000, //请求超时时长
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
@ -77,7 +77,10 @@ const axiosHooks: AxiosHooks = {
|
|||||||
responseInterceptorsCatchHook(error) {
|
responseInterceptorsCatchHook(error) {
|
||||||
NProgress.done()
|
NProgress.done()
|
||||||
if (error.code !== AxiosError.ERR_CANCELED) {
|
if (error.code !== AxiosError.ERR_CANCELED) {
|
||||||
error.message && feedback.msgError(error.message)
|
if (error.message.indexOf('timeout') !== -1) {
|
||||||
|
feedback.msgError('请求超时!!!')
|
||||||
|
}
|
||||||
|
else error.message && feedback.msgError(error.message)
|
||||||
}
|
}
|
||||||
return Promise.reject(error)
|
return Promise.reject(error)
|
||||||
}
|
}
|
||||||
|
@ -235,21 +235,22 @@
|
|||||||
>生成合同</el-button
|
>生成合同</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
v-else-if="row.contract?.status == 0"
|
|
||||||
v-perms="['company/initiate_contract']"
|
|
||||||
type="warning"
|
|
||||||
link
|
|
||||||
@click="auditing"
|
|
||||||
>签约中</el-button
|
|
||||||
>
|
|
||||||
<!-- <el-button
|
|
||||||
v-else-if="row.contract?.check_status == 1"
|
v-else-if="row.contract?.check_status == 1"
|
||||||
v-perms="['company/initiate_contract']"
|
v-perms="['company/initiate_contract']"
|
||||||
type="warning"
|
type="warning"
|
||||||
link
|
link
|
||||||
@click="auditing"
|
@click="auditing(1)"
|
||||||
>审核中</el-button
|
>审核中</el-button
|
||||||
>
|
>
|
||||||
|
<el-button
|
||||||
|
v-else-if="row.contract?.status == 0"
|
||||||
|
v-perms="['company/initiate_contract']"
|
||||||
|
type="success"
|
||||||
|
link
|
||||||
|
@click="auditing(2)"
|
||||||
|
>签约中</el-button
|
||||||
|
>
|
||||||
|
<!--
|
||||||
<el-button
|
<el-button
|
||||||
v-else-if="row.contract?.check_status == 2"
|
v-else-if="row.contract?.check_status == 2"
|
||||||
v-perms="['company/Draftingcontracts']"
|
v-perms="['company/Draftingcontracts']"
|
||||||
@ -662,8 +663,10 @@ const handleAuthentication = async (id: number | string | any[]) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 审核中
|
// 审核中
|
||||||
const auditing = () => {
|
const auditing = (type: number) => {
|
||||||
ElMessage.warning("请等待合同签约完成!");
|
type == 1
|
||||||
|
? ElMessage.warning("请等待合同审核完成!")
|
||||||
|
: ElMessage.success("合同双方正在签约!");
|
||||||
};
|
};
|
||||||
|
|
||||||
getLists();
|
getLists();
|
||||||
|
@ -144,6 +144,7 @@
|
|||||||
>详情</router-link
|
>详情</router-link
|
||||||
>
|
>
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<template v-if="row.status == 0">
|
||||||
<el-button v-if="row.check_status == 1" type="warning" link>
|
<el-button v-if="row.check_status == 1" type="warning" link>
|
||||||
<router-link
|
<router-link
|
||||||
:to="{ path: '/contract/detail', query: { id: row.id } }"
|
:to="{ path: '/contract/detail', query: { id: row.id } }"
|
||||||
@ -166,6 +167,7 @@
|
|||||||
@click="(showPop = true), (contractId = row.party_b)"
|
@click="(showPop = true), (contractId = row.party_b)"
|
||||||
>发送短信</el-button
|
>发送短信</el-button
|
||||||
>
|
>
|
||||||
|
</template>
|
||||||
<!-- <el-button v-perms="['contract.contract/delete']" type="danger" link
|
<!-- <el-button v-perms="['contract.contract/delete']" type="danger" link
|
||||||
@click="handleDelete(row.id)">删除</el-button> -->
|
@click="handleDelete(row.id)">删除</el-button> -->
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user