123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- var template = ''
- $.ajax('../../../component/statistics/LascBreastPathologyInspectEntityList/index.html', {
- data: {},
- dataType: 'html',
- cache: false,
- timeout: 60000,
- async: false,
- error: function (res) {},
- success: function (res) {
- template = res
- }
- })
- Vue.component('lasc-breast-pathology-inspect-entity-list', {
- template: template,
- props: [],
- data: function () {
- return {
- isShowPicker: false,
- columns: ['非对称性腺体增厚', '乳头凹陷', '腋窝淋巴结肿大', '副乳腺', '乳腺切除术后'],
- pickType: '',
- curItem: '',
- readonly: true,
- orgColumns: ['', '厦门市妇幼保健院', '厦门市第一医院', '厦门市中山医院', '厦门市中医院', '复旦中山厦门医院', '厦门医学院附属第二医院', '其他(请说明)'],
- isShowDatePicker: false,
- isShowOrgsPicker: false,
- activeDateField: '',
- date: '',
- form: {
- screenId: '', //两癌筛查id
- receivePathologicalExamination: '2', //是否接收乳腺临床检查1拒绝2接收
- pathologicalExamTime: '',
- refusePathologicalExaminationReason: '医嘱取消',
- breastPathologyRefusalReason: [],
- breastPathologyRefusalReasonContent: '',
- list: [],
- id: ''
- },
- data: {
- value: [
- {
- id: 191,
- screenId: '808080f6837851d6018378ae0ddf0002',
- name: '乳腺病理学检查-20221026',
- refusePathologicalExaminationReason: '医嘱取消',
- leftPathologicalBiopsyMethod: '1',
- leftPathologicalConclusion: '5',
- leftPathologicalMalignanciesType: '3',
- leftPathologicalMalignanciesOtherType: '',
- rightPathologicalBiopsyMethod: '1',
- rightPathologicalConclusion: '5',
- rightPathologicalMalignanciesType: '1',
- rightPathologicalMalignanciesOtherType: '',
- breastCancerTreatmentResult: '1',
- pathologicalExaminationDiagnosisOrg: '厦门市中医院',
- pathologicalExaminationDiagnosisOrgType: null,
- pathologicalExaminationFollowupUser: '黄琴',
- pathologicalExaminationFollowupTime: '2022-10-26',
- doctor: null,
- inspectOrgCode: '3502110100',
- inspectUserCode: '361aef4891de492cb0e6a47cf9fe31f3',
- followupOrg: null,
- followupOrgCode: null,
- receivePathologicalExamination: '2',
- breastPathologyRefusalReason: null,
- breastPathologyRefusalReasonContent: null,
- pathologicalExamTime: null
- }
- ]
- }
- }
- },
- methods: {
- getPathologicalExaminationDiagnosisOrg: function (name) {
- if (name) {
- return _.contains(this.orgColumns, name) ? name : this.orgColumns[7]
- }
- return ''
- },
- difference: function (field, excludes) {
- return _.difference(field, excludes)
- }
- },
- created() {
- var vm = this
- if (this.data.value && this.data.value.length && this.data.value[0].id) {
- var first = this.data.value[0]
- this.form.screenId = first.screenId
- this.form.id = first.id ? first.id : ''
- this.form.receivePathologicalExamination = first.receivePathologicalExamination
- this.form.refusePathologicalExaminationReason = first.refusePathologicalExaminationReason
- this.form.breastPathologyRefusalReason = first.breastPathologyRefusalReason ? first.breastPathologyRefusalReason.split(',') : []
- this.form.breastPathologyRefusalReasonContent = first.breastPathologyRefusalReasonContent
- this.form.pathologicalExamTime = first.pathologicalExamTime
- var formData = JSON.parse(JSON.stringify(this.data.value))
- formData.forEach(function (v) {
- var left = { boxShow: false, name: '左乳' },
- right = { boxShow: false, name: '右乳' }
- for (var k in v) {
- if (k.indexOf('right') === 0) {
- right[k] = v[k]
- if (k == 'rightPathologicalBiopsyMethod') {
- right[k] = right[k] ? right[k].split(',') : []
- }
- if (k == 'rightPathologicalMalignanciesType') {
- right[k] = right[k] ? right[k].split(',') : []
- }
- } else if (k.indexOf('left') === 0) {
- left['right' + k.substring(4)] = v[k]
- if (k == 'leftPathologicalBiopsyMethod') {
- left['right' + k.substring(4)] = left['right' + k.substring(4)] ? left['right' + k.substring(4)].split(',') : ''
- }
- if (k == 'leftPathologicalMalignanciesType') {
- left['right' + k.substring(4)] = left['right' + k.substring(4)] ? left['right' + k.substring(4)].split(',') : ''
- }
- }
- }
- v.breastList = [right, left]
- v.pathologicalExaminationDiagnosisOrgPick = vm.getPathologicalExaminationDiagnosisOrg(v.pathologicalExaminationDiagnosisOrg)
- })
- this.form.list = formData
- }
- }
- })
|