From 2903f6ac4eb2049850722f5d3ad4d70ffcc04eb0 Mon Sep 17 00:00:00 2001 From: THK3121 Date: Thu, 3 Aug 2023 17:34:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/consumer.ts | 4 + src/api/withdraw.ts | 26 + src/router/routes.ts | 30 +- src/views/category_business/edit.vue | 3 +- src/views/category_business/index.vue | 27 +- src/views/company/edit.vue | 6 +- src/views/company/index.vue | 624 ++-- src/views/consumer/lists/detail copy.vue | 366 +-- src/views/consumer/lists/detail.vue | 144 +- src/views/consumer/lists/index.vue | 68 +- .../{examinedCate.vue => examined.vue} | 0 src/views/finance/Withdrawal.vue | 185 ++ src/views/finance/edit.vue | 175 ++ src/views/organization/department/edit.vue | 2 +- src/views/permission/menu/index.vue | 2 +- src/views/task/calendar.vue | 13 +- src/views/task/edit.vue | 176 +- src/views/user_informationg/detil.vue | 2500 ++++++++--------- src/views/user_informationg/editCate.vue | 41 +- src/views/user_informationg/index.vue | 68 +- 20 files changed, 2457 insertions(+), 2003 deletions(-) create mode 100644 src/api/withdraw.ts rename src/views/examined/{examinedCate.vue => examined.vue} (100%) create mode 100644 src/views/finance/Withdrawal.vue create mode 100644 src/views/finance/edit.vue diff --git a/src/api/consumer.ts b/src/api/consumer.ts index 0521084..42ad935 100644 --- a/src/api/consumer.ts +++ b/src/api/consumer.ts @@ -34,3 +34,7 @@ export function upContact(params: any) { export function creatContact(params: any) { return request.post({ url: "/user.user/Draftingcontracts", params }); } +//发送短息 +export function sendMsgApi(params: any) { + return request.get({ url: "/contract.contract/postsms", params }); +} diff --git a/src/api/withdraw.ts b/src/api/withdraw.ts new file mode 100644 index 0000000..0a587b1 --- /dev/null +++ b/src/api/withdraw.ts @@ -0,0 +1,26 @@ +import request from "@/utils/request"; + +// 提现申请列表 +export function apiWithdrawLists(params: any) { + return request.get({ url: "/withdraw/index", params }); +} + +// 添加提现申请 +export function apiWithdrawAdd(params: any) { + return request.post({ url: "/withdraw/add", params }); +} + +// 编辑提现申请 +export function apiWithdrawEdit(params: any) { + return request.post({ url: "/withdraw/edit", params }); +} + +// 删除提现申请 +export function apiWithdrawDelete(params: any) { + return request.post({ url: "/withdraw/delete", params }); +} + +// 提现申请详情 +export function apiWithdrawDetail(params: any) { + return request.get({ url: "/withdraw/detail", params }); +} diff --git a/src/router/routes.ts b/src/router/routes.ts index 0d4a265..386c3c1 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -47,21 +47,29 @@ export const constantRoutes: Array = [ }, }, { - path: "b", - component: () => import("@/views/fileManagement/index.vue"), + path: "user_informationgdetil", + component: () => import("@/views/user_informationg/detil.vue"), name: Symbol(), meta: { - title: "个人设置", - }, - }, - { - path: "a", - component: () => import("@/views/fileManagement/detil.vue"), - name: Symbol(), - meta: { - title: "个人设置", + title: "档案详情", }, }, + // { + // path: "b", + // component: () => import("@/views/fileManagement/index.vue"), + // name: Symbol(), + // meta: { + // title: "个人设置", + // }, + // }, + // { + // path: "a", + // component: () => import("@/views/fileManagement/detil.vue"), + // name: Symbol(), + // meta: { + // title: "个人设置", + // }, + // }, ], }, // { diff --git a/src/views/category_business/edit.vue b/src/views/category_business/edit.vue index 8ec1589..efaf60e 100644 --- a/src/views/category_business/edit.vue +++ b/src/views/category_business/edit.vue @@ -7,8 +7,9 @@ width="550px" @confirm="handleSubmit" @close="handleClose" + > - + diff --git a/src/views/category_business/index.vue b/src/views/category_business/index.vue index 761c3de..41f63de 100644 --- a/src/views/category_business/index.vue +++ b/src/views/category_business/index.vue @@ -74,8 +74,25 @@ - + @@ -387,33 +382,49 @@ - - - - - 发起合同 - + + + + + + + + + + + + + + 发起合同 + + + @@ -423,9 +434,9 @@ :value="adjustState.value" @confirm="handleConfirmAdjust" /> - + @@ -459,8 +470,8 @@ import useUserStore from "@/stores/modules/user"; import feedback from "@/utils/feedback"; const { removeTab } = useMultipleTabs(); const router = useRouter(); - const route = useRoute(); +const flag = ref(true); const formData = reactive({ id: "", sex: "", @@ -650,12 +661,15 @@ const handleAvatarSuccess_four: UploadProps["onSuccess"] = ( return; } formData.file = response.data.uri; - fileList.value[0].url = response.data.uri; - fileList.value[0].name = "合同文件"; - console.log(formData.file.substring(8)); - upContact({ file: formData.file.substring(8), id: route.query.id }).then( - (res) => [console.log(res)] - ); + // fileList.value[0].url = response.data.uri; + // fileList.value[0].name = "合同文件"; + + // upContact({ file: formData.file.substring(8), id: route.query.id }).then( + // (res) => [console.log(res)] + // ); + upContact({ file: formData.file, id: route.query.mdoeid }).then((res) => [ + console.log(res), + ]); }; const beforeAvatarUpload_three: UploadProps["beforeUpload"] = (rawFile) => { return true; @@ -701,27 +715,17 @@ const handleConfirmAdjust = async (value: any) => { }; // 发起合同 const initiateContactFn = () => { - const { party_b, contract_type } = formData; + const { contract_type } = formData; // console.log(party_b, contract_type); - initiateContact({ party_b, contract_type, type: 2 }).then((res) => { - console.log(res); - feedback.msgSuccess("发起成功,等待平台风控部上传合同"); - }); -}; -const create = async () => { - await formRef.value?.validate(); - const data = { ...formData }; - // mode.value = route.query.mode; - // if (route.query.id) { - // await apiCompanyEdit(data) - // } else { - // await apiCompanyAdd(data) - // } - removeTab(); - router.back(); + initiateContact({ party_b: route.query.id, contract_type, type: 2 }).then( + (res) => { + feedback.msgSuccess("发起成功,等待平台风控部上传合同"); + } + ); }; getDetails(); getProvinceList(); +console.log(formData);