Compare commits

...

5 Commits

Author SHA1 Message Date
FrancisHu 01597f0386 4.7新增获取公司接口 2024-04-07 15:52:22 +08:00
FrancisHu 88837cd208 4.7merge test3 2024-04-07 13:48:07 +08:00
FrancisHu 7fc04a16b1 4.7merge test2 2024-04-07 13:40:48 +08:00
FrancisHu f03ed3ab1b 4.7merge test 2024-04-07 13:35:50 +08:00
FrancisHu 2f3d22b5db 4.7注释领料申请 2024-04-07 13:34:32 +08:00
5 changed files with 27 additions and 7 deletions

View File

@ -79,6 +79,14 @@ const index = {
data,
header
)
},
async fetchCompanyName (data = {} , header = {}){
return await Http.get(
HttpConfig.systemPath,
HttpConfig.serviceUrl.index.fetchCompanyName,
data,
header
)
}
}

View File

@ -8,7 +8,7 @@ class HttpConfig {
// baseUrl = "http://112.29.103.165:21626"
// baseUrl = "http://172.20.10.3: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 = "https://z.csgmall.com.cn/gl"
// #endif
@ -36,7 +36,8 @@ class HttpConfig {
singleNotice: '/sysNotice/getById', // 查看单个公告
waitDo: '/app/getToDoList', // 获取待办事项
keyData: '/app/getCriticalData', // 获取关键数据
getUserInfo: '/system/user/getInfo', // 获取用户信息
getUserInfo: '/user/getInfo', // 获取用户信息
fetchCompanyName: '/dept/getCompanyByAncestors', // 获取公司名称
},
fetchMaterial: {
fetchMaterialList: '/type/selectMaTypeListByLevelIndex', // 获取设备列表

View File

@ -256,6 +256,15 @@ import { authPath, basePath, publicPath, systemPath } from '../../public';
}).catch(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) {
console.log(e);

View File

@ -11,7 +11,7 @@
</view>
</view>
<view class="auth">
<h4>宁夏送变电工程有限公司</h4>
<h4>{{ companyName }}</h4>
<h4 class="authed">
<uni-icons style="margin-right: 8rpx; color: #F19600;" type="checkbox-filled"></uni-icons>
<span>已认证</span>
@ -48,6 +48,7 @@ import { authPath } from '../../public'
export default {
data() {
return {
companyName: uni.getStorageSync('companyName'),
username: uni.getStorageSync('userInfo').username,
phone: uni.getStorageSync('userInfo').sysUser.phonenumber
}

View File

@ -1,15 +1,15 @@
<template>
<view>
<view class="upper-search">
<h4>宁夏送变电工程有限公司</h4>
<h4>{{ companyName }}</h4>
<uni-easyinput prefixIcon="search" v-model="iptVal" placeholder="搜索" @iconClick="iconClick"></uni-easyinput>
</view>
<h4 class="tit">业务办理</h4>
<view class="secs">
<!-- <view @click="jumpUrl('fetchMaterial')">
<view @click="jumpUrl('fetchMaterial')">
<image src="/static/fetchMaterial.png" mode=""></image>
<span>领料申请</span>
</view> -->
</view>
<view @click="jumpUrl('exitMaterial')">
<image src="/static/exitMaterial.png" mode=""></image>
<span>退料申请</span>
@ -44,6 +44,7 @@
export default {
data() {
return {
companyName: uni.getStorageSync('companyName'),
iptVal: '',
benchList: [
{
@ -126,7 +127,7 @@
toast () {
uni.showToast({
icon: 'none',
title: '敬请'
title: '敬请期待'
})
}
}