Commit 6bc360dc authored by 罗成兵's avatar 罗成兵

更换域名

parent d425e767
NODE_ENV = prod NODE_ENV = prod
VUE_APP_BASE_URL = https://ys-service.yiboshi.com VUE_APP_BASE_URL = https://ys-service.zmnyjk.com
\ No newline at end of file \ No newline at end of file
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</div> </div>
<div class="bottom_back" v-if="index != detailList.length-1"></div> <div class="bottom_back" v-if="index != detailList.length-1"></div>
</div> </div>
</template> </template>
<van-empty v-else description="暂无申请记录" /> <van-empty v-else description="暂无申请记录" />
</div> </div>
...@@ -105,14 +105,14 @@ export default { ...@@ -105,14 +105,14 @@ export default {
height: 100%; height: 100%;
// height: calc(100% - 50px); // height: calc(100% - 50px);
background-color: #F1F1F1; background-color: #F1F1F1;
.apply_block { .apply_block {
margin-top: 8px; margin-top: 8px;
height: 180px; height: 180px;
background-color: #fff; background-color: #fff;
padding: 0 16px; padding: 0 16px;
box-sizing: border-box; box-sizing: border-box;
.top { .top {
display: flex; display: flex;
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
margin: 13px 0 8px 0; margin: 13px 0 8px 0;
} }
.green { .green {
background-color: #79BC7F; background-color: #79BC7F;
} }
.orange { .orange {
......
NODE_ENV = dev NODE_ENV = dev
VUE_APP_BASE_URL111= https://beta-ysservice.yiboshi.com VUE_APP_BASE_URL2222= https://beta-ysservice.yiboshi.com
VUE_APP_BASE_URL2 = https://ys-service.yiboshi.com VUE_APP_BASE_URL22 = https://ys-service.yiboshi.com
VUE_APP_BASE_URL4 = http://59.230.237.90:8115 VUE_APP_BASE_URL4 = http://59.230.237.90:8115
VUE_APP_BASE_URL = http://127.0.0.1:8083 VUE_APP_BASE_URL = http://127.0.0.1:8083
VUE_APP_BASE_PATH = https://beta-yac.yiboshi.com VUE_APP_BASE_PATH = https://beta-yac.yiboshi.com
......
NODE_ENV = prod NODE_ENV = prod
VUE_APP_BASE_URL = https://ys-service.yiboshi.com VUE_APP_BASE_URL = https://ys-service.zmnyjk.com
VUE_APP_BASE_PATH = https://lcgwypt-login.yiboshi.com VUE_APP_BASE_PATH = https://lcgwypt-login.zmnyjk.com
VUE_APP_KEY_WORD = 'XwKsGlMcdPMEhR1B' VUE_APP_KEY_WORD = 'XwKsGlMcdPMEhR1B'
VUE_APP_LOCATION = https://yesuan.yiboshi.com/#/ VUE_APP_LOCATION = https://yesuan.zmnyjk.com/#/
...@@ -14,7 +14,7 @@ function fetch(url = '', params = {}, method = 'get', contentType = 'form', toke ...@@ -14,7 +14,7 @@ function fetch(url = '', params = {}, method = 'get', contentType = 'form', toke
let keyArr = []; let keyArr = [];
for (let k in params) { for (let k in params) {
let val = params[k]; let val = params[k];
if (val === null || val === undefined || val === 'null' || val === '' || val === ' ') { if (val === null || val === undefined || val === 'null' || val === ' ') {
keyArr.push(k); keyArr.push(k);
} }
} }
...@@ -44,9 +44,11 @@ function fetch(url = '', params = {}, method = 'get', contentType = 'form', toke ...@@ -44,9 +44,11 @@ function fetch(url = '', params = {}, method = 'get', contentType = 'form', toke
} }
}).then(function (response) { }).then(function (response) {
if (response.data.code === 'BIZ.TOKEN_EXPIRATION') { if (response.data.code === 'BIZ.TOKEN_EXPIRATION') {
console.log('没有token接口返回'); message.error(response.data.msg);
window.top.postMessage({messageType: "LOGOUT"}, '*'); // if (process.env.NODE_ENV != "dev") {
return // window.top.postMessage({messageType: "LOGOUT"}, '*');
// return
// }
} }
if (response.data.code === 'BIZ.BUSSINESS_EXCEPTION') { if (response.data.code === 'BIZ.BUSSINESS_EXCEPTION') {
message.error(response.data.msg); message.error(response.data.msg);
......
...@@ -214,6 +214,9 @@ export default { ...@@ -214,6 +214,9 @@ export default {
fetchLastRecord(idCard) {//查询最近一次发放记录 fetchLastRecord(idCard) {//查询最近一次发放记录
return fetch(`/v1/folacin-admin/folacin-resident-info/resident/${idCard}`) return fetch(`/v1/folacin-admin/folacin-resident-info/resident/${idCard}`)
}, },
fetchResidentByCard(params) {//查询最近一次发放记录
return fetch(`/v1/folacin-admin/folacin-resident-info/resident-by-card`,params)
},
}, },
//物资调拨管理 //物资调拨管理
allocationManagement: { allocationManagement: {
......
...@@ -6,7 +6,7 @@ import storeInfo from '../store/index' ...@@ -6,7 +6,7 @@ import storeInfo from '../store/index'
// 进度条 // 进度条
import NProgress from 'nprogress'; import NProgress from 'nprogress';
let activeUrl = window.sessionStorage.getItem('activeItem') || '/Home/inStock'; let activeUrl = window.sessionStorage.getItem('activeItem') || '/Home/folviteDistribution';
NProgress.configure({showSpinner: false}); NProgress.configure({showSpinner: false});
Vue.use(VueRouter) Vue.use(VueRouter)
...@@ -53,6 +53,13 @@ const routes = [ ...@@ -53,6 +53,13 @@ const routes = [
{path: '/folviteApply/grant', name: '叶酸申请发放', component: () => import('../views/indexComponent/folviteApply/components/folviteApplyGrant.vue')}, {path: '/folviteApply/grant', name: '叶酸申请发放', component: () => import('../views/indexComponent/folviteApply/components/folviteApplyGrant.vue')},
//供应商管理 //供应商管理
{path: '/supplyManage/add', name: '新增供应商', component: () => import('../views/indexComponent/supplyManage/components/addSupply.vue')}, {path: '/supplyManage/add', name: '新增供应商', component: () => import('../views/indexComponent/supplyManage/components/addSupply.vue')},
{
path: '/thirdPage',
component: () => import('../views/third/residentInfo.vue'),
children: [
{path: 'residentGrantInfo', name: '首页', component: () => import('../views/third/residentInfo.vue')},
],
},
] ]
const router = new VueRouter({ const router = new VueRouter({
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
<a-layout> <a-layout>
<a-layout-content class="layout_container" style="background: #fff"> <a-layout-content class="layout_container" style="background: #fff">
<div style="padding: 10px;"> <div style="padding: 10px;">
<a-tabs type="card" :tabBarGutter="10" v-if="systemType" v-model="$store.state.activeKeyInfo" @change="onChange"> <a-tabs type="card" :tabBarGutter="10" v-if="systemType" v-model="$store.state.activeKeyInfo"
@change="onChange">
<a-tab-pane v-for="(item, index) in menuList" :key="item.frontActionUrl"> <a-tab-pane v-for="(item, index) in menuList" :key="item.frontActionUrl">
<span slot="tab"> <span slot="tab">
<span>{{ item.name }}<span>(0)</span></span> <span>{{ item.name }}<span>(0)</span></span>
...@@ -24,98 +25,105 @@ ...@@ -24,98 +25,105 @@
</a-layout> </a-layout>
</template> </template>
<script> <script>
import {getCookie} from "./utils/common"; import {getCookie} from "./utils/common";
import {menuTest} from "./utils/testDate"; import {menuTest} from "./utils/testDate";
export default {
data() { export default {
return { data() {
// 菜单 return {
menuList:[], // 菜单
// 选中的菜单 menuList: [],
activeItem: [], // 选中的菜单
// tabs标签 activeItem: [],
tabs: [], // tabs标签
// 选中的tabs标签 tabs: [],
activeKey: '', // 选中的tabs标签
showChildren: false, activeKey: '',
menuTest, showChildren: false,
unitInfo:{}, menuTest,
systemType: sessionStorage.getItem("systemType") unitInfo: {},
} systemType: sessionStorage.getItem("systemType")
}, }
created() { },
//获取妇幼权限和登录基本信息 created() {
//document.cookie = 'bGNnd3lwdF9hdA=6a84c8f3-86b3-42dc-835c-95e8b26ce568;' //获取妇幼权限和登录基本信息
let cookieToken = getCookie('bGNnd3lwdF9hdA'); let cookieToken = "29cc399b-af98-4fbd-8984-ecbd97f125b7";
if (cookieToken) { if (process.env.NODE_ENV != "dev") {
window.sessionStorage.setItem('token', 'bearer' + ' ' + cookieToken); cookieToken = getCookie('bGNnd3lwdF9hdA');
let query=this.$route.query; }
let par = {menuId:query.menuId}; if (cookieToken) {
this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => { window.sessionStorage.setItem('token', 'bearer' + ' ' + cookieToken);
this.unitInfo = data.unitInfo; let query = this.$route.query;
window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo)); let par = {menuId: query.menuId};
window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList)); this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => {
window.sessionStorage.setItem('unitInfo', JSON.stringify(data.unitInfo)); this.unitInfo = data.unitInfo;
this.setInitMenuInfo() window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo));
this.showChildren = true window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList));
}) window.sessionStorage.setItem('unitInfo', JSON.stringify(data.unitInfo));
} else { this.setInitMenuInfo()
window.top.postMessage({messageType:"LOGOUT"}, '*')//给最顶层窗口发送token失效通知 this.showChildren = true
} })
} else {
window.top.postMessage({messageType: "LOGOUT"}, '*')//给最顶层窗口发送token失效通知
}
},
methods: {
setInitMenuInfo() {//设置默认菜单和菜单缓存
this.menuList = this.menuTest;
}, },
methods: { // 点击tabs标签
setInitMenuInfo() {//设置默认菜单和菜单缓存 onChange(activeKey) {
this.menuList = this.menuTest; this.activeKey = activeKey;
}, window.sessionStorage.setItem('activeKey', this.activeKey);
// 点击tabs标签 this.$store.commit('changeActKey', this.activeKey)
onChange(activeKey) { console.log(this.$store.state.tabsInfo);
this.activeKey = activeKey; this.menuList.forEach((item, i) => {
window.sessionStorage.setItem('activeKey', this.activeKey); console.log(item.frontActionUrl, item)
this.$store.commit('changeActKey', this.activeKey) if (item.frontActionUrl === activeKey) {
console.log( this.$store.state.tabsInfo); this.activeItem = [item.frontActionUrl];
this.menuList.forEach((item, i) => { window.sessionStorage.setItem('activeItem', this.activeItem);
console.log(item.frontActionUrl,item) this.$router.push(item.frontActionUrl);
if (item.frontActionUrl === activeKey) { }
this.activeItem = [item.frontActionUrl]; });
window.sessionStorage.setItem('activeItem', this.activeItem);
this.$router.push(item.frontActionUrl);
}
});
},
}, },
} },
}
</script> </script>
<style lang="less"> <style lang="less">
.index_body { .index_body {
.ant-tabs-bar { .ant-tabs-bar {
border-bottom: 1px solid rgba(255,77,128,.2)!important; border-bottom: 1px solid rgba(255, 77, 128, .2) !important;
} }
.ant-tabs-nav-scroll {
margin-left: 0px!important; .ant-tabs-nav-scroll {
} margin-left: 0px !important;
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-nav-container { }
height: 35px!important;
} .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-nav-container {
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab { height: 35px !important;
height: 35px!important; }
color: #F8F8FF!important;
line-height: 35px!important; .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab {
background: rgba(255,77,128, .5); height: 35px !important;
border-bottom: 0px solid #FF4D80; color: #F8F8FF !important;
border-top-left-radius: 10px; line-height: 35px !important;
border-top-right-radius: 10px; background: rgba(255, 77, 128, .5);
} border-bottom: 0px solid #FF4D80;
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active { border-top-left-radius: 10px;
height: 35px!important; border-top-right-radius: 10px;
color: #fff; }
background: #FF4D80;
border-color: #FF4D80; .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active {
border-bottom: 0px solid #FF4D80; height: 35px !important;
border-top-left-radius: 10px; color: #fff;
border-top-right-radius: 10px; background: #FF4D80;
} border-color: #FF4D80;
border-bottom: 0px solid #FF4D80;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
} }
}
</style> </style>
...@@ -90,21 +90,26 @@ const columns = [ ...@@ -90,21 +90,26 @@ const columns = [
// }, // },
{ {
title: '申领数量', title: '申领数量',
width: '100px', width: '120px',
dataIndex: 'provideNumber' dataIndex: 'provideNumber'
}, },
{ {
title: '联系电话', title: '联系电话',
dataIndex: 'telephone', dataIndex: 'telephone',
width: '180px' width: '120px'
}, },
{ {
title: '领取状态', title: '领取状态',
dataIndex: 'statusName', dataIndex: 'statusName',
width: '100px' width: '120px'
},
{
title: '申请日期',
dataIndex: 'created',
width: '120px'
}, },
{ {
title: '领取日期', title: '发放日期',
dataIndex: 'provideDate', dataIndex: 'provideDate',
width: '120px' width: '120px'
}, },
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="姓名" prop="womanName"> <a-form-model-item label="姓名" prop="womanName">
<a-input v-toInputNum="{num: 15}" @keyup.enter.native="nextFocus(1)" ref="input1" <a-input v-toInputNum="{num: 15}" @keyup.enter.native="nextFocus(1)" ref="input1"
placeholder="请输入姓名,最多可输入15个字" placeholder="请输入姓名,最多可输入15个字"
:disabled="disabled" :disabled="disabled"
v-model="formData.womanName"></a-input> v-model="formData.womanName"></a-input>
...@@ -28,7 +28,8 @@ ...@@ -28,7 +28,8 @@
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="证件类型" prop="womenCertificateType"> <a-form-model-item label="证件类型" prop="womenCertificateType">
<a-select v-model="formData.womenCertificateType" placeholder="请选择" @keyup.enter.native="nextFocus(2)" ref="input2" <a-select v-model="formData.womenCertificateType" placeholder="请选择"
@keyup.enter.native="nextFocus(2)" ref="input2"
:disabled="disabled" @change="changeWomenCardType"> :disabled="disabled" @change="changeWomenCardType">
<a-select-option v-for="item in certificateTypeList" <a-select-option v-for="item in certificateTypeList"
:key="item.enumValue" :value="item.enumValue" :key="item.enumValue" :value="item.enumValue"
...@@ -41,7 +42,8 @@ ...@@ -41,7 +42,8 @@
<a-col :span="12" v-if="formData.womenCertificateType!=3"> <a-col :span="12" v-if="formData.womenCertificateType!=3">
<a-form-model-item label="证件号码" prop="womenIdCard"> <a-form-model-item label="证件号码" prop="womenIdCard">
<a-input placeholder="请输入证件号码" @blur="womenIdCardChange" style="width: 100%" @keyup.enter.native="nextFocus(3)" ref="input3" <a-input placeholder="请输入证件号码" @blur="womenIdCardChange" style="width: 100%"
@keyup.enter.native="nextFocus(3)" ref="input3"
v-model="formData.womenIdCard" v-model="formData.womenIdCard"
:disabled="disabled"></a-input> :disabled="disabled"></a-input>
</a-form-model-item> </a-form-model-item>
...@@ -91,7 +93,7 @@ ...@@ -91,7 +93,7 @@
</div> </div>
<a-row :gutter="16" style="margin-left: 150px"> <a-row :gutter="16" style="margin-left: 150px">
<a-col :span="12"> <a-col :span="12">
<span style="font-weight: bold">符合以下情况的,请在□里打√:</span> <span style="font-weight: bold">符合以下情况的,请在□里打√:</span>
<a-form-model-item label="" prop="checkedList"> <a-form-model-item label="" prop="checkedList">
<a-checkbox-group style="width: 100%" v-model="checkedList" :options="plainOptions" <a-checkbox-group style="width: 100%" v-model="checkedList" :options="plainOptions"
@change="onChange"/> @change="onChange"/>
...@@ -111,14 +113,16 @@ ...@@ -111,14 +113,16 @@
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="联系电话" prop="telephone" :labelCol="{span: 3}" <a-form-model-item label="联系电话" prop="telephone" :labelCol="{span: 3}"
:wrapperCol="{span: 8}"> :wrapperCol="{span: 8}">
<a-input placeholder="请输入联系电话" v-model="formData.telephone" @keyup.enter.native="nextFocus(7)" ref="input7" <a-input placeholder="请输入联系电话" v-model="formData.telephone"
@keyup.enter.native="nextFocus(7)" ref="input7"
:disabled="disabled"></a-input> :disabled="disabled"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="现住地址" prop="presentCode" :labelCol="{span: 3}" <a-form-model-item label="现住地址" prop="presentCode" :labelCol="{span: 3}"
:wrapperCol="{span: 20}"> :wrapperCol="{span: 20}">
<all-area-cascader :disabled="disabled" @keyup.enter.native="nextFocus(8)" ref="input8" <all-area-cascader :disabled="disabled" @keyup.enter.native="nextFocus(8)"
ref="input8"
v-model="formData.presentCode"></all-area-cascader> v-model="formData.presentCode"></all-area-cascader>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
...@@ -257,7 +261,7 @@ export default { ...@@ -257,7 +261,7 @@ export default {
weight: null, weight: null,
height: null, height: null,
bmi: "", bmi: "",
womanName: undefined, womanName: "",
womenCertificateType: '1', womenCertificateType: '1',
womenIdCard: undefined, womenIdCard: undefined,
oncePregnant: '', oncePregnant: '',
...@@ -282,7 +286,7 @@ export default { ...@@ -282,7 +286,7 @@ export default {
disabled: false, disabled: false,
formRules: { formRules: {
womanName: [ womanName: [
{required: true, message: '请输入姓名'} {required: true, message: '请输入姓名',trigger: 'change'}
], ],
womenCertificateType: [ womenCertificateType: [
{required: true, message: '请选择证件类型'} {required: true, message: '请选择证件类型'}
...@@ -477,7 +481,7 @@ export default { ...@@ -477,7 +481,7 @@ export default {
signedMode: data.signedMode ? data.signedMode.toString() : "1", signedMode: data.signedMode ? data.signedMode.toString() : "1",
applySignUrl: data.applySignUrl, applySignUrl: data.applySignUrl,
parentDate: data.parentDate, parentDate: data.parentDate,
provideDate: moment(new Date()).format('yyyy-MM-DD'), provideDate: data.provideDate || moment(new Date()).format('yyyy-MM-DD'),
remarks: data.remarks, remarks: data.remarks,
provideDoctorId: this.userInfo.relationId, provideDoctorId: this.userInfo.relationId,
recommendEat: data.recommendEat, recommendEat: data.recommendEat,
...@@ -518,7 +522,7 @@ export default { ...@@ -518,7 +522,7 @@ export default {
signedMode: data.signedMode ? data.signedMode.toString() : "1", signedMode: data.signedMode ? data.signedMode.toString() : "1",
applySignUrl: data.applySignUrl, applySignUrl: data.applySignUrl,
parentDate: data.parentDate, parentDate: data.parentDate,
provideDate: moment(new Date()).format('yyyy-MM-DD'), provideDate: data.provideDate || moment(new Date()).format('yyyy-MM-DD'),
provideDoctorId: this.userInfo.relationId, provideDoctorId: this.userInfo.relationId,
provideRecordList: data.provideRecordList, provideRecordList: data.provideRecordList,
remarks: data.remarks, remarks: data.remarks,
...@@ -636,6 +640,8 @@ export default { ...@@ -636,6 +640,8 @@ export default {
questionList += x + ","; questionList += x + ",";
}) })
this.formData.question = questionList.substring(0, questionList.length - 1); this.formData.question = questionList.substring(0, questionList.length - 1);
} else {
this.formData.question = "";
} }
this.spinning = true; this.spinning = true;
let params = {}; let params = {};
...@@ -767,20 +773,20 @@ export default { ...@@ -767,20 +773,20 @@ export default {
<style scoped lang="less"> <style scoped lang="less">
.title_img { .title_img {
display: inline-block; display: inline-block;
width: 24px; width: 24px;
height: 24px; height: 24px;
margin-top: -5px; margin-top: -5px;
margin-left: 10px; margin-left: 10px;
} }
.title_font { .title_font {
font-family: PingFang SC; font-family: PingFang SC;
color: #595959; color: #595959;
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
line-height: 22px; line-height: 22px;
margin: 16px 0px 16px 18px; margin: 16px 0px 16px 18px;
} }
</style> </style>
...@@ -788,44 +794,44 @@ export default { ...@@ -788,44 +794,44 @@ export default {
<style lang="less"> <style lang="less">
.book { .book {
.ant-card-head-title { .ant-card-head-title {
padding: 0px !important; padding: 0px !important;
} }
} }
.sign { .sign {
position: absolute; position: absolute;
background: #FFF1F0; background: #FFF1F0;
border-radius: 0px 0px 24px 0px; border-radius: 0px 0px 24px 0px;
width: 60px; width: 60px;
height: 40px; height: 40px;
padding: 0px 16px; padding: 0px 16px;
} }
.opt { .opt {
float: right; float: right;
margin-top: 10px; margin-top: 10px;
} }
.table_input { .table_input {
.ant-table-tbody > tr > td { .ant-table-tbody > tr > td {
padding: 5px !important; padding: 5px !important;
overflow-wrap: break-word; overflow-wrap: break-word;
} }
} }
.modal_table { .modal_table {
.ant-form-item { .ant-form-item {
margin-bottom: 0px !important; margin-bottom: 0px !important;
} }
} }
.ant-checkbox-group-item { .ant-checkbox-group-item {
display: block; display: block;
margin-top: 20px; margin-top: 20px;
} }
.ant-checkbox-group { .ant-checkbox-group {
width: 100%; width: 100%;
} }
</style> </style>
...@@ -175,6 +175,8 @@ export default { ...@@ -175,6 +175,8 @@ export default {
this.checkedList.push(this.plainOptions["key"+x]); this.checkedList.push(this.plainOptions["key"+x]);
}) })
} }
}).catch(res=>{
this.spinning = false;
}) })
}, },
goBack() { goBack() {
......
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