Browse Source

翻包打印

hella_online_20240829
wangyufei 5 months ago
parent
commit
834bf0a12e
  1. 16
      src/pages/package/job/overPackageJobDetail.vue
  2. 28
      src/pages/package/record/overPackageRecord.vue
  3. 69
      src/pages/point/index.vue

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

@ -332,15 +332,19 @@
let list = []; let 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: '',
}) })
}) })
this.showCommitSuccessMessage("提交成功<br>生成翻包记录<br>", list) this.showCommitSuccessMessage("提交成功<br>生成翻包记录<br>", list)

28
src/pages/package/record/overPackageRecord.vue

@ -342,7 +342,25 @@
overPackageRecordSubmit(params).then(res => { overPackageRecordSubmit(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.data) { if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成翻包记录<br>" + res.data) let list = [];
res.data.forEach(item => {
list.push({
itemCode:item.itemCode, //
itemName: item.itemName, //
packName: item.packName,//
packageCode: item.toPackingNumber, //
batch:item.batch,//
parentNumber:item.parentNumber,//
itemType: item.itemType,//
asnNumber:item.asnNumber,//ASN
supplierCode: item.supplierCode, //
qty: item.qty, //
printTimes:item.printTimes, //
barcodeString: item.barcodeString, //
barcodeBase64: '',
})
})
this.showCommitSuccessMessage("提交成功<br>生成翻包记录<br>" + list)
} else { } else {
this.showErrorMessage("提交失败[" + res.msg + "]") this.showErrorMessage("提交失败[" + res.msg + "]")
} }
@ -415,11 +433,17 @@
this.openScanPopup(); this.openScanPopup();
}, },
showCommitSuccessMessage(hint) {
showCommitSuccessMessage(hint,pointData) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
this.detailSource = [] this.detailSource = []
this.fromLocationCode = ''; this.fromLocationCode = '';
this.dataContent = {} this.dataContent = {}
if (pointData.length > 0) {
uni.navigateTo({
url: `/pages/point/index?points=${JSON.stringify(pointData)}`
});
}
}) })
}, },

69
src/pages/point/index.vue

@ -5,36 +5,53 @@
<view class="left"> <view class="left">
<view class="left-item"> <view class="left-item">
<view class="label">物品代码</view> <view class="label">物品代码</view>
<view class="value" id="name1">{{item.itemNumber}}</view> <view class="value" id="name1">{{item.itemCode}}</view>
</view> </view>
<view class="left-item"> <view class="left-item">
<view class="label">物品名称</view> <view class="label">物品名称</view>
<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.supplierCode}}</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.packageCode}}</view> <view class="value">{{item.packageCode}}</view>
</view> </view>
<view class="left-item"> <view class="left-item">
<view class="label">订单行</view> <view class="label">父包装号</view>
<view class="value">{{item.referenceOrderRow}}</view> <view class="value">{{item.parentNumber}}</view>
</view>
<view class="left-item">
<view class="label">ASN</view>
<view class="value">{{item.asnNumber}}</view>
</view> </view>
<view class="left-item">
<view class="label">数量</view>
<view class="value">{{item.qty}}</view>
</view>
</view> </view>
<view class="right"> <view class="right">
<view class="image"> <view class="image">
<l-qrcode ref="qrcodeRef" :value="item.barcodeString" size="300rpx"></l-qrcode> <l-qrcode ref="qrcodeRef" :value="item.barcodeString" size="300rpx"></l-qrcode>
</view> </view>
<view class="left-item"> <view class="left-item">
<view class="label">订单号</view> <view class="label">批次</view>
<view class="value">{{item.referenceOrderCode}}</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.amount}}</view> <view class="value">{{item.itemType}}</view>
</view>
<view class="left-item">
<view class="label">供应商</view>
<view class="value">{{item.supplierCode}}</view>
</view>
<view class="left-item">
<view class="label">打印时间</view>
<view class="value">{{item.printTimes}}</view>
</view> </view>
</view> </view>
</view> </view>
@ -102,23 +119,31 @@
<div class="left"> <div class="left">
<div class="left-item"> <div class="left-item">
<div class="label">物品代码</div> <div class="label">物品代码</div>
<div class="value" id="name1">${item.itemNumber}</div> <div class="value" id="name1">${item.itemCode}</div>
</div> </div>
<div class="left-item"> <div class="left-item">
<div class="label">物品名称</div> <div class="label">物品名称</div>
<div class="value" id="name2">${item.itemName}</div> <div class="value" id="name2">${item.itemName}</div>
</div> </div>
<div class="left-item"> <div class="left-item">
<div class="label">供应商</div> <div class="label">包装名称</div>
<div class="value">${item.supplierCode}</div> <div class="value">${item.packName}</div>
</div> </div>
<div class="left-item"> <div class="left-item">
<div class="label">包装号</div> <div class="label">包装号</div>
<div class="value">${item.packageCode}</div> <div class="value">${item.packageCode}</div>
</div> </div>
<div class="left-item"> <div class="left-item">
<div class="label">订单行</div> <div class="label">父包装号</div>
<div class="value">${item.referenceOrderRow}</div> <div class="value">${item.parentNumber}</div>
</div>
<div class="left-item">
<div class="label">ASN</div>
<div class="value">${item.asnNumber}</div>
</div>
<div class="left-item">
<div class="label">数量</div>
<div class="value">${item.qty}</div>
</div> </div>
</div> </div>
<div class="right"> <div class="right">
@ -126,12 +151,20 @@
<img id='image1' src="${item.barcodeBase64}" alt="" /> <img id='image1' src="${item.barcodeBase64}" alt="" />
</div> </div>
<div class="left-item"> <div class="left-item">
<div class="label">订单号</div> <div class="label">批次</div>
<div class="value">${item.referenceOrderRow}</div> <div class="value">${item.batch}</div>
</div> </div>
<div class="left-item"> <div class="left-item">
<div class="label">数量</div> <div class="label">物料类型</div>
<div class="value">${item.amount}</div> <div class="value">${item.itemType}</div>
</div>
<div class="left-item">
<div class="label">供应商</div>
<div class="value">${item.supplierCode}</div>
</div>
<div class="left-item">
<div class="label">打印时间</div>
<div class="value">${item.printTimes}</div>
</div> </div>
</div> </div>
</div>` </div>`

Loading…
Cancel
Save