|
|
@ -14,15 +14,15 @@ export default { |
|
|
handler(v) { |
|
|
handler(v) { |
|
|
if (v) { |
|
|
if (v) { |
|
|
const { |
|
|
const { |
|
|
studyMc,studySn,templateMc,templateMcEn,templateSn,satrtDate,endDate, |
|
|
|
|
|
|
|
|
studyMc,studySn,templateMc,templateMcEn,templateSn,startDate,endDate, |
|
|
} = v; |
|
|
} = v; |
|
|
if (v.resource) {//试验试剂信息
|
|
|
if (v.resource) {//试验试剂信息
|
|
|
this.resource = JSON.parse(v.resource); |
|
|
this.resource = JSON.parse(v.resource); |
|
|
} |
|
|
} |
|
|
if (v.bdnr) { |
|
|
if (v.bdnr) { |
|
|
this.formData = { ...JSON.parse(v.bdnr), studyMc,studySn,templateMc,templateMcEn,templateSn,satrtDate,endDate, }; |
|
|
|
|
|
|
|
|
this.formData = { ...JSON.parse(v.bdnr), studyMc,studySn,templateMc,templateMcEn,templateSn,startDate,endDate, }; |
|
|
} |
|
|
} |
|
|
const { startDate, effectivePeriod, effectivePeriodUnit, expireDate } = this.formData; |
|
|
|
|
|
|
|
|
const { effectivePeriod, effectivePeriodUnit, expireDate } = this.formData; |
|
|
//实际填报的时候,如果有了开始时间,并且有有效周期,但是没有失效日,就计算失效日为开始时间+有效周期
|
|
|
//实际填报的时候,如果有了开始时间,并且有有效周期,但是没有失效日,就计算失效日为开始时间+有效周期
|
|
|
if (startDate && this.fillType === "actFill" && effectivePeriod && effectivePeriodUnit && !expireDate) { |
|
|
if (startDate && this.fillType === "actFill" && effectivePeriod && effectivePeriodUnit && !expireDate) { |
|
|
const start = moment(startDate); |
|
|
const start = moment(startDate); |
|
|
|