|
@@ -14,6 +14,17 @@
|
|
<view class="process uni-row"><text class="label">当前工段:</text><text class="label">{{ deptName }}</text>
|
|
<view class="process uni-row"><text class="label">当前工段:</text><text class="label">{{ deptName }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="user-info uni-column" style="margin-left: 40rpx; width: 35%;">
|
|
|
|
+ <view class="nickname">
|
|
|
|
+ <text class="label">当前厂别</text></view>
|
|
|
|
+ <view class="uni-row info">
|
|
|
|
+ <select id="incomingInfo" class="uni-input data-select" v-model="userInfo.tenantId" @change="handleTenantChange" >
|
|
|
|
+ <option class="data-select-options" v-for="(item,index) in tenantList" :value="item.id" >{{item.orgName}} </option>
|
|
|
|
+ </select>
|
|
|
|
+ <!-- <input id="HeatNo" class="uni-input" v-model="basicInfo.heatNo" placeholder="请填写" /> -->
|
|
|
|
+ <!-- <text id="HeatNo" class="uni-input">{{basicInfo.heatNo}}</text> -->
|
|
|
|
+ </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>
|
|
<view class="business-btn uni-row" @click="handleToProductionPlan"><text class="label">报工</text></view>
|
|
<view class="business-btn uni-row" @click="handleToProductionPlan"><text class="label">报工</text></view>
|
|
@@ -38,6 +49,7 @@
|
|
getSubPlanDetailsList
|
|
getSubPlanDetailsList
|
|
} from '../../api/business/subPlanDetails'
|
|
} from '../../api/business/subPlanDetails'
|
|
import {
|
|
import {
|
|
|
|
+ getTenantList,
|
|
getDeptName
|
|
getDeptName
|
|
} from '@/api/login/index.js'
|
|
} from '@/api/login/index.js'
|
|
import { store } from '@/store/index.js'
|
|
import { store } from '@/store/index.js'
|
|
@@ -48,13 +60,15 @@
|
|
const userName = ref('')
|
|
const userName = ref('')
|
|
const userId = ref(null)
|
|
const userId = ref(null)
|
|
const userInfo = ref({})
|
|
const userInfo = ref({})
|
|
|
|
+ const tenantList = ref([])
|
|
|
|
|
|
- onLoad((options) => {
|
|
|
|
|
|
+ onLoad(() => {
|
|
userInfo.value = store.userInfo || {
|
|
userInfo.value = store.userInfo || {
|
|
nickName: ""
|
|
nickName: ""
|
|
};
|
|
};
|
|
- console.log(userInfo.value)
|
|
|
|
|
|
+ store.tenantId = userInfo.value.tenantId
|
|
getDepartmentName()
|
|
getDepartmentName()
|
|
|
|
+ getTenant()
|
|
})
|
|
})
|
|
|
|
|
|
const handleToRecerptSfprod = () => {
|
|
const handleToRecerptSfprod = () => {
|
|
@@ -91,6 +105,20 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ function getTenant() {
|
|
|
|
+ getTenantList().then((res) => {
|
|
|
|
+ if(res.code == 200) {
|
|
|
|
+ tenantList.value = res.rows
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function handleTenantChange() {
|
|
|
|
+ store.tenantId = userInfo.value.tenantId
|
|
|
|
+ console.log(store.tenantId)
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
@@ -148,6 +176,17 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .data-select {
|
|
|
|
+ flex: 3;
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 50rpx;
|
|
|
|
+ border-radius: 18rpx;
|
|
|
|
+ background-color: #FFF;
|
|
|
|
+
|
|
|
|
+ .data-select-options {
|
|
|
|
+ width: 200rpx;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
.business-btn {
|
|
.business-btn {
|