Commit 4b70b3ec authored by gengchunlei's avatar gengchunlei

push

parent be966f93
......@@ -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: {
//直接下载文件,不让浏览器直接打开
......
......@@ -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);
......
......@@ -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: '请输入联系人'}
],
classify: [
{required: true, message: '请选择入库类型', trigger: 'change'}
contactsPhone: [
{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
......
......@@ -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 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment