12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- 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'],
- 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: ''
- }
- }
- },
- 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
- }
- }
- })
|