|
@@ -11,32 +11,32 @@
|
|
|
<plate-input v-if="plateShow" :plate="plateNo" @export="setPlate" @close="plateShow=false" />
|
|
|
|
|
|
|
|
|
- </view>
|
|
|
- <view class="line"></view>
|
|
|
-
|
|
|
- <view class="mesView">
|
|
|
- <view class="leftTitle">VIN</view>
|
|
|
- <input class="vinInput selectColor" type="text" v-model="vin" placeholder="请输入"
|
|
|
- placeholder-style="color:#999999" />
|
|
|
- <view class="kmStr"></view>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
+ <view class="line"></view>
|
|
|
+
|
|
|
+ <view class="mesView">
|
|
|
+ <view class="leftTitle">VIN</view>
|
|
|
+ <input class="vinInput selectColor" type="text" v-model="vin" placeholder="请输入"
|
|
|
+ placeholder-style="color:#999999" />
|
|
|
+ <view class="kmStr"></view>
|
|
|
+ </view>
|
|
|
<view class="line"></view>
|
|
|
|
|
|
<view class="mesView" @click="goCarModel()">
|
|
|
<view class="leftTitle">车型</view>
|
|
|
<view class="carModBtn noSelectColor" v-if="!carModelInfo.value">请选择车型</view>
|
|
|
<view class="carModBtn selectColor carMod" v-else>{{carModelInfo.value}}</view>
|
|
|
- <image src="../../../static/img/rightArrow.png" class="rightArrow"></image>
|
|
|
- </view>
|
|
|
+ <image src="../../../static/img/big_rightArrow.png" class="big_rightArrow"></image>
|
|
|
+ </view>
|
|
|
+ <view class="line"></view>
|
|
|
+
|
|
|
+ <view class="mesView">
|
|
|
+ <view class="leftTitle">行驶里程</view>
|
|
|
+ <input class="mileageInput selectColor" type="number" v-model="mileage" placeholder="请输入"
|
|
|
+ placeholder-style="color:#999999" />
|
|
|
+ <view class="kmStr">km</view>
|
|
|
+ </view>
|
|
|
<view class="line"></view>
|
|
|
-
|
|
|
- <view class="mesView">
|
|
|
- <view class="leftTitle">行驶里程</view>
|
|
|
- <input class="mileageInput selectColor" type="number" v-model="mileage" placeholder="请输入"
|
|
|
- placeholder-style="color:#999999" />
|
|
|
- <view class="kmStr">km</view>
|
|
|
- </view>
|
|
|
- <view class="line"></view>
|
|
|
|
|
|
<view class="mesView">
|
|
|
<view class="leftTitle">注册登记时间</view>
|
|
@@ -44,7 +44,7 @@
|
|
|
<view class="uni-input selectColor" v-if="time">{{time}}</view>
|
|
|
<view class="uni-input noSelectColor" v-else>请选择</view>
|
|
|
</picker>
|
|
|
- <image src="../../../static/img/rightArrow.png" class="rightArrow"></image>
|
|
|
+ <image src="../../../static/img/big_rightArrow.png" class="big_rightArrow"></image>
|
|
|
</view>
|
|
|
|
|
|
|
|
@@ -242,40 +242,9 @@
|
|
|
duration: 3000
|
|
|
});
|
|
|
return false;
|
|
|
- }
|
|
|
- if (this.vin == '') {
|
|
|
- uni.showToast({
|
|
|
- title: '请填写vin',
|
|
|
- icon: 'none',
|
|
|
- duration: 3000
|
|
|
- });
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (this.carModelInfo == '') {
|
|
|
- uni.showToast({
|
|
|
- title: '请选择车型',
|
|
|
- icon: 'none',
|
|
|
- duration: 3000
|
|
|
- });
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (this.mileage == '') {
|
|
|
- uni.showToast({
|
|
|
- title: '请输入行驶里程',
|
|
|
- icon: 'none',
|
|
|
- duration: 3000
|
|
|
- });
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (this.time == '') {
|
|
|
- uni.showToast({
|
|
|
- title: '请选择注册登记时间',
|
|
|
- icon: 'none',
|
|
|
- duration: 3000
|
|
|
- });
|
|
|
- return false;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
if (this.isEditCar == 'true') {
|
|
|
this.updateTMemberCar()
|
|
|
} else {
|
|
@@ -285,24 +254,46 @@
|
|
|
},
|
|
|
|
|
|
addTMemberCar() {
|
|
|
- this.$http('opencarInfoOwner/addCarOwner', {
|
|
|
+ var cardata = {
|
|
|
plateNumber: this.plateNo,
|
|
|
- milage: this.mileage,
|
|
|
- brand: this.carModelInfo.carModelInfo.brand,
|
|
|
- displacement: this.carModelInfo.carModelInfo.displacement,
|
|
|
- series: this.carModelInfo.carModelInfo.carSeries,
|
|
|
- annualmoney: this.carModelInfo.carModelInfo.productionYear,
|
|
|
- carModel: this.carModelInfo.value,
|
|
|
- saleName: this.carModelInfo.carModelInfo.salesName,
|
|
|
- transmissionType: this.carModelInfo.carModelInfo.transmissionType,
|
|
|
- model: this.carModelInfo.carModelInfo.carModel,
|
|
|
- nLevelID: this.carModelInfo.carModelInfo.nLevelID,
|
|
|
- engineType: this.carModelInfo.carModelInfo.engineModel,
|
|
|
- brandLogo: this.carModelInfo.carModelInfo.logo,
|
|
|
+ milage: this.mileage?this.mileage:0,
|
|
|
+ brand: "",
|
|
|
+ displacement: "",
|
|
|
+ series: "",
|
|
|
+ annualmoney: "",
|
|
|
+ carModel: "",
|
|
|
+ saleName: "",
|
|
|
+ transmissionType: "",
|
|
|
+ model: "",
|
|
|
+ nLevelID: "",
|
|
|
+ engineType: "",
|
|
|
+ brandLogo: "",
|
|
|
buyDate: this.time,
|
|
|
- guidePrice: this.carModelInfo.carModelInfo.guidePrice,
|
|
|
+ guidePrice: "",
|
|
|
vIN: this.vin,
|
|
|
- }, 'POST').then(res => {
|
|
|
+ };
|
|
|
+ if(this.carModelInfo){
|
|
|
+ cardata = {
|
|
|
+ plateNumber: this.plateNo,
|
|
|
+ milage: this.mileage?this.mileage:0,
|
|
|
+ brand: this.carModelInfo.carModelInfo.brand,
|
|
|
+ displacement: this.carModelInfo.carModelInfo.displacement,
|
|
|
+ series: this.carModelInfo.carModelInfo.carSeries,
|
|
|
+ annualmoney: this.carModelInfo.carModelInfo.productionYear,
|
|
|
+ carModel: this.carModelInfo.value,
|
|
|
+ saleName: this.carModelInfo.carModelInfo.salesName,
|
|
|
+ transmissionType: this.carModelInfo.carModelInfo.transmissionType,
|
|
|
+ model: this.carModelInfo.carModelInfo.carModel,
|
|
|
+ nLevelID: this.carModelInfo.carModelInfo.nLevelID,
|
|
|
+ engineType: this.carModelInfo.carModelInfo.engineModel,
|
|
|
+ brandLogo: this.carModelInfo.carModelInfo.logo,
|
|
|
+ buyDate: this.time,
|
|
|
+ guidePrice: this.carModelInfo.carModelInfo.guidePrice,
|
|
|
+ vIN: this.vin,
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$http('opencarInfoOwner/addCarOwner', cardata, 'POST').then(res => {
|
|
|
uni.hideLoading();
|
|
|
if (res.code == 0) {
|
|
|
uni.showToast({
|
|
@@ -344,25 +335,45 @@
|
|
|
})
|
|
|
},
|
|
|
updateTMemberCar() {
|
|
|
- this.$http('opencarInfoOwner/addCarOwner', {
|
|
|
+ var cardata = {
|
|
|
plateNumber: this.plateNo,
|
|
|
milage: this.mileage,
|
|
|
- brand: this.carModelInfo.carModelInfo.brand,
|
|
|
- displacement: this.carModelInfo.carModelInfo.displacement,
|
|
|
- series: this.carModelInfo.carModelInfo.carSeries,
|
|
|
- annualmoney: this.carModelInfo.carModelInfo.productionYear,
|
|
|
- carModel: this.carModelInfo.value,
|
|
|
- saleName: this.carModelInfo.carModelInfo.salesName,
|
|
|
- transmissionType: this.carModelInfo.carModelInfo.transmissionType,
|
|
|
- model: this.carModelInfo.carModelInfo.carModel,
|
|
|
- nLevelID: this.carModelInfo.carModelInfo.nLevelID,
|
|
|
- engineType: this.carModelInfo.carModelInfo.engineModel,
|
|
|
- brandLogo: this.carModelInfo.carModelInfo.logo,
|
|
|
+ brand: "",
|
|
|
+ displacement: "",
|
|
|
+ series: "",
|
|
|
+ annualmoney: "",
|
|
|
+ carModel: "",
|
|
|
+ saleName: "",
|
|
|
+ transmissionType: "",
|
|
|
+ model: "",
|
|
|
+ nLevelID: "",
|
|
|
+ engineType: "",
|
|
|
+ brandLogo: "",
|
|
|
buyDate: this.time,
|
|
|
- guidePrice: this.carModelInfo.carModelInfo.guidePrice,
|
|
|
+ guidePrice: "",
|
|
|
vIN: this.vin,
|
|
|
- id: this.carId,
|
|
|
- }, 'POST').then(res => {
|
|
|
+ };
|
|
|
+ if(this.carModelInfo){
|
|
|
+ cardata = {
|
|
|
+ plateNumber: this.plateNo,
|
|
|
+ milage: this.mileage,
|
|
|
+ brand: this.carModelInfo.carModelInfo.brand,
|
|
|
+ displacement: this.carModelInfo.carModelInfo.displacement,
|
|
|
+ series: this.carModelInfo.carModelInfo.carSeries,
|
|
|
+ annualmoney: this.carModelInfo.carModelInfo.productionYear,
|
|
|
+ carModel: this.carModelInfo.value,
|
|
|
+ saleName: this.carModelInfo.carModelInfo.salesName,
|
|
|
+ transmissionType: this.carModelInfo.carModelInfo.transmissionType,
|
|
|
+ model: this.carModelInfo.carModelInfo.carModel,
|
|
|
+ nLevelID: this.carModelInfo.carModelInfo.nLevelID,
|
|
|
+ engineType: this.carModelInfo.carModelInfo.engineModel,
|
|
|
+ brandLogo: this.carModelInfo.carModelInfo.logo,
|
|
|
+ buyDate: this.time,
|
|
|
+ guidePrice: this.carModelInfo.carModelInfo.guidePrice,
|
|
|
+ vIN: this.vin,
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$http('opencarInfoOwner/addCarOwner', cardata, 'POST').then(res => {
|
|
|
uni.hideLoading();
|
|
|
if (res.code == 0) {
|
|
|
uni.showToast({
|
|
@@ -444,7 +455,7 @@
|
|
|
-webkit-box-orient: vertical;
|
|
|
}
|
|
|
|
|
|
- .rightArrow {
|
|
|
+ .big_rightArrow {
|
|
|
margin-right: 28rpx;
|
|
|
width: 14rpx;
|
|
|
height: 23rpx;
|
|
@@ -475,10 +486,10 @@
|
|
|
.mileageInput {
|
|
|
width: 20%;
|
|
|
font-size: 28rpx;
|
|
|
- }
|
|
|
- .vinInput{
|
|
|
- width: 60%;
|
|
|
- font-size: 28rpx;
|
|
|
+ }
|
|
|
+ .vinInput{
|
|
|
+ width: 60%;
|
|
|
+ font-size: 28rpx;
|
|
|
}
|
|
|
|
|
|
.kmStr {
|
|
@@ -508,12 +519,12 @@
|
|
|
font-size: 30rpx;
|
|
|
font-weight: bold;
|
|
|
|
|
|
- text-align: center;
|
|
|
+ text-align: center;
|
|
|
line-height: 74rpx;
|
|
|
- }
|
|
|
- .line{
|
|
|
- margin: 1rpx 28rpx;
|
|
|
- background-color: #EEEEEE;
|
|
|
- height: 1rpx;
|
|
|
}
|
|
|
-</style>
|
|
|
+ .line{
|
|
|
+ margin: 1rpx 28rpx;
|
|
|
+ background-color: #EEEEEE;
|
|
|
+ height: 1rpx;
|
|
|
+ }
|
|
|
+</style>
|