|
|
@ -1,64 +1,70 @@ |
|
|
|
<template> |
|
|
|
<view class="page-wraper"> |
|
|
|
<view class="page-header"> |
|
|
|
<view class="page-header-box"> |
|
|
|
<view class="header-view"> |
|
|
|
<view class="header_job_top"> |
|
|
|
<job-top :dataContent="jobContent"></job-top> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="page-main"> |
|
|
|
<scroll-view scroll-y="true" class="page-main-scroll"> |
|
|
|
<view class="detail-list u-p-t-20" v-for="(item, index) in detailSource" :key="item.id"> |
|
|
|
<view class="cen_card" style="padding: 5rpx"> |
|
|
|
<view class="cell_box uni-flex uni-row u-p-t-20"> |
|
|
|
<view class="cell_info"> |
|
|
|
<view class="text_lightblue">车间</view> |
|
|
|
<view> |
|
|
|
{{ jobContent.workShopCode }} |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="cen_card" style="padding: 5rpx;"> |
|
|
|
<view class="cell_box uni-flex uni-row"> |
|
|
|
<view class="cell_info"> |
|
|
|
<view class="text_lightblue">车间</view> |
|
|
|
<view> |
|
|
|
{{jobContent.workShopCode}} |
|
|
|
</view> |
|
|
|
<view class="cell_info"> |
|
|
|
<view class="text_lightblue">生产线</view> |
|
|
|
<view> |
|
|
|
{{ item.subList[0].productionLineCode }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="cell_info"> |
|
|
|
<view class="text_lightblue">生产线</view> |
|
|
|
<view> |
|
|
|
{{productionLineCode}} |
|
|
|
</view> |
|
|
|
<view class="cell_info"> |
|
|
|
<view class="text_lightblue">班组</view> |
|
|
|
<view> |
|
|
|
{{ jobContent.team }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="cell_info"> |
|
|
|
<view class="text_lightblue">班组</view> |
|
|
|
<view> |
|
|
|
{{jobContent.team}} |
|
|
|
</view> |
|
|
|
<view class="cell_info"> |
|
|
|
<view class="text_lightblue">班次</view> |
|
|
|
<view> |
|
|
|
{{ jobContent.shift }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="cell_info"> |
|
|
|
<view class="text_lightblue">班次</view> |
|
|
|
<view> |
|
|
|
{{jobContent.shift}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="page-main"> |
|
|
|
<scroll-view scroll-y="true" class="page-main-scroll"> |
|
|
|
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> |
|
|
|
<view class=""> |
|
|
|
<com-product-detail-card :dataContent="item" :settingParam="jobContent" :isShowLocation="false" @remove="updateData" @updateData="updateData" :locationTypeList="toLocationTypeList"> </com-product-detail-card> |
|
|
|
<com-product-detail-card :dataContent="item" :settingParam="jobContent" :isShowLocation="false" |
|
|
|
@remove="updateData" @updateData="updateData" :locationTypeList='toLocationTypeList'> |
|
|
|
</com-product-detail-card> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="page-footer"> |
|
|
|
<view class="uni-flex u-col-center space-between padding_10" style="background-color: ghostwhite; width: 100%"> |
|
|
|
<view class="uni-flex u-col-center space-between padding_10" |
|
|
|
style="background-color:ghostwhite; width: 100%; "> |
|
|
|
<view class=""> |
|
|
|
<locationCompare ref="comScanLocation" title="收货库位" :isShowEdit="jobContent.allowModifyLocation == 'TRUE'" :recommendLocationCode="jobToLocationCode" :locationCode="toLocationCode" @getLocation="scanLocationCode" :locationTypeList="toLocationTypeList"> </locationCompare> |
|
|
|
<locationCompare title="收货库位" :isShowEdit="jobContent.allowModifyLocation=='TRUE'" |
|
|
|
:recommendLocationCode="jobToLocationCode" :locationCode="toLocationCode" |
|
|
|
@getLocation='scanLocationCode' :locationTypeList="toLocationTypeList"></locationCompare> |
|
|
|
</view> |
|
|
|
<view class="uni-flex uni-row"> |
|
|
|
<view class=" uni-flex uni-row"> |
|
|
|
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<win-scan-button @goScan="openScanPopup"></win-scan-button> |
|
|
|
<win-scan-fg-label ref="scanPopup" @getResult="getScanResult" title="制品标签"></win-scan-fg-label> |
|
|
|
<com-message ref="comMessageRef" /> |
|
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
|
<win-scan-fg-label ref="scanPopup" @getResult='getScanResult' title='制品标签'></win-scan-fg-label> |
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
@ -103,6 +109,7 @@ const jobToLocationCode = ref('') |
|
|
|
const fgList = ref([]) |
|
|
|
const itemCode = ref('') |
|
|
|
const scanMessage = ref('') |
|
|
|
const productionLineCode = ref('') |
|
|
|
// const isCheckLocation = ref(false) |
|
|
|
const scanPopup = ref() |
|
|
|
const comScanIssuePackRef = ref() |
|
|
@ -179,6 +186,7 @@ const getDetail = () => { |
|
|
|
subList.value = res.data.subList |
|
|
|
jobStatus.value = res.data.status |
|
|
|
jobToLocationCode.value = subList.value[0].toLocationCode |
|
|
|
productionLineCode.value = subList.value[0].productionLineCode |
|
|
|
if (jobContent.value.allowModifyLocation == 'FALSE') { |
|
|
|
toLocationCode.value = subList.value[0].toLocationCode |
|
|
|
} |
|
|
|