Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4e13bae0
authored
Jul 06, 2026
by
Lin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 优化新建工单回填备注业务
1 parent
1d06801d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletions
api/module/common.js
pages/boutique/tool/components/CreateOrder.vue
api/module/common.js
View file @
4e13bae
...
@@ -739,4 +739,13 @@ module.exports = {
...
@@ -739,4 +739,13 @@ module.exports = {
...
data
...
data
})
})
},
},
updateGoodsOrderRemark
(
data
=
{})
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.goodsOrder.remark'
,
projectName
:
'pad'
,
...
data
})
},
}
}
pages/boutique/tool/components/CreateOrder.vue
View file @
4e13bae
...
@@ -661,7 +661,10 @@ export default {
...
@@ -661,7 +661,10 @@ export default {
// 根据popupTypeEnum优化处理
// 根据popupTypeEnum优化处理
const
_typeValue
=
this
.
popupTypeEnum
[
popupTypeNum
]
const
_typeValue
=
this
.
popupTypeEnum
[
popupTypeNum
]
if
(
val
.
popupType
==
19
)
return
this
.
setCustomerInfo
(
chooseContent
)
if
(
val
.
popupType
==
19
)
{
console
.
log
(
'客户档案选中数据:'
,
chooseContent
)
return
this
.
setCustomerInfo
(
chooseContent
)
}
// 安全检查:如果_typeValue不存在,直接返回并关闭弹窗
// 安全检查:如果_typeValue不存在,直接返回并关闭弹窗
if
(
!
_typeValue
||
!
_typeValue
.
key
)
{
if
(
!
_typeValue
||
!
_typeValue
.
key
)
{
...
@@ -1994,6 +1997,18 @@ export default {
...
@@ -1994,6 +1997,18 @@ export default {
}
}
return
subOrderList
return
subOrderList
},
},
async
fetchGoodsOrderRemark
(
customerId
)
{
console
.
log
(
'获取订单备注***'
,
customerId
)
if
(
!
customerId
)
return
try
{
const
res
=
await
uni
.
$api
.
commonApi
.
updateGoodsOrderRemark
({
id
:
customerId
})
console
.
log
(
'获取订单备注***'
,
res
)
const
remark
=
res
?.
remark
||
''
this
.
$set
(
this
.
orderObj
,
'remark'
,
remark
)
}
catch
(
e
)
{
console
.
error
(
'获取订单备注失败'
,
e
)
}
},
async
setCustomerInfo
(
customerInfo
)
{
async
setCustomerInfo
(
customerInfo
)
{
const
productFields
=
[
'frontGear'
,
'frontWindow'
,
'rearGear'
,
'rearWindow'
,
'sunRoof'
,
'package'
,
'skuGoods'
]
const
productFields
=
[
'frontGear'
,
'frontWindow'
,
'rearGear'
,
'rearWindow'
,
'sunRoof'
,
'package'
,
'skuGoods'
]
productFields
.
forEach
(
field
=>
{
productFields
.
forEach
(
field
=>
{
...
@@ -2004,6 +2019,11 @@ export default {
...
@@ -2004,6 +2019,11 @@ export default {
this
.
orderObj
.
customerId
=
customerInfo
.
id
this
.
orderObj
.
customerId
=
customerInfo
.
id
this
.
subOrderList
=
this
.
prepareSubOrderListFromOrder
(
customerInfo
)
this
.
subOrderList
=
this
.
prepareSubOrderListFromOrder
(
customerInfo
)
const
customerId
=
customerInfo
.
customer
?.
customerId
if
(
customerId
)
{
await
this
.
fetchGoodsOrderRemark
(
customerId
)
}
this
.
updateSceneGate
()
this
.
updateSceneGate
()
const
echoedSelectPayType
=
this
.
orderObj
.
selectPayType
const
echoedSelectPayType
=
this
.
orderObj
.
selectPayType
const
echoedPayeeType
=
this
.
orderObj
.
payeeType
const
echoedPayeeType
=
this
.
orderObj
.
payeeType
...
...
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