|
@@ -5,10 +5,10 @@
|
|
</view>
|
|
</view>
|
|
<view class="title"><text class="label">德迈仕数字生产线管理平台</text></view>
|
|
<view class="title"><text class="label">德迈仕数字生产线管理平台</text></view>
|
|
<view class="user-info-container uni-row">
|
|
<view class="user-info-container uni-row">
|
|
- <view class="icon"><text class="label">张</text></view>
|
|
|
|
|
|
+ <view class="icon"><text class="label">{{userName.charAt(0)}}</text></view>
|
|
<view class="user-info uni-column">
|
|
<view class="user-info uni-column">
|
|
- <view class="nickname"><text class="label">张三 ID 15521</text> </view>
|
|
|
|
- <view class="process"><text class="label">当前工段:热处理</text></view>
|
|
|
|
|
|
+ <view class="nickname uni-row"><text class="label">{{userName}}</text><text class="label" style="margin-left: 12rpx;">ID</text><text class="label" style="margin-left: 8rpx;">{{userId}}</text> </view>
|
|
|
|
+ <view class="process uni-row"><text class="label">当前工段:</text><text class="label">{{deptName}}</text></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="business-btn uni-row" @click="handleToRecerptSfprod"><text class="label">半成品接收</text></view>
|
|
<view class="business-btn uni-row" @click="handleToRecerptSfprod"><text class="label">半成品接收</text></view>
|
|
@@ -24,9 +24,21 @@
|
|
<script setup>
|
|
<script setup>
|
|
import { ref } from 'vue'
|
|
import { ref } from 'vue'
|
|
import { getSubPlanDetailsList } from '../../api/business/subPlanDetails'
|
|
import { getSubPlanDetailsList } from '../../api/business/subPlanDetails'
|
|
|
|
+ import { getDeptName } from '@/api/login/index.js'
|
|
|
|
+ import {
|
|
|
|
+ onLoad,
|
|
|
|
+ onReady
|
|
|
|
+ } from '@dcloudio/uni-app'
|
|
|
|
|
|
|
|
+ onLoad((options) => {
|
|
|
|
+ userName.value = options.userName;
|
|
|
|
+ userId.value = options.userId;
|
|
|
|
+ getDepartmentName();
|
|
|
|
+ })
|
|
|
|
+ const deptName = ref('')
|
|
const name = ref('')
|
|
const name = ref('')
|
|
-
|
|
|
|
|
|
+ const userName = ref('')
|
|
|
|
+ const userId = ref(null)
|
|
const handleToRecerptSfprod = () => {
|
|
const handleToRecerptSfprod = () => {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: "/pages/recerptSfprod/index",
|
|
url: "/pages/recerptSfprod/index",
|
|
@@ -50,6 +62,16 @@
|
|
url:"/pages/index/index",
|
|
url:"/pages/index/index",
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ function getDepartmentName() {
|
|
|
|
+ getDeptName(userId.value).then((res) => {
|
|
|
|
+ if(res.code == 200){
|
|
|
|
+ deptName.value = res.msg;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|