页面优化

This commit is contained in:
THK3121 2023-09-07 18:18:03 +08:00
parent cfc5b758d3
commit 60a009458a
2 changed files with 7 additions and 5 deletions

View File

@ -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,
});
}

View File

@ -201,8 +201,10 @@
</el-col>
</el-form>
<!-- 小组公司申请车辆 -->
<!-- {{ formData.contract_logistic_id }}
{{ formData.type }} -->
<div
v-if="formData.contract_logistic_id && !formData.type"
v-if="formData.contract_logistic_id && formData.type == '租赁车辆'"
class="el-card pt-6"
>
<div class="tit">租赁信息</div>
@ -225,7 +227,7 @@
<el-upload
style="display: inline-block"
:headers="{ Token: userStore.token }"
:action="base_url + '/upload/image'"
:action="base_url + '/upload/file'"
:on-success="handleAvatarSuccess_three"
:before-upload="handleBeforeUpload"
:limit="1"
@ -320,10 +322,10 @@ leaseContractDetail({ id: route.query.id }).then((res) => {
}
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) => {