|
@@ -30,7 +30,7 @@
|
|
<view v-if="showQuick" class="business-btn uni-row" @click="handleFastToProductionPlan">
|
|
<view v-if="showQuick" class="business-btn uni-row" @click="handleFastToProductionPlan">
|
|
<text class="label">快速报工</text>
|
|
<text class="label">快速报工</text>
|
|
</view>
|
|
</view>
|
|
- <view class="business-btn uni-row" @click="handleToTakeStock">
|
|
|
|
|
|
+ <view class="business-btn uni-row" v-if="showTakeStock" @click="handleToTakeStock">
|
|
<text class="label">盘点</text>
|
|
<text class="label">盘点</text>
|
|
</view>
|
|
</view>
|
|
<view class="business-btn uni-row" v-if="showOther && !showSizing" @click="handleToProductionPlan">
|
|
<view class="business-btn uni-row" v-if="showOther && !showSizing" @click="handleToProductionPlan">
|
|
@@ -54,21 +54,24 @@
|
|
<view class="business-btn uni-row" v-if="showOutsourcedInspector" @click="handleToOutsourcedInspection">
|
|
<view class="business-btn uni-row" v-if="showOutsourcedInspector" @click="handleToOutsourcedInspection">
|
|
<text class="label">外协检查</text>
|
|
<text class="label">外协检查</text>
|
|
</view>
|
|
</view>
|
|
- <view class="business-btn uni-row" v-if="showInspector" @click="handleToDeleveryInspection">
|
|
|
|
|
|
+ <view class="business-btn uni-row" v-if="showDeliveryInspection" @click="handleToDeliveryInspection">
|
|
<text class="label">交检</text>
|
|
<text class="label">交检</text>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="business-btn uni-row" v-if="showInspector" @click="handleToFirstInspection">
|
|
<!-- <view class="business-btn uni-row" v-if="showInspector" @click="handleToFirstInspection">
|
|
<text class="label">首件检</text>
|
|
<text class="label">首件检</text>
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
<view class="business-btn uni-row" v-if="showOnSiteInspector" @click="handleToOnSiteInspection">
|
|
<view class="business-btn uni-row" v-if="showOnSiteInspector" @click="handleToOnSiteInspection">
|
|
<text class="label">巡检</text>
|
|
<text class="label">巡检</text>
|
|
</view>
|
|
</view>
|
|
- <view class="business-btn uni-row" v-if="showInspector" @click="handleToInstrumentInspection">
|
|
|
|
|
|
+<!-- <view class="business-btn uni-row" v-if="showInspector" @click="handleToInstrumentInspection">
|
|
<text class="label">仪器室</text>
|
|
<text class="label">仪器室</text>
|
|
</view>
|
|
</view>
|
|
<view class="business-btn uni-row" v-if="showInspector" @click="handleToFactoryInspection">
|
|
<view class="business-btn uni-row" v-if="showInspector" @click="handleToFactoryInspection">
|
|
<text class="label">出厂检</text>
|
|
<text class="label">出厂检</text>
|
|
</view> -->
|
|
</view> -->
|
|
|
|
+ <view class="business-btn uni-row" v-if="showAdjust" @click="handleToAdjust">
|
|
|
|
+ <text class="label">交检审核</text>
|
|
|
|
+ </view>
|
|
<!-- v-hasRoles="['porter']" 可通过v-Roles自定义指令进行显隐 -->
|
|
<!-- v-hasRoles="['porter']" 可通过v-Roles自定义指令进行显隐 -->
|
|
<view class="business-btn uni-row" v-if="showTurn" @click="handleToHandlingList">
|
|
<view class="business-btn uni-row" v-if="showTurn" @click="handleToHandlingList">
|
|
<text class="label">周转</text>
|
|
<text class="label">周转</text>
|
|
@@ -128,10 +131,13 @@
|
|
const showOther = ref(false)
|
|
const showOther = ref(false)
|
|
const showInspector = ref(false);
|
|
const showInspector = ref(false);
|
|
const showOnSiteInspector = ref(false)
|
|
const showOnSiteInspector = ref(false)
|
|
|
|
+ const showAdjust = ref(false)
|
|
const showQuick = ref(false)
|
|
const showQuick = ref(false)
|
|
const showSizing = ref(false)
|
|
const showSizing = ref(false)
|
|
|
|
+ const showTakeStock = ref(false)
|
|
const showInnerTurnover = ref(false)
|
|
const showInnerTurnover = ref(false)
|
|
const showOutsourcedInspector = ref(false)
|
|
const showOutsourcedInspector = ref(false)
|
|
|
|
+ const showDeliveryInspection = ref(false)
|
|
const showOutSourceList = ref(false)
|
|
const showOutSourceList = ref(false)
|
|
const showChangeTurnover = ref(false)
|
|
const showChangeTurnover = ref(false)
|
|
|
|
|
|
@@ -156,11 +162,30 @@
|
|
showTurn.value = false;
|
|
showTurn.value = false;
|
|
showOther.value = true;
|
|
showOther.value = true;
|
|
}
|
|
}
|
|
|
|
+ //盘点状态
|
|
|
|
+ if(store.userInfo.takeStock) {
|
|
|
|
+ showTakeStock.value = true
|
|
|
|
+ }else{
|
|
|
|
+ showTakeStock.value = false
|
|
|
|
+ }
|
|
|
|
+ //巡检
|
|
if(store.userInfo.roles.some(item =>item.roleKey == 'patrolInspection')) {
|
|
if(store.userInfo.roles.some(item =>item.roleKey == 'patrolInspection')) {
|
|
showOnSiteInspector.value = true
|
|
showOnSiteInspector.value = true
|
|
}else{
|
|
}else{
|
|
showOnSiteInspector.value = false
|
|
showOnSiteInspector.value = false
|
|
}
|
|
}
|
|
|
|
+ //交检
|
|
|
|
+ if(store.userInfo.roles.some(item =>item.roleKey == 'deliveryInspection')) {
|
|
|
|
+ showDeliveryInspection.value = true
|
|
|
|
+ }else{
|
|
|
|
+ showDeliveryInspection.value = false
|
|
|
|
+ }
|
|
|
|
+ //交检审核
|
|
|
|
+ if(store.userInfo.roles.some(item =>item.roleKey == 'adjuster')) {
|
|
|
|
+ showAdjust.value = true
|
|
|
|
+ }else{
|
|
|
|
+ showAdjust.value = false
|
|
|
|
+ }
|
|
if (store.userInfo.permissions.some(item => item === 'business:outsource:checkBox') || store.userInfo
|
|
if (store.userInfo.permissions.some(item => item === 'business:outsource:checkBox') || store.userInfo
|
|
.permissions.some(item => item === "*:*:*")) {
|
|
.permissions.some(item => item === "*:*:*")) {
|
|
showOutSourceList.value = true;
|
|
showOutSourceList.value = true;
|
|
@@ -305,6 +330,19 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //交检审核
|
|
|
|
+ function handleToAdjust() {
|
|
|
|
+ if (curSelectedDeptId.value) {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/deliveryExamine/index'
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon: "none",
|
|
|
|
+ title: "请选择工段"
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
// 分选
|
|
// 分选
|
|
function handleToSorting() {
|
|
function handleToSorting() {
|
|
@@ -369,10 +407,10 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//交检
|
|
//交检
|
|
- function handleToDeleveryInspection() {
|
|
|
|
|
|
+ function handleToDeliveryInspection() {
|
|
if (curSelectedDeptId.value) {
|
|
if (curSelectedDeptId.value) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: '/pages/switchDept/index'
|
|
|
|
|
|
+ url: '/pages/deliveryInspection/index'
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
uni.showToast({
|
|
uni.showToast({
|