|
@ -131,7 +131,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
</scroll-view> |
|
|
</scroll-view> |
|
|
<!-- 提交按钮 --> |
|
|
<!-- 提交按钮 --> |
|
|
<view class="u-button--primary" @click="onSubmit">提交</view> |
|
|
<view class="btn" @click="onSubmit">提交</view> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -400,7 +400,8 @@ export default { |
|
|
console.log("onSubmit", this.form); |
|
|
console.log("onSubmit", this.form); |
|
|
}, |
|
|
}, |
|
|
async submitAdd() { |
|
|
async submitAdd() { |
|
|
const params = { |
|
|
let params = []; |
|
|
|
|
|
params.push({ |
|
|
meterNumber: this.form.meterNumber, |
|
|
meterNumber: this.form.meterNumber, |
|
|
meterType: 1, |
|
|
meterType: 1, |
|
|
houseId: this.form.houseId, |
|
|
houseId: this.form.houseId, |
|
@ -409,8 +410,31 @@ export default { |
|
|
thisMeterReading: this.form.thisMeterReading, |
|
|
thisMeterReading: this.form.thisMeterReading, |
|
|
images: this.fileList, |
|
|
images: this.fileList, |
|
|
remark: this.form.remark, |
|
|
remark: this.form.remark, |
|
|
}; |
|
|
}); |
|
|
|
|
|
console.log(params, "params"); |
|
|
|
|
|
|
|
|
const res = await submitWaterAndElectricity(params); |
|
|
const res = await submitWaterAndElectricity(params); |
|
|
|
|
|
if (res.code == 200) { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
icon: "success", |
|
|
|
|
|
title: "提交成功!", |
|
|
|
|
|
success: () => { |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
uni.switchTab({ |
|
|
|
|
|
url: "/pages/tabBar/work/index", |
|
|
|
|
|
success: () => { |
|
|
|
|
|
this.fileList = []; |
|
|
|
|
|
}, |
|
|
|
|
|
}); |
|
|
|
|
|
}, 1500); |
|
|
|
|
|
}, |
|
|
|
|
|
}); |
|
|
|
|
|
}else { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: res.msg || "提交失败", |
|
|
|
|
|
icon: "none", |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
console.log(res, "reeees"); |
|
|
console.log(res, "reeees"); |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
@ -590,19 +614,22 @@ export default { |
|
|
margin: 40rpx 0 0 0; |
|
|
margin: 40rpx 0 0 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.u-button--primary { |
|
|
.btn { |
|
|
display: flex; |
|
|
width: 414rpx; |
|
|
align-items: center; |
|
|
height: 70rpx; |
|
|
justify-content: center; |
|
|
line-height: 70rpx; |
|
|
background: linear-gradient(90deg, #0dc6c6 0%, #13c2c2 100%) !important; |
|
|
border-radius: 600rpx; |
|
|
font-size: 36rpx; |
|
|
background: linear-gradient( |
|
|
border-radius: 48rpx !important; |
|
|
86.25deg, |
|
|
border: none; |
|
|
rgba(13, 198, 198, 1) 3.03%, |
|
|
|
|
|
rgba(19, 194, 194, 1) 3.03%, |
|
|
|
|
|
rgba(70, 219, 213, 1) 96.43% |
|
|
|
|
|
); |
|
|
|
|
|
color: rgba(255, 255, 255, 1); |
|
|
|
|
|
font-size: 34rpx; |
|
|
|
|
|
text-align: center; |
|
|
margin: auto; |
|
|
margin: auto; |
|
|
margin-top: 40rpx; |
|
|
margin-top: 40rpx; |
|
|
width: 80%; |
|
|
|
|
|
height: 88rpx; |
|
|
|
|
|
color: rgba(255, 255, 255, 1); |
|
|
|
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|
|
@ -610,4 +637,4 @@ export default { |
|
|
.dfReport .u-input__content__field-wrapper__field { |
|
|
.dfReport .u-input__content__field-wrapper__field { |
|
|
text-align: right !important; |
|
|
text-align: right !important; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |