Commit 65a0deef authored by jingnan's avatar jingnan 👀

胶漆调配返回储藏条件为NA处理

parent 32a4dec1
......@@ -609,7 +609,7 @@ export default {
this.$set(this.form, 'storeUpTo', res.items.content[0].storeUpTo)
if (this.form.validityStart && this.form.freeTemperature) {
const date = new Date(this.form.validityStart)
const data = Number(this.form.freeTemperature) === -24 ? (this.form.storeUp ? Number(this.form.storeUp) : 21) : (this.form.storeUpTo ? Number(this.form.storeUpTo) : 30)
const data = Number(this.form.freeTemperature) === -24 ? (!isNaN(this.form.storeUp) ? Number(this.form.storeUp) : 21) : (!isNaN(this.form.storeUpTo) ? Number(this.form.storeUpTo) : 30)
date.setDate(date.getDate() + data)
this.$set(this.form, 'validityEnd', this.$utils.dateFormat(date.toISOString()))
}
......
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