Compare commits

..

No commits in common. "01597f0386907e4bd7f9355cb92404f148de1711" and "12ca53888a48ff8c4d2576b72126102851b5cf72" have entirely different histories.

5 changed files with 7 additions and 27 deletions

View File

@ -79,14 +79,6 @@ const index = {
data, data,
header 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://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.94:8080" // baseUrl = "http://10.40.92.74: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,8 +36,7 @@ class HttpConfig {
singleNotice: '/sysNotice/getById', // 查看单个公告 singleNotice: '/sysNotice/getById', // 查看单个公告
waitDo: '/app/getToDoList', // 获取待办事项 waitDo: '/app/getToDoList', // 获取待办事项
keyData: '/app/getCriticalData', // 获取关键数据 keyData: '/app/getCriticalData', // 获取关键数据
getUserInfo: '/user/getInfo', // 获取用户信息 getUserInfo: '/system/user/getInfo', // 获取用户信息
fetchCompanyName: '/dept/getCompanyByAncestors', // 获取公司名称
}, },
fetchMaterial: { fetchMaterial: {
fetchMaterialList: '/type/selectMaTypeListByLevelIndex', // 获取设备列表 fetchMaterialList: '/type/selectMaTypeListByLevelIndex', // 获取设备列表

View File

@ -256,15 +256,6 @@ 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);

View File

@ -11,7 +11,7 @@
</view> </view>
</view> </view>
<view class="auth"> <view class="auth">
<h4>{{ companyName }}</h4> <h4>宁夏送变电工程有限公司</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,7 +48,6 @@ 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
} }

View File

@ -1,15 +1,15 @@
<template> <template>
<view> <view>
<view class="upper-search"> <view class="upper-search">
<h4>{{ companyName }}</h4> <h4>宁夏送变电工程有限公司</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,7 +44,6 @@
export default { export default {
data() { data() {
return { return {
companyName: uni.getStorageSync('companyName'),
iptVal: '', iptVal: '',
benchList: [ benchList: [
{ {
@ -127,7 +126,7 @@
toast () { toast () {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '敬请期待' title: '敬请'
}) })
} }
} }