前端最新版本同步
This commit is contained in:
@@ -837,7 +837,12 @@ function handleScan(row,index){
|
||||
}
|
||||
|
||||
function submit(value){
|
||||
form.purchaseinventoryList[currentIndex.value].traceNo = value;
|
||||
if (form.purchaseinventoryList[currentIndex.value].traceNo) {
|
||||
form.purchaseinventoryList[currentIndex.value].traceNo =
|
||||
form.purchaseinventoryList[currentIndex.value].traceNo + ',' + value;
|
||||
} else {
|
||||
form.purchaseinventoryList[currentIndex.value].traceNo = value;
|
||||
}
|
||||
openTraceNoDialog .value = false;
|
||||
}
|
||||
function formatContent(value){
|
||||
@@ -988,6 +993,7 @@ function getTransferProductDetails(type){
|
||||
queryParams.value.busNo = receiptHeaderForm.busNo
|
||||
getstocktakingDetail(queryParams.value).then((res) => {
|
||||
form.purchaseinventoryList = res.data.records?res.data.records:res.data
|
||||
receiptHeaderForm.occurrenceTime = formatDate(res.data.records[0].occurrenceTime)
|
||||
total.value = res.data.total;
|
||||
form.purchaseinventoryList.map((e,index)=>{
|
||||
e.isSave = true
|
||||
@@ -1277,6 +1283,8 @@ function handleLocationClick(purposeLocationId,itemId, index,lotNumber) {
|
||||
|
||||
form.purchaseinventoryList[index].unitCode = form.purchaseinventoryList[index].unitList.minUnitCode
|
||||
form.purchaseinventoryList[index].unitCode_dictText = form.purchaseinventoryList[index].unitList.minUnitCode_dictText
|
||||
// 这里临时存一下大单位价格 切换到大单位直接取这个值,切换单位会有除不尽的情况,临时处理一下
|
||||
form.purchaseinventoryList[index].unitPrice = res.data[0].price
|
||||
// 单价 大单位单价
|
||||
if(form.purchaseinventoryList[index].unitCode==form.purchaseinventoryList[index].unitList.minUnitCode){
|
||||
form.purchaseinventoryList[index].price = res.data[0].price / form.purchaseinventoryList[index].partPercent|| "";
|
||||
@@ -1443,7 +1451,7 @@ function getMaxCounts(row,index,counts){
|
||||
// form.purchaseinventoryList[index].unitList.minUnitCode_dictText
|
||||
// }
|
||||
form.purchaseinventoryList[index].price =
|
||||
form.purchaseinventoryList[index].price * row.partPercent;
|
||||
form.purchaseinventoryList[index].unitPrice;
|
||||
form.purchaseinventoryList[index].price = form.purchaseinventoryList[index].price.toFixed(4);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user