Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
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
罗超
SuperMan
Commits
6bccb54f
Commit
6bccb54f
authored
Sep 24, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
fee2c721
04926dd5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
193 additions
and
49 deletions
+193
-49
CostNewPrice.vue
...ponents/TravelManager/TravelNewQuotation/CostNewPrice.vue
+169
-36
QuotationNewPrice.vue
...ts/TravelManager/TravelNewQuotation/QuotationNewPrice.vue
+24
-13
No files found.
src/components/TravelManager/TravelNewQuotation/CostNewPrice.vue
View file @
6bccb54f
This diff is collapsed.
Click to expand it.
src/components/TravelManager/TravelNewQuotation/QuotationNewPrice.vue
View file @
6bccb54f
...
@@ -122,15 +122,24 @@
...
@@ -122,15 +122,24 @@
},
},
//保存数据
//保存数据
SaveData
()
{
SaveData
()
{
var
currencyNumList
=
[];
if
(
this
.
CurrencyNumberListExt
!=
null
&&
this
.
CurrencyNumberListExt
.
length
>
0
)
{
this
.
CurrencyNumberListExt
.
forEach
((
item
,
index
)
=>
{
item
.
currencyNumberList
.
forEach
(
subItem
=>
{
currencyNumList
.
push
(
subItem
);
});
});
}
var
nObj
=
{
var
nObj
=
{
config
:
this
.
postData
,
config
:
this
.
postData
,
dayCostPriceList
:
this
.
dayCostPriceList
,
dayCostPriceList
:
this
.
dayCostPriceList
,
otherPrice
:
this
.
otherPrice
,
otherPrice
:
this
.
otherPrice
,
teamPrice
:
this
.
teamPrice
,
teamPrice
:
this
.
teamPrice
,
CostCurrencyList
:
this
.
CostCurrencyList
,
CostCurrencyList
:
this
.
CostCurrencyList
,
CostNumberList
:
this
.
CostNumberList
CostNumberList
:
this
.
CostNumberList
,
CurrencyNumberListExt
:
currencyNumList
};
};
console
.
log
(
"请求参数"
,
nObj
);
this
.
apipost
(
this
.
apipost
(
"travel_post_SetConfigOffer_V2"
,
nObj
,
"travel_post_SetConfigOffer_V2"
,
nObj
,
res
=>
{
res
=>
{
...
@@ -161,7 +170,6 @@
...
@@ -161,7 +170,6 @@
"travel_get_GetMyTravelInfo_V2"
,
"travel_get_GetMyTravelInfo_V2"
,
msg
,
msg
,
res
=>
{
res
=>
{
console
.
log
(
"res.data.data"
,
res
.
data
);
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
tempData
=
res
.
data
.
data
;
var
tempData
=
res
.
data
.
data
;
if
(
tempData
.
ID
&&
tempData
.
ID
>
0
)
{
if
(
tempData
.
ID
&&
tempData
.
ID
>
0
)
{
...
@@ -205,13 +213,16 @@
...
@@ -205,13 +213,16 @@
if
(
tempData
.
teamPrice
)
{
if
(
tempData
.
teamPrice
)
{
this
.
teamPrice
=
tempData
.
teamPrice
;
this
.
teamPrice
=
tempData
.
teamPrice
;
}
}
if
(
tempData
.
CostNumberList
&&
tempData
.
CostNumberList
!=
null
&&
tempData
.
CostNumberList
.
length
>
0
)
if
(
tempData
.
CostNumberList
&&
tempData
.
CostNumberList
!=
null
&&
tempData
.
CostNumberList
.
length
>
0
)
{
{
this
.
CostNumberList
=
tempData
.
CostNumberList
;
this
.
CostNumberList
=
tempData
.
CostNumberList
;
}
}
if
(
tempData
.
CostCurrencyList
&&
tempData
.
CostCurrencyList
!=
null
&&
tempData
.
CostCurrencyList
.
length
>
0
)
if
(
tempData
.
CostCurrencyList
&&
tempData
.
CostCurrencyList
!=
null
&&
tempData
.
CostCurrencyList
.
length
>
{
0
)
{
this
.
CostCurrencyList
=
tempData
.
CostCurrencyList
;
this
.
CostCurrencyList
=
tempData
.
CostCurrencyList
;
}
if
(
tempData
.
CurrencyNumberListExt
&&
tempData
.
CurrencyNumberListExt
!=
null
&&
tempData
.
CurrencyNumberListExt
.
length
>
0
)
{
this
.
CurrencyNumberListExt
=
tempData
.
CurrencyNumberListExt
;
}
}
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
...
@@ -219,14 +230,14 @@
...
@@ -219,14 +230,14 @@
},
},
err
=>
{}
err
=>
{}
);
);
}
},
},
},
created
()
{
created
()
{
this
.
getPostData
();
this
.
getPostData
();
},
},
components
:
{
components
:
{
DirectQuotation
:
DirectQuotation
DirectQuotation
:
DirectQuotation
}
}
};
};
</
script
>
</
script
>
\ No newline at end of file
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