|
|
@ -30,7 +30,7 @@ |
|
|
<template v-else> |
|
|
<template v-else> |
|
|
<el-button @click="showYjcc" v-if="form.templateShowYjcc == 10">{{ |
|
|
<el-button @click="showYjcc" v-if="form.templateShowYjcc == 10">{{ |
|
|
$t('page.business.study.studyFormFill.yjcc') |
|
|
$t('page.business.study.studyFormFill.yjcc') |
|
|
}}</el-button> |
|
|
|
|
|
|
|
|
}}</el-button> |
|
|
<el-button @click="showSave">{{ $t('page.business.study.studyFormFill.save') }}</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 type="primary" @click="showApprove">{{ $t('page.business.study.studyFormFill.submit') |
|
|
}}</el-button> |
|
|
}}</el-button> |
|
|
@ -365,7 +365,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<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_yjccFilter, 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 { study_info } from "@/api/business/study/study" |
|
|
import { mapGetters } from 'vuex' |
|
|
import { mapGetters } from 'vuex' |
|
|
import SelectTemplate from "@/views/business/comps/select/SelectTemplate"; |
|
|
import SelectTemplate from "@/views/business/comps/select/SelectTemplate"; |
|
|
@ -649,10 +649,22 @@ export default { |
|
|
if (content) { |
|
|
if (content) { |
|
|
that.resetYjcc() |
|
|
that.resetYjcc() |
|
|
that.formYjcc.id = that.form.id |
|
|
that.formYjcc.id = that.form.id |
|
|
this.cclistYj = [] |
|
|
|
|
|
|
|
|
that.cclistYj = [] |
|
|
that.addCcYj() |
|
|
that.addCcYj() |
|
|
that.resourceYj = that.$refs.templateTable.getResource() |
|
|
|
|
|
that.openYjcc = true |
|
|
|
|
|
|
|
|
let tmp = _.filter(tmp, function (o) { |
|
|
|
|
|
return o.type == null || o.type == 3 || o.type == 5 || o.type == 7 |
|
|
|
|
|
}) |
|
|
|
|
|
if (tmp.length > 0) { |
|
|
|
|
|
that.$modal.loading() |
|
|
|
|
|
studyFormFill_yjccFilter({ id: this.form.id, resource: tmp }).then(response => { |
|
|
|
|
|
that.resourceYj = JSON.parse(response.data) |
|
|
|
|
|
that.openYjcc = true |
|
|
|
|
|
}).finally(() => { |
|
|
|
|
|
that.$modal.closeLoading() |
|
|
|
|
|
}) |
|
|
|
|
|
}else{ |
|
|
|
|
|
that.$modal.msgError("没有可存储的药剂") |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
resetYjcc() { |
|
|
resetYjcc() { |
|
|
@ -799,13 +811,13 @@ export default { |
|
|
if (that.cclistYj.length == 0) { |
|
|
if (that.cclistYj.length == 0) { |
|
|
this.$modal.msgError("请选择要处置的药剂") |
|
|
this.$modal.msgError("请选择要处置的药剂") |
|
|
} else { |
|
|
} else { |
|
|
for (var i = 0; i < that.cclistYj.length; i++) { |
|
|
|
|
|
|
|
|
for (var i = 0; i < that.cclistYj.length; i++) { |
|
|
// if (!that.cclistYj[i].ccwz||that.cclistYj[i].ccwz=='') { |
|
|
// if (!that.cclistYj[i].ccwz||that.cclistYj[i].ccwz=='') { |
|
|
// this.$modal.msgError('第'+(i+1) + "个存储,存储位置不能为空") |
|
|
// this.$modal.msgError('第'+(i+1) + "个存储,存储位置不能为空") |
|
|
// return |
|
|
// return |
|
|
// } |
|
|
// } |
|
|
if (!that.cclistYj[i].cctj||that.cclistYj[i].cctj=='') { |
|
|
|
|
|
this.$modal.msgError('第'+(i+1) + "个存储,存储条件不能为空") |
|
|
|
|
|
|
|
|
if (!that.cclistYj[i].cctj || that.cclistYj[i].cctj == '') { |
|
|
|
|
|
this.$modal.msgError('第' + (i + 1) + "个存储,存储条件不能为空") |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|