Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into master_hella

hella_online_20240829
lijuncheng 2 months ago
parent
commit
d22ce86ad7
  1. 17
      src/pages/purchaseReturn/record/returnRecord.vue

17
src/pages/purchaseReturn/record/returnRecord.vue

@ -97,7 +97,8 @@
supplierCode: '', //
poNumber: '',
fromType: "",
dataContent: {}
dataContent: {},
currentPackage: {}
};
},
@ -111,7 +112,7 @@
uni.setNavigationBarTitle({
title: option.title
})
var typeCode = "PurchaseReturn"
getBusinessType(typeCode, res => {
if (res.success) {
@ -158,7 +159,8 @@
this.supplierCode = result.label.supplierCode;
} else {
if (this.supplierCode != result.label.supplierCode) {
this.showErrorMessage('扫描的供应商代码[' + result.label.supplierCode + ']与默认供应商代码[' + this.poNumber + ']不一致')
this.showErrorMessage('扫描的供应商代码[' + result.label.supplierCode + ']与默认供应商代码[' + this.poNumber +
']不一致')
return;
}
}
@ -178,6 +180,7 @@
let balance = result.balance;
let label = result.label;
let pack = result.package;
this.currentPackage = pack;
var item = this.detailSource.find(res => {
if (res.itemCode == balance.itemCode) {
@ -253,7 +256,7 @@
if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成采购退货记录<br>" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg+"]")
this.showErrorMessage("提交失败[" + res.msg + "]")
}
}).catch(error => {
uni.hideLoading()
@ -288,9 +291,11 @@
submitItem.fromLocationCode = detail.locationCode;
submitItem.toLocationCode = ''; //退
submitItem.qty = detail.handleQty;
submitItem.package = "";
submitItem.poNumber = this.currentPackage.poNumber;
submitItem.poLine = this.currentPackage.poLine;
subList.push(submitItem)
}
})
@ -397,4 +402,4 @@
background: #e0e0e0;
}
</style>
</style>
Loading…
Cancel
Save