Browse Source

MES——> PDA报工质检按钮是否

master
gaojs 6 months ago
parent
commit
86b785a72a
  1. 60
      src/pages/mes/workScheduling/workSchedulingDetail.vue

60
src/pages/mes/workScheduling/workSchedulingDetail.vue

@ -1,77 +1,78 @@
<template>
<!-- 详情 -->
<view class="detail-container">
<view class="info">
<view class="item" v-for="(item, index) in list" :key="index" >
<view class="info">
<view class="title">
<view>生产工序任务明细</view>
</view>
<view class="dec">
<view class="dec-item">
<view>工单号</view>
<view>{{ data.schedulingCode }}</view>
<view>{{ item.schedulingCode }}</view>
</view>
<view class="dec-item">
<view>状态</view>
<view>{{ data.status }}</view>
<view>{{ item.status }}</view>
</view>
<view class="dec-item">
<view>工序编号</view>
<view>{{ data.nodeCode }}</view>
<view>{{ item.nodeCode }}</view>
</view>
<view class="dec-item">
<view>工位验证编码组</view>
<view>{{ data.workstationValidate }}</view>
<view>{{ item.workstationValidate }}</view>
</view>
<view class="dec-item">
<view>设备验证编码组</view>
<view>{{ data.deviceValidate }}</view>
<view>{{ item.deviceValidate }}</view>
</view>
<view class="dec-item">
<view>人员验证组</view>
<view>{{ data.personValidate }}</view>
<view>{{ item.personValidate }}</view>
</view>
<view class="dec-item">
<view>物料验证组</view>
<view>{{ data.materialValidate }}</view>
<view>{{ item.materialValidate }}</view>
</view>
<view class="dec-item">
<view>计划数量</view>
<view>{{ data.planCount }}</view>
<view>{{ item.planCount }}</view>
</view>
<view class="dec-item">
<view>报工人编号</view>
<view>{{ data.reportPerson }}</view>
<view>{{ item.reportPerson }}</view>
</view>
<view class="dec-item">
<view>领取人工号</view>
<view>{{ data.receivePerson }}</view>
<view>{{ item.receivePerson }}</view>
</view>
<view class="dec-item">
<view>报工数量</view>
<view>{{ data.reportCount }}</view>
<view>{{ item.reportCount }}</view>
</view>
<view class="dec-item">
<view>报工类型</view>
<view>{{ data.reportType }}</view>
<view>{{ item.reportType }}</view>
</view>
<view class="dec-item">
<view>合格数量</view>
<view>{{ data.qualifiedCount }}</view>
<view>{{ item.qualifiedCount }}</view>
</view>
<view class="dec-item">
<view>不合格数量</view>
<view>{{ data.unqualifiedCount }}</view>
<view>{{ item.unqualifiedCount }}</view>
</view><view class="dec-item">
<view>领取工位</view>
<view>{{ data.receiveWorkstation }}</view>
<view>{{ item.receiveWorkstation }}</view>
</view>
<view class="dec-item">
<view>工作设备编码</view>
<view>{{ data.receiveDevice }}</view>
<view>{{ item.receiveDevice }}</view>
</view>
<view class="dec-item">
<view>报工质检状态</view>
<view>{{ data.qaStatus }}</view>
<view>{{ item.qaStatus }}</view>
</view>
<!-- </view><view class="dec-item">
<view>紧前工序编码</view>
@ -83,16 +84,16 @@
</view> -->
<view class="dec-item">
<view>创建时间</view>
<view>{{ `${$time.formatDate(data.createTime)}` }}</view>
<view>{{ `${$time.formatDate(item.createTime)}` }}</view>
</view>
</view>
<view v-if="data.qaStatus!=1" >
<u-button type="primary" @click="openQualityInspect(data)">报工质检</u-button>
<view>
<u-button type="primary" v-if="(item.qaStatus !=1 && (item.status == 1 || item.status == 3))" @click="openQualityInspect(item)">报工质检</u-button>
<u-button type="primary" v-if="item.qaStatus==1" @click="openQualityInspect(item)">报工</u-button>
</view>
<view v-if="data.qaStatus==1" >
<u-button type="primary" @click="openQualityInspect(data)">报工</u-button>
</view>
</view>
</view>
</view>
<view style="height: constant(safe-area-inset-bottom); height: env(safe-area-inset-bottom);"></view>
</view>
</template>
@ -120,7 +121,6 @@ const list = ref([])
const current = ref(0)
const schedulingId = ref('')
const params = ref({
schedulingCode: '',
nodeCode: ''
@ -132,10 +132,10 @@ function getWorkSchedulingDetail() {
proxy.$modal.loading('加载中')
workSchedulingListApi.getWorkSchedulingDetail(params.value).then((res) => {
proxy.$modal.closeLoading()
data.value = res.data
// if (res.data.length > 0) {
// list.value = list.value.concat(res.data)
// }
if (res.data.length > 0) {
list.value = list.value.concat(res.data)
}
}).catch(() => {
proxy.$modal.closeLoading()
})

Loading…
Cancel
Save