|
|
|
@ -109,7 +109,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { studyFormPlan_fhtg, studyFormPlan_fhjj, studyFormPlan_info, studyFormPlan_jcgj, studyFormPlan_qmxx } from "@/api/business/study/studyFormPlan" |
|
|
|
import { studyFormPlan_updateFhyjjl,studyFormPlan_updateZdgxjl,studyFormPlan_fhtg, studyFormPlan_fhjj, studyFormPlan_info, studyFormPlan_jcgj, studyFormPlan_qmxx } from "@/api/business/study/studyFormPlan" |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import JcgjList from "@/views/business/comps/common/JcgjList"; |
|
|
|
import TemplateTable from '@/views/business/comps/template/TemplateTable'; |
|
|
|
@ -160,7 +160,42 @@ export default { |
|
|
|
created() { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
onPlanFhCallback(data) { |
|
|
|
console.log("data:" + JSON.stringify(data)) |
|
|
|
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData())) |
|
|
|
if (data.type == 'checkbox') { |
|
|
|
// {"type":"checkbox","fieldCheckObj":"{\"_methodCode\":{\"checked\":false}}"} |
|
|
|
studyFormPlan_updateZdgxjl( |
|
|
|
{ |
|
|
|
id: this.form.id, |
|
|
|
zdxgjl: JSON.stringify(data.fieldCheckObj) |
|
|
|
} |
|
|
|
).then(response => { |
|
|
|
}) |
|
|
|
} |
|
|
|
else if (data.type == 'content') { |
|
|
|
// {"type":"content","newRecord":{"userNameCn":"谭飞","userNameEn":"tf","key":"_versionNum","field":"试验基本信息-版本号","title":"复核意见","time":"2026-01-14 20:23:30","content":"qweqe"},"resourceList":[{"userNameCn":"谭飞","userNameEn":"tf","key":"_versionNum","field":"试验基本信息-版本号","title":"复核意见","time":"2026-01-14 20:23:30","content":"qweqe"},{"userNameCn":"谭飞","userNameEn":"tf","key":"_methodCode","field":"试验基本信息-方法编号","title":"复核意见","time":"2026-01-14 20:23:28","content":"qweqw"}]} |
|
|
|
studyFormPlan_updateFhyjjl( |
|
|
|
{ |
|
|
|
id: this.form.id, |
|
|
|
content: JSON.stringify(data.newRecord), |
|
|
|
fhyjjl: JSON.stringify(data.resourceList) |
|
|
|
} |
|
|
|
).then(response => { |
|
|
|
}) |
|
|
|
} |
|
|
|
else if (data.type == 'reply') { |
|
|
|
// {"type":"reply","newRecord":{"userNameCn":"谭飞","userNameEn":"tf","key":"_versionNum","field":"试验基本信息-版本号","title":"复核意见","time":"2026-01-14 20:23:30","content":"qweqe"},"resourceList":[{"userNameCn":"谭飞","userNameEn":"tf","key":"_versionNum","field":"试验基本信息-版本号","title":"复核意见","time":"2026-01-14 20:23:30","content":"qweqe"},{"userNameCn":"谭飞","userNameEn":"tf","key":"_methodCode","field":"试验基本信息-方法编号","title":"复核意见","time":"2026-01-14 20:23:28","content":"qweqw"}]} |
|
|
|
studyFormPlan_updateFhyjjl( |
|
|
|
{ |
|
|
|
id: this.form.id, |
|
|
|
replay: JSON.stringify(data.newRecord), |
|
|
|
fhyjjl: JSON.stringify(data.resourceList) |
|
|
|
} |
|
|
|
).then(response => { |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
getJjcgjList(val) { |
|
|
|
this.$modal.loading() |
|
|
|
studyFormPlan_jcgj(_.merge({}, this.queryParamsJcgj, val)).then(response => { |
|
|
|
@ -212,10 +247,10 @@ export default { |
|
|
|
this.formApprove.qmyyMc = qmyy |
|
|
|
if (qmyy == '复核通过') { |
|
|
|
this.openTitle = 'page.business.study.studyFormPlan.fhtg' |
|
|
|
this.formApprove.qmyyMc = this.$t('page.business.study.studyFormPlan.fhtg') |
|
|
|
this.formApprove.qmyyMc = this.$t('page.business.study.studyFormPlan.fhtg') |
|
|
|
} else if (qmyy == '复核拒绝') { |
|
|
|
this.openTitle = 'page.business.study.studyFormPlan.fhjj' |
|
|
|
this.formApprove.qmyyMc = this.$t('page.business.study.studyFormPlan.fhtg') |
|
|
|
this.formApprove.qmyyMc = this.$t('page.business.study.studyFormPlan.fhtg') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|