|
|
@ -1,18 +1,23 @@ |
|
|
|
<template> |
|
|
|
<view class="page-wraper" style="background-color: #fff"> |
|
|
|
<view class="page-wraper" style="background-color: #fff;"> |
|
|
|
|
|
|
|
<view class="header"> |
|
|
|
<view class=""> |
|
|
|
<com-blank-view @goScan="openFg" v-if="!dataContent"></com-blank-view> |
|
|
|
<com-blank-view @goScan='openFg' v-if="!dataContent"></com-blank-view> |
|
|
|
</view> |
|
|
|
<view class="" v-if="dataContent"> |
|
|
|
<view class="page-header"> |
|
|
|
<view class="header-view"> |
|
|
|
<view class="" style="font-size: 35rpx; padding: 10rpx; padding-left: 15rpx"> 生产计划:{{ dataContent.planNumber }} </view> |
|
|
|
<view class="" style="font-size: 35rpx;padding: 10rpx; padding-left: 15rpx;"> |
|
|
|
生产计划:{{dataContent.planNumber}} |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="cell_box uni-flex uni-row"> |
|
|
|
<view class="cell_info"> |
|
|
|
<view class="text_lightblue">完工库位</view> |
|
|
|
<view style="font-size: 30rpx; margin-top: 13rpx">{{ dataContent.fgLocationCode }} </view> |
|
|
|
<view style="font-size: 30rpx; margin-top: 13rpx;">{{dataContent.fgLocationCode}} |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
<view class="cell_info"> |
|
|
|
<view class="text_lightblue">计划数</view> |
|
|
@ -29,61 +34,66 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="" style="padding-top: 10rpx; padding-bottom: 10rpx; margin-left: 10rpx"> |
|
|
|
<view class="" style="padding: 10rpx; margin-left: 10rpx;"> |
|
|
|
<item :dataContent="dataContent"></item> |
|
|
|
</view> |
|
|
|
<view class="split_line"></view> |
|
|
|
<view class='split_line'></view> |
|
|
|
<view class="uni-flex uni-row space-between" style="align-items: center;padding: 0 10rpx;"> |
|
|
|
<view style="word-break: break-all"> |
|
|
|
<view style="word-break: break-all;"> |
|
|
|
<batch :batch="dataContent.batch"></batch> |
|
|
|
<view class="card_view "> |
|
|
|
<text style="color: #ffa500; padding: 5px; font-size: 30rpx">包装规格</text> |
|
|
|
<text style="color: #FFA500;padding: 5px;font-size: 30rpx;">包装规格</text> |
|
|
|
<text class="card_content ">{{dataContent.packUnit}} </text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view style="word-break: break-all; font-size: 35rpx; font-weight: bold"> |
|
|
|
<text v-if="dataContent.handleQty > 0" style="color: #ffa500">{{ dataContent.handleQty }}/</text> |
|
|
|
<view style="word-break: break-all; font-size: 35rpx; font-weight: bold;"> |
|
|
|
<text v-if="dataContent.handleQty>0" style="color: #FFA500;">{{dataContent.handleQty}}/</text> |
|
|
|
<text class="text_recommend">{{dataContent.packQtyHint}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="split_line" v-if="dataContent"></view> |
|
|
|
<view class='split_line' v-if="dataContent"></view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view style="margin-top: 425rpx; padding-bottom: 160rpx" v-if="dataContent"> |
|
|
|
|
|
|
|
<view style="margin-top: 425rpx; padding-bottom: 160rpx;" v-if="dataContent"> |
|
|
|
<scroll-view scroll-y="true" class=""> |
|
|
|
<view class="scan_view" v-for="(item, index) in showList" :key="index"> |
|
|
|
<uni-swipe-action> |
|
|
|
<uni-swipe-action-item :right-options="options" @click="swipeClick($event,item,index)"> |
|
|
|
<view class="uni-flex uni-row" style="margin-left: 30rpx; margin-top: 10rpx; margin-bottom: 10rpx"> |
|
|
|
<light :lightCode="item.content"></light> |
|
|
|
<!-- <view class="auto-wrap" style="font-size: 35rpx; font-weight: bold; width: 100%"> |
|
|
|
<text style="font-size: 30rpx; color: #b66463">唯一码 </text> |
|
|
|
<view class="uni-flex uni-row " |
|
|
|
style="margin-left: 30rpx; margin-top: 10rpx; margin-bottom: 10rpx;"> |
|
|
|
<light :lightCode='item.content'></light> |
|
|
|
<!-- <view class="auto-wrap" style="font-size: 35rpx;font-weight: bold; width: 100%;"> |
|
|
|
<text style="font-size: 30rpx;color: #B66463;">唯一码 </text> |
|
|
|
{{item.content}} |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
</uni-swipe-action-item> |
|
|
|
</uni-swipe-action> |
|
|
|
<u-line color="#D8D8D8"></u-line> |
|
|
|
</view> |
|
|
|
|
|
|
|
</scroll-view> |
|
|
|
<uni-load-more :status="loadingType" v-if="showList.length>0" /> |
|
|
|
</view> |
|
|
|
<view class="page-footer" v-if="dataContent"> |
|
|
|
<view class="uni-flex u-col-center space-between" style="background-color: ghostwhite; width: 100%"> |
|
|
|
<view class="uni-flex u-col-center space-between " style="background-color:ghostwhite; width: 100%; "> |
|
|
|
<view class=""> |
|
|
|
<view class="uni-flex uni-row"> </view> |
|
|
|
<view class="uni-flex uni-row"> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
<view class=" uni-flex uni-row"> |
|
|
|
<button class="btn_single_clear" hover-class="btn_commit_after" style="margin-right: 50rpx" @click="clear">清空</button> |
|
|
|
<button class="btn_single_clear" hover-class="btn_commit_after" style="margin-right: 50rpx;" |
|
|
|
@click="clear">清空</button> |
|
|
|
<button class="btn_single_commit" hover-class="btn_commit_after" @click="submit">提交</button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<comReceiptPopup ref="comReceiptPopupRef" @confirm="requestConfirm"></comReceiptPopup> |
|
|
|
<win-scan-button v-if="dataContent" @goScan="openScanPopup"></win-scan-button> |
|
|
|
<win-scan-fg-label ref=" " @getResult="getScanResult" title="灯码标签"></win-scan-fg-label> |
|
|
|
<com-message ref="comMessageRef" /> |
|
|
|
<comReceiptPopup ref="comReceiptPopup" @confirm='requestConfirm'></comReceiptPopup> |
|
|
|
<win-scan-button v-if="dataContent" @goScan='openScanPopup'></win-scan-button> |
|
|
|
<win-scan-fg-label ref="scanPopup" @getResult='getScanResult' title='灯码标签'></win-scan-fg-label> |
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
@ -93,7 +103,7 @@ import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReach |
|
|
|
import { isCheckMesCode, planReceiptSubmit, createPutawayRequestByPlan, createInspectRequestByPlan, getPlanByNumber } from '@/api/request2.js' |
|
|
|
import { calc } from '@/common/calc.js' |
|
|
|
|
|
|
|
import { getRemoveOption, deepCopyData, getCurrDateTime, compare } from '@/common/basic.js' |
|
|
|
import { getRemoveOption, deepCopyData, getCurrDateTime, compare,getSwitchInfoByCode } from '@/common/basic.js' |
|
|
|
import winScanButton from '@/mycomponents/scan/winScanButton.vue' |
|
|
|
import comBlankView from '@/mycomponents/common/comBlankView.vue' |
|
|
|
import comReceiptPopup from '@/pages/fg/coms/comReceiptPopup.vue' |
|
|
@ -240,9 +250,14 @@ const commit = async () => { |
|
|
|
throw new Error('提交失败') |
|
|
|
} |
|
|
|
|
|
|
|
createPutawayRequestByPlan(list[0].requestNumber).then((res) => { |
|
|
|
//装配收货记录 生成后 创建 制品上架申请 |
|
|
|
let createProductputawaySwitch = getSwitchInfoByCode( |
|
|
|
"CreateProductputawayRequestAfterProductreceiptRecordCreated") |
|
|
|
if (createProductputawaySwitch) { |
|
|
|
createPutawayRequestByPlan(list[0].requestNumber).then(res => { |
|
|
|
createInspectRequestByPlan(list[0].requestNumber) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
const queryParams = { |
|
|
|
filters: [ |
|
|
|