From 214bc362ff4ac1fd9790dbdcf2538fffe93f3881 Mon Sep 17 00:00:00 2001 From: THK3121 Date: Thu, 7 Sep 2023 09:18:33 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/contract/vehicle_list.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/contract/vehicle_list.vue b/src/views/contract/vehicle_list.vue index 08c63b2..86ca020 100644 --- a/src/views/contract/vehicle_list.vue +++ b/src/views/contract/vehicle_list.vue @@ -121,7 +121,7 @@ import { usePaging } from "@/hooks/usePaging"; import { useDictData } from "@/hooks/useDictOptions"; // import { contractList, sendContract } from "@/api/contract"; import { leaseContractList } from "@/api/contract"; - +// 测试 // import EditPopup from "./edit.vue"; // let obj = [ // { From cfc5b758d315c161277da76b786161fe7b1bd7ba Mon Sep 17 00:00:00 2001 From: THK3121 Date: Thu, 7 Sep 2023 17:25:27 +0800 Subject: [PATCH 2/3] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/car_contract.ts | 17 ++- src/views/card/detail.vue | 10 +- src/views/card/index.vue | 4 +- src/views/contract/vehicle_detail.vue | 202 ++++++++++++++++---------- 4 files changed, 152 insertions(+), 81 deletions(-) diff --git a/src/api/car_contract.ts b/src/api/car_contract.ts index 309ce6a..da446d0 100644 --- a/src/api/car_contract.ts +++ b/src/api/car_contract.ts @@ -1,6 +1,19 @@ -import request from '@/utils/request' +import request from "@/utils/request"; // 合同列表 export function apiContractLists(params: any) { - return request.get({ url: '/contract.VehicleContract/townRentList', params }) + return request.get({ url: "/contract.VehicleContract/townRentList", params }); } +// 发送合同 +// /adminapi/accnortt.VehicleContract / initiatingRentCarContract; +export function sendContract(params: any) { + return request.post({ + url: "/accnortt.VehicleContract/initiatingRentCarContract;", + params, + }); +} +// 重新短信 +export function sendMsg(params: any) { + return request.post({ url: "/contract.contract/sendSmsAgain", params }); +} +// /adminapi//adminapi/contract.VehicleContract/initiatingRentCarContract diff --git a/src/views/card/detail.vue b/src/views/card/detail.vue index 1b273c7..d76bc25 100644 --- a/src/views/card/detail.vue +++ b/src/views/card/detail.vue @@ -117,6 +117,7 @@
租赁信息
+ @@ -317,7 +369,9 @@ const handleAvatarSuccess_three = (response, uploadFile) => { border-radius: 6px; flex-shrink: 0; } - +.upload-demo { + display: flex; +} .avatar-uploader-head .el-upload { width: 120px; height: 140px; From 60a009458af8d2d1e7d3ce0b51a6ad3d8761f401 Mon Sep 17 00:00:00 2001 From: THK3121 Date: Thu, 7 Sep 2023 18:18:03 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/car_contract.ts | 2 +- src/views/contract/vehicle_detail.vue | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/api/car_contract.ts b/src/api/car_contract.ts index da446d0..30b3c13 100644 --- a/src/api/car_contract.ts +++ b/src/api/car_contract.ts @@ -8,7 +8,7 @@ export function apiContractLists(params: any) { // /adminapi/accnortt.VehicleContract / initiatingRentCarContract; export function sendContract(params: any) { return request.post({ - url: "/accnortt.VehicleContract/initiatingRentCarContract;", + url: "/contract.VehicleContract/initiatingRentCarContract", params, }); } diff --git a/src/views/contract/vehicle_detail.vue b/src/views/contract/vehicle_detail.vue index be13318..60af309 100644 --- a/src/views/contract/vehicle_detail.vue +++ b/src/views/contract/vehicle_detail.vue @@ -201,8 +201,10 @@ +
租赁信息
@@ -225,7 +227,7 @@ { } if (formData.company_a_id) { // console.log(JSON.parse(formData.cars_info)); - formData.cars_info = JSON.parse(formData.cars_info) || ""; + // formData.cars_info = JSON.parse(formData.cars_info) || ""; } formData.type ? (formData.type = "自有车辆") : (formData.type = "租赁车辆"); - // console.log(formData); + console.log(formData.type); }); const handleAvatarSuccess_three = (response, uploadFile) => {