Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-composition-api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
宁路鹏
vue-composition-api
Commits
de1ebb16
Commit
de1ebb16
authored
Oct 11, 2024
by
唐玉峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
68c4e055
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
559 additions
and
53 deletions
+559
-53
src/utils/http.js
+2
-4
src/views/outClinicalpathway.vue
+540
-43
src/views/relationMapping.vue
+17
-6
No files found.
src/utils/http.js
View file @
de1ebb16
...
@@ -63,8 +63,9 @@ axios.interceptors.response.use(
...
@@ -63,8 +63,9 @@ axios.interceptors.response.use(
export
default
{
export
default
{
post
(
url
,
params
,
option
)
{
post
(
url
,
params
,
option
)
{
if
(
!
url
.
includes
(
"/ClinicalRoute/ClinicalRoute/GetTCMDiseases"
))
{
loadingInstance
=
Vue
.
prototype
.
$loading
(
loadingOption
);
loadingInstance
=
Vue
.
prototype
.
$loading
(
loadingOption
);
}
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
axios
axios
.
post
(
domain
+
url
,
params
,
{
...{
headers
:
createHeader
()
},
...
option
})
.
post
(
domain
+
url
,
params
,
{
...{
headers
:
createHeader
()
},
...
option
})
...
@@ -74,9 +75,7 @@ export default {
...
@@ -74,9 +75,7 @@ export default {
reject
(
res
.
data
);
reject
(
res
.
data
);
return
;
return
;
}
}
loadingInstance
.
close
();
loadingInstance
.
close
();
resolve
(
res
.
data
.
data
||
res
.
data
);
resolve
(
res
.
data
.
data
||
res
.
data
);
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
...
@@ -89,7 +88,6 @@ export default {
...
@@ -89,7 +88,6 @@ export default {
},
},
//医院的接口数据用
//医院的接口数据用
postFn
(
url
,
params
,
option
)
{
postFn
(
url
,
params
,
option
)
{
loadingInstance
=
Vue
.
prototype
.
$loading
(
loadingOption
);
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
axios
axios
.
post
(
url
,
params
,
{
...{
headers
:
createHeader
()
},
...
option
})
.
post
(
url
,
params
,
{
...{
headers
:
createHeader
()
},
...
option
})
...
...
src/views/outClinicalpathway.vue
View file @
de1ebb16
...
@@ -90,6 +90,7 @@
...
@@ -90,6 +90,7 @@
</el-radio-group>
</el-radio-group>
</div>
</div>
<el-form
:model=
"formData"
label-width=
"15px"
label-position=
"left"
ref=
"formData"
class=
"formData"
>
<el-form
:model=
"formData"
label-width=
"15px"
label-position=
"left"
ref=
"formData"
class=
"formData"
>
<template
v-if=
"projectType != '4'"
>
<el-table
<el-table
ref=
"multipleTable"
ref=
"multipleTable"
v-if=
"formData.tableList && formData.tableList.length"
v-if=
"formData.tableList && formData.tableList.length"
...
@@ -311,7 +312,10 @@
...
@@ -311,7 +312,10 @@
<el-table-column
show-overflow-tooltip
property=
"specimen_id"
label=
"标本"
width=
"130"
v-if=
"projectType == '3'"
>
<el-table-column
show-overflow-tooltip
property=
"specimen_id"
label=
"标本"
width=
"130"
v-if=
"projectType == '3'"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<template
v-if=
"scope.row.ischeck == 1 && scope.row.orderType"
>
<template
v-if=
"scope.row.ischeck == 1 && scope.row.orderType"
>
<el-form-item
:prop=
"`tableList.$
{scope.row.customIndex}.specimen_id`" :rules="[{ required: false, message: '请选择' }]">
<el-form-item
:prop=
"`tableList.$
{scope.row.customIndex}.specimen_id`"
:rules="[{ required: false, message: '请选择' }]"
>
<template
#
label
>
<span></span></
template
>
<template
#
label
>
<span></span></
template
>
<el-select
<el-select
size=
"mini"
size=
"mini"
...
@@ -321,7 +325,8 @@
...
@@ -321,7 +325,8 @@
v-model=
"scope.row.specimen_id"
v-model=
"scope.row.specimen_id"
:disabled=
"!scope.row.isAdd"
:disabled=
"!scope.row.isAdd"
>
>
<el-option
v-for=
"item in specimenList"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
<el-option
v-for=
"item in specimenList"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</template>
</template>
...
@@ -369,7 +374,12 @@
...
@@ -369,7 +374,12 @@
]"
]"
>
>
<template
#
label
>
<span></span></
template
>
<template
#
label
>
<span></span></
template
>
<el-select
size=
"mini"
v-model=
"scope.row.medicalPurpose"
:disabled=
"!scope.row.isAdd"
@
change=
"tbChange(scope.row)"
>
<el-select
size=
"mini"
v-model=
"scope.row.medicalPurpose"
:disabled=
"!scope.row.isAdd"
@
change=
"tbChange(scope.row)"
>
<el-option
v-for=
"item in medicalPurposeoptions"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
<el-option
v-for=
"item in medicalPurposeoptions"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
</el-option>
</el-select>
</el-select>
...
@@ -490,7 +500,10 @@
...
@@ -490,7 +500,10 @@
<el-table-column
show-overflow-tooltip
property=
"specimen_id"
label=
"标本"
width=
"130"
v-if=
"projectType != '3'"
>
<el-table-column
show-overflow-tooltip
property=
"specimen_id"
label=
"标本"
width=
"130"
v-if=
"projectType != '3'"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<template
v-if=
"scope.row.ischeck == 1 && scope.row.orderType"
>
<template
v-if=
"scope.row.ischeck == 1 && scope.row.orderType"
>
<el-form-item
:prop=
"`tableList.$
{scope.row.customIndex}.specimen_id`" :rules="[{ required: false, message: '请选择' }]">
<el-form-item
:prop=
"`tableList.$
{scope.row.customIndex}.specimen_id`"
:rules="[{ required: false, message: '请选择' }]"
>
<template
#
label
>
<span></span></
template
>
<template
#
label
>
<span></span></
template
>
<el-select
<el-select
size=
"mini"
size=
"mini"
...
@@ -500,7 +513,8 @@
...
@@ -500,7 +513,8 @@
v-model=
"scope.row.specimen_id"
v-model=
"scope.row.specimen_id"
:disabled=
"!scope.row.isAdd"
:disabled=
"!scope.row.isAdd"
>
>
<el-option
v-for=
"item in specimenList"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
<el-option
v-for=
"item in specimenList"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</template>
</template>
...
@@ -611,6 +625,40 @@
...
@@ -611,6 +625,40 @@
<el-table-column
show-overflow-tooltip
property=
"emergency"
label=
"急诊"
width=
"85"
>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"emergency"
label=
"急诊"
width=
"85"
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"80"
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"80"
>
</el-table-column>
</el-table>
</el-table>
</template>
<el-table
v-if=
"projectType == '4'"
ref=
"multipleTable"
row-key=
"uidd"
:data=
"formData.tableList"
height=
"100%"
style=
"width: 100%"
:tree-props=
"{ children: 'children', hasChildren: 'hasChildren' }"
:select-on-indeterminate=
"true"
@
selection-change=
"SelectionChange"
@
select-all=
"selectAll"
@
select=
"select"
default-expand-all
size=
"mini"
:row-class-name=
"rowClass"
>
<el-table-column
type=
"selection"
:selectable=
"selectEnable"
width=
"50"
/>
<el-table-column
show-overflow-tooltip
property=
"advice_name"
label=
"路径名称"
/>
<el-table-column
show-overflow-tooltip
property=
"orderType"
label=
"类型"
>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"project_Name"
label=
"医院项目名称"
>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"drugDosage"
label=
"药品用量"
>
<
template
#
default=
"scope"
>
<template
v-if=
"scope.row.ischeck == 1 && scope.row.orderType"
>
<el-form-item
:prop=
"`tableList.$
{scope.row.customIndex}.drugDosage`" :rules="[{ required: true, message: '请填写' }]">
<template
#
label
>
<span></span></
template
>
<el-input
v-model
.
trim=
"scope.row.drugDosage"
size=
"mini"
placeholder=
"请输入"
></el-input>
</el-form-item>
</template>
<span
v-else
>
{{ scope.row.drugDosage }}
</span>
</template>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"useUnit"
label=
"用量单位"
/>
</el-table>
</el-form>
</el-form>
</div>
</div>
</div>
</div>
...
@@ -668,6 +716,271 @@
...
@@ -668,6 +716,271 @@
</
template
>
</
template
>
</el-dialog>
</el-dialog>
<!--病情变异弹框结束 -->
<!--病情变异弹框结束 -->
<!-- 中药弹框 -->
<el-dialog
:visible
.
sync=
"zy"
width=
"40%"
@
close=
"gocolse"
>
<el-form
ref=
"formzy"
:model=
"form1"
:label-position=
"labelPosition"
size=
"mini"
label-width=
"110px"
>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"服药量:"
prop=
"dosage"
:rules=
"[
{
required: true,
message: '请输入',
},
]"
>
<el-input-number
class=
"w100"
v-model
.
trim=
"form1.dosage"
size=
"mini"
placeholder=
"请输入"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
" 服药量单位:"
prop=
"dosingUnit"
:rules=
"[
{
required: true,
message: '请输入',
},
]"
>
<el-input
v-model
.
trim=
"form1.dosingUnit"
size=
"mini"
class=
"w100"
readonly
placeholder=
"请输入"
/>
</el-form-item
></el-col>
<el-col
:span=
"12"
>
<el-form-item
prop=
"dosageOfDecoctions"
label=
" 煎药用量:"
:rules=
"[
{
required: true,
message: '请输入',
},
]"
>
<el-input-number
class=
"w100"
v-model
.
trim=
"form1.dosageOfDecoctions"
size=
"mini"
placeholder=
"请输入"
/>
</el-form-item
></el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
" 付数:"
prop=
"medicalNum"
:rules=
"[
{
required: true,
message: '请输入',
},
]"
>
<el-input-number
class=
"w100"
v-model
.
trim=
"form1.medicalNum"
size=
"mini"
placeholder=
"请输入"
/>
</el-form-item
></el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"中药用法:"
prop=
"usage"
:rules=
"[
{
required: true,
message: '请输入',
},
]"
>
<el-select
size=
"mini"
class=
"w100"
v-model=
"form1.usage"
filterable
remote
:filter-method=
"remoteMethod1"
>
<el-option
v-for=
"item in usages"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
</el-select>
</el-form-item
></el-col>
<el-col
:span=
"12"
>
<el-form-item
prop=
"usePlanID"
label=
"用药频率:"
:rules=
"[
{
required: true,
message: '请输入',
},
]"
>
<el-select
size=
"mini"
class=
"w100"
v-model=
"form1.usePlanID"
filterable
remote
:filter-method=
"remoteMethod2"
>
<el-option
v-for=
"item in usePlanIDs"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
</el-select>
</el-form-item
></el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"给药方式:"
prop=
"useWayID"
:rules=
"[
{
required: true,
message: '请输入',
},
]"
>
<el-select
size=
"mini"
class=
"w100"
v-model=
"form1.useWayID"
filterable
remote
:filter-method=
"remoteMethod3"
>
<el-option
v-for=
"item in useWayIDs"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
</el-select>
</el-form-item
></el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"服药时间:"
prop=
"durationOfMedication"
:rules=
"[
{
required: true,
message: '请输入',
},
]"
>
<el-select
size=
"mini"
class=
"w100"
v-model=
"form1.durationOfMedication"
filterable
remote
:filter-method=
"remoteMethod4"
>
<el-option
v-for=
"item in durationOfMedications"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
</el-select>
</el-form-item
></el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"服药方法:"
prop=
"medicationMethod"
:rules=
"[
{
required: true,
message: '请输入',
},
]"
>
<el-select
class=
"w100"
size=
"mini"
v-model=
"form1.medicationMethod"
filterable
remote
:filter-method=
"remoteMethod5"
>
<el-option
v-for=
"item in medicationMethods"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
</el-select>
</el-form-item
></el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"煎药方式:"
prop=
"decoctingMethod"
:rules=
"[
{
required: true,
message: '请输入',
},
]"
>
<el-select
class=
"w100"
size=
"mini"
v-model=
"form1.decoctingMethod"
filterable
remote
:filter-method=
"remoteMethod6"
>
<el-option
v-for=
"item in decoctingMethods"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
</el-select>
</el-form-item
></el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"中医诊断:"
prop=
"TCMDiagnosis"
:rules=
"[
{
required: true,
message: '请输入',
},
]"
>
<el-input
class=
"w100"
v-model
.
trim=
"form1.TCMDiagnosis"
size=
"mini"
placeholder=
"请输入"
/>
</el-form-item
></el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"中医病证:"
prop=
"TCMDiseaseID"
:rules=
"[
{
required: true,
message: '请输入',
},
]"
>
<el-autocomplete
class=
"w100"
v-model=
"form1.TCMDiseaseID"
:fetch-suggestions=
"querySearchAsync"
clearable
placeholder=
"请输入"
@
select=
"handleSelect"
></el-autocomplete>
</el-form-item
></el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"中医证候:"
prop=
"TCMSyndromeID"
:rules=
"[
{
required: true,
message: '请输入',
},
]"
>
<el-autocomplete
class=
"w100"
v-model=
"form1.TCMSyndromeID"
:fetch-suggestions=
"querySearchAsync1"
clearable
placeholder=
"请输入"
@
select=
"handleSelect1"
></el-autocomplete>
</el-form-item
></el-col>
<el-col
:span=
"12"
>
<el-form-item
class=
"w100"
prop=
"TCMDiseaseNum"
label=
"中医病证编码:"
:rules=
"[
{
required: true,
message: '请输入',
},
]"
>
<el-autocomplete
class=
"w100"
v-model=
"form1.TCMDiseaseNum"
:fetch-suggestions=
"querySearchAsync"
clearable
placeholder=
"请输入"
@
select=
"handleSelect"
></el-autocomplete>
</el-form-item
></el-col>
<el-col
:span=
"12"
>
<el-form-item
prop=
"TCMSyndromeNum"
label=
"中医证候编码:"
:rules=
"[
{
required: true,
message: '请输入',
},
]"
>
<el-autocomplete
class=
"w100"
v-model=
"form1.TCMSyndromeNum"
:fetch-suggestions=
"querySearchAsync1"
clearable
placeholder=
"请输入"
@
select=
"handleSelect1"
></el-autocomplete>
</el-form-item
></el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"备注:"
prop=
"remark"
:rules=
"[
{
required: false,
message: '请输入',
},
]"
>
<el-input
v-model
.
trim=
"form1.remark"
size=
"mini"
placeholder=
"请输入"
type=
"textarea"
:autosize=
"{ minRows: 3 }"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<
template
#
footer
>
<span
class=
"dialog-footer"
>
<el-button
size=
"mini"
@
click=
"gocolse"
>
取消
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"gook"
>
确定
</el-button>
</span>
</
template
>
</el-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -716,6 +1029,24 @@ export default {
...
@@ -716,6 +1029,24 @@ export default {
reason
:
""
,
//变异原因
reason
:
""
,
//变异原因
remarks
:
""
,
//备注
remarks
:
""
,
//备注
},
},
form1
:
{
dosage
:
0
,
dosingUnit
:
"包"
,
dosageOfDecoctions
:
0
,
medicalNum
:
0
,
usage
:
""
,
usePlanID
:
""
,
useWayID
:
""
,
durationOfMedication
:
""
,
medicationMethod
:
""
,
decoctingMethod
:
""
,
TCMDiagnosis
:
""
,
TCMDiseaseID
:
""
,
TCMSyndromeID
:
""
,
TCMDiseaseNum
:
""
,
TCMSyndromeNum
:
""
,
remark
:
""
,
},
//路径天数下拉数据
//路径天数下拉数据
options
:
[],
options
:
[],
reasonoptions
:
[],
//变异原因
reasonoptions
:
[],
//变异原因
...
@@ -776,8 +1107,22 @@ export default {
...
@@ -776,8 +1107,22 @@ export default {
{
id
:
"1"
,
name
:
"药疗"
},
{
id
:
"1"
,
name
:
"药疗"
},
{
id
:
"2"
,
name
:
"检查"
},
{
id
:
"2"
,
name
:
"检查"
},
{
id
:
"3"
,
name
:
"检验"
},
{
id
:
"3"
,
name
:
"检验"
},
{
id
:
"4"
,
name
:
"中药"
},
],
],
myTimer
:
null
,
myTimer
:
null
,
zy
:
false
,
usages
:
[],
//中药用法
usages1
:
[],
//中药用法
usePlanIDs
:
[],
// 用药频率
usePlanIDs1
:
[],
// 用药频率
useWayIDs
:
[],
//给药方式
useWayIDs1
:
[],
//给药方式
durationOfMedications
:
[],
//服药时间
durationOfMedications1
:
[],
//服药时间
medicationMethods
:
[],
//服药方法
medicationMethods1
:
[],
//服药方法
decoctingMethods
:
[],
// 煎药方式
decoctingMethods1
:
[],
//煎药方式
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -788,10 +1133,7 @@ export default {
...
@@ -788,10 +1133,7 @@ export default {
this
.
getIsRoute
();
this
.
getIsRoute
();
this
.
gettopdata
();
this
.
gettopdata
();
this
.
getlefttime
();
this
.
getlefttime
();
this
.
gemedicUseModeoptions
();
this
.
getByType
();
this
.
gemedicUsePlanoptions
();
this
.
getmedicalPurposeoptions
();
this
.
getspecimenList
();
},
},
watch
:
{
watch
:
{
query
()
{
query
()
{
...
@@ -1157,15 +1499,7 @@ export default {
...
@@ -1157,15 +1499,7 @@ export default {
}
}
this
.
goSeeScoredialogFormVisible
=
false
;
this
.
goSeeScoredialogFormVisible
=
false
;
},
},
//获取途径,频率的下拉数据
gemedicUseModeoptions
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=1`
,
{})
.
then
((
data
)
=>
{
this
.
medicUseModeoptions
=
data
;
this
.
medicUseModeoptionsLise
=
data
;
})
.
catch
((
error
)
=>
{});
},
remotemedicUsePlan
(
query
)
{
remotemedicUsePlan
(
query
)
{
this
.
query1
=
query
;
this
.
query1
=
query
;
if
(
query
!==
""
)
{
if
(
query
!==
""
)
{
...
@@ -1196,28 +1530,82 @@ export default {
...
@@ -1196,28 +1530,82 @@ export default {
this
.
specimenList
=
this
.
specimenListoptions
;
this
.
specimenList
=
this
.
specimenListoptions
;
}
}
},
},
//获取频率,频率的下拉数据
remoteMethod1
(
query
)
{
gemedicUsePlanoptions
(
)
{
if
(
query
!==
""
)
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=2`
,
{})
this
.
usages
=
this
.
usages
.
filter
((
item
)
=>
{
.
then
((
data
)
=>
{
return
item
.
describe
.
toLowerCase
().
indexOf
(
query
.
toLowerCase
())
>
-
1
||
item
.
pinyin
.
toLowerCase
().
indexOf
(
query
.
toLowerCase
())
>
-
1
;
this
.
medicUsePlanoptions
=
data
;
})
;
this
.
medicUsePlanoptionsList
=
data
;
}
else
{
})
this
.
usages
=
this
.
usages1
;
.
catch
((
error
)
=>
{});
}
},
},
//获取用要目的下拉数据
remoteMethod2
(
query
)
{
getmedicalPurposeoptions
()
{
if
(
query
!==
""
)
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=3`
,
{})
this
.
usePlanIDs
=
this
.
usePlanIDs
.
filter
((
item
)
=>
{
.
then
((
data
)
=>
{
return
item
.
describe
.
toLowerCase
().
indexOf
(
query
.
toLowerCase
())
>
-
1
||
item
.
pinyin
.
toLowerCase
().
indexOf
(
query
.
toLowerCase
())
>
-
1
;
this
.
medicalPurposeoptions
=
data
;
});
})
}
else
{
.
catch
((
error
)
=>
{});
this
.
usePlanIDs
=
this
.
usePlanIDs1
;
}
},
remoteMethod3
(
query
)
{
if
(
query
!==
""
)
{
this
.
useWayIDs
=
this
.
useWayIDs
.
filter
((
item
)
=>
{
return
item
.
describe
.
toLowerCase
().
indexOf
(
query
.
toLowerCase
())
>
-
1
||
item
.
pinyin
.
toLowerCase
().
indexOf
(
query
.
toLowerCase
())
>
-
1
;
});
}
else
{
this
.
useWayIDs
=
this
.
useWayIDs1
;
}
},
remoteMethod4
(
query
)
{
if
(
query
!==
""
)
{
this
.
durationOfMedications
=
this
.
durationOfMedications
.
filter
((
item
)
=>
{
return
item
.
describe
.
toLowerCase
().
indexOf
(
query
.
toLowerCase
())
>
-
1
||
item
.
pinyin
.
toLowerCase
().
indexOf
(
query
.
toLowerCase
())
>
-
1
;
});
}
else
{
this
.
durationOfMedications
=
this
.
durationOfMedications1
;
}
},
remoteMethod5
(
query
)
{
if
(
query
!==
""
)
{
this
.
medicationMethods
=
this
.
medicationMethods
.
filter
((
item
)
=>
{
return
item
.
describe
.
toLowerCase
().
indexOf
(
query
.
toLowerCase
())
>
-
1
||
item
.
pinyin
.
toLowerCase
().
indexOf
(
query
.
toLowerCase
())
>
-
1
;
});
}
else
{
this
.
medicationMethods
=
this
.
medicationMethods1
;
}
},
remoteMethod6
(
query
)
{
if
(
query
!==
""
)
{
this
.
decoctingMethods
=
this
.
decoctingMethods
.
filter
((
item
)
=>
{
return
item
.
describe
.
toLowerCase
().
indexOf
(
query
.
toLowerCase
())
>
-
1
||
item
.
pinyin
.
toLowerCase
().
indexOf
(
query
.
toLowerCase
())
>
-
1
;
});
}
else
{
this
.
decoctingMethods
=
this
.
decoctingMethods1
;
}
},
},
get
specimenList
()
{
get
ByType
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType
?type=6
`
,
{})
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType`
,
{})
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
this
.
specimenList
=
data
;
this
.
medicUseModeoptions
=
data
.
type1
;
this
.
specimenListoptions
=
data
;
this
.
medicUseModeoptionsLise
=
data
.
type1
;
this
.
medicUsePlanoptions
=
data
.
type2
;
this
.
medicUsePlanoptionsList
=
data
.
type2
;
this
.
medicalPurposeoptions
=
data
.
type3
;
this
.
specimenList
=
data
.
type6
;
this
.
specimenListoptions
=
data
.
type6
;
this
.
usages
=
data
.
type7
;
this
.
usages1
=
data
.
type7
;
this
.
usePlanIDs
=
data
.
type8
;
this
.
usePlanIDs1
=
data
.
type8
;
this
.
useWayIDs
=
data
.
type9
;
this
.
useWayIDs1
=
data
.
type9
;
this
.
durationOfMedications
=
data
.
type10
;
this
.
durationOfMedications1
=
data
.
type10
;
this
.
medicationMethods
=
data
.
type11
;
this
.
medicationMethods1
=
data
.
type11
;
this
.
decoctingMethods
=
data
.
type12
;
this
.
decoctingMethods1
=
data
.
type12
;
})
})
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{});
},
},
...
@@ -1301,14 +1689,14 @@ export default {
...
@@ -1301,14 +1689,14 @@ export default {
// 控制选框是否被选中
// 控制选框是否被选中
toggleSelection
(
row
,
select
)
{
toggleSelection
(
row
,
select
)
{
if
(
row
)
{
if
(
row
)
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
multipleTable
&&
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
row
,
select
);
});
if
(
select
==
true
)
{
if
(
select
==
true
)
{
row
.
ischeck
=
1
;
row
.
ischeck
=
1
;
}
else
{
}
else
{
row
.
ischeck
=
2
;
row
.
ischeck
=
2
;
}
}
this
.
$nextTick
(()
=>
{
this
.
$refs
.
multipleTable
&&
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
row
,
select
);
});
}
}
},
},
...
@@ -1443,6 +1831,7 @@ export default {
...
@@ -1443,6 +1831,7 @@ export default {
{}
{}
)
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
if
(
this
.
projectType
!=
"4"
)
{
data
.
route1
.
forEach
((
element
)
=>
{
data
.
route1
.
forEach
((
element
)
=>
{
if
(
element
.
children
)
{
if
(
element
.
children
)
{
this
.
setData
(
element
.
children
);
this
.
setData
(
element
.
children
);
...
@@ -1453,10 +1842,11 @@ export default {
...
@@ -1453,10 +1842,11 @@ export default {
this
.
setData
(
element
.
children
);
this
.
setData
(
element
.
children
);
}
}
});
});
// this.newtable1 = data.route1;
}
// this.newtable2 = data.route2;
this
.
formData
.
tableList
=
this
.
radio
==
1
?
data
.
route1
:
data
.
route2
;
this
.
formData
.
tableList
=
this
.
radio
==
1
?
data
.
route1
:
data
.
route2
;
this
.
setIndex
(
this
.
formData
.
tableList
);
this
.
setIndex
(
this
.
formData
.
tableList
);
console
.
log
(
this
.
formData
.
tableList
);
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
console
.
log
(
error
);
console
.
log
(
error
);
...
@@ -1493,7 +1883,6 @@ export default {
...
@@ -1493,7 +1883,6 @@ export default {
//点击左侧时间线 获取右侧表格数据
//点击左侧时间线 获取右侧表格数据
timeclick
(
val
)
{
timeclick
(
val
)
{
console
.
log
(
val
);
this
.
timeindex
=
val
.
inhosdays
;
this
.
timeindex
=
val
.
inhosdays
;
this
.
case_routeid
=
val
.
case_routeid
;
this
.
case_routeid
=
val
.
case_routeid
;
this
.
inhosdays
=
val
.
inhosdays
;
this
.
inhosdays
=
val
.
inhosdays
;
...
@@ -1515,7 +1904,11 @@ export default {
...
@@ -1515,7 +1904,11 @@ export default {
return
;
return
;
}
}
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
projectType
!=
"4"
)
{
this
.
saveSetPatientRoutes
();
this
.
saveSetPatientRoutes
();
}
else
{
this
.
zy
=
true
;
}
}
}
});
});
}
}
...
@@ -1623,6 +2016,110 @@ export default {
...
@@ -1623,6 +2016,110 @@ export default {
return
a
[
0
].
describe
;
return
a
[
0
].
describe
;
}
}
},
},
gocolse
()
{
this
.
form1
=
{
dosage
:
0
,
dosingUnit
:
"包"
,
dosageOfDecoctions
:
0
,
medicalNum
:
0
,
usage
:
""
,
usePlanID
:
""
,
useWayID
:
""
,
durationOfMedication
:
""
,
medicationMethod
:
""
,
decoctingMethod
:
""
,
TCMDiagnosis
:
""
,
TCMDiseaseID
:
""
,
TCMSyndromeID
:
""
,
TCMDiseaseNum
:
""
,
TCMSyndromeNum
:
""
,
remark
:
""
,
};
this
.
$refs
.
formzy
.
resetFields
();
this
.
zy
=
false
;
},
gook
()
{
this
.
$refs
.
formzy
.
validate
((
valid
)
=>
{
if
(
valid
)
{
let
obj
=
{};
obj
.
route1
=
this
.
multipleSelection
.
filter
((
item
)
=>
item
.
adviceType
);
obj
.
route2
=
this
.
multipleSelection1
.
filter
((
item
)
=>
item
.
adviceType
);
obj
.
fromInfo
=
this
.
form1
;
http
.
post
(
`/ClinicalRoute/ClinicalRoute/SetPatientRouteZYs?pid=
${
this
.
$route
.
query
.
pid
}
`
,
obj
)
.
then
((
data
)
=>
{
data
.
map
((
item
)
=>
{
if
(
item
.
code
==
"0"
)
{
this
.
msg
(
"success"
,
item
.
msg
);
}
else
{
this
.
msg
(
"error"
,
item
.
msg
);
}
});
this
.
gocolse
();
this
.
getTableData
();
})
.
catch
((
error
)
=>
{});
}
});
},
querySearchAsync
(
queryString
,
cb
)
{
if
(
queryString
&&
queryString
!=
"null"
)
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetTCMDiseases?searchQuery=
${
queryString
}
`
)
.
then
((
data
)
=>
{
console
.
log
(
data
);
if
(
data
&&
data
.
length
)
{
let
restaurants
=
data
.
map
((
item
)
=>
{
return
{
value
:
item
.
name
,
tcmDiseaseID
:
item
.
tcmDiseaseID
,
tcmDiseaseNum
:
item
.
tcmDiseaseNum
,
};
});
cb
(
restaurants
);
}
else
{
cb
([]);
}
})
.
catch
((
error
)
=>
{});
}
else
{
cb
([]);
}
},
handleSelect
(
item
)
{
this
.
form1
.
TCMDiseaseID
=
item
.
tcmDiseaseID
;
this
.
form1
.
TCMDiseaseNum
=
item
.
tcmDiseaseNum
;
this
.
form1
.
TCMDiagnosis
=
this
.
form1
.
TCMDiseaseID
+
"--"
+
this
.
form1
.
TCMSyndromeID
;
},
querySearchAsync1
(
queryString
,
cb
)
{
if
(
queryString
&&
queryString
!=
"null"
)
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetCMSyndromes?searchQuery=
${
queryString
}
`
)
.
then
((
data
)
=>
{
console
.
log
(
data
);
if
(
data
&&
data
.
length
)
{
let
restaurants
=
data
.
map
((
item
)
=>
{
return
{
value
:
item
.
name
,
tcmSyndromeID
:
item
.
tcmSyndromeID
,
tcmSyndromeNum
:
item
.
tcmSyndromeNum
,
};
});
cb
(
restaurants
);
}
else
{
cb
([]);
}
})
.
catch
((
error
)
=>
{});
}
else
{
cb
([]);
}
},
handleSelect1
(
item
)
{
this
.
form1
.
TCMSyndromeID
=
item
.
tcmSyndromeID
;
this
.
form1
.
TCMSyndromeNum
=
item
.
tcmSyndromeNum
;
this
.
form1
.
TCMDiagnosis
=
this
.
form1
.
TCMDiseaseID
+
"--"
+
this
.
form1
.
TCMSyndromeID
;
},
},
},
};
};
</
script
>
</
script
>
...
...
src/views/relationMapping.vue
View file @
de1ebb16
...
@@ -69,9 +69,13 @@
...
@@ -69,9 +69,13 @@
<span></span>
<span></span>
<div
style=
"color: red"
v-show=
"show"
>
有未保存排序内容!
</div>
<div
style=
"color: red"
v-show=
"show"
>
有未保存排序内容!
</div>
<div
class=
""
>
<div
class=
""
>
<el-button
size=
"mini"
type=
"primary"
@
click=
"rightadd()"
>
添加
</el-button>
<el-checkbox
v-mode=
"isZY"
@
change=
"checkAl"
>
中医
</el-checkbox>
<el-button
size=
"mini"
type=
"primary"
class=
"mar-left-15"
@
click=
"rightadd()"
>
添加
</el-button>
<el-button
size=
"mini"
type=
"danger"
@
click=
"rightdelarr()"
>
删除
</el-button>
<el-button
size=
"mini"
type=
"danger"
@
click=
"rightdelarr()"
>
删除
</el-button>
<el-button
size=
"mini"
type=
"success"
@
click=
"saveSort(2, righttableData, '/ClinicalRoute/ClinicalRoute/UpdateMapCRAProject')"
<el-button
size=
"mini"
type=
"success"
@
click=
"saveSort(2, righttableData, `/ClinicalRoute/ClinicalRoute/UpdateMapCRAProject?isZY=${isZY}`)"
>
保存排序
</el-button
>
保存排序
</el-button
>
>
</div>
</div>
...
@@ -438,6 +442,7 @@ export default {
...
@@ -438,6 +442,7 @@ export default {
medicUseModeoptionsLise
:
[],
medicUseModeoptionsLise
:
[],
medicUsePlanoptions
:
[],
//频率
medicUsePlanoptions
:
[],
//频率
medicUsePlanoptionsList
:
[],
medicUsePlanoptionsList
:
[],
isZY
:
false
,
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -459,6 +464,10 @@ export default {
...
@@ -459,6 +464,10 @@ export default {
cridChange
(
e
)
{
cridChange
(
e
)
{
this
.
ruleForm
.
crid
=
e
;
this
.
ruleForm
.
crid
=
e
;
},
},
checkAl
(
e
)
{
this
.
isZY
=
e
;
this
.
getRightList
();
},
GetCopyGetCRInfo
(
query
)
{
GetCopyGetCRInfo
(
query
)
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/CopyGetCRInfo?searchQuery=
${
query
}
`
,
{}).
then
((
data
)
=>
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/CopyGetCRInfo?searchQuery=
${
query
}
`
,
{}).
then
((
data
)
=>
{
this
.
options
=
data
;
this
.
options
=
data
;
...
@@ -647,7 +656,7 @@ export default {
...
@@ -647,7 +656,7 @@ export default {
arr
.
push
(
item
);
arr
.
push
(
item
);
});
});
http
.
post
(
`/ClinicalRoute/ClinicalRoute/CreateMapCRAProject?ApplyDoctor=
${
this
.
$route
.
query
.
ApplyDoctor
*
1
}
`
,
arr
)
http
.
post
(
`/ClinicalRoute/ClinicalRoute/CreateMapCRAProject?ApplyDoctor=
${
this
.
$route
.
query
.
ApplyDoctor
*
1
}
&isZY=
${
this
.
isZY
}
`
,
arr
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
Message
.
success
({
Message
.
success
({
message
:
"添加成功!"
,
message
:
"添加成功!"
,
...
@@ -664,7 +673,7 @@ export default {
...
@@ -664,7 +673,7 @@ export default {
},
},
rightselectbtn
()
{
rightselectbtn
()
{
if
(
this
.
rightnameinput
)
{
if
(
this
.
rightnameinput
)
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetProjectInfo?searchQuery=
${
this
.
rightnameinput
}
`
,
{})
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetProjectInfo?searchQuery=
${
this
.
rightnameinput
}
&isZY=
${
this
.
isZY
}
`
,
{})
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
if
(
data
&&
data
.
length
)
{
if
(
data
&&
data
.
length
)
{
data
.
map
((
item
)
=>
{
data
.
map
((
item
)
=>
{
...
@@ -684,7 +693,7 @@ export default {
...
@@ -684,7 +693,7 @@ export default {
//获取左侧 初始化数据
//获取左侧 初始化数据
getRightList
()
{
getRightList
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetMapCRAProjectInfo?adviceid=
${
this
.
adviceid
}
`
,
{})
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetMapCRAProjectInfo?adviceid=
${
this
.
adviceid
}
&isZY=
${
this
.
isZY
}
`
,
{})
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
this
.
show
=
false
;
this
.
show
=
false
;
this
.
righttableData
=
data
;
this
.
righttableData
=
data
;
...
@@ -788,6 +797,8 @@ export default {
...
@@ -788,6 +797,8 @@ export default {
},
},
rightadd
()
{
rightadd
()
{
if
(
this
.
adviceid
)
{
if
(
this
.
adviceid
)
{
this
.
rightdialogData
=
[];
this
.
rightnameinput
=
""
;
this
.
RightdialogTableVisible
=
true
;
this
.
RightdialogTableVisible
=
true
;
}
else
{
}
else
{
Message
.
warning
({
Message
.
warning
({
...
@@ -815,7 +826,7 @@ export default {
...
@@ -815,7 +826,7 @@ export default {
newarr
.
push
(
this
.
rightarr
[
key
].
id
);
newarr
.
push
(
this
.
rightarr
[
key
].
id
);
});
});
if
(
newarr
.
length
>
0
)
{
if
(
newarr
.
length
>
0
)
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/RemoveMapCRAProject?ApplyDoctor=
${
this
.
$route
.
query
.
ApplyDoctor
*
1
}
`
,
newarr
)
http
.
post
(
`/ClinicalRoute/ClinicalRoute/RemoveMapCRAProject?ApplyDoctor=
${
this
.
$route
.
query
.
ApplyDoctor
*
1
}
&isZY=
${
this
.
isZY
}
`
,
newarr
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
Message
.
success
({
Message
.
success
({
message
:
`
${
data
.
message
}
`
,
message
:
`
${
data
.
message
}
`
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment