|
|
@ -365,7 +365,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { studyFormFill_bc,studyFormFill_yjccFilter, 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"; |
|
|
@ -651,19 +651,25 @@ export default { |
|
|
that.formYjcc.id = that.form.id |
|
|
that.formYjcc.id = that.form.id |
|
|
that.cclistYj = [] |
|
|
that.cclistYj = [] |
|
|
that.addCcYj() |
|
|
that.addCcYj() |
|
|
let tmp = _.filter(tmp, function (o) { |
|
|
|
|
|
|
|
|
let resource = that.$refs.templateTable.getResource() |
|
|
|
|
|
let tmp = _.filter(resource, function (o) { |
|
|
return o.type == null || o.type == 3 || o.type == 5 || o.type == 7 |
|
|
return o.type == null || o.type == 3 || o.type == 5 || o.type == 7 |
|
|
}) |
|
|
}) |
|
|
if (tmp.length > 0) { |
|
|
if (tmp.length > 0) { |
|
|
that.$modal.loading() |
|
|
that.$modal.loading() |
|
|
studyFormFill_yjccFilter({ id: this.form.id, resource: tmp }).then(response => { |
|
|
|
|
|
that.resourceYj = JSON.parse(response.data) |
|
|
|
|
|
that.openYjcc = true |
|
|
|
|
|
|
|
|
studyFormFill_yjccFilter({ id: this.form.id, resource: JSON.stringify(tmp) }).then(response => { |
|
|
|
|
|
let tmpResource = JSON.parse(response.msg) |
|
|
|
|
|
if (tmpResource.length > 0) { |
|
|
|
|
|
that.resourceYj = tmpResource |
|
|
|
|
|
that.openYjcc = true |
|
|
|
|
|
} else { |
|
|
|
|
|
that.$modal.msgError("没有可存储的药剂") |
|
|
|
|
|
} |
|
|
}).finally(() => { |
|
|
}).finally(() => { |
|
|
that.$modal.closeLoading() |
|
|
that.$modal.closeLoading() |
|
|
}) |
|
|
}) |
|
|
}else{ |
|
|
|
|
|
that.$modal.msgError("没有可存储的药剂") |
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
that.$modal.msgError("没有可存储的药剂") |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|