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
4545b5dc
Commit
4545b5dc
authored
Jun 11, 2025
by
wuqian
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wq' into dev
parents
02083ceb
22a5a2d2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
61 additions
and
40 deletions
+61
-40
src/api/order.ts
+4
-3
src/api/warehouse.ts
+16
-2
src/components/NavMenu.vue
+2
-1
src/router/index.ts
+8
-8
src/router/menu.ts
+5
-5
src/types/api/index.ts
+0
-13
src/types/api/order.ts
+14
-1
src/types/api/warehouse.ts
+8
-0
src/utils/hooks/commonUtil.ts
+0
-1
src/views/warehouse/issueDoc.vue
+0
-0
src/views/warehouse/receiptDoc.vue
+0
-0
src/views/warehouse/warning.vue
+4
-6
No files found.
src/api/order.ts
View file @
4545b5dc
import
{
BasePaginationData
,
BaseRespData
,
RejectParams
}
from
'@/types/api'
import
{
BasePaginationData
,
BaseRespData
}
from
'@/types/api'
import
axios
from
'./axios'
import
axios
from
'./axios'
import
{
PaymentForm
}
from
'@/types/api/index.ts'
import
{
import
{
LogListData
,
LogListData
,
OrderData
,
OrderData
,
...
@@ -11,6 +10,8 @@ import {
...
@@ -11,6 +10,8 @@ import {
ShipmentOrderRes
,
ShipmentOrderRes
,
Tab
,
Tab
,
InspectionData
,
InspectionData
,
PaymentForm
,
RejectParams
}
from
'@/types/api/order'
}
from
'@/types/api/order'
import
{
import
{
apiSubmitPodOrderForm
,
apiSubmitPodOrderForm
,
...
@@ -151,7 +152,7 @@ export function apiSetCraftData({
...
@@ -151,7 +152,7 @@ export function apiSetCraftData({
}:
{
}:
{
id
:
number
|
undefined
id
:
number
|
undefined
craftTotalPrice
:
number
|
undefined
craftTotalPrice
:
number
|
undefined
recNumber
:
string
|
undefined
recNumber
:
string
|
undefined
craftPriceList
:
IUpdatePrice
[]
craftPriceList
:
IUpdatePrice
[]
})
{
})
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
...
...
src/api/warehouse.ts
View file @
4545b5dc
...
@@ -314,9 +314,9 @@ export function InRecordBatchCheckPrintApi(ids: string) {
...
@@ -314,9 +314,9 @@ export function InRecordBatchCheckPrintApi(ids: string) {
},
},
)
)
}
}
export
function
warehouseInRecord
Inventory
(
data
:
ExportInWarehouseInfo
)
{
export
function
warehouseInRecord
Export
(
data
:
ExportInWarehouseInfo
)
{
return
axios
.
post
<
never
,
BasePaginationData
<
never
>>
(
return
axios
.
post
<
never
,
BasePaginationData
<
never
>>
(
'factory/warehouseInRecord/
inventory
'
,
'factory/warehouseInRecord/
export
'
,
data
,
data
,
)
)
}
}
...
@@ -438,6 +438,20 @@ export function getInRecordLogApi(inRecordId?: number) {
...
@@ -438,6 +438,20 @@ export function getInRecordLogApi(inRecordId?: number) {
)
)
}
}
// 出库单
// 出库单
export
function
warehouseOutRecordExport
(
data
:
ExportInWarehouseInfo
)
{
return
axios
.
post
<
never
,
BasePaginationData
<
never
>>
(
'factory/warehouseOutRecord/export'
,
data
,
)
}
export
function
OutRecordBatchCheckPrintApi
(
ids
:
string
)
{
return
axios
.
get
<
never
,
BaseRespData
<
never
[]
>>
(
'factory/warehouseOutRecord/batchCheckPrint'
,
{
params
:
{
ids
},
},
)
}
export
function
getOutRecordStatusTree
()
{
export
function
getOutRecordStatusTree
()
{
return
axios
.
get
<
never
,
BaseRespData
<
InterWarehouseTree
[]
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
InterWarehouseTree
[]
>>
(
'factory/warehouseOutRecord/status_tree'
,
'factory/warehouseOutRecord/status_tree'
,
...
...
src/components/NavMenu.vue
View file @
4545b5dc
...
@@ -87,8 +87,9 @@
...
@@ -87,8 +87,9 @@
>
>
<div
class=
"nav-tabs-node_label"
>
<div
class=
"nav-tabs-node_label"
>
<span>
{{ item.title }}
</span>
<span>
{{ item.title }}
</span>
<!-- 首页不可删除 -->
<el-icon
<el-icon
v-if=
"tabs.length > 1"
v-if=
"
item.path != '/dashboard' &&
tabs.length > 1"
class=
"el-icon-close"
class=
"el-icon-close"
@
click
.
stop=
"removeTab(item.name)"
@
click
.
stop=
"removeTab(item.name)"
>
>
...
...
src/router/index.ts
View file @
4545b5dc
...
@@ -27,8 +27,8 @@ import WarehouseManage from '@/views/warehouse/manage.vue'
...
@@ -27,8 +27,8 @@ import WarehouseManage from '@/views/warehouse/manage.vue'
import
WarehouseWarning
from
'@/views/warehouse/warning.vue'
import
WarehouseWarning
from
'@/views/warehouse/warning.vue'
import
WarehousePosition
from
'@/views/warehouse/position.vue'
import
WarehousePosition
from
'@/views/warehouse/position.vue'
import
receiptDoc
from
'@/views/warehouse/receiptDoc.vue'
import
receiptDoc
from
'@/views/warehouse/receiptDoc.vue'
import
issueDoc
from
'@/views/warehouse/issueDoc.vue'
import
ExternalAuthorisationPage
from
'@/views/system/externalAuthorisationPage.vue'
import
ExternalAuthorisationPage
from
'@/views/system/externalAuthorisationPage.vue'
// import issueDoc from '@/views/warehouse/issueDoc.vue'
const
router
=
createRouter
({
const
router
=
createRouter
({
history
:
createWebHistory
(),
history
:
createWebHistory
(),
routes
:
[
routes
:
[
...
@@ -197,13 +197,13 @@ const router = createRouter({
...
@@ -197,13 +197,13 @@ const router = createRouter({
},
},
component
:
receiptDoc
,
component
:
receiptDoc
,
},
},
//
{
{
//
path: '/warehouse/issue-doc',
path
:
'/warehouse/issue-doc'
,
//
meta: {
meta
:
{
//
title: '出库单',
title
:
'出库单'
,
//
},
},
//
component: issueDoc,
component
:
issueDoc
,
//
},
},
{
{
path
:
'/warehouse/warning'
,
path
:
'/warehouse/warning'
,
meta
:
{
meta
:
{
...
...
src/router/menu.ts
View file @
4545b5dc
...
@@ -78,11 +78,11 @@ const menu: MenuItem[] = [
...
@@ -78,11 +78,11 @@ const menu: MenuItem[] = [
id
:
123
,
id
:
123
,
label
:
'入库单'
,
label
:
'入库单'
,
},
},
//
{
{
//
index: '/warehouse/issue-doc',
index
:
'/warehouse/issue-doc'
,
//
id: 124,
id
:
124
,
//
label: '出库单',
label
:
'出库单'
,
//
},
},
{
{
index
:
'/warehouse/manage'
,
index
:
'/warehouse/manage'
,
...
...
src/types/api/index.ts
View file @
4545b5dc
...
@@ -35,17 +35,4 @@ export interface baseRes {
...
@@ -35,17 +35,4 @@ export interface baseRes {
code
:
number
code
:
number
msg
:
string
msg
:
string
}
}
export
interface
PaymentForm
{
waterList
:
string
id
?:
number
|
string
actualAmount
?:
number
|
string
payableAmount
?:
number
|
string
recNumber
?:
number
|
string
}
export
interface
RejectParams
{
id
:
number
description
?:
string
ids
?:
string
pass
?:
number
}
src/types/api/order.ts
View file @
4545b5dc
...
@@ -81,7 +81,7 @@ export interface ProductList {
...
@@ -81,7 +81,7 @@ export interface ProductList {
subOrderNumber
?:
string
subOrderNumber
?:
string
shopNumber
?:
string
shopNumber
?:
string
material
?:
string
material
?:
string
materialPrice
?:
number
|
null
materialPrice
?:
number
|
null
count
?:
number
count
?:
number
baseSku
?:
string
baseSku
?:
string
erpSubOrderNumber
?:
string
erpSubOrderNumber
?:
string
...
@@ -277,3 +277,16 @@ export interface ICompareObjects {
...
@@ -277,3 +277,16 @@ export interface ICompareObjects {
lanshouPost
?:
string
lanshouPost
?:
string
lanshouRegion
?:
string
lanshouRegion
?:
string
}
}
export
interface
PaymentForm
{
waterList
:
string
id
?:
number
|
string
actualAmount
?:
number
|
string
payableAmount
?:
number
|
string
recNumber
?:
number
|
string
}
export
interface
RejectParams
{
id
:
number
description
?:
string
ids
?:
string
pass
?:
number
}
src/types/api/warehouse.ts
View file @
4545b5dc
...
@@ -5,6 +5,8 @@ export interface warehouseSearchForm {
...
@@ -5,6 +5,8 @@ export interface warehouseSearchForm {
billStatus
?:
string
billStatus
?:
string
createTimeEnd
?:
string
createTimeEnd
?:
string
createTimeStart
?:
string
createTimeStart
?:
string
startTime
?:
string
endTime
?:
string
inNo
?:
string
inNo
?:
string
outNo
?:
string
outNo
?:
string
warehouseSku
?:
string
warehouseSku
?:
string
...
@@ -14,6 +16,7 @@ export interface warehouseSearchForm {
...
@@ -14,6 +16,7 @@ export interface warehouseSearchForm {
export
interface
InterProductList
{
export
interface
InterProductList
{
createTime
?:
string
createTime
?:
string
id
?:
number
id
?:
number
inventoryId
?:
number
|
null
inId
?:
number
inId
?:
number
productNo
?:
string
|
null
//custom的货号
productNo
?:
string
|
null
//custom的货号
buyStored
?:
number
|
null
//入库数量
buyStored
?:
number
|
null
//入库数量
...
@@ -42,6 +45,7 @@ export interface InterWarehouseBase {
...
@@ -42,6 +45,7 @@ export interface InterWarehouseBase {
total
?:
number
total
?:
number
totalPrice
?:
number
totalPrice
?:
number
billStatus
?:
string
billStatus
?:
string
billStatusTxt
?:
string
remark
?:
string
|
null
remark
?:
string
|
null
dataVersion
?:
number
dataVersion
?:
number
createTime
?:
string
|
null
createTime
?:
string
|
null
...
@@ -86,6 +90,9 @@ export interface InterProductList {
...
@@ -86,6 +90,9 @@ export interface InterProductList {
warehouseSku
?:
string
warehouseSku
?:
string
locationId
?:
number
|
null
locationId
?:
number
|
null
locationCode
?:
string
|
null
locationCode
?:
string
|
null
inventory
?:
{
usableInventory
?:
number
}
}
}
export
interface
InterskuList
{
export
interface
InterskuList
{
id
?:
number
id
?:
number
...
@@ -101,6 +108,7 @@ export interface InterskuList {
...
@@ -101,6 +108,7 @@ export interface InterskuList {
price
?:
number
|
null
//出库单的
price
?:
number
|
null
//出库单的
usableInventory
?:
number
|
null
usableInventory
?:
number
|
null
warehouseSku
?:
string
warehouseSku
?:
string
remark
?:
string
|
null
}
}
export
interface
ILocation
{
export
interface
ILocation
{
id
?:
number
id
?:
number
...
...
src/utils/hooks/commonUtil.ts
View file @
4545b5dc
...
@@ -108,7 +108,6 @@ export function checkUpdateParams(
...
@@ -108,7 +108,6 @@ export function checkUpdateParams(
removeList
=
arr1
.
map
((
item
)
=>
item
[
'id'
]
as
IdType
)
removeList
=
arr1
.
map
((
item
)
=>
item
[
'id'
]
as
IdType
)
}
}
if
(
isBackKeyName
)
{
if
(
isBackKeyName
)
{
console
.
log
(
isBackKeyName
)
// 将列表直接添加到 params 顶层
// 将列表直接添加到 params 顶层
if
(
addList
.
length
>
0
)
params
[
'addList'
]
=
addList
||
undefined
if
(
addList
.
length
>
0
)
params
[
'addList'
]
=
addList
||
undefined
if
(
updateList
.
length
>
0
)
if
(
updateList
.
length
>
0
)
...
...
src/views/warehouse/issueDoc.vue
View file @
4545b5dc
This diff is collapsed.
Click to expand it.
src/views/warehouse/receiptDoc.vue
View file @
4545b5dc
This diff is collapsed.
Click to expand it.
src/views/warehouse/warning.vue
View file @
4545b5dc
...
@@ -112,18 +112,16 @@ const submitExportForm = async () => {
...
@@ -112,18 +112,16 @@ const submitExportForm = async () => {
return
ElMessage
.
error
(
'请选择导出类型'
)
return
ElMessage
.
error
(
'请选择导出类型'
)
}
}
exportLoading
.
value
=
true
exportLoading
.
value
=
true
let
purchaseIds
=
''
let
purchaseIds
:
number
[]
=
[]
let
exportTotal
:
number
|
undefined
=
undefined
let
exportTotal
:
number
|
undefined
=
undefined
const
params
:
AnyObject
=
{}
const
params
:
AnyObject
=
{}
const
resourceType
=
Number
(
exportForm
.
value
.
resource
)
const
resourceType
=
Number
(
exportForm
.
value
.
resource
)
if
(
resourceType
===
0
)
{
if
(
resourceType
===
0
)
{
purchaseIds
=
leftData
.
value
.
map
((
el
:
WarehouseWarning
)
=>
el
.
id
).
join
(
','
)
purchaseIds
=
leftData
.
value
.
map
((
el
:
WarehouseWarning
)
=>
Number
(
el
.
id
)
)
}
else
if
(
resourceType
===
1
)
{
}
else
if
(
resourceType
===
1
)
{
purchaseIds
=
selections
.
value
purchaseIds
=
selections
.
value
.
map
((
el
:
WarehouseWarning
)
=>
Number
(
el
.
id
))
.
map
((
el
:
WarehouseWarning
)
=>
el
.
id
)
.
join
(
','
)
}
else
if
(
resourceType
===
2
)
{
}
else
if
(
resourceType
===
2
)
{
purchaseIds
=
''
purchaseIds
=
[]
exportTotal
=
pagination
.
value
.
total
exportTotal
=
pagination
.
value
.
total
}
}
params
.
idList
=
purchaseIds
params
.
idList
=
purchaseIds
...
...
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