Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0cb8e6dc
authored
Apr 23, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat 施工单功能开发
1 parent
a0d19306
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
814 additions
and
2 deletions
src/router/modules/904_orderManagement.js
src/views/orderManage/constructionOrder.vue
src/views/orderManage/constructionOrderDetail.vue
src/views/orderManage/constructionOrderMock.js
src/views/orderManage/orderList.vue
src/router/modules/904_orderManagement.js
View file @
0cb8e6d
...
@@ -64,6 +64,11 @@ export const routerName = {
...
@@ -64,6 +64,11 @@ export const routerName = {
authId
:
"90403"
,
authId
:
"90403"
,
name
:
"订单详情"
,
name
:
"订单详情"
,
parentId
:
"90401"
parentId
:
"90401"
},
{
authId
:
"90410"
,
name
:
"订单详情"
,
parentId
:
"90401"
}
}
]
]
},
},
...
@@ -767,5 +772,17 @@ export const routerName = {
...
@@ -767,5 +772,17 @@ export const routerName = {
}
}
],
],
component
:
_import
(
"orderManage/referralAudit"
)
component
:
_import
(
"orderManage/referralAudit"
)
},
90410
:
{
path
:
"/constructionOrderDetail"
,
name
:
"constructionOrderDetail"
,
meta
:
{
title
:
"施工单详情"
,
authId
:
"90410"
,
parentId
:
"90401"
,
cache
:
false
,
activePath
:
"/orderList"
},
component
:
_import
(
"orderManage/constructionOrderDetail"
)
}
}
}
}
src/views/orderManage/constructionOrder.vue
0 → 100644
View file @
0cb8e6d
<!-- 施工单列表(布局占位,字段与接口待对接) -->
<
template
>
<div
class=
"construction-order-list"
>
<d2-container
class=
"m-t-40"
>
<div
class=
"header"
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:label-width=
"'150px'"
:form-data=
"searchFormData"
/>
<div
class=
"up-btns"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</div>
</div>
<div
class=
"tab-list construction-order__body"
>
<div
class=
"export-bar"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleExport"
>
导出数据
</el-button>
</div>
<d2-table
ref=
"constructionTable"
:has-num=
"true"
:search-form=
"tableSearchForm"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
<div
slot=
"technicianCol"
slot-scope=
"
{ scope: row }" class="cell-multiline">
{{
row
.
technicianText
||
'-'
}}
</div>
<div
slot=
"serviceItemsCol"
slot-scope=
"
{ scope: row }" class="cell-stacked">
<div
v-for=
"(line, idx) in (row.serviceLines || [
{ name: '-' }])" :key="'s' + idx" class="cell-stacked__line">
{{
line
.
name
}}
</div>
</div>
<div
slot=
"actualOutCol"
slot-scope=
"
{ scope: row }" class="cell-stacked">
<div
v-for=
"(line, idx) in (row.actualOutLines || ['-'])"
:key=
"'a' + idx"
class=
"cell-stacked__line"
>
{{
line
}}
</div>
</div>
<div
slot=
"constructionStatusCol"
slot-scope=
"
{ scope: row }" class="status-cell">
<span
:class=
"['table-circle', 'm-r-8', statusDotClass(row.constructionStatus)]"
/>
<span>
{{
row
.
constructionStatusText
||
'-'
}}
</span>
</div>
<div
slot=
"constructionTagCol"
slot-scope=
"
{ scope: row }" class="status-cell">
<span
:class=
"['table-circle', 'm-r-8', tagDotClass(row.constructionTag)]"
/>
<span>
{{
row
.
constructionTagText
||
'-'
}}
</span>
</div>
<div
slot=
"constructionPhotoCol"
slot-scope=
"
{ scope: row }" class="thumb-cell">
<el-image
v-if=
"row.constructionPhotoUrl"
class=
"thumb-cell__img"
:src=
"row.constructionPhotoUrl"
fit=
"cover"
/>
<span
v-else
>
-
</span>
</div>
<div
slot=
"auth-button"
slot-scope=
"btnScope"
class=
"action-cell"
>
<el-button
type=
"text"
size=
"small"
@
click=
"openDetail(btnScope.scope)"
>
详情
</el-button>
</div>
</d2-table>
</div>
</d2-container>
</div>
</
template
>
<
script
>
import
{
buildMockBaseRows
}
from
'./constructionOrderMock'
const
PLACEHOLDER_SELECT
=
[
{
confId
:
''
,
confName
:
'全部'
},
{
confId
:
'1'
,
confName
:
'示例一'
},
{
confId
:
'2'
,
confName
:
'示例二'
}
]
const
MOCK_BASE
=
buildMockBaseRows
()
export
default
{
name
:
'ConstructionOrder'
,
data
()
{
return
{
searchForm
:
{
constructionCode
:
''
,
storeId
:
''
,
mainOrderCode
:
''
,
technicianId
:
''
,
carModel
:
''
,
conversionStaff
:
''
,
constructionStatus
:
''
,
constructionTag
:
''
,
dispatchTimeRange
:
[],
claimTimeRange
:
[],
completeTimeRange
:
[]
},
searchFormData
:
[],
tableSearchForm
:
{},
tableParams
:
{
listName
:
'list'
,
btnId
:
`construction_order_
${
new
Date
().
getTime
()
+
parseInt
(
String
(
Math
.
random
()
*
1000
),
10
)}
`
,
tableOption
:
{
width
:
'100'
,
align
:
'center'
},
tableColumns
:
[]
}
}
},
created
()
{
this
.
initSearchFormData
()
this
.
initTableColumns
()
},
methods
:
{
getListApi
(
params
)
{
const
pageSize
=
params
.
pageSize
||
10
const
currentPage
=
params
.
currentPage
||
1
const
start
=
(
currentPage
-
1
)
*
pageSize
const
list
=
[]
for
(
let
i
=
0
;
i
<
pageSize
;
i
++
)
{
const
base
=
{
...
MOCK_BASE
[(
start
+
i
)
%
MOCK_BASE
.
length
]
}
base
.
id
=
`row-
${
currentPage
}
-
${
i
}
`
list
.
push
(
base
)
}
return
Promise
.
resolve
({
list
,
total
:
200
,
pageNum
:
currentPage
,
pageSize
})
},
beforeSearchFn
()
{
return
new
Promise
((
resolve
)
=>
{
this
.
tableSearchForm
=
{
...
this
.
getParams
()
}
resolve
()
})
},
getParams
()
{
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
},
handleSearch
()
{
if
(
this
.
$refs
.
constructionTable
)
{
this
.
$refs
.
constructionTable
.
refreshTable
(
true
,
true
)
}
},
handleReset
()
{
this
.
searchForm
=
{
constructionCode
:
''
,
storeId
:
''
,
mainOrderCode
:
''
,
technicianId
:
''
,
carModel
:
''
,
conversionStaff
:
''
,
constructionStatus
:
''
,
constructionTag
:
''
,
dispatchTimeRange
:
[],
claimTimeRange
:
[],
completeTimeRange
:
[]
}
if
(
this
.
$refs
.
constructionTable
)
{
this
.
$refs
.
constructionTable
.
refreshTable
(
true
,
true
)
}
},
handleExport
()
{
this
.
$message
.
info
(
'导出功能待接口对接后开放'
)
},
statusDotClass
(
s
)
{
if
(
s
===
'done'
)
return
'back-green'
if
(
s
===
'custom'
)
return
'back-red'
if
(
s
===
'wait'
)
return
'back-orange'
return
'back-grey'
},
tagDotClass
(
s
)
{
if
(
s
===
'done'
)
return
'back-green'
if
(
s
===
'out'
||
s
===
'wait'
)
return
'back-orange'
return
'back-grey'
},
openDetail
(
row
)
{
if
(
!
row
||
!
row
.
constructionCode
)
return
this
.
$router
.
push
({
name
:
'constructionOrderDetail'
,
query
:
{
constructionCode
:
row
.
constructionCode
}
})
},
initSearchFormData
()
{
const
opt
=
{
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionList
:
PLACEHOLDER_SELECT
}
this
.
searchFormData
=
[
{
label
:
'施工单编号'
,
name
:
'constructionCode'
,
type
:
'input'
},
{
label
:
'门店名称'
,
name
:
'storeId'
,
type
:
'select'
,
isClear
:
true
,
...
opt
},
{
label
:
'主订单编号'
,
name
:
'mainOrderCode'
,
type
:
'input'
},
{
label
:
'技师姓名'
,
name
:
'technicianId'
,
type
:
'select'
,
isClear
:
true
,
...
opt
},
{
label
:
'客户车型'
,
name
:
'carModel'
,
type
:
'input'
},
{
label
:
'转化人员'
,
name
:
'conversionStaff'
,
type
:
'select'
,
isClear
:
true
,
...
opt
},
{
label
:
'施工状态'
,
name
:
'constructionStatus'
,
type
:
'select'
,
isClear
:
true
,
...
opt
},
{
label
:
'施工标记'
,
name
:
'constructionTag'
,
type
:
'select'
,
isClear
:
true
,
...
opt
},
{
label
:
'派单时间'
,
name
:
'dispatchTimeRange'
,
type
:
'datePicker'
,
isClear
:
true
,
dateType
:
'datetimerange'
},
{
label
:
'领单时间'
,
name
:
'claimTimeRange'
,
type
:
'datePicker'
,
isClear
:
true
,
dateType
:
'datetimerange'
},
{
label
:
'完工时间'
,
name
:
'completeTimeRange'
,
type
:
'datePicker'
,
isClear
:
true
,
dateType
:
'datetimerange'
}
]
},
initTableColumns
()
{
const
center
=
{
align
:
'center'
}
this
.
tableParams
.
tableColumns
=
[
{
label
:
'施工单编号'
,
prop
:
'constructionCode'
,
minWidth
:
150
,
showOverFlow
:
true
,
...
center
},
{
label
:
'门店名称'
,
prop
:
'storeName'
,
minWidth
:
200
,
showOverFlow
:
true
,
...
center
},
{
label
:
'技师姓名'
,
prop
:
'technicianText'
,
minWidth
:
160
,
addHtml
:
'technicianCol'
,
...
center
},
{
label
:
'主订单编号'
,
prop
:
'mainOrderCode'
,
minWidth
:
150
,
showOverFlow
:
true
,
...
center
},
{
label
:
'客户车型'
,
prop
:
'carModel'
,
minWidth
:
120
,
...
center
},
{
label
:
'转化人员'
,
prop
:
'conversionStaff'
,
minWidth
:
100
,
...
center
},
{
label
:
'服务项目'
,
prop
:
'serviceLines'
,
minWidth
:
120
,
addHtml
:
'serviceItemsCol'
,
...
center
},
{
label
:
'实际出库数量(米/件)'
,
prop
:
'actualOutLines'
,
minWidth
:
140
,
addHtml
:
'actualOutCol'
,
...
center
},
{
label
:
'子订单编号'
,
prop
:
'subOrderCode'
,
minWidth
:
150
,
showOverFlow
:
true
,
...
center
},
{
label
:
'子商品名称'
,
prop
:
'subProductName'
,
minWidth
:
140
,
showOverFlow
:
true
,
...
center
},
{
label
:
'物料编码'
,
prop
:
'materialCode'
,
minWidth
:
150
,
showOverFlow
:
true
,
...
center
},
{
label
:
'施工状态'
,
prop
:
'constructionStatus'
,
minWidth
:
120
,
addHtml
:
'constructionStatusCol'
,
...
center
},
{
label
:
'施工标记'
,
prop
:
'constructionTag'
,
minWidth
:
120
,
addHtml
:
'constructionTagCol'
,
...
center
},
{
label
:
'派单时间'
,
prop
:
'dispatchTime'
,
minWidth
:
160
,
...
center
},
{
label
:
'领单时间'
,
prop
:
'claimTime'
,
minWidth
:
160
,
...
center
},
{
label
:
'完工时间'
,
prop
:
'completeTime'
,
minWidth
:
160
,
...
center
},
{
label
:
'施工图片'
,
prop
:
'constructionPhotoUrl'
,
minWidth
:
100
,
addHtml
:
'constructionPhotoCol'
,
...
center
}
]
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.construction-order-list
{
/* 列表单元格文字默认居中(含非插槽列) */
::v-deep
.el-table
th
>
.cell,
::v-deep
.el-table
td
>
.cell
{
text-align
:
center
;
}
.construction-order__body
{
background
:
#fff
;
width
:
100%
;
margin-top
:
16px
;
padding
:
20px
40px
24px
;
box-sizing
:
border-box
;
}
.export-bar
{
text-align
:
center
;
margin-bottom
:
16px
;
}
.cell-multiline
{
text-align
:
center
;
}
.cell-stacked
{
padding
:
4px
0
;
text-align
:
center
;
}
.cell-stacked__line
{
line-height
:
22px
;
padding
:
2px
0
;
text-align
:
center
;
}
.status-cell
{
display
:
inline-flex
;
align-items
:
center
;
justify-content
:
center
;
flex-wrap
:
wrap
;
width
:
100%
;
text-align
:
center
;
}
.thumb-cell
{
text-align
:
center
;
&__img
{
width
:
48px
;
height
:
48px
;
border-radius
:
4px
;
}
}
.action-cell
{
text-align
:
center
;
}
}
.m-t-40
{
margin-top
:
40px
;
}
</
style
>
src/views/orderManage/constructionOrderDetail.vue
0 → 100644
View file @
0cb8e6d
<!-- 施工单详情(占位:按施工单编号匹配列表假数据,接口对接后改为请求) -->
<
template
>
<d2-container>
<div
class=
"construction-order-detail"
>
<div
class=
"detail-scroll"
>
<section
class=
"detail-card"
>
<h3
class=
"detail-card__title"
>
基础信息
</h3>
<el-row
:gutter=
"16"
>
<el-col
:span=
"12"
class=
"detail-row"
>
<span
class=
"detail-label"
>
施工单编号:
</span>
<span
class=
"detail-value"
>
{{
detailForm
.
constructionCode
}}
</span>
</el-col>
<el-col
:span=
"12"
class=
"detail-row"
>
<span
class=
"detail-label"
>
主订单编号:
</span>
<span
class=
"detail-value"
>
{{
detailForm
.
mainOrderCode
}}
</span>
</el-col>
<el-col
:span=
"12"
class=
"detail-row"
>
<span
class=
"detail-label"
>
门店名称:
</span>
<span
class=
"detail-value"
>
{{
detailForm
.
storeName
}}
</span>
</el-col>
<el-col
:span=
"12"
class=
"detail-row"
>
<span
class=
"detail-label"
>
客户车型:
</span>
<span
class=
"detail-value"
>
{{
detailForm
.
carModel
}}
</span>
</el-col>
<el-col
:span=
"12"
class=
"detail-row"
>
<span
class=
"detail-label"
>
转化人员:
</span>
<span
class=
"detail-value"
>
{{
detailForm
.
conversionStaff
}}
</span>
</el-col>
</el-row>
</section>
<section
class=
"detail-card"
>
<h3
class=
"detail-card__title"
>
施工信息
</h3>
<div
class=
"staff-cards"
>
<div
v-for=
"(p, i) in detailForm.staffList"
:key=
"'st' + i"
class=
"staff-card"
>
<div
class=
"staff-card__avatar"
>
{{
p
.
name
&&
p
.
name
.
charAt
(
0
)
}}
</div>
<div
class=
"staff-card__meta"
>
<div
class=
"staff-card__name"
>
{{
p
.
name
}}
</div>
<el-tag
size=
"small"
type=
"info"
class=
"staff-card__tag"
>
{{
p
.
roleLabel
}}
</el-tag>
</div>
</div>
</div>
</section>
<section
class=
"detail-card"
>
<h3
class=
"detail-card__title"
>
施工信息
</h3>
<div
class=
"sub-block"
>
<div
class=
"sub-block__head"
>
服务项目及实际出库数量:
</div>
<ul
class=
"strip-list"
>
<li
v-for=
"(it, i) in detailForm.serviceItems"
:key=
"'sv' + i"
class=
"strip-list__row"
>
<span>
{{
it
.
name
}}
</span>
<span
class=
"strip-list__amount"
>
{{
it
.
qty
}}
</span>
</li>
</ul>
</div>
<div
class=
"sub-block m-t-16"
>
<div
class=
"sub-block__head"
>
子订单明细:
</div>
<ul
class=
"suborder-list"
>
<li
v-for=
"(so, j) in detailForm.subOrders"
:key=
"'so' + j"
class=
"suborder-list__row"
>
<div
class=
"suborder-list__left"
>
<span>
{{
so
.
productName
}}
</span>
<span
class=
"suborder-sep"
/>
<span
class=
"suborder-mcode"
>
物料编码
{{
so
.
materialCode
}}
</span>
</div>
<div
class=
"suborder-list__right"
>
<el-tag
v-if=
"so.tag1"
size=
"small"
:type=
"so.tag1Type"
class=
"suborder-tag"
effect=
"light"
>
{{
so
.
tag1
}}
</el-tag>
<span
class=
"suborder-divider"
/>
<el-tag
v-if=
"so.tag2"
size=
"small"
:type=
"so.tag2Type"
class=
"suborder-tag"
effect=
"light"
>
{{
so
.
tag2
}}
</el-tag>
</div>
</li>
</ul>
</div>
</section>
<section
class=
"detail-card"
>
<h3
class=
"detail-card__title"
>
时间节点
</h3>
<el-row
:gutter=
"16"
>
<el-col
:span=
"12"
class=
"detail-row"
>
<span
class=
"detail-label"
>
派单时间:
</span>
<span
class=
"detail-value"
>
{{
detailForm
.
dispatchTime
}}
</span>
</el-col>
<el-col
:span=
"12"
class=
"detail-row"
>
<span
class=
"detail-label"
>
领单时间:
</span>
<span
class=
"detail-value"
>
{{
detailForm
.
claimTime
}}
</span>
</el-col>
<el-col
:span=
"12"
class=
"detail-row"
>
<span
class=
"detail-label"
>
完工时间:
</span>
<span
class=
"detail-value"
>
{{
detailForm
.
completeTime
}}
</span>
</el-col>
</el-row>
</section>
<section
class=
"detail-card"
>
<h3
class=
"detail-card__title"
>
施工照片(
{{
(
detailForm
.
photos
&&
detailForm
.
photos
.
length
)
||
0
}}
张)
</h3>
<div
class=
"photo-row"
>
<el-image
v-for=
"(u, k) in detailForm.photos"
:key=
"'ph' + k"
class=
"photo-row__item"
:src=
"u"
fit=
"cover"
/>
</div>
</section>
</div>
<div
class=
"footer_box"
>
<el-button
class=
"footer_btn"
size=
"medium"
type=
"primary"
@
click=
"handleBack"
>
返回
</el-button>
</div>
</div>
</d2-container>
</
template
>
<
script
>
import
{
buildMockBaseRows
,
buildDetailFormFromListRow
}
from
'./constructionOrderMock'
const
MOCK_ROWS
=
buildMockBaseRows
()
const
emptyForm
=
()
=>
({
constructionCode
:
''
,
mainOrderCode
:
''
,
storeName
:
''
,
carModel
:
''
,
conversionStaff
:
''
,
staffList
:
[],
serviceItems
:
[],
subOrders
:
[],
dispatchTime
:
''
,
claimTime
:
''
,
completeTime
:
''
,
photos
:
[]
})
export
default
{
name
:
'ConstructionOrderDetail'
,
data
()
{
return
{
detailForm
:
emptyForm
()
}
},
watch
:
{
'$route.query.constructionCode'
()
{
this
.
loadDetail
()
}
},
mounted
()
{
this
.
loadDetail
()
},
methods
:
{
loadDetail
()
{
const
code
=
this
.
$route
.
query
.
constructionCode
if
(
!
code
)
{
this
.
detailForm
=
emptyForm
()
return
}
const
row
=
MOCK_ROWS
.
find
((
r
)
=>
r
.
constructionCode
===
code
)
||
MOCK_ROWS
[
0
]
this
.
detailForm
=
buildDetailFormFromListRow
(
row
)
},
handleBack
()
{
this
.
$router
.
push
({
name
:
'orderList'
,
params
:
{
tabPane
:
'6'
,
tabLabel
:
'construction-order'
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.construction-order-detail
{
padding
:
0
0
20px
;
}
.detail-scroll
{
background
:
#f5f5f5
;
padding
:
12px
8px
8px
;
min-height
:
200px
;
}
.detail-card
{
background
:
#fff
;
border-radius
:
2px
;
padding
:
16px
20px
;
margin-bottom
:
12px
;
}
.detail-card__title
{
font-size
:
15px
;
font-weight
:
600
;
color
:
#1d1d1d
;
margin
:
0
0
14px
0
;
}
.detail-row
{
margin-bottom
:
10px
;
font-size
:
14px
;
}
.detail-label
{
color
:
#909399
;
}
.detail-value
{
color
:
#303133
;
}
.staff-cards
{
display
:
flex
;
flex-wrap
:
wrap
;
gap
:
12px
;
}
.staff-card
{
display
:
flex
;
align-items
:
center
;
background
:
#f0f7ff
;
border
:
1px
solid
#d9ecff
;
border-radius
:
4px
;
padding
:
8px
12px
;
min-width
:
200px
;
}
.staff-card__avatar
{
width
:
40px
;
height
:
40px
;
border-radius
:
50%
;
background
:
#409eff
;
color
:
#fff
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
16px
;
margin-right
:
10px
;
flex-shrink
:
0
;
}
.staff-card__name
{
font-size
:
14px
;
color
:
#303133
;
margin-bottom
:
4px
;
}
.m-t-16
{
margin-top
:
16px
;
}
.sub-block__head
{
font-size
:
14px
;
color
:
#606266
;
margin-bottom
:
8px
;
}
.strip-list
{
list-style
:
none
;
padding
:
0
;
margin
:
0
;
}
.strip-list__row
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
background
:
#f5f7fa
;
padding
:
10px
14px
;
margin-bottom
:
6px
;
font-size
:
14px
;
color
:
#303133
;
}
.strip-list__amount
{
color
:
#606266
;
}
.suborder-list
{
list-style
:
none
;
padding
:
0
;
margin
:
0
;
}
.suborder-list__row
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
background
:
#f5f7fa
;
padding
:
10px
14px
;
margin-bottom
:
6px
;
font-size
:
14px
;
flex-wrap
:
wrap
;
gap
:
8px
;
}
.suborder-list__left
{
color
:
#303133
;
}
.suborder-sep
{
display
:
inline-block
;
width
:
1px
;
height
:
12px
;
background
:
#dcdfe6
;
margin
:
0
8px
;
vertical-align
:
middle
;
}
.suborder-mcode
{
color
:
#606266
;
}
.suborder-list__right
{
display
:
flex
;
align-items
:
center
;
flex-wrap
:
wrap
;
}
.suborder-divider
{
width
:
1px
;
height
:
14px
;
background
:
#dcdfe6
;
margin
:
0
6px
;
}
.suborder-tag
{
border-radius
:
4px
;
}
.photo-row
{
display
:
flex
;
flex-wrap
:
wrap
;
gap
:
10px
;
}
.photo-row__item
{
width
:
120px
;
height
:
90px
;
border-radius
:
4px
;
}
.footer_box
{
text-align
:
center
;
padding
:
20px
0
0
;
}
</
style
>
src/views/orderManage/constructionOrderMock.js
0 → 100644
View file @
0cb8e6d
/**
* 施工单列表/详情占位数据(接口对接后可删或改为请求)
*/
import
storeImg
from
'@/assets/store.png'
export
function
buildMockBaseRows
()
{
return
[
{
constructionCode
:
'CW0001'
,
storeName
:
'深圳承翰汽车销售集团有限公司'
,
technicianText
:
'李某 (主) / 李韩 (副)'
,
mainOrderCode
:
'52603161715449580002'
,
carModel
:
'丰田凯美瑞'
,
conversionStaff
:
'宋振'
,
serviceLines
:
[
{
name
:
'内饰清洗'
},
{
name
:
'隔音安装'
}
],
actualOutLines
:
[
'1.2米/件'
,
'2件'
],
subOrderCode
:
'52603161715449580003'
,
subProductName
:
'强生尊誉版GH7车身'
,
materialCode
:
'260414115517373'
,
constructionStatus
:
'wait'
,
constructionStatusText
:
'待施工'
,
constructionTag
:
'wait'
,
constructionTagText
:
'待领单'
,
dispatchTime
:
'2026-02-24 09:15:00'
,
claimTime
:
'-'
,
completeTime
:
'-'
,
constructionPhotoUrl
:
storeImg
},
{
constructionCode
:
'CW0002'
,
storeName
:
'示例门店B'
,
technicianText
:
'王伟 (主)'
,
mainOrderCode
:
'52603161715449580010'
,
carModel
:
'本田雅阁'
,
conversionStaff
:
'周敏'
,
serviceLines
:
[{
name
:
'轮毂修复'
}],
actualOutLines
:
[
'1.70米/件'
],
subOrderCode
:
'52603161715449580011'
,
subProductName
:
'强生尊誉版GH7车身'
,
materialCode
:
'260414115517374'
,
constructionStatus
:
'done'
,
constructionStatusText
:
'已施工'
,
constructionTag
:
'done'
,
constructionTagText
:
'已完工'
,
dispatchTime
:
'2026-02-20 10:00:00'
,
claimTime
:
'2026-02-20 10:05:00'
,
completeTime
:
'2026-02-20 16:00:00'
,
constructionPhotoUrl
:
storeImg
},
{
constructionCode
:
'CW0003'
,
storeName
:
'示例门店C'
,
technicianText
:
'张某 (主)'
,
mainOrderCode
:
'52603161715449580020'
,
carModel
:
'大众朗逸'
,
conversionStaff
:
'刘洋'
,
serviceLines
:
[{
name
:
'全车贴膜'
}],
actualOutLines
:
[
'1套'
],
subOrderCode
:
'52603161715449580021'
,
subProductName
:
'前挡+车身'
,
materialCode
:
'260414115517375'
,
constructionStatus
:
'custom'
,
constructionStatusText
:
'客户返工'
,
constructionTag
:
'out'
,
constructionTagText
:
'待出库'
,
dispatchTime
:
'2026-02-18 11:00:00'
,
claimTime
:
'-'
,
completeTime
:
'-'
,
constructionPhotoUrl
:
storeImg
}
]
}
/** 列表行 -> 详情表单(占位) */
export
function
buildDetailFormFromListRow
(
row
)
{
return
{
constructionCode
:
row
.
constructionCode
,
mainOrderCode
:
row
.
mainOrderCode
,
storeName
:
row
.
storeName
,
carModel
:
row
.
carModel
,
conversionStaff
:
row
.
conversionStaff
,
staffList
:
[
{
name
:
'李某一'
,
role
:
'main'
,
roleLabel
:
'主技师'
},
{
name
:
'李韩'
,
role
:
'sub'
,
roleLabel
:
'副手技师'
},
{
name
:
'王某'
,
role
:
'sub'
,
roleLabel
:
'副手技师'
}
],
serviceItems
:
(
row
.
serviceLines
||
[]).
map
((
l
,
i
)
=>
({
name
:
l
.
name
,
qty
:
(
row
.
actualOutLines
&&
row
.
actualOutLines
[
i
])
||
'-'
})),
subOrders
:
[
{
productName
:
row
.
subProductName
,
materialCode
:
row
.
materialCode
,
tag1
:
row
.
constructionStatusText
,
tag1Type
:
row
.
constructionStatus
===
'done'
?
'success'
:
row
.
constructionStatus
===
'custom'
?
'danger'
:
'warning'
,
tag2
:
row
.
constructionTagText
,
tag2Type
:
row
.
constructionTag
===
'done'
?
'success'
:
'warning'
}
],
dispatchTime
:
row
.
dispatchTime
,
claimTime
:
row
.
claimTime
,
completeTime
:
row
.
completeTime
,
photos
:
[
storeImg
,
storeImg
,
storeImg
,
storeImg
]
}
}
export
{
storeImg
}
src/views/orderManage/orderList.vue
View file @
0cb8e6d
...
@@ -15,6 +15,7 @@ import CrowdFunding from "./crowdfunding.vue"
...
@@ -15,6 +15,7 @@ import CrowdFunding from "./crowdfunding.vue"
import
carDamage
from
"./carDamage.vue"
import
carDamage
from
"./carDamage.vue"
import
configUpgradation
from
"./configUpgradation.vue"
import
configUpgradation
from
"./configUpgradation.vue"
import
integralShopping
from
"./integralShopping.vue"
import
integralShopping
from
"./integralShopping.vue"
import
ConstructionOrder
from
"./constructionOrder.vue"
export
default
{
export
default
{
name
:
"OrderList"
,
name
:
"OrderList"
,
components
:
{
components
:
{
...
@@ -22,7 +23,8 @@ export default {
...
@@ -22,7 +23,8 @@ export default {
CrowdFunding
,
CrowdFunding
,
carDamage
,
carDamage
,
configUpgradation
,
configUpgradation
,
integralShopping
integralShopping
,
ConstructionOrder
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -47,6 +49,10 @@ export default {
...
@@ -47,6 +49,10 @@ export default {
{
{
label
:
"积分商城"
,
label
:
"积分商城"
,
name
:
"5"
name
:
"5"
},
{
label
:
"施工单"
,
name
:
"6"
}
}
],
],
// tabName: "integralShopping"
// tabName: "integralShopping"
...
@@ -71,7 +77,8 @@ export default {
...
@@ -71,7 +77,8 @@ export default {
2
:
"config-upgradation"
,
2
:
"config-upgradation"
,
3
:
"crowd-funding"
,
3
:
"crowd-funding"
,
4
:
"carDamage"
,
4
:
"carDamage"
,
5
:
"integral-shopping"
5
:
"integral-shopping"
,
6
:
"construction-order"
}
}
this
.
tabName
=
arr
[
+
this
.
activeName
]
this
.
tabName
=
arr
[
+
this
.
activeName
]
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment