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
125b277c
Commit
125b277c
authored
May 18, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新建报价单后清理表单
parent
21919e10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
edit.vue
src/views/ecw/offer/edit.vue
+15
-9
No files found.
src/views/ecw/offer/edit.vue
View file @
125b277c
...
...
@@ -520,13 +520,15 @@ 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
:
{}
const
createDefaultForm
=
()
=>
{
return
{
sendstatus
:
0
,
type
:
[],
control
:
false
,
isCargoControl
:
false
,
prodCreateReqVOList
:[],
transportVO
:
{}
}
}
export
default
{
name
:
"
EcwOfferEdit
"
,
...
...
@@ -550,7 +552,7 @@ export default {
// couponList: [],
fee
:
{},
// 费用
// 表单参数
form
:
{...
defaultForm
},
form
:
{...
createDefaultForm
()
},
// 表单校验
labelStyle
:
'
width:120px
'
,
...
...
@@ -1037,7 +1039,11 @@ export default {
// 添加的提交
createOffer
(
data
).
then
(
response
=>
{
// 重置表单内容
this
.
$set
(
this
,
'
form
'
,
{...
defaultForm
})
this
.
$set
(
this
,
'
form
'
,
{...
createDefaultForm
()})
this
.
$nextTick
(()
=>
{
console
.
log
(
'
清理表单校验
'
)
this
.
$refs
.
form
.
clearValidate
()
})
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