Browse Source

采购收货添加供应商采购数量和采购单位,转换率

intex_online20241216
zhang_li 2 months ago
parent
commit
76e85974b0
  1. 3
      src/common/detail.js
  2. 8
      src/mycomponents/qty/recommendHandleQty.vue
  3. 1
      src/mycomponents/scan/winComScan.vue
  4. 11
      src/pages/purchaseReceipt/job/receiptDetail.vue

3
src/common/detail.js

@ -112,6 +112,9 @@ export function createItemInfo(detail) {
itemName: detail.itemName,
packQty: Number(detail.packQty) || undefined,
packUnit: detail.packUnit,
supplierQty: Number(detail.supplierQty) || undefined,
supplierUom: detail.supplierUom?detail.supplierUom:'',
convertRate: detail.convertRate?detail.convertRate:'',
qty: Number(detail.qty),
handleQty: 0,
uom: detail.uom,

8
src/mycomponents/qty/recommendHandleQty.vue

@ -10,6 +10,14 @@
{{Number(dataContent.qty)}}
</view>
<uom :uom="dataContent.uom"></uom>
<view class="uni-flex uni-row center" v-if="dataContent.uom != dataContent.supplierUom && dataContent.convertRate != 1 && dataContent.convertRate!=0 && dataContent.convertRate !=null && dataContent.convertRate!=''">
<span class="uom">|</span>
<view class="text_recommend " style="font-size: 30rpx;margin-left: 12rpx;">
{{Number(dataContent.supplierQty) || 0}}
</view>
<uom :uom="dataContent.supplierUom" style="font-size: 30rpx;margin-left: 12rpx;"></uom>
</view>
</view>
<view>

1
src/mycomponents/scan/winComScan.vue

@ -190,6 +190,7 @@
if (scanResult.success) {
that.clear();
// that.getfocus();//
console.log(88,scanResult)
that.$emit("getResult", scanResult);
} else {
that.clear();

11
src/pages/purchaseReceipt/job/receiptDetail.vue

@ -282,6 +282,7 @@
that.jobStatus = res.data.status
that.jobToLocationCode = that.subList[0].toLocationCode
that.detailSource = getTreeDataSource(that.subList)
console.log(333,that.detailSource)
that.isCheckLocation = getSwitchInfoByCode(that.isCheckLocation)
if (that.isCheckLocation) {
that.toLocationCode = ""
@ -528,6 +529,9 @@
//
if(handleQtySub >= parseFloat(qty)){
pack.handleQty = Number(qty);
pack.convertRate = result.label.convertRate
pack.supplierQty = parseFloat(calc.div(parseFloat(pack.handleQty),parseFloat(pack.convertRate)).toFixed(5))
pack.supplierUom = result.label.purchaseUom
batchDetailList[i].packList.push(pack)
batchDetailList[i].scaned = true
const isHave = this.packingNumberList.find(item=>item.packingNumber == packingNumber)
@ -546,6 +550,9 @@
//
pack.handleQty = handleQtySub;
}
pack.convertRate = result.label.convertRate
pack.supplierQty = parseFloat(calc.div(parseFloat(pack.handleQty),parseFloat(pack.convertRate)).toFixed(5))
pack.supplierUom = result.label.purchaseUom
batchDetailList[i].packList.push(pack)
batchDetailList[i].scaned = true
qty = calc.sub(parseFloat(qty),parseFloat(handleQtySub))
@ -557,11 +564,7 @@
calcTreeHandleQty(this.detailSource);
}
}
}
console.log(8777,this.detailSource)
setTimeout(()=>{
this.$refs.comReceiptDetailCardBacthRef.forEach(item=>{
item.resizeCollapse()

Loading…
Cancel
Save