Browse Source

报错代码2024/6/12 18:26:48

hella_vue3
zhang_li 3 months ago
parent
commit
c7d93b865c
  1. 4
      src/pages/deliver/job/deliverDetail.vue
  2. 1
      src/pages/issue/request/issueScanRequest.vue
  3. 28
      src/pages/package/record/overPackageRecord.vue
  4. 76
      src/pages/point/index.vue

4
src/pages/deliver/job/deliverDetail.vue

@ -201,7 +201,9 @@ const submit = () => {
} }
const submitJob = () => { const submitJob = () => {
const params = setParams() const params = setParams()
if (params.subList.length == 0) {
comMessageRef.value.showSuccessMessage('请扫描箱码')
}
deliverJobSubmit(params) deliverJobSubmit(params)
.then((res) => { .then((res) => {
uni.hideLoading() uni.hideLoading()

1
src/pages/issue/request/issueScanRequest.vue

@ -85,6 +85,7 @@ const getScanResult = (data) => {
const setParams = () => { const setParams = () => {
detailSource.value.dueTime = getCurrDateOneMonthsTimes() detailSource.value.dueTime = getCurrDateOneMonthsTimes()
detailSource.value.isCallMaterialsLabel = 'TRUE'
return detailSource.value return detailSource.value
} }
const submit = () => { const submit = () => {

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

@ -285,7 +285,26 @@ const submitJob = () => {
.then((res) => { .then((res) => {
uni.hideLoading() uni.hideLoading()
if (res.data) { if (res.data) {
showCommitSuccessMessage(`提交成功<br>生成翻包记录<br>${res.data}`) const list = []
const item = res.data
// 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: ''
})
// })
showCommitSuccessMessage(`提交成功<br>生成翻包记录<br>${list}`)
} else { } else {
showErrorMessage(`提交失败[${res.msg}]`) showErrorMessage(`提交失败[${res.msg}]`)
} }
@ -358,12 +377,17 @@ const getFromLocationCode = (location, code) => {
fromLocationCode.value = code fromLocationCode.value = code
openScanPopup() openScanPopup()
} }
const showCommitSuccessMessage = (hint) => { const showCommitSuccessMessage = (hint, pointData) => {
comMessageRef.value.showSuccessMessage(hint, (res) => { comMessageRef.value.showSuccessMessage(hint, (res) => {
if (res) { if (res) {
detailSource.value = [] detailSource.value = []
fromLocationCode.value = '' fromLocationCode.value = ''
dataContent.value = {} dataContent.value = {}
if (pointData.length > 0) {
uni.navigateTo({
url: `/pages/point/index?points=${JSON.stringify(pointData)}`
})
}
} }
}) })
} }

76
src/pages/point/index.vue

@ -5,37 +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>
<view class="left-item">
<view class="label">ASN</view>
<view class="value">{{item.asnNumber}}</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>
<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 class="" style="position: fixed; width: 100%; bottom: 0rpx; left: 0px"> <view class="" style="position: fixed; width: 100%; bottom: 0rpx; left: 0px">
@ -102,23 +118,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 +150,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