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