Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
b340eb76
Commit
b340eb76
authored
Aug 30, 2025
by
wusiyi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://47.122.114.111:9999/qinjianhui/factory_front
into dev
parents
0598cc2d
18ffa839
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
22 deletions
+36
-22
src/views/warehouse/issueDoc.vue
+6
-0
src/views/warehouse/receiptDoc.vue
+30
-22
No files found.
src/views/warehouse/issueDoc.vue
View file @
b340eb76
...
...
@@ -323,6 +323,12 @@
<
ElTableColumn
show
-
overflow
-
tooltip
align
=
"center"
label
=
"库位"
prop
=
"locationCode"
/>
<
ElTableColumn
show
-
overflow
-
tooltip
align
=
"center"
label
=
"成本价(¥)"
prop
=
"costPrice"
/>
...
...
src/views/warehouse/receiptDoc.vue
View file @
b340eb76
...
...
@@ -335,6 +335,12 @@
<
ElTableColumn
show
-
overflow
-
tooltip
align
=
"center"
label
=
"库位"
prop
=
"locationCode"
/>
<
ElTableColumn
show
-
overflow
-
tooltip
align
=
"center"
label
=
"成本价(¥)"
prop
=
"costPrice"
/>
...
...
@@ -344,18 +350,6 @@
label
=
"总成本(¥)"
prop
=
"totalPrice"
/>
<!--
<
ElTableColumn
show
-
overflow
-
tooltip
align
=
"center"
label
=
"不良品数量"
prop
=
"rejectsAmount"
/>
<
ElTableColumn
show
-
overflow
-
tooltip
align
=
"center"
label
=
"不良品原因"
prop
=
"rejectsAeason"
/>
-->
<
ElTableColumn
show
-
overflow
-
tooltip
align
=
"center"
...
...
@@ -377,7 +371,6 @@
/>
<
/ElTable
>
<
/div
>
<!--
<
ElPagination
v
-
model
:
current
-
page
=
"detailPager.page"
v
-
model
:
page
-
size
=
"detailPager.rows"
...
...
@@ -551,13 +544,8 @@
/>
<
ElTableColumn
align
=
"center"
label
=
"库位"
prop
=
"locationCode"
>
<
template
#
default
=
"{ row
}
"
>
<!--
+
后有就正常展示,没有则通过搜索接口自己添加
-->
<!--
remote
:
remote
-
method
=
"(query) => handleLocationSearch(query, row)"
:
loading
=
"locationLoading"
-->
<
span
v
-
if
=
"row.locationCode"
>
{{
row
.
locationCode
}}
<
/span
>
<!--
<
span
v
-
if
=
"formId&&row.locationCode"
>
{{
row
.
locationCode
}}
<
/span> --
>
<
ElSelect
v
-
else
v
-
model
=
"row.locationId"
clearable
placeholder
=
"请输入库位"
...
...
@@ -1213,8 +1201,8 @@ const handleLocalImport = async ({
warehouseSku
:
skuItem
.
sku
,
skuName
:
skuItem
.
skuName
,
productNo
:
skuItem
.
productNo
,
locationCode
:
skuItem
.
locationCode
??
''
,
locationId
:
skuItem
.
locationId
||
target
?.
locationId
,
locationCode
:
target
?
.
locationCode
??
''
,
locationId
:
target
?.
locationId
,
costPrice
:
skuItem
.
factoryPrice
,
buyStored
:
importedItem
?.
buyStored
??
null
,
totalPrice
:
new
BigNumber
(
...
...
@@ -1501,7 +1489,6 @@ watch(
}
,
{
immediate
:
true
}
,
)
watch
(
()
=>
editForm
.
value
.
warehouseId
,
(
newVal
:
number
|
string
|
undefined
)
=>
{
...
...
@@ -1718,6 +1705,27 @@ const fetchLocationList = async (query: string) => {
locationCode
:
item
.
locationCode
,
}
}
)
if
(
otherPurchaseData
.
value
?.
length
>
0
)
{
//const importedSkus = otherPurchaseData.value.map((item) => item.warehouseSku).join(',')
// // 3. 调用 batchAddCommodity 获取商品的完整信息并过滤掉已有的 SKU
// const filteredSkusList = await batchAddCommodity(importedSkus)
// console.log('filteredSkusList', otherPurchaseData.value)
// 新增时切换仓库将重新匹配表格库位,确保该商品的库位和仓库一一对应
otherPurchaseData
.
value
=
otherPurchaseData
.
value
.
map
(
(
item
:
InterProductList
)
=>
{
const
foundItem
=
locationList
.
value
.
find
(
(
locationItem
:
ILocation
)
=>
locationItem
.
locationCode
===
item
.
locationCode
,
)
// 创建新对象而不是修改原对象
return
{
...
item
,
locationCode
:
foundItem
?
foundItem
.
locationCode
:
''
,
locationId
:
foundItem
?
foundItem
.
locationId
:
null
,
}
}
,
)
}
}
catch
(
e
)
{
locationList
.
value
=
[]
}
finally
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment