Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
0bce6df4
Commit
0bce6df4
authored
May 18, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建报价单后重置表单
parent
b9dfcbf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
edit.vue
src/views/ecw/offer/edit.vue
+17
-14
No files found.
src/views/ecw/offer/edit.vue
View file @
0bce6df4
...
...
@@ -520,6 +520,14 @@ import QuickCreateCustomer from '@/components/QuickCreateCustomer'
import
{
getCustomerContactsSelect
}
from
'
@/api/ecw/customerContacts
'
import
Decimal
from
'
decimal.js
'
window
.
Decimal
=
Decimal
const
defaultForm
=
{
sendstatus
:
0
,
type
:
[],
control
:
false
,
isCargoControl
:
false
,
prodCreateReqVOList
:[],
transportVO
:
{}
}
export
default
{
name
:
"
EcwOfferEdit
"
,
components
:
{
...
...
@@ -542,16 +550,9 @@ export default {
// couponList: [],
fee
:
{},
// 费用
// 表单参数
form
:
{
sendstatus
:
0
,
type
:
[],
control
:
false
,
isCargoControl
:
false
,
prodCreateReqVOList
:[],
transportVO
:
{}
},
form
:
{...
defaultForm
},
// 表单校验
labelStyle
:
'
width:120px
'
,
productNames
:
{},
// 品名id和名称对应关系
couponAvailableGroupDtoList
:
[],
// 可用优惠
...
...
@@ -771,7 +772,7 @@ export default {
currencyId
:
this
.
form
.
otherFeeCurrencyId
,
amount
:
Decimal
(
this
.
form
.
otherFee
)
}
// 如果保价费跟其他费用是同一种货币(都是美元)
if
(
!
withInsuranceFee
&&
this
.
fee
&&
this
.
fee
.
insuranceFee
&&
this
.
form
.
otherFeeCurrencyId
==
1
){
fee
.
amount
=
fee
.
amount
.
plus
(
this
.
fee
.
insuranceFee
)
...
...
@@ -780,7 +781,7 @@ export default {
arr
.
push
(
fee
)
}
return
arr
},
...
...
@@ -823,7 +824,7 @@ export default {
}))
}
this
.
getOpenedRouterList
()
// 更换运输方式之后,之前选择的路线会失效,需要重新选择
if
(
oldTransportId
&&
oldTransportId
!=
transportId
&&
transportId
!=
this
.
selectedRouter
?.
transportType
){
console
.
log
(
'
重置路线
'
,
oldTransportId
,
transportId
,
this
.
selectedRouter
?.
transportType
)
...
...
@@ -840,13 +841,13 @@ export default {
this
.
$set
(
this
.
form
,
'
departureId
'
,
router
.
startCityId
)
this
.
$set
(
this
.
form
,
'
objectiveId
'
,
router
.
destCityId
)
}
this
.
$nextTick
(()
=>
{
this
.
calculationPrice
(
'
form.lineId
'
)
})
},
'
form.transportVO.packageTypeArr
'
(
val
){
this
.
$set
(
this
.
form
.
transportVO
,
'
packageType
'
,
val
.
join
(
'
,
'
))
this
.
$set
(
this
.
form
.
transportVO
,
'
packageType
'
,
(
val
||
[])
.
join
(
'
,
'
))
},
// 选择的路线变化后,需要判断是否开通了对应的服务,如果没开通需要取消对应的服务选择
selectedRouter
(
val
){
...
...
@@ -1035,6 +1036,8 @@ export default {
})
// 添加的提交
createOffer
(
data
).
then
(
response
=>
{
// 重置表单内容
this
.
$set
(
this
,
'
form
'
,
{...
defaultForm
})
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
新增成功
"
));
this
.
$redirect
(
'
index
'
)
});
...
...
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