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
2b26f4ab
Commit
2b26f4ab
authored
Jul 30, 2026
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:bug修复
parent
77b7bb62
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
49 additions
and
14 deletions
+49
-14
components.d.ts
+1
-0
package-lock.json
+1
-0
src/api/podCnOrder.ts
+5
-1
src/components/TableView.vue
+1
-1
src/types/api/order/factoryOrderNew.ts
+5
-0
src/views/order/factoryOrderNew/hooks/useOrderDictionaries.ts
+8
-4
src/views/order/factoryOrderNew/index.vue
+28
-7
src/views/order/index.vue
+0
-1
No files found.
components.d.ts
View file @
2b26f4ab
...
...
@@ -27,6 +27,7 @@ declare module 'vue' {
ElRadioButton
:
typeof
import
(
'element-plus/es'
)[
'ElRadioButton'
]
ElRadioGroup
:
typeof
import
(
'element-plus/es'
)[
'ElRadioGroup'
]
ElSelect
:
typeof
import
(
'element-plus/es'
)[
'ElSelect'
]
ElSwitch
:
typeof
import
(
'element-plus/es'
)[
'ElSwitch'
]
ElTable
:
typeof
import
(
'element-plus/es'
)[
'ElTable'
]
ElTableColumn
:
typeof
import
(
'element-plus/es'
)[
'ElTableColumn'
]
ElTooltip
:
typeof
import
(
'element-plus/es'
)[
'ElTooltip'
]
...
...
package-lock.json
View file @
2b26f4ab
...
...
@@ -6559,6 +6559,7 @@
"resolved"
:
"https://registry.npmmirror.com/vite-plugin-compression/-/vite-plugin-compression-0.5.1.tgz"
,
"integrity"
:
"sha512-5QJKBDc+gNYVqL/skgFAP81Yuzo9R+EAf19d+EtsMF/i8kFUpNi3J/H01QD3Oo8zBQn+NzoCIFkpPLynoOzaJg=="
,
"dev"
:
true
,
"license"
:
"MIT"
,
"dependencies"
:
{
"chalk"
:
"^4.1.2"
,
"debug"
:
"^4.3.3"
,
...
...
src/api/podCnOrder.ts
View file @
2b26f4ab
...
...
@@ -553,7 +553,11 @@ export function getListCraftApi() {
`factory/podJomallOrderProductCn/listCraft`
,
)
}
export
function
getPodOrderCraftApi
()
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
`factory/podOrder/listCraft`
,
)
}
// 批量下载 列表
export
function
batchDownloadApi
(
params
:
SearchForm
,
...
...
src/components/TableView.vue
View file @
2b26f4ab
...
...
@@ -56,7 +56,7 @@
</div>
</
template
>
</ElTableColumn>
<RenderColumn
v-
else
:col=
"column"
>
<RenderColumn
v-
if=
"column.type !== 'expand' && !column.hidden"
:col=
"column"
>
<
template
v-for=
"(_, name) of slots"
#[
name
]="
scope
"
>
<slot
:name=
"name"
v-bind=
"scope"
/>
</
template
>
...
...
src/types/api/order/factoryOrderNew.ts
View file @
2b26f4ab
...
...
@@ -5,7 +5,12 @@ export interface StatusTreeNode {
unit
?:
string
// 数量单位
children
:
StatusTreeNode
[]
|
null
}
export
interface
CraftData
{
name
:
string
id
:
number
|
string
warehouseName
:
string
}
export
interface
SearchForm
{
status
?:
string
operationStatus
?:
string
|
string
[]
...
...
src/views/order/factoryOrderNew/hooks/useOrderDictionaries.ts
View file @
2b26f4ab
...
...
@@ -29,7 +29,7 @@ const processTypeMap: Record<string, string> = {
QT
:
'其他'
,
}
export
function
useOrderDictionaries
()
{
export
function
useOrderDictionaries
(
dontLoadCraft
?:
boolean
)
{
const
userMarkList
=
ref
<
string
[]
>
([])
const
receiverCountryList
=
ref
<
{
countryCode
:
string
;
nameCn
:
string
}[]
>
([])
const
customTagList
=
ref
<
{
id
:
string
;
name
:
string
}[]
>
([])
...
...
@@ -136,16 +136,20 @@ export function useOrderDictionaries() {
}
const
loadAllDictionaries
=
async
()
=>
{
await
Promise
.
all
([
loadCraftList
(),
const
arr
=
[
getUserMark
(),
getCustomTagList
(),
getLogisticsCompanyAllCodelist
(),
])
]
if
(
!
dontLoadCraft
){
arr
.
unshift
(
loadCraftList
())
}
await
Promise
.
all
(
arr
)
}
return
{
userMarkList
,
processTypeMap
,
receiverCountryList
,
customTagList
,
allCodelist
,
...
...
src/views/order/factoryOrderNew/index.vue
View file @
2b26f4ab
...
...
@@ -172,7 +172,7 @@
<
ElFormItem
label
=
"工艺"
label
-
width
=
"50px"
>
<
LogisticsWaySelect
v
-
model
=
"searchForm.craftCode"
:
company
-
list
=
"
c
raftList"
:
company
-
list
=
"
podC
raftList"
:
start
-
width
=
"'150px'"
search
-
placeholder
=
"搜索工艺名称"
start
-
placeholder
=
"请选择工艺名称"
...
...
@@ -1281,10 +1281,11 @@ import type { BaseRespData } from '@/types/api'
import
type
{
FactoryOrderNewListData
,
ProductListData
,
CraftData
,
ExportParams
,
operateOrderListData
,
}
from
'@/types/api/order/factoryOrderNew'
import
type
{
AddressInfo
}
from
'@/types/api/podCnOrder'
import
type
{
AddressInfo
,
CraftListData
}
from
'@/types/api/podCnOrder'
import
platformJson
from
'../../../json/platform.json'
import
{
refreshProductInfoApi
,
...
...
@@ -1365,10 +1366,11 @@ import { useOrderBatchActions } from './hooks/useOrderBatchActions'
import
{
ElButton
,
ElTag
}
from
'element-plus'
import
OrderInventoryDetailDialog
from
'./component/OrderInventoryDialog.vue'
import
{
downloadByUrl
}
from
'@/utils/index.ts'
import
{
getPodOrderCraftApi
}
from
'@/api/podCnOrder.ts'
const
resultInfo
=
ref
<
ResultInfoDataItem
[]
>
([])
const
resultRefs
=
ref
()
const
podCraftList
=
ref
<
CraftData
[]
>
([])
const
statusSidebarCollapsed
=
ref
(
false
)
const
toggleStatusSidebar
=
()
=>
{
statusSidebarCollapsed
.
value
=
!
statusSidebarCollapsed
.
value
...
...
@@ -1398,13 +1400,13 @@ const {
receiverCountryList
,
customTagList
,
allCodelist
,
craftList
,
warehouseList
,
processTypeMap
,
productTypeGroups
,
getReceiverCountryList
,
loadWarehouseList
,
loadAllDictionaries
,
}
=
useOrderDictionaries
()
}
=
useOrderDictionaries
(
true
)
const
refreshCurrentViewProxy
=
ref
<
()
=>
void
>
(()
=>
{
}
)
let
getFactoryOrderSearchVisibilityContext
:
()
=>
FactoryOrderSearchQueryVisibilityContext
=
...
...
@@ -1521,6 +1523,17 @@ const getListQueryPayload = () => {
return
payload
}
const
getCraft
=
async
()
=>
{
const
res
=
await
getPodOrderCraftApi
()
const
data
:
CraftListData
[]
=
res
.
data
podCraftList
.
value
=
data
.
map
((
item
:
CraftListData
)
=>
({
id
:
item
.
craftCode
,
name
:
item
.
craftName
,
warehouseName
:
processTypeMap
[
item
.
craftType
]
??
'其他'
,
}
))
}
getCraft
()
const
{
subLoading
,
activeTab
,
...
...
@@ -1917,11 +1930,19 @@ const mainColumns = computed(() => [
}
,
{
prop
:
'statusName'
,
label
:
status
.
value
!==
'SUSPEND'
?
'订单状态'
:
'挂起前状态'
,
label
:
'挂起前状态'
,
minWidth
:
120
,
hidden
:
status
.
value
!==
'SUSPEND'
,
align
:
'center'
}
,
{
prop
:
'statusName'
,
hidden
:
status
.
value
===
'SUSPEND'
,
label
:
'订单状态'
,
minWidth
:
120
,
align
:
'center'
,
render
:
(
row
:
FactoryOrderNewListData
)
=>
{
return
<
span
>
{
row
.
pause
?
'挂起'
:
row
.
statusName
}
<
/span
>
return
<
span
>
{
row
.
pause
?
'挂起'
:
row
.
statusName
}
<
/span
>
}
,
}
,
{
...
...
src/views/order/index.vue
View file @
2b26f4ab
...
...
@@ -198,7 +198,6 @@
>
<ElButton
:disabled=
"
selection.find((item) => item.manuscriptStatus !== 30) ||
selection.length !== 1
"
type=
"warning"
...
...
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