Compare commits
5 Commits
12ca53888a
...
01597f0386
| Author | SHA1 | Date |
|---|---|---|
|
|
01597f0386 | |
|
|
88837cd208 | |
|
|
7fc04a16b1 | |
|
|
f03ed3ab1b | |
|
|
2f3d22b5db |
|
|
@ -79,6 +79,14 @@ const index = {
|
||||||
data,
|
data,
|
||||||
header
|
header
|
||||||
)
|
)
|
||||||
|
},
|
||||||
|
async fetchCompanyName (data = {} , header = {}){
|
||||||
|
return await Http.get(
|
||||||
|
HttpConfig.systemPath,
|
||||||
|
HttpConfig.serviceUrl.index.fetchCompanyName,
|
||||||
|
data,
|
||||||
|
header
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ class HttpConfig {
|
||||||
// baseUrl = "http://112.29.103.165:21626"
|
// baseUrl = "http://112.29.103.165:21626"
|
||||||
// baseUrl = "http://172.20.10.3:8080"
|
// baseUrl = "http://172.20.10.3:8080"
|
||||||
// baseUrl = "http://10.40.92.13:8080"
|
// baseUrl = "http://10.40.92.13:8080"
|
||||||
// baseUrl = "http://10.40.92.74:8080"
|
// baseUrl = "http://10.40.92.94:8080"
|
||||||
baseUrl = "http://10.40.92.8:8080"
|
baseUrl = "http://10.40.92.8:8080"
|
||||||
// baseUrl = "https://z.csgmall.com.cn/gl"
|
// baseUrl = "https://z.csgmall.com.cn/gl"
|
||||||
// #endif
|
// #endif
|
||||||
|
|
@ -36,7 +36,8 @@ class HttpConfig {
|
||||||
singleNotice: '/sysNotice/getById', // 查看单个公告
|
singleNotice: '/sysNotice/getById', // 查看单个公告
|
||||||
waitDo: '/app/getToDoList', // 获取待办事项
|
waitDo: '/app/getToDoList', // 获取待办事项
|
||||||
keyData: '/app/getCriticalData', // 获取关键数据
|
keyData: '/app/getCriticalData', // 获取关键数据
|
||||||
getUserInfo: '/system/user/getInfo', // 获取用户信息
|
getUserInfo: '/user/getInfo', // 获取用户信息
|
||||||
|
fetchCompanyName: '/dept/getCompanyByAncestors', // 获取公司名称
|
||||||
},
|
},
|
||||||
fetchMaterial: {
|
fetchMaterial: {
|
||||||
fetchMaterialList: '/type/selectMaTypeListByLevelIndex', // 获取设备列表
|
fetchMaterialList: '/type/selectMaTypeListByLevelIndex', // 获取设备列表
|
||||||
|
|
|
||||||
|
|
@ -256,6 +256,15 @@ import { authPath, basePath, publicPath, systemPath } from '../../public';
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
})
|
})
|
||||||
|
// 获取公司名称
|
||||||
|
that.$api.index.fetchCompanyName({
|
||||||
|
ancestors: uni.getStorageSync('userInfo').sysUser.dept.ancestors
|
||||||
|
}).then(res => {
|
||||||
|
console.log(res);
|
||||||
|
if (res.data.code == 200) uni.setStorageSync('companyName', res.data.msg)
|
||||||
|
}).catch(err => {
|
||||||
|
console.log(err);
|
||||||
|
})
|
||||||
},
|
},
|
||||||
onNavigationBarButtonTap(e) {
|
onNavigationBarButtonTap(e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="auth">
|
<view class="auth">
|
||||||
<h4>宁夏送变电工程有限公司</h4>
|
<h4>{{ companyName }}</h4>
|
||||||
<h4 class="authed">
|
<h4 class="authed">
|
||||||
<uni-icons style="margin-right: 8rpx; color: #F19600;" type="checkbox-filled"></uni-icons>
|
<uni-icons style="margin-right: 8rpx; color: #F19600;" type="checkbox-filled"></uni-icons>
|
||||||
<span>已认证</span>
|
<span>已认证</span>
|
||||||
|
|
@ -48,6 +48,7 @@ import { authPath } from '../../public'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
companyName: uni.getStorageSync('companyName'),
|
||||||
username: uni.getStorageSync('userInfo').username,
|
username: uni.getStorageSync('userInfo').username,
|
||||||
phone: uni.getStorageSync('userInfo').sysUser.phonenumber
|
phone: uni.getStorageSync('userInfo').sysUser.phonenumber
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<view class="upper-search">
|
<view class="upper-search">
|
||||||
<h4>宁夏送变电工程有限公司</h4>
|
<h4>{{ companyName }}</h4>
|
||||||
<uni-easyinput prefixIcon="search" v-model="iptVal" placeholder="搜索" @iconClick="iconClick"></uni-easyinput>
|
<uni-easyinput prefixIcon="search" v-model="iptVal" placeholder="搜索" @iconClick="iconClick"></uni-easyinput>
|
||||||
</view>
|
</view>
|
||||||
<h4 class="tit">业务办理</h4>
|
<h4 class="tit">业务办理</h4>
|
||||||
<view class="secs">
|
<view class="secs">
|
||||||
<!-- <view @click="jumpUrl('fetchMaterial')">
|
<view @click="jumpUrl('fetchMaterial')">
|
||||||
<image src="/static/fetchMaterial.png" mode=""></image>
|
<image src="/static/fetchMaterial.png" mode=""></image>
|
||||||
<span>领料申请</span>
|
<span>领料申请</span>
|
||||||
</view> -->
|
</view>
|
||||||
<view @click="jumpUrl('exitMaterial')">
|
<view @click="jumpUrl('exitMaterial')">
|
||||||
<image src="/static/exitMaterial.png" mode=""></image>
|
<image src="/static/exitMaterial.png" mode=""></image>
|
||||||
<span>退料申请</span>
|
<span>退料申请</span>
|
||||||
|
|
@ -44,6 +44,7 @@
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
companyName: uni.getStorageSync('companyName'),
|
||||||
iptVal: '',
|
iptVal: '',
|
||||||
benchList: [
|
benchList: [
|
||||||
{
|
{
|
||||||
|
|
@ -126,7 +127,7 @@
|
||||||
toast () {
|
toast () {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: '敬请!'
|
title: '敬请期待!'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue