Browse Source

翻包打印 2024/6/15 14:17:06没改完

hella_vue3
zhang_li 3 months ago
parent
commit
b5c618d7d6
  1. 14
      src/pages/package/job/overPackageJobDetail.vue
  2. 26
      src/pages/pointProductReceipt/index.vue
  3. 5
      src/pages/productPutaway/job/productPutawayDetail.vue
  4. 4
      src/pages/productReceipt/job/fgProductReceiptDetail.vue

14
src/pages/package/job/overPackageJobDetail.vue

@ -230,13 +230,17 @@ const submitJob = () => {
const list = [] const list = []
res.data.forEach((item) => { res.data.forEach((item) => {
list.push({ list.push({
itemNumber: item.itemCode, // itemCode: item.itemCode, //
itemName: item.itemName, // itemName: item.itemName, //
referenceOrderRow: item.poLine, // packName: item.packName, //
referenceOrderCode: item.poNumber, //
supplierCode: item.supplierCode, //
packageCode: item.number, // packageCode: item.number, //
amount: item.qty, // batch: item.batch, //
parentNumber: item.parentNumber, //
itemType: item.itemType, //
asnNumber: item.asnNumber, // ASN
supplierCode: item.supplierCode, //
qty: item.qty, //
printTimes: getCurrDateTime(), //
barcodeString: item.barcodeString, // barcodeString: item.barcodeString, //
barcodeBase64: '' barcodeBase64: ''
}) })

26
src/pages/pointProductReceipt/index.vue

@ -12,8 +12,8 @@
<view class="value" id="name2">{{item.itemName}}</view> <view class="value" id="name2">{{item.itemName}}</view>
</view> </view>
<view class="left-item"> <view class="left-item">
<view class="label">物料描述</view> <view class="label">包装名称</view>
<view class="value">{{item.itemDesc1}}</view> <view class="value">{{item.packName}}</view>
</view> </view>
<view class="left-item"> <view class="left-item">
<view class="label">包装号</view> <view class="label">包装号</view>
@ -37,8 +37,8 @@
<view class="value">{{item.batch}}</view> <view class="value">{{item.batch}}</view>
</view> </view>
<view class="left-item"> <view class="left-item">
<view class="label">班次</view> <view class="label">物料类型</view>
<view class="value">{{item.shiftCode}}</view> <view class="value">{{item.itemType}}</view>
</view> </view>
<view class="left-item"> <view class="left-item">
<view class="label">打印时间</view> <view class="label">打印时间</view>
@ -116,20 +116,20 @@
<div class="value" id="name2">${item.itemName}</div> <div class="value" id="name2">${item.itemName}</div>
</div> </div>
<view class="left-item"> <view class="left-item">
<view class="label">物料描述</view> <view class="label">包装名称</view>
<view class="value">{{item.itemDesc1}}</view> <view class="value">${item.packName}</view>
</view> </view>
<view class="left-item"> <view class="left-item">
<view class="label">包装号</view> <view class="label">包装号</view>
<view class="value">{{item.relateNumber}}</view> <view class="value">${item.relateNumber}</view>
</view> </view>
<view class="left-item"> <view class="left-item">
<view class="label">生产线</view> <view class="label">生产线</view>
<view class="value">{{item.productionLineCode}}</view> <view class="value">${item.productionLineCode}</view>
</view> </view>
<view class="left-item"> <view class="left-item">
<view class="label">数量</view> <view class="label">数量</view>
<view class="value">{{item.qty}}</view> <view class="value">${item.qty}</view>
</view> </view>
</div> </div>
<div class="right"> <div class="right">
@ -138,15 +138,15 @@
</div> </div>
<view class="left-item"> <view class="left-item">
<view class="label">批次</view> <view class="label">批次</view>
<view class="value">{{item.batch}}</view> <view class="value">${item.batch}</view>
</view> </view>
<view class="left-item"> <view class="left-item">
<view class="label">班次</view> <view class="label">物料类型</view>
<view class="value">{{item.shiftCode}}</view> <view class="value">${item.itemType}</view>
</view> </view>
<view class="left-item"> <view class="left-item">
<view class="label">打印时间</view> <view class="label">打印时间</view>
<view class="value">{{item.printTimes}}</view> <view class="value">${item.printTimes}</view>
</view> </view>
</div> </div>
</div>` </div>`

5
src/pages/productPutaway/job/productPutawayDetail.vue

@ -157,7 +157,10 @@ const getDetail = () => {
detailSource.value = getDataSource(subList.value) detailSource.value = getDataSource(subList.value)
detailSource.value.forEach((r) => { detailSource.value.forEach((r) => {
r.subList.forEach((s) => { r.subList.forEach((s) => {
if (scanedPackingNumber.value && scanedPackingNumber.value == s.packingNumber) s.scaned = true if (scanedPackingNumber.value && scanedPackingNumber.value == s.packingNumber) {
s.scaned = true
s.handleQty = s.qty
}
}) })
}) })
toLocationAreaTypeList.value = getLocationTypeArray(jobContent.value.toAreaTypes) toLocationAreaTypeList.value = getLocationTypeArray(jobContent.value.toAreaTypes)

4
src/pages/productReceipt/job/fgProductReceiptDetail.vue

@ -67,9 +67,9 @@ import { ref, getCurrentInstance, nextTick } from 'vue'
import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app' import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { Decimal } from 'decimal.js' // import { Decimal } from 'decimal.js' //
import { getManagementPrecisions } from '@/common/balance.js' import { getManagementPrecisions } from '@/common/balance.js'
import { getCurrDateTime, goHome, navigateBack, getPackingNumberAndBatch, getSwitchInfoByCode } from '@/common/basic.js'
import { getProductReceiptJobDetail, takeProductReceiptJob, cancleTakeProductReceiptJob, productReceiptJobsubmit, getPrintProductReceiptList, getBalanceToPackage, batchPrintingLable } from '@/api/request2.js' import { getProductReceiptJobDetail, takeProductReceiptJob, cancleTakeProductReceiptJob, productReceiptJobsubmit, getPrintProductReceiptList, getBalanceToPackage, batchPrintingLable } from '@/api/request2.js'
import { goHome, navigateBack, getPackingNumberAndBatch, getSwitchInfoByCode } from '@/common/basic.js'
import { getDirectoryItemArray, getInventoryStatusName } from '@/common/directory.js' import { getDirectoryItemArray, getInventoryStatusName } from '@/common/directory.js'
@ -324,7 +324,7 @@ const print = () => {
productionLineCode: item.productionLineCode || '', // 线 productionLineCode: item.productionLineCode || '', // 线
shiftCode: item.shiftCode || '', // shiftCode: item.shiftCode || '', //
qty: item.qty || '', // qty: item.qty || '', //
printTimes: item.printTimes || '' // printTimes: getCurrDateTime() //
}) })
}) })
uni.navigateTo({ uni.navigateTo({

Loading…
Cancel
Save