|
|
|
@ -28,8 +28,9 @@ |
|
|
|
<el-button type="primary" @click="next">{{ $t('page.business.study.studyFormFill.next') }}</el-button> |
|
|
|
</template> |
|
|
|
<template v-else> |
|
|
|
<el-button @click="showYjcc" v-if="form.templateShowYjcc==10">{{ $t('page.business.study.studyFormFill.yjcc') |
|
|
|
}}</el-button> |
|
|
|
<el-button @click="showYjcc" v-if="form.templateShowYjcc == 10">{{ |
|
|
|
$t('page.business.study.studyFormFill.yjcc') |
|
|
|
}}</el-button> |
|
|
|
<el-button @click="showSave">{{ $t('page.business.study.studyFormFill.save') }}</el-button> |
|
|
|
<el-button type="primary" @click="showApprove">{{ $t('page.business.study.studyFormFill.submit') |
|
|
|
}}</el-button> |
|
|
|
@ -44,7 +45,8 @@ |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="bdmbTitle" prop="templateId"> |
|
|
|
<SelectTemplate v-model="form.templateId" :disabled="form.id && form.id !== ''" |
|
|
|
:name="form.templateMc" :studyType="studyType" :studyFormType="studyFormType" @change="selectTemplateChange" :needPre="1" /> |
|
|
|
:name="form.templateMc" :studyType="studyType" :studyFormType="studyFormType" |
|
|
|
@change="selectTemplateChange" :needPre="1" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
@ -363,7 +365,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { studyFormFill_bc,studyFormFill_yjcc, studyFormFill_bcOnly, studyFormFill_updateBdnr, studyFormFill_tj, studyFormFill_info, studyFormFill_updateFhyjjl } from "@/api/business/study/studyFormFill" |
|
|
|
import { studyFormFill_bc, studyFormFill_yjcc, studyFormFill_bcOnly, studyFormFill_updateBdnr, studyFormFill_tj, studyFormFill_info, studyFormFill_updateFhyjjl } from "@/api/business/study/studyFormFill" |
|
|
|
import { study_info } from "@/api/business/study/study" |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import SelectTemplate from "@/views/business/comps/select/SelectTemplate"; |
|
|
|
@ -451,6 +453,13 @@ export default { |
|
|
|
trigger: 'blur' |
|
|
|
}] |
|
|
|
}, |
|
|
|
rulesYjcc: { |
|
|
|
qmrmm: [{ |
|
|
|
required: true, |
|
|
|
message: ' ', |
|
|
|
trigger: 'blur' |
|
|
|
}] |
|
|
|
}, |
|
|
|
rulesSave: { |
|
|
|
qmrmm: [{ |
|
|
|
required: true, |
|
|
|
@ -460,7 +469,7 @@ export default { |
|
|
|
}, |
|
|
|
templateData: {}, |
|
|
|
studyType: null, |
|
|
|
studyFormType:null |
|
|
|
studyFormType: null |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -787,16 +796,30 @@ export default { |
|
|
|
let that = this |
|
|
|
this.$refs["formYjcc"].validate(valid => { |
|
|
|
if (valid) { |
|
|
|
that.$modal.loading() |
|
|
|
that.formYjcc.resource = JSON.stringify(that.resource) |
|
|
|
that.formApprove.cclist = JSON.stringify(that.cclistYj) |
|
|
|
studyFormFill_yjcc(that.formApprove).then(response => { |
|
|
|
that.openApprove = false |
|
|
|
that.$modal.closeLoading() |
|
|
|
that.cancelSave() |
|
|
|
}).finally(() => { |
|
|
|
that.$modal.closeLoading() |
|
|
|
}) |
|
|
|
if (that.cclistYj.length == 0) { |
|
|
|
this.$modal.msgError("请选择要处置的药剂") |
|
|
|
} else { |
|
|
|
for (var i = 0; i < that.cclistYj.length; i++) { |
|
|
|
if (!that.cclistYj[i].ccwz||that.cclistYj[i].ccwz=='') { |
|
|
|
this.$modal.msgError('第'+i + "个存储,存储位置不能为空") |
|
|
|
return |
|
|
|
} |
|
|
|
// if (!that.cclistYj[i].cctj||that.cclistYj[i].cctj=='') { |
|
|
|
// this.$modal.msgError('第'+i + "个存储,存储条件不能为空") |
|
|
|
// return |
|
|
|
// } |
|
|
|
} |
|
|
|
that.$modal.loading() |
|
|
|
that.formYjcc.resource = JSON.stringify(that.resource) |
|
|
|
that.formApprove.cclist = JSON.stringify(that.cclistYj) |
|
|
|
studyFormFill_yjcc(that.formApprove).then(response => { |
|
|
|
that.openApprove = false |
|
|
|
that.$modal.closeLoading() |
|
|
|
that.cancelSave() |
|
|
|
}).finally(() => { |
|
|
|
that.$modal.closeLoading() |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|