Commit 27d22c32 authored by fwz's avatar fwz

车牌号获取

parent e8d2eecd
......@@ -151,6 +151,7 @@ export default {
this.moveCodeInfo[name] = this.formData[i].rules.value
}
}
this.carId = this.model1.carInfo.carId
this.moveCodeInfo.carNo = this.model1.carInfo.carNo
this.moveCodeInfo.moveCode = this.moveCode
if (!this.checked) {
......@@ -186,6 +187,9 @@ export default {
},
getCarInfo() {
if (this.carId) {
uni.showLoading({
title:"加载中"
})
let opts = {
url: '/app/vehicleAdmin/' + this.carId,
method: 'get'
......@@ -193,6 +197,7 @@ export default {
this.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) {
this.model1.carInfo = res.data.data
uni.hideLoading()
this.formData.forEach(e => {
if (e.label == '品牌:') {
e.rules.value = this.model1.carInfo.brand
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment