Commit 27d22c32 authored by fwz's avatar fwz

车牌号获取

parent e8d2eecd
...@@ -151,6 +151,7 @@ export default { ...@@ -151,6 +151,7 @@ export default {
this.moveCodeInfo[name] = this.formData[i].rules.value this.moveCodeInfo[name] = this.formData[i].rules.value
} }
} }
this.carId = this.model1.carInfo.carId
this.moveCodeInfo.carNo = this.model1.carInfo.carNo this.moveCodeInfo.carNo = this.model1.carInfo.carNo
this.moveCodeInfo.moveCode = this.moveCode this.moveCodeInfo.moveCode = this.moveCode
if (!this.checked) { if (!this.checked) {
...@@ -186,6 +187,9 @@ export default { ...@@ -186,6 +187,9 @@ export default {
}, },
getCarInfo() { getCarInfo() {
if (this.carId) { if (this.carId) {
uni.showLoading({
title:"加载中"
})
let opts = { let opts = {
url: '/app/vehicleAdmin/' + this.carId, url: '/app/vehicleAdmin/' + this.carId,
method: 'get' method: 'get'
...@@ -193,6 +197,7 @@ export default { ...@@ -193,6 +197,7 @@ export default {
this.http.httpTokenRequest(opts, {}).then(res => { this.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.model1.carInfo = res.data.data this.model1.carInfo = res.data.data
uni.hideLoading()
this.formData.forEach(e => { this.formData.forEach(e => {
if (e.label == '品牌:') { if (e.label == '品牌:') {
e.rules.value = this.model1.carInfo.brand 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