Browse Source

YT-1804ASN收货任务详情页扫描后的样式与需求不一致(详见截图)

intex_online20241228
zhang_li 1 month ago
parent
commit
897a34267e
  1. 2
      src/mycomponents/package/packageCard.vue
  2. 10
      src/mycomponents/package/packageList.vue
  3. 14
      src/pages/purchaseReceipt/coms/comReceiptDetailCardBacth.vue
  4. 4
      src/pages/purchaseReceipt/job/purchaseReceiptAsnDetail.vue

2
src/mycomponents/package/packageCard.vue

@ -1,7 +1,7 @@
<template> <template>
<view :class="dataContent.scaned?'scan_view':isShowPackingNumberProps && dataContent.requestNumber ? 'scan_view_gay' :''" style="background-color: #fff; "> <view :class="dataContent.scaned?'scan_view':isShowPackingNumberProps && dataContent.requestNumber ? 'scan_view_gay' :''" style="background-color: #fff; ">
<!-- border-bottom: 1upx solid #EEEEEE; --> <!-- border-bottom: 1upx solid #EEEEEE; -->
<view class="uni-flex uni-row space-between" style="align-items: center"> <view class="uni-flex uni-row space-between" style="align-items: center;min-height:80rpx">
<!-- uni-inline-item 暂时拿掉--> <!-- uni-inline-item 暂时拿掉-->
<view style="word-break: break-all;"> <view style="word-break: break-all;">
<!-- <container v-if="isShowContainer&&dataContent.containerNumber!=null" :container="dataContent.containerNumber"> <!-- <container v-if="isShowContainer&&dataContent.containerNumber!=null" :container="dataContent.containerNumber">

10
src/mycomponents/package/packageList.vue

@ -10,7 +10,7 @@
@click="swipeClick($event,item,'parent',index)"> @click="swipeClick($event,item,'parent',index)">
<package-card :dataContent="item" :isShowLocation="false" <package-card :dataContent="item" :isShowLocation="false"
:isShowFromLocation="isShowFromLocation" :isShowFromLocation="isShowFromLocation"
:isShowStatus="isShowStatus" :isShowSupplierQty='isShowSupplierQty' :isShowBatch="isShowBatch" :isShowBatchDeliNo='isShowBatchDeliNo'></package-card> :isShowStatus="isShowStatus" :isShowSupplierQty='isShowBatchSupplierQty' :isShowPackUnit='isShowPackUnit' :isShowBatch="isShowBatch" :isShowBatchDeliNo='isShowBatchDeliNo'></package-card>
</uni-swipe-action-item> </uni-swipe-action-item>
</uni-swipe-action> </uni-swipe-action>
@ -139,6 +139,14 @@
type:String, type:String,
default: '包装' default: '包装'
}, },
isShowBatchSupplierQty: {
type: Boolean,
default: false
},
isShowPackUnit: {
type: Boolean,
default: true
},
}, },
watch: { watch: {

14
src/pages/purchaseReceipt/coms/comReceiptDetailCardBacth.vue

@ -13,7 +13,7 @@
</template> </template>
<package-list ref='packageListRef' :dataContent="dataContent.subList" :isEdit="false" <package-list ref='packageListRef' :dataContent="dataContent.subList" :isEdit="false"
:settingParam="settingParam" @collapseChange="collapseChange" @updateData="updateData" :settingParam="settingParam" @collapseChange="collapseChange" @updateData="updateData"
:isShowFromLocation="false" :isShowPackingNumberProps='true' :isNumPackTips='isNumPackTips' :isShowSupplierQty='isShowSupplierQty' :isShowBatch="isShowBatch" :isShowBatchDeliNo='isShowBatchDeliNo' :packTitle='packTitle'></package-list> :isShowFromLocation="false" :isShowPackingNumberProps='true' :isNumPackTips='isNumPackTips' :isShowSupplierQty='isShowSupplierQty' :isShowBatch="isShowBatch" :isShowBatchDeliNo='isShowBatchDeliNo' :packTitle='packTitle' :isShowBatchSupplierQty='isShowBatchSupplierQty' :isShowPackUnit='isShowPackUnit' :isShowStatus='isShowStatus'></package-list>
</uni-collapse-item> </uni-collapse-item>
</uni-collapse> </uni-collapse>
@ -76,6 +76,10 @@
type: Boolean, type: Boolean,
default: false default: false
}, },
isShowBatchSupplierQty: {
type: Boolean,
default: false
},
isShowBatch: { isShowBatch: {
type: Boolean, type: Boolean,
default: true default: true
@ -88,6 +92,14 @@
type:String, type:String,
default: '包装' default: '包装'
}, },
isShowPackUnit: {
type: Boolean,
default: true
},
isShowStatus: {
type: Boolean,
default: true
},
}, },
watch: { watch: {

4
src/pages/purchaseReceipt/job/purchaseReceiptAsnDetail.vue

@ -14,7 +14,7 @@
<!-- 管理精度是批次 --> <!-- 管理精度是批次 -->
<comReceiptDetailCardBacth ref='comReceiptDetailCardBacthRef' :dataContent="item" :index="index" <comReceiptDetailCardBacth ref='comReceiptDetailCardBacthRef' :dataContent="item" :index="index"
:settingParam="jobContent" @remove="updateData" @updateData="updateData" :settingParam="jobContent" @remove="updateData" @updateData="updateData"
:locationAreaTypeList='toLocationAreaTypeList' :isNumPackTips='true' :isShowSupplierQty='true' :locationAreaTypeList='toLocationAreaTypeList' :isNumPackTips='true' :isShowSupplierQty='true' :isShowBatchSupplierQty='fasle' :isShowPackUnit='false' :isShowStatus='false'
:isShowBatch="false" :isShowBatchDeliNo='true' packTitle='看板编号'> :isShowBatch="false" :isShowBatchDeliNo='true' packTitle='看板编号'>
</comReceiptDetailCardBacth> </comReceiptDetailCardBacth>
</view> </view>
@ -126,6 +126,7 @@
this.detailSource.forEach(item => { this.detailSource.forEach(item => {
item.subList.forEach(cur => { item.subList.forEach(cur => {
cur.packList = cur.packageDOS cur.packList = cur.packageDOS
cur.scaned = cur.packageDOS.some(i=>i.scaned == true) ? true :false
cur.packList.forEach(i => { cur.packList.forEach(i => {
i.packingNumber = i.remark i.packingNumber = i.remark
if (i.scaned == true) { if (i.scaned == true) {
@ -316,6 +317,7 @@
this.showMessage("批次【" + batch + "】不在列表中") this.showMessage("批次【" + batch + "】不在列表中")
} else { } else {
console.log(batchDetail) console.log(batchDetail)
batchDetail.scaned = true
const packingDetail = batchDetail.packList.find(r => r.packingNumber == packingNumber); const packingDetail = batchDetail.packList.find(r => r.packingNumber == packingNumber);
if (!packingDetail) { if (!packingDetail) {
this.showMessage("看板编号【" + packingNumber + "】不在列表中") this.showMessage("看板编号【" + packingNumber + "】不在列表中")

Loading…
Cancel
Save