Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
folacin-front
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ynby
folacin-front
Commits
4b70b3ec
Commit
4b70b3ec
authored
Jul 05, 2021
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
be966f93
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
45 deletions
+42
-45
index.js
src/api/index.js
+5
-33
Home.vue
src/views/Home.vue
+1
-1
addSupply.vue
...iews/indexComponent/supplyManage/components/addSupply.vue
+26
-9
supplyManage.vue
src/views/indexComponent/supplyManage/supplyManage.vue
+10
-2
No files found.
src/api/index.js
View file @
4b70b3ec
...
...
@@ -65,31 +65,7 @@ export default {
return
fetch
(
'/v1/folacin-admin/folacin-send-record/send-record'
,
params
)
}
},
//首页接口
homeManage
:
{
fetchPayAmount
(
params
)
{
//获取发放量
return
fetch
(
`/stock-info/v1/stock-info/home/get-provide`
,
params
)
},
fetchPayAmountMonth
(
params
)
{
//每个月的发放量统计
return
fetch
(
`/stock-info/v1/stock-info/home/get-total-provide`
,
params
)
},
fetchPayAmountYear
(
params
)
{
//一年内药具发放量占比
return
fetch
(
`/stock-info/v1/stock-info/home/get-provide-proportion`
,
params
);
},
fetchRemindWarn
(
params
)
{
//首页消息提醒
return
fetch
(
`/stock-info/v1/stock-info/home/get-remind-and-waring`
,
params
);
},
updatePwd
(
params
)
{
//更新密码
return
fetch
(
`/basic-info/v1/basic-info/basic-sys-user/update-password`
,
params
,
'post'
,
'json'
)
},
fetchVisitStatistic
(
params
)
{
//回访统计接口
return
fetch
(
`/stock-info/v1/stock-info/home/get-visit-statistic`
,
params
);
},
fetchDataQuality
(
params
)
{
//数据质量控制、提醒以及预警接口
return
fetch
(
`/stock-info/v1/stock-info/home/get-data-quality`
,
params
);
},
},
//单位管理端-基础信息管理
baseInfo
:
{
/*药具基本信息管理*/
...
...
@@ -366,15 +342,6 @@ export default {
return
fetch
(
'/medicalStockInfo/inventoryWarn'
,
JSON
.
stringify
(
params
),
'post'
)
}
},
//单位管理端-台账管理
ledgerManage
:
{
fetchLedgerList
(
params
)
{
//台账管理列表
return
fetch
(
'/stock-info/v1/stock-info/stock-provide-record/account'
,
params
);
},
addLedgerInfo
(
params
)
{
// 人工发放
return
fetch
(
'/stock-info/v1/stock-info/stock-provide-record'
,
params
,
'post'
,
'json'
);
},
},
//随访管理
followupManage
:
{
fetchFollowUpList
(
params
)
{
//随访列表
...
...
@@ -616,6 +583,11 @@ export default {
return
fetch
(
'/v1/folacin-admin/sys-login/getLoginInfo'
,
params
);
},
},
supplyManage
:
{
//供应商管理
fetchSupplyDetail
(
params
)
{
// 查看详情
return
fetch
(
`/v1/folacin-admin/folacin-supplier-info/
${
params
.
id
}
`
,
params
)
},
},
//常用工具
utils
:
{
//直接下载文件,不让浏览器直接打开
...
...
src/views/Home.vue
View file @
4b70b3ec
...
...
@@ -55,7 +55,7 @@
created
()
{
//获取妇幼权限和登录基本信息
// document.cookie = 'bGNnd3lwdF9hdA=8f26b5cc-1d66-4b31-8b86-26d916209e1e;'//昆明市
document
.
cookie
=
'bGNnd3lwdF9hdA=
e3f0d190-7544-495a-a299-c575d4c51e5f
;'
//云南省
document
.
cookie
=
'bGNnd3lwdF9hdA=
5028cd4d-4491-4351-9448-4b357d8f1591
;'
//云南省
let
cookieToken
=
getCookie
(
'bGNnd3lwdF9hdA'
)
if
(
cookieToken
)
{
//根据cookie获取token并调用接口获取菜单并设置初始选中菜单
window
.
sessionStorage
.
setItem
(
'token'
,
'bearer'
+
' '
+
cookieToken
);
...
...
src/views/indexComponent/supplyManage/components/addSupply.vue
View file @
4b70b3ec
...
...
@@ -91,20 +91,25 @@
batchId
:
undefined
,
produceDate
:
undefined
,
expireDate
:
undefined
,
stockNum
:
undefined
stockNum
:
undefined
,
supplierName
:
undefined
,
contactsName
:
undefined
,
contactsPhone
:
undefined
,
},
formRules
:
{
breedId
:
[
{
required
:
true
,
message
:
'请
选择分类'
,
trigger
:
'change
'
}
supplierName
:
[
{
required
:
true
,
message
:
'请
输入供应商名称
'
}
],
batchNumber
:[
{
required
:
true
,
message
:
'请
选择分类'
,
trigger
:
'change
'
}
contactsName
:[
{
required
:
true
,
message
:
'请
输入联系人
'
}
],
c
lassify
:
[
{
required
:
true
,
message
:
'请
选择入库类型'
,
trigger
:
'change
'
}
c
ontactsPhone
:
[
{
required
:
true
,
message
:
'请
输入联系人电话
'
}
],
medicalId
:
[
{
required
:
true
,
message
:
'请选择品种名称'
,
trigger
:
'change'
}
{
required
:
true
,
message
:
'请选择品种名称'
}
],
factoryId
:
[
{
required
:
true
,
message
:
'请选择生产厂家'
,
trigger
:
'change'
}
...
...
@@ -125,12 +130,24 @@
{
required
:
true
,
message
:
'请输入单价'
}
],
},
routerParams
:
{}
}
},
created
()
{
this
.
routerParams
=
this
.
$route
.
query
if
(
this
.
routerParams
.
flag
==
'update'
)
{
this
.
getSupplyDetail
(
this
.
routerParams
)
}
},
methods
:
{
getSupplyDetail
(
record
)
{
let
par
=
{
id
:
record
.
id
}
this
.
$api
.
supplyManage
.
fetchSupplyDetail
(
par
).
then
(({
data
})
=>
{
})
},
// 弹窗确定按钮
submitForm
()
{
let
vm
=
this
...
...
src/views/indexComponent/supplyManage/supplyManage.vue
View file @
4b70b3ec
...
...
@@ -32,6 +32,7 @@
{{
record
.
statusName
}}
</
template
>
<
template
slot=
"action"
slot-scope=
"record"
>
<a-button
type=
"link"
size=
"small"
@
click=
"toUpdate(record)"
>
修改
</a-button>
<a-popconfirm
:title=
"'确定' + (record.status === 0 ? '禁用' : '启用') + '该供应商吗?'"
ok-text=
"是"
...
...
@@ -41,7 +42,7 @@
>
<a
href=
"#"
>
{{
record
.
status
===
0
?
'禁用'
:
'启用'
}}
</a>
</a-popconfirm>
<a-button
type=
"link"
size=
"small"
@
click=
"deleteConfirm(record)"
>
删除
</a-button>
</
template
>
</a-table>
<a-pagination
...
...
@@ -163,7 +164,14 @@
this
.
searchList
()
},
toAdd
()
{
this
.
$router
.
push
({
path
:
'/supplyManage/add'
})
this
.
$router
.
push
({
path
:
'/supplyManage/add'
,
query
:
{
flag
:
'add'
}})
},
toUpdate
(
record
)
{
let
par
=
{
...
record
,
flag
:
'update'
}
this
.
$router
.
push
({
path
:
'/supplyManage/add'
,
query
:
par
})
},
changeStatus
(
record
)
{
let
par
=
{
...
...
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