前端最新版本同步

This commit is contained in:
Zhang.WH
2025-09-25 10:36:07 +08:00
parent a3a06d6f3c
commit 1276dc4adb
117 changed files with 11964 additions and 2466 deletions

View File

@@ -979,7 +979,12 @@ function addNewRow() {
}
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;
}
@@ -2139,6 +2144,7 @@ function getbusNo() {
getstocktakingDetail(queryParams.value).then((res) => {
console.log(res.data.records?res.data.records:res.data,1212121)
form.purchaseinventoryList = res.data.records?res.data.records:res.data
receiptHeaderForm.occurrenceTime = formatDate(res.data.records[0].occurrenceTime)
total.value = res.data.total
getDetail(1)
getAllBatchList(2)

View File

@@ -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);
}
}