| | |
| | | this.form.planDate = new Date() |
| | | this.form.planId = target.id |
| | | this.form.planNum = target.num - target.distributNum |
| | | getDeviceByCondition({procedureId: target.procedureId}) |
| | | getDeviceByCondition({}) |
| | | .then(res => { |
| | | |
| | | this.device = res |
| | | this.form.proGroupId = res[0] ? res[0].id : '' |
| | | this.getUser(this.form.proGroupId) |
| | | }) |
| | | .catch(err => { |
| | | console.log(err) |
| | |
| | | return date2 |
| | | } |
| | | }, |
| | | // pickerOptions(data) { |
| | | // let time = new Date(data); |
| | | // let tempTime = 3600 * 1000 * 24 |
| | | // return { |
| | | // disabledDate: time.getTime() < new Date(data)-tempTime |
| | | // } |
| | | // } |
| | | pickerOptions(data) { |
| | | let time = new Date(data); |
| | | let tempTime = 3600 * 1000 * 24 |
| | | return { |
| | | disabledDate: time.getTime() < new Date(data)-tempTime |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |