Browse Source

打印:制造件标签2024/7/1 14:18:25

hella_vue3
zhang_li 3 months ago
parent
commit
4a414161a8
  1. 1
      src/pages/package/job/overPackageJobDetail.vue
  2. 1
      src/pages/package/record/overPackageRecord.vue
  3. 37
      src/pages/point/index.vue
  4. 5
      src/pages/repleinsh/record/directRepleinshRecord.vue

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

@ -241,6 +241,7 @@ const submitJob = () => {
supplierCode: item.supplierCode, //
qty: item.qty, //
printTimes: getCurrDateTime(), //
productionLineCode: item.productionLineCode, // 线
barcodeString: item.barcodeString, //
barcodeBase64: ''
})

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

@ -310,6 +310,7 @@ const submitJob = () => {
supplierCode: item.supplierCode, //
qty: item.qty, //
printTimes: getCurrDateTime(), //
productionLineCode: item.productionLineCode, // 线
barcodeString: item.barcodeString, //
barcodeBase64: ''
})

37
src/pages/point/index.vue

@ -19,11 +19,15 @@
<view class="label">包装号</view>
<view class="value">{{ item.packageCode }}</view>
</view>
<view class="left-item">
<view class="left-item" v-if="item.productionLineCode&&item.productionLineCode.length>0">
<view class="label">生产线</view>
<view class="value">{{item.productionLineCode}}</view>
</view>
<view class="left-item" v-if="!(item.productionLineCode&&item.productionLineCode.length>0)">
<view class="label">父包装号</view>
<view class="value">{{item.parentNumber}}</view>
</view>
<view class="left-item">
<view class="left-item" v-if="!(item.productionLineCode&&item.productionLineCode.length>0)">
<view class="label">ASN</view>
<view class="value">{{item.asnNumber}}</view>
</view>
@ -44,7 +48,7 @@
<view class="label">物料类型</view>
<view class="value">{{item.itemType}}</view>
</view>
<view class="left-item">
<view class="left-item" v-if="!(item.productionLineCode&&item.productionLineCode.length>0)">
<view class="label">供应商</view>
<view class="value">{{item.supplierCode}}</view>
</view>
@ -114,7 +118,8 @@
readFile(htmlFileUrl, (htmlContent) => {
newHtmlContent.value = htmlContent
data.value.forEach((item) => {
str += `<div class="box" style="page-break-before:always;"><br />
str += `
<div class="box" style="page-break-before:always;"><br />
<div class="left">
<div class="left-item">
<div class="label">物品代码</div>
@ -132,6 +137,16 @@
<div class="label">包装号</div>
<div class="value">${item.packageCode}</div>
</div>
`
if (item.productionLineCode && item.productionLineCode.length > 0) {
str += `
<div class="left-item">
<div class="label">生产线</div>
<div class="value">${item.productionLineCode}</div>
</div>
`
} else {
str += `
<div class="left-item">
<div class="label">父包装号</div>
<div class="value">${item.parentNumber}</div>
@ -140,6 +155,9 @@
<div class="label">ASN</div>
<div class="value">${item.asnNumber}</div>
</div>
`
}
str += `
<div class="left-item">
<div class="label">数量</div>
<div class="value bold-font">${item.qty}</div>
@ -157,16 +175,23 @@
<div class="label">物料类型</div>
<div class="value">${item.itemType}</div>
</div>
`
if (!(item.productionLineCode && item.productionLineCode.length > 0)) {
str += `
<div class="left-item">
<div class="label">供应商</div>
<div class="value">${item.supplierCode}</div>
</div>
`
}
str += `
<div class="left-item">
<div class="label">打印时间</div>
<div class="value">${item.printTimes}</div>
</div>
</div>
</div>`
</div>
`
})
newHtmlContent.value = newHtmlContent.value.replace('mainBody', str) //
})
@ -258,10 +283,12 @@
.left-item {
display: flex;
}
.bold-font {
font-weight: bold;
font-size: 28rpx;
}
.label {
border-bottom: 1px solid #b1b1b1;
border-right: 1px solid #b1b1b1;

5
src/pages/repleinsh/record/directRepleinshRecord.vue

@ -96,6 +96,7 @@ onLoad((option) => {
getBusinessType(businessTypeCode.value, (res) => {
if (res.success) {
businessType.value = res.businessType
res.fromLocationAreaTypeList.push('INSPECT', 'SUPPER')
fromLocationAreaTypeList.value = res.fromLocationAreaTypeList
toLocationAreaTypeList.value = res.toLocationAreaTypeList
showFromLocationPopup()
@ -257,7 +258,7 @@ const afterGetBalance = (result) => {
calcHandleQty(detailSource.value)
} else {
const detail = item.subList.find((r) => {
if (r.packingNumber == balance.packingNumber && r.batch == balance.batch && r.locationCode == balance.locationCode && r.inventoryStatus == balance.inventoryStatus) {
if (r.packingNumber == pack.packingNumber && r.batch == balance.batch && r.locationCode == balance.locationCode && r.inventoryStatus == balance.inventoryStatus) {
return r
}
})
@ -272,7 +273,7 @@ const afterGetBalance = (result) => {
item.subList.push(newDetail)
calcHandleQty(detailSource.value)
} else if (detail.scaned == true) {
showErrorMessage(`箱码[${balance.packingNumber}批次[${balance.batch}]已经在列表中`)
showErrorMessage(`箱码[${detail.packingNumber}]批次[${balance.batch}]已经在列表中`)
}
}
}

Loading…
Cancel
Save