Browse Source

page/package/coms 文件迁移 8/8-10/25

hella_vue3
王志国 3 weeks ago
parent
commit
5d17be69be
  1. 5
      src/pages/package/coms/comOverPackJobCard.vue
  2. 2
      src/pages/package/coms/comOverPackJobDetailCard.vue
  3. 19
      src/pages/package/coms/comScanPackagePack.vue

5
src/pages/package/coms/comOverPackJobCard.vue

@ -1,12 +1,15 @@
<template> <template>
<job-com-main-card :dataContent="dataContent"> <job-com-main-card :dataContent="dataContent">
<jobComMainDetailCard :dataContent="dataContent"></jobComMainDetailCard> <jobComMainDetailCard :dataContent="dataContent" :isShowPackCount="true"></jobComMainDetailCard>
<view class='split_line' v-show="dataContent.acceptUserName"></view>
<jobAccept :dataContent="dataContent" v-show="dataContent.acceptUserName"></jobAccept>
</job-com-main-card> </job-com-main-card>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import jobComMainCard from '@/mycomponents/job/jobComMainCard.vue' import jobComMainCard from '@/mycomponents/job/jobComMainCard.vue'
import jobComMainDetailCard from '@/mycomponents/job/jobComMainDetailCard.vue' import jobComMainDetailCard from '@/mycomponents/job/jobComMainDetailCard.vue'
import jobAccept from '@/mycomponents/job/jobAccept.vue'
const props = defineProps({ const props = defineProps({
dataContent: { dataContent: {

2
src/pages/package/coms/comOverPackJobDetailCard.vue

@ -26,7 +26,7 @@
<view class="uni-flex uni-row" v-if="batch.Records.length > 0"> <view class="uni-flex uni-row" v-if="batch.Records.length > 0">
<view class="center" style="width: 20px; background-color: #0cc2b6; color: #fff; margin-left: 40px; padding: 0px 2px"> 扫描 </view> <view class="center" style="width: 20px; background-color: #0cc2b6; color: #fff; margin-left: 40px; padding: 0px 2px"> 扫描 </view>
<view class="uni-flex uni-column scan_view" style="width: 100%"> <view class="uni-flex uni-column scan_view" style="width: 100%">
<u-swipe-action :show="record.show" :index="key" v-for="(record, key) in batch.Records" :key="key" :options="scanOptions" bg-color="rgba(255,255,255,0)" @click="(...event) => swipeClick(event, batch, record)" style="width: 100%"> <u-swipe-action :show="record.show" :index="key" v-for="(record, key) in batch.Records" :key="key" :options="settingParam.allowModifyQty=='TRUE'?scanOptions:removeOptions" bg-color="rgba(255,255,255,0)" @click="(...event) => swipeClick(event, batch, record)" style="width: 100%">
<handle-balance :detail="record" :isShowLocation="false" :isShowBatch="batch.packingNumber != null"> </handle-balance> <handle-balance :detail="record" :isShowLocation="false" :isShowBatch="batch.packingNumber != null"> </handle-balance>
</u-swipe-action> </u-swipe-action>
</view> </view>

19
src/pages/package/coms/comScanPackagePack.vue

@ -79,6 +79,15 @@ const initData = () => {
fromLocationList.value = getFromLocationList() fromLocationList.value = getFromLocationList()
} }
} }
//
const openScanPopupForJobSimulate = (content, jobcontent, scanMessage)=> {
issueRecord.value = [];
dataContent.value = content;
jobContent.value = jobcontent;
initData();
scanPopup.value.openScanPopupForJobSimulate(fromLocationCode.value, fromLocationList.value, jobContent.value, scanMessage);
},
const showBalanceSelect = (items) => { const showBalanceSelect = (items) => {
balanceSelect.value.openPopup(items) balanceSelect.value.openPopup(items)
} }
@ -135,6 +144,7 @@ const onScan = (result) => {
const lot = result.label.batch const lot = result.label.batch
const item = toLocation.value.Items.find((r) => r.itemCode == itemCode) const item = toLocation.value.Items.find((r) => r.itemCode == itemCode)
if (item == undefined) { if (item == undefined) {
packLoseFocus()
showErrorMessage(`未查找到物料【${itemCode}】的发料明细`, (res) => { showErrorMessage(`未查找到物料【${itemCode}】的发料明细`, (res) => {
packGetFocus() packGetFocus()
}) })
@ -184,10 +194,10 @@ const afterGetBalance = (label, balance, packageInfo) => {
const record = batch.Records.find((r) => r.packingNumber == packingCode) const record = batch.Records.find((r) => r.packingNumber == packingCode)
if (record == undefined) { if (record == undefined) {
// //
if (batch.Recommends.length > 0) { if (batch.Recommends && batch.Recommends.length > 0) {
const recommend = batch.Recommends.find((r) => r.packingNumber == packingCode) const recommend = batch.Recommends.find((r) => r.packingNumber == packingCode)
if (recommend != undefined) { if (recommend != undefined) {
that.addRecord(batch, label, balance, packageInfo) addRecord(batch, label, balance, packageInfo)
} else { } else {
// //
if (jobContent.value.allowModifyPackingNumber == 'TRUE') { if (jobContent.value.allowModifyPackingNumber == 'TRUE') {
@ -278,7 +288,10 @@ const addRecord = (batch, label, balance, packageInfo) => {
const record = creatRecord(label, balance, packageInfo) const record = creatRecord(label, balance, packageInfo)
batch.Records.push(record) batch.Records.push(record)
calcBatchHandleQty(batch) calcBatchHandleQty(batch)
packGetFocus() emit('refresh')
setTimeout(res=>{
packGetFocus();
},100)
} }
const swipeClick = (params, item) => { const swipeClick = (params, item) => {

Loading…
Cancel
Save