Commit e2e4aa02 authored by 罗成兵's avatar 罗成兵

Merge branch 'gcl' of http://gitlab.yiboshi.com/ynby/folacin-front into gcl

 Conflicts:
	src/views/utils/loginApi.js
parents 2dbb99a8 96eac642
...@@ -39,6 +39,7 @@ function fetch(url = '', params = {}, method = 'get', contentType = 'form', toke ...@@ -39,6 +39,7 @@ function fetch(url = '', params = {}, method = 'get', contentType = 'form', toke
data: params, data: params,
headers: { headers: {
Authorization: token || window.sessionStorage.getItem('token'), Authorization: token || window.sessionStorage.getItem('token'),
menuId: window.sessionStorage.getItem('menuId'),
'Content-Type': contentType, 'Content-Type': contentType,
} }
}).then(function (response) { }).then(function (response) {
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
}, },
created() { created() {
//获取妇幼权限和登录基本信息 //获取妇幼权限和登录基本信息
document.cookie = 'bGNnd3lwdF9hdA=30fc7c05-8f84-490d-8bcb-18f5a7c885db;'//昆明市 // document.cookie = 'bGNnd3lwdF9hdA=ef814f88-005f-4820-830d-b834edb47a55;'//昆明市
// document.cookie = 'bGNnd3lwdF9hdA=' + sessionStorage.getItem("loginToken") + ';'//云南省 // document.cookie = 'bGNnd3lwdF9hdA=' + sessionStorage.getItem("loginToken") + ';'//云南省
let cookieToken = getCookie('bGNnd3lwdF9hdA'); let cookieToken = getCookie('bGNnd3lwdF9hdA');
console.log('tokenInfo',cookieToken) console.log('tokenInfo',cookieToken)
......
...@@ -150,8 +150,8 @@ ...@@ -150,8 +150,8 @@
} else { } else {
let par = {} let par = {}
this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => { this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => {
window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo));
window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList)) window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList))
window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo));
this.statusList = getEnumByFlag("folacin_resident_info_status"); this.statusList = getEnumByFlag("folacin_resident_info_status");
}) })
} }
......
...@@ -208,8 +208,8 @@ ...@@ -208,8 +208,8 @@
} else { } else {
let par = {} let par = {}
this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => { this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => {
window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo));
window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList)) window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList))
window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo));
this.statusList = getEnumByFlag("folacin_resident_info_status"); this.statusList = getEnumByFlag("folacin_resident_info_status");
}) })
} }
......
...@@ -146,8 +146,8 @@ ...@@ -146,8 +146,8 @@
} else { } else {
let par = {} let par = {}
this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => { this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => {
window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo));
window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList)) window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList))
window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo));
this.statusList = getEnumByFlag("folacin_resident_info_status"); this.statusList = getEnumByFlag("folacin_resident_info_status");
}) })
} }
......
<template> <template>
<div class="inStockManage"> <div class="inStockManage">
<a-modal title="选择要发放的叶酸种类" v-if="visible" :visible="visible" @cancel="visible = false" @ok="getChecked" :maskClosable="false" <!--:getContainer="() => window.parent.document.body"-->
<a-modal title="选择要发放的叶酸种类" v-if="visible"
:visible="visible" @cancel="visible = false"
@ok="getChecked"
:maskClosable="false"
width="1100px" > width="1100px" >
<a-form layout="inline" class="search_form"> <a-form layout="inline" class="search_form">
<a-form-item label="供应商名称"> <a-form-item label="供应商名称">
...@@ -245,6 +249,9 @@ ...@@ -245,6 +249,9 @@
onSelectChange(selectedRowKeys) { onSelectChange(selectedRowKeys) {
this.selectedRowKeys = selectedRowKeys; this.selectedRowKeys = selectedRowKeys;
}, },
// getContainer() {
// return window.parent.document.body;
// },
getChecked() { getChecked() {
this.$emit('selectedIdList', this.selectedRowKeys) this.$emit('selectedIdList', this.selectedRowKeys)
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<a-button type="primary" icon="search" class="search_btn" @click="searchList">搜索</a-button> <a-button type="primary" icon="search" class="search_btn" @click="searchList">搜索</a-button>
<a-button class="search_btn" icon="close" style="margin-left: 10px" @click="restSearchForm">清空</a-button> <a-button class="search_btn" icon="close" style="margin-left: 10px" @click="restSearchForm">清空</a-button>
<div style="float: right"> <!-- <div>
<a-button type="primary" icon="plus" class="search_btn btn_space" @click="openModal">库存录入</a-button> <a-button type="primary" icon="plus" class="search_btn btn_space" @click="openModal">库存录入</a-button>
<a-button type="primary" icon="gift" class="search_btn btn_space" <a-button type="primary" icon="gift" class="search_btn btn_space"
:disabled="selectedRowKeys.length <= 0" :disabled="selectedRowKeys.length <= 0"
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</a-button> </a-button>
<a-button type="primary" icon="download" class="search_btn btn_space" @click="downLoadExcel">导出Excel <a-button type="primary" icon="download" class="search_btn btn_space" @click="downLoadExcel">导出Excel
</a-button> </a-button>
</div> </div>-->
<div style="clear: both"></div> <div style="clear: both"></div>
</a-form> </a-form>
...@@ -64,13 +64,13 @@ ...@@ -64,13 +64,13 @@
style="margin-left:10px;font-size: 10px"/> </span> style="margin-left:10px;font-size: 10px"/> </span>
</a-popover> </a-popover>
</div> </div>
<!-- <div style="margin-top: 16px;margin-bottom: 10px">--> <div style="margin-top: 16px;margin-bottom: 10px">
<!-- <a-button type="primary" class="search_btn btn_space" @click="openModal">库存录入</a-button>--> <a-button type="primary" class="search_btn btn_space" @click="openModal">库存录入</a-button>
<!-- <a-button type="primary" class="search_btn btn_space" :disabled="selectedRowKeys.length <= 0"--> <a-button type="primary" class="search_btn btn_space" :disabled="selectedRowKeys.length <= 0"
<!-- @click="toAdd">调拨分配--> @click="toAdd">调拨分配
<!-- </a-button>--> </a-button>
<!-- <a-button type="primary" class="search_btn btn_space">导出Excel</a-button>--> <a-button type="primary" class="search_btn btn_space">导出Excel</a-button>
<!-- </div>--> </div>
<div style="clear: both"></div> <div style="clear: both"></div>
<a-table :dataSource="tableData" <a-table :dataSource="tableData"
...@@ -206,8 +206,8 @@ ...@@ -206,8 +206,8 @@
} else { } else {
let par = {} let par = {}
this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => { this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => {
window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo));
window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList)) window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList))
window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo));
this.brandList = getEnumByFlag("folacin_stock_record_brand_id"); this.brandList = getEnumByFlag("folacin_stock_record_brand_id");
}) })
} }
......
...@@ -150,8 +150,8 @@ ...@@ -150,8 +150,8 @@
} else { } else {
let par = {} let par = {}
this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => { this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => {
window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo));
window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList)) window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList))
window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo));
this.brandList = getEnumByFlag("folacin_stock_record_brand_id"); this.brandList = getEnumByFlag("folacin_stock_record_brand_id");
this.stockTypeList = getEnumByFlag("folacin_stock_transfer_stock_type") this.stockTypeList = getEnumByFlag("folacin_stock_transfer_stock_type")
}) })
......
...@@ -133,8 +133,8 @@ ...@@ -133,8 +133,8 @@
} else { } else {
let par = {} let par = {}
this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => { this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => {
window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo));
window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList)) window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList))
window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo));
this.allFactoryInfo = getEnumByFlag("public_state"); this.allFactoryInfo = getEnumByFlag("public_state");
}) })
} }
......
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