diff --git a/subpkg/property/chosseCompany.vue b/subpkg/property/chosseCompany.vue
index c0a70ca..b24f648 100644
--- a/subpkg/property/chosseCompany.vue
+++ b/subpkg/property/chosseCompany.vue
@@ -65,8 +65,7 @@
租赁车辆
-
+
@@ -186,6 +185,7 @@
// 13043214321
this.dataList = res.data.vehicleContract
this.carList = res.data.vehicleRentCars
+ this.checked = [this.carList[0].car_id]
this.dataList.cars_info ? this.dataList.cars_info = JSON.parse(this.dataList.cars_info).license :
""
if (this.dataList.status == 3) {
@@ -272,7 +272,7 @@
},
contractFn() {
- // console.log(this.checked)
+
contractApi({
id: this.dataList.id,
car_id: this.checked[0]?.car_id ? this.checked[0].car_id : ""
diff --git a/subpkg/property/index.vue b/subpkg/property/index.vue
index 556387d..9ffd495 100644
--- a/subpkg/property/index.vue
+++ b/subpkg/property/index.vue
@@ -8,22 +8,15 @@
-
+
-
-
+
+
+
+
+ 数量超过上限
+
+
+ 数量不能为空
+
+
{
- Toast(res.msg)
+ Toast("操作成功")
this.step = -1
})
},
@@ -370,13 +376,16 @@
this.toDetail("/subpkg/property/chosseCompany")
},
confirm() {
- if (!this.newCarNum) return
+ if (!this.newCarNum || this.newCarNum > this.datas.can_rent_num) {
+ this.novalue = true
+ return
+ }
this.showPop = false
leaseApi({
num: Number(this.newCarNum)
}).then(res => {
this.newCarNum = ""
- // Toast(res.msg)
+ // Toast("操作成功")
this.showpopp = true
})
},