根据接口修改

This commit is contained in:
2025-09-22 10:56:24 +08:00
parent ad4d9323ad
commit 76746682fa
16 changed files with 39 additions and 30 deletions

View File

@@ -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) {