根据接口修改
This commit is contained in:
@@ -22,7 +22,6 @@ Component({
|
||||
if (!newValue) {
|
||||
return;
|
||||
}
|
||||
console.log("---------------");
|
||||
this.checkFinish(newValue)
|
||||
}
|
||||
},
|
||||
@@ -86,9 +85,9 @@ Component({
|
||||
}
|
||||
},
|
||||
async onSubmit() {
|
||||
const { meterInfo, currentNumber } = this.data;
|
||||
const { meterInfo, currentNumber, routeId } = this.data;
|
||||
const { parkId, id } = meterInfo;
|
||||
const { code, message } = await createReading(parkId, id, {
|
||||
const { code, message } = await createReading(parkId, id, routeId, {
|
||||
overall: `${currentNumber}`,
|
||||
flat: `${currentNumber}`,
|
||||
readAt: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
||||
@@ -105,6 +104,7 @@ Component({
|
||||
})
|
||||
alertSuccess("录入成功")
|
||||
const that = this;
|
||||
that.triggerEvent("onSubmit")
|
||||
setTimeout(async () => {
|
||||
const isFinished = await that.checkFinish()
|
||||
if (isFinished) {
|
||||
|
Reference in New Issue
Block a user