Commit f677ba43 authored by jingnan's avatar jingnan 👀

胶料剩余施工期根据施工期变化修改

parent aa5f441c
......@@ -471,6 +471,11 @@ export default {
const addTime = (!this.form.spec || this.form.spec === '/') ? 0 : Number(this.form.spec)
const resultDate = this.$utils.addMinutes(this.form.mixStartTime, addTime * 60)
this.$set(this.form, 'mixEndTime', resultDate)
// 设置剩余施工期
if (this.form.mixStartTime && this.form.validityStart) {
const diffTime = addTime - this.$utils.getTimeDifferenceInMinutes(this.form.mixStartTime, this.form.validityStart)
this.$set(this.form, 'leftWorkMinutes', diffTime)
}
}
},
changeRequest() {
......
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