|
@@ -53,6 +53,14 @@
|
|
|
disabled
|
|
disabled
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="本期用量">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model.number="form.quantity"
|
|
|
|
|
+ type="number"
|
|
|
|
|
+ placeholder="请输入本期用量"
|
|
|
|
|
+ disabled
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -72,7 +80,8 @@
|
|
|
meterReadingId: '',
|
|
meterReadingId: '',
|
|
|
currentMeterReadingTime: '',
|
|
currentMeterReadingTime: '',
|
|
|
currentMeterReadingNum: '',
|
|
currentMeterReadingNum: '',
|
|
|
- meterReadingMethod: 1
|
|
|
|
|
|
|
+ meterReadingMethod: 1,
|
|
|
|
|
+ quantity: ''
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -108,6 +117,19 @@
|
|
|
// 打开弹窗
|
|
// 打开弹窗
|
|
|
async init() {
|
|
async init() {
|
|
|
this.form = await getById(this.businessId);
|
|
this.form = await getById(this.businessId);
|
|
|
|
|
+ let quantity = this.form.quantity;
|
|
|
|
|
+ if (
|
|
|
|
|
+ quantity === null ||
|
|
|
|
|
+ quantity === '' ||
|
|
|
|
|
+ quantity === undefined ||
|
|
|
|
|
+ Number(quantity) === 0
|
|
|
|
|
+ ) {
|
|
|
|
|
+ const upNum = this.form.currentUpNum;
|
|
|
|
|
+ quantity = upNum === null || upNum === '' || upNum === undefined
|
|
|
|
|
+ ? 0
|
|
|
|
|
+ : upNum;
|
|
|
|
|
+ }
|
|
|
|
|
+ this.form.quantity = quantity;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|