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
3ed158d1
Commit
3ed158d1
authored
May 24, 2023
by
唐玉峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
75750759
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
41 deletions
+16
-41
src/components/medicalRecordHomepage/index.vue
+1
-4
src/utils/http.js
+1
-6
src/views/outClinicalpathway.vue
+0
-20
src/views/outHistorygrouping.vue
+14
-8
src/views/outaddrecordEnrollment.vue
+0
-3
No files found.
src/components/medicalRecordHomepage/index.vue
View file @
3ed158d1
...
@@ -1089,10 +1089,7 @@ export default {
...
@@ -1089,10 +1089,7 @@ export default {
}
}
},
},
},
},
mounted
()
{
mounted
()
{},
console
.
log
(
this
.
medicalrecord
);
console
.
log
(
this
.
clicktitle
);
},
methods
:
{
methods
:
{
decimal
,
decimal
,
transformTimestamp
,
transformTimestamp
,
...
...
src/utils/http.js
View file @
3ed158d1
...
@@ -18,18 +18,14 @@ function createHeader() {
...
@@ -18,18 +18,14 @@ function createHeader() {
}
}
function
errorMsg
(
d
)
{
function
errorMsg
(
d
)
{
console
.
log
(
d
.
response
);
if
(
d
.
response
.
status
==
"401"
)
{
if
(
d
.
response
.
status
==
"401"
)
{
Vue
.
prototype
.
$message
.
error
(
"登录信息失效,重新登录!"
);
Vue
.
prototype
.
$message
.
error
(
"登录信息失效,重新登录!"
);
sessionStorage
.
clear
();
sessionStorage
.
clear
();
this
.
$router
.
push
(
"/login"
).
catch
((
err
)
=>
{
this
.
$router
.
push
(
"/login"
).
catch
((
err
)
=>
{});
//改变路由
console
.
log
(
"输出报错"
,
err
);
});
//改变路由
}
}
if
(
d
.
response
)
{
if
(
d
.
response
)
{
// 请求已发出,但服务器响应的状态码不在 2xx 范围内
// 请求已发出,但服务器响应的状态码不在 2xx 范围内
console
.
log
(
d
.
response
);
}
}
if
(
Vue
.
prototype
.
$notify
)
{
if
(
Vue
.
prototype
.
$notify
)
{
...
@@ -98,7 +94,6 @@ export default {
...
@@ -98,7 +94,6 @@ export default {
axios
axios
.
post
(
url
,
params
,
{
...{
headers
:
createHeader
()
},
...
option
})
.
post
(
url
,
params
,
{
...{
headers
:
createHeader
()
},
...
option
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
status
!==
200
)
{
if
(
res
.
status
!==
200
)
{
errorMsg
(
res
.
data
);
errorMsg
(
res
.
data
);
reject
(
res
.
data
);
reject
(
res
.
data
);
...
...
src/views/outClinicalpathway.vue
View file @
3ed158d1
...
@@ -563,36 +563,29 @@ export default {
...
@@ -563,36 +563,29 @@ export default {
if
(
row
.
retail_unit
==
row
.
min_unit
)
{
if
(
row
.
retail_unit
==
row
.
min_unit
)
{
//使用量 //频率数量 //用药天数 //单位剂量
//使用量 //频率数量 //用药天数 //单位剂量
row
.
medicQuantity
=
Math
.
ceil
((
Number
(
row
.
medicUseQuantity
)
*
num
*
row
.
useDay
)
/
row
.
unit_dose
);
row
.
medicQuantity
=
Math
.
ceil
((
Number
(
row
.
medicUseQuantity
)
*
num
*
row
.
useDay
)
/
row
.
unit_dose
);
console
.
log
(
num
+
"1"
);
//住院零售单位 //包装单位
//住院零售单位 //包装单位
}
else
if
(
row
.
retail_unit
==
row
.
package_unit
)
{
}
else
if
(
row
.
retail_unit
==
row
.
package_unit
)
{
//使用量 //频率数量 //用药天数 //单位剂量 //包装数量
//使用量 //频率数量 //用药天数 //单位剂量 //包装数量
row
.
medicQuantity
=
Math
.
ceil
((
Number
(
row
.
medicUseQuantity
)
*
num
*
row
.
useDay
)
/
row
.
unit_dose
/
row
.
packagingnum
);
row
.
medicQuantity
=
Math
.
ceil
((
Number
(
row
.
medicUseQuantity
)
*
num
*
row
.
useDay
)
/
row
.
unit_dose
/
row
.
packagingnum
);
console
.
log
(
num
+
"2"
);
}
else
{
}
else
{
//使用量 //频率数量 //用药天数 //单位剂量 //包装数量 拆分系数
//使用量 //频率数量 //用药天数 //单位剂量 //包装数量 拆分系数
row
.
medicQuantity
=
Math
.
ceil
(
row
.
medicQuantity
=
Math
.
ceil
(
(
Number
(
row
.
medicUseQuantity
)
*
num
*
row
.
useDay
)
/
row
.
unit_dose
/
(
row
.
packagingnum
/
row
.
split_num
)
(
Number
(
row
.
medicUseQuantity
)
*
num
*
row
.
useDay
)
/
row
.
unit_dose
/
(
row
.
packagingnum
/
row
.
split_num
)
);
);
console
.
log
(
num
+
"3"
);
}
}
}
else
{
}
else
{
if
(
row
.
order_round
===
"单次取整"
)
{
if
(
row
.
order_round
===
"单次取整"
)
{
row
.
medicQuantity
=
Math
.
round
(
Math
.
ceil
(
Number
(
row
.
medicUseQuantity
)
/
row
.
unit_dose
)
*
num
*
row
.
useDay
);
row
.
medicQuantity
=
Math
.
round
(
Math
.
ceil
(
Number
(
row
.
medicUseQuantity
)
/
row
.
unit_dose
)
*
num
*
row
.
useDay
);
console
.
log
(
num
+
"4"
);
}
else
if
(
retail_unit
===
package_unit
)
{
}
else
if
(
retail_unit
===
package_unit
)
{
row
.
medicQuantity
=
Math
.
round
(
Math
.
ceil
(
Number
(
row
.
medicUseQuantity
)
/
row
.
unit_dose
/
row
.
packagingnum
)
*
num
*
row
.
useDay
);
row
.
medicQuantity
=
Math
.
round
(
Math
.
ceil
(
Number
(
row
.
medicUseQuantity
)
/
row
.
unit_dose
/
row
.
packagingnum
)
*
num
*
row
.
useDay
);
console
.
log
(
num
+
"5"
);
}
else
{
}
else
{
row
.
medicQuantity
=
Math
.
round
(
row
.
medicQuantity
=
Math
.
round
(
Math
.
ceil
(
Number
(
row
.
medicUseQuantity
)
/
row
.
unit_dose
/
(
row
.
packagingnum
/
row
.
split_num
))
*
num
*
row
.
useDay
Math
.
ceil
(
Number
(
row
.
medicUseQuantity
)
/
row
.
unit_dose
/
(
row
.
packagingnum
/
row
.
split_num
))
*
num
*
row
.
useDay
);
);
console
.
log
(
num
+
"6"
);
}
}
}
}
}
}
}
}
console
.
log
(
row
);
},
},
//药疗新增
//药疗新增
addRow
(
r
)
{
addRow
(
r
)
{
...
@@ -674,7 +667,6 @@ export default {
...
@@ -674,7 +667,6 @@ export default {
rowdblclick
(
row
,
column
,
event
)
{
rowdblclick
(
row
,
column
,
event
)
{
this
.
pushData
(
row
,
this
.
tableData
);
this
.
pushData
(
row
,
this
.
tableData
);
console
.
log
(
row
);
this
.
tempRow
.
isPop
=
false
;
this
.
tempRow
.
isPop
=
false
;
},
},
pushData
(
row
,
arr
)
{
pushData
(
row
,
arr
)
{
...
@@ -737,7 +729,6 @@ export default {
...
@@ -737,7 +729,6 @@ export default {
//
//
tbChange
(
row
)
{
tbChange
(
row
)
{
console
.
log
(
row
);
if
(
row
.
children
&&
row
.
children
.
length
)
{
if
(
row
.
children
&&
row
.
children
.
length
)
{
row
.
children
.
map
((
item
)
=>
{
row
.
children
.
map
((
item
)
=>
{
item
.
medicalPurpose
=
row
.
medicalPurpose
;
item
.
medicalPurpose
=
row
.
medicalPurpose
;
...
@@ -884,19 +875,16 @@ export default {
...
@@ -884,19 +875,16 @@ export default {
// j.edit = false;
// j.edit = false;
this
.
toggleSelection
(
j
,
true
);
this
.
toggleSelection
(
j
,
true
);
});
});
console
.
log
(
1
);
}
else
{
}
else
{
selection
.
map
((
v
)
=>
{
selection
.
map
((
v
)
=>
{
this
.
toggleSelection
(
v
,
true
);
this
.
toggleSelection
(
v
,
true
);
});
});
console
.
log
(
2
);
}
}
//取消
//取消
}
else
{
}
else
{
this
.
toggleSelection
(
row
,
false
);
this
.
toggleSelection
(
row
,
false
);
if
(
row
.
children
&&
row
.
children
.
length
)
{
if
(
row
.
children
&&
row
.
children
.
length
)
{
console
.
log
(
3
,
row
);
row
.
children
.
map
((
p
)
=>
{
row
.
children
.
map
((
p
)
=>
{
if
(
p
.
children
&&
p
.
children
.
length
)
{
if
(
p
.
children
&&
p
.
children
.
length
)
{
p
.
children
.
map
((
i
)
=>
{
p
.
children
.
map
((
i
)
=>
{
...
@@ -908,7 +896,6 @@ export default {
...
@@ -908,7 +896,6 @@ export default {
this
.
toggleSelection
(
p
,
false
);
this
.
toggleSelection
(
p
,
false
);
});
});
}
else
{
}
else
{
console
.
log
(
4
);
row
.
ischeck
=
2
;
row
.
ischeck
=
2
;
this
.
toggleSelection
(
row
,
false
);
this
.
toggleSelection
(
row
,
false
);
//取消的行数据
//取消的行数据
...
@@ -1033,7 +1020,6 @@ export default {
...
@@ -1033,7 +1020,6 @@ export default {
getIsRoute
()
{
getIsRoute
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/IsRoute?pid=
${
this
.
$route
.
query
.
pid
}
`
,
{})
http
.
post
(
`/ClinicalRoute/ClinicalRoute/IsRoute?pid=
${
this
.
$route
.
query
.
pid
}
`
,
{})
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
console
.
log
(
data
);
if
(
data
)
{
if
(
data
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"Entrypath"
,
path
:
"Entrypath"
,
...
@@ -1094,12 +1080,10 @@ export default {
...
@@ -1094,12 +1080,10 @@ export default {
});
});
}
}
}
else
{
}
else
{
console
.
log
(
"error submit!!"
);
return
false
;
return
false
;
}
}
});
});
}
else
{
}
else
{
console
.
log
(
"error submit!!"
);
return
false
;
return
false
;
}
}
});
});
...
@@ -1125,7 +1109,6 @@ export default {
...
@@ -1125,7 +1109,6 @@ export default {
});
});
}
}
}
else
{
}
else
{
console
.
log
(
"error submit!!"
);
return
false
;
return
false
;
}
}
});
});
...
@@ -1143,17 +1126,14 @@ export default {
...
@@ -1143,17 +1126,14 @@ export default {
}
}
}
}
}
else
{
}
else
{
console
.
log
(
"error submit!!"
);
return
false
;
return
false
;
}
}
});
});
}
else
{
}
else
{
console
.
log
(
"error submit!!"
);
return
false
;
return
false
;
}
}
});
});
}
else
{
}
else
{
console
.
log
(
"error submit!!"
);
return
false
;
return
false
;
}
}
});
});
...
...
src/views/outHistorygrouping.vue
View file @
3ed158d1
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
<div
class=
"outsetgrouping_centent_totalnum_left"
>
<div
class=
"outsetgrouping_centent_totalnum_left"
>
<div
class=
"outsetgrouping_centent_totalnum_left_radios"
>
<div
class=
"outsetgrouping_centent_totalnum_left_radios"
>
<!--
<input
type=
"radio"
name=
"radios"
v-model=
"radio"
/>
-->
<!--
<input
type=
"radio"
name=
"radios"
v-model=
"radio"
/>
-->
<input
type=
"radio"
name=
"radios"
:value=
"item.id"
@
input
=
"radios"
/>
<input
type=
"radio"
name=
"radios"
:value=
"item.id"
@
click
=
"radios"
/>
</div>
</div>
<div
class=
"outsetgrouping_centent_totalnum_left_text"
>
<div
class=
"outsetgrouping_centent_totalnum_left_text"
>
...
@@ -317,11 +317,8 @@
...
@@ -317,11 +317,8 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
http
from
"../utils/http"
;
import
http
from
"../utils/http"
;
import
{
reactive
,
toRefs
,
onMounted
,
nextTick
,
computed
}
from
"@vue/composition-api"
;
import
$
from
"jquery"
;
import
{
decimal
}
from
"../utils/decimal"
;
import
{
Message
}
from
"element-ui"
;
import
{
Message
}
from
"element-ui"
;
import
{
useRoute
,
useRouter
}
from
"../utils/useVueRouter"
;
import
{
initEcharts
,
categoryChart
,
categoryChart11
}
from
"../utils/echarts"
;
import
{
initEcharts
,
categoryChart
,
categoryChart11
}
from
"../utils/echarts"
;
export
default
{
export
default
{
name
:
"outHistorygrouping"
,
name
:
"outHistorygrouping"
,
...
@@ -631,9 +628,18 @@ export default {
...
@@ -631,9 +628,18 @@ export default {
})
})
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{});
},
},
radios
(
e
)
{
radios
()
{
this
.
radio
=
e
.
target
.
value
;
let
_this
=
this
;
this
.
coreID
=
this
.
CorePercents
.
find
((
item
)
=>
item
.
id
==
e
.
target
.
value
).
coreID
;
$
(
"input[type=radio][name=radios]"
).
on
(
"change"
,
function
()
{
_this
.
radio
=
this
.
value
;
_this
.
coreID
=
_this
.
CorePercents
.
find
((
item
)
=>
item
.
id
==
this
.
value
).
coreID
;
console
.
log
(
_this
.
coreID
);
console
.
log
(
this
.
value
);
});
// console.log(e);
// this.radio = e.target.value;
// this.coreID = this.CorePercents.find((item) => item.id == e.target.value).coreID;
// console.log(this.coreID);
},
},
},
},
};
};
...
...
src/views/outaddrecordEnrollment.vue
View file @
3ed158d1
...
@@ -88,11 +88,8 @@
...
@@ -88,11 +88,8 @@
</el-dialog>
</el-dialog>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
getItem
,
setItem
,
clear
}
from
"../utils/auth"
;
import
http
from
"../utils/http"
;
import
http
from
"../utils/http"
;
import
{
reactive
,
toRefs
,
onMounted
,
nextTick
,
computed
}
from
"@vue/composition-api"
;
import
{
reactive
,
toRefs
,
onMounted
,
nextTick
,
computed
}
from
"@vue/composition-api"
;
import
{
decimal
}
from
"../utils/decimal"
;
import
{
decimal
}
from
"../utils/decimal"
;
import
{
initEcharts
,
categoryChart11
}
from
"../utils/echarts"
;
import
{
initEcharts
,
categoryChart11
}
from
"../utils/echarts"
;
...
...
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