Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HotelProject
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
zhengke
HotelProject
Commits
0da9a18c
Commit
0da9a18c
authored
Feb 13, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
eef3cc9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
36 deletions
+45
-36
Quotation.vue
src/components/assetsman/Quotation.vue
+45
-36
No files found.
src/components/assetsman/Quotation.vue
View file @
0da9a18c
...
...
@@ -10,7 +10,8 @@
<div
class=
"padContent"
>
<ul
class=
"queryul"
>
<li>
<el-date-picker
v-model=
"condition.month"
type=
"month"
value-format=
"yyyy-MM"
placeholder=
"選択月"
@
change=
"getMonths()"
>
<el-date-picker
v-model=
"condition.month"
type=
"month"
value-format=
"yyyy-MM"
placeholder=
"選択月"
@
change=
"getMonths()"
>
</el-date-picker>
</li>
</ul>
...
...
@@ -58,7 +59,7 @@
</td>
<td
style=
"text-align:center"
>
<a
style=
"text-decoration:underline;cursor:pointer;color:#089bab;"
@
click=
"
Edit
(childItem)"
>
修正
</a>
@
click=
"
GetRoomPrice
(childItem)"
>
修正
</a>
</td>
</tr>
</table>
...
...
@@ -83,16 +84,17 @@
</el-tag>
</div>
<div
class=
"baseform"
>
<el-form-item
label=
""
prop=
"Money"
title=
"价格"
>
<span
class=
"label"
>
ばいばい価格
</span>
<el-input
@
keyup
.
native=
"checkInteger(addMsg,'Money')"
size=
"mini"
v-model=
"addMsg.Money"
placeholder=
"ばいばい価格"
></el-input>
</el-form-item>
<el-form-item
label=
""
prop=
"CostPrice"
title=
"成本价"
>
<span
class=
"label"
>
原価
</span>
<el-input
@
keyup
.
native=
"checkInteger(addMsg,'CostPrice')"
size=
"mini"
v-model=
"addMsg.CostPrice"
placeholder=
"原価"
></el-input>
</el-form-item>
<el-form-item
label=
""
prop=
"Money"
title=
"价格"
>
<span
class=
"label"
>
ばいばい価格
</span>
<el-input
@
keyup
.
native=
"checkInteger(addMsg,'Money')"
size=
"mini"
v-model=
"addMsg.Money"
placeholder=
"ばいばい価格"
></el-input>
</el-form-item>
<el-form-item
label=
""
prop=
"Inventory"
title=
"库存数量"
>
<span
class=
"label"
>
在庫数量
</span>
<el-input
@
keyup
.
native=
"checkInteger(addMsg,'Inventory')"
size=
"mini"
v-model=
"addMsg.Inventory"
...
...
@@ -121,14 +123,13 @@
RoomId
:
0
,
HotelId
:
0
,
DateList
:
[],
StartTime
:
''
,
EndTime
:
''
,
Year
:
''
,
Month
:
''
,
Week
:
-
1
,
Money
:
''
,
CostPrice
:
''
,
Inventory
:
''
,
CostPrice
:
0
,
//成本价
Money
:
0
,
//内部售价
B2BPrice
:
0
,
//同行卖价人民币
B2CPrice
:
0
,
//直客价格人民币
Inventory
:
0
,
IsContainsTax
:
1
,
//是否含税(1-含税,0-不含税)
TaxPrice
:
0
,
//税金
},
dateList
:
[],
//日历数据
loading
:
false
,
...
...
@@ -167,7 +168,7 @@
this
.
condition
.
month
=
moment
().
format
(
"YYYY-MM"
);
},
mounted
()
{
if
(
this
.
$route
.
query
.
RoomId
)
{
if
(
this
.
$route
.
query
.
RoomId
)
{
this
.
addMsg
.
RoomId
=
this
.
$route
.
query
.
RoomId
;
this
.
RoomId
=
this
.
$route
.
query
.
RoomId
;
}
...
...
@@ -188,7 +189,7 @@
return
;
}
var
that
=
this
;
this
.
Confirm
(
"削除するか?"
,
function
()
{
this
.
Confirm
(
"削除するか?"
,
function
()
{
that
.
apipost
(
"scm_post_DelSCMHotelRoomPriceInfo"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
@@ -302,26 +303,33 @@
},
//清空消息
clearAddMsg
()
{
this
.
addMsg
.
DateList
=
[];
this
.
addMsg
.
StartTime
=
""
;
this
.
addMsg
.
EndTime
=
""
;
this
.
addMsg
.
Year
=
""
;
this
.
addMsg
.
Month
=
""
;
this
.
addMsg
.
Week
=-
1
;
this
.
addMsg
.
Money
=
0
;
this
.
addMsg
.
CostPrice
=
0
;
this
.
addMsg
.
Inventory
=
0
;
this
.
addMsg
.
DateList
=
[];
this
.
addMsg
.
Money
=
0
;
this
.
addMsg
.
CostPrice
=
0
;
this
.
addMsg
.
Inventory
=
0
;
this
.
addMsg
.
B2BPrice
=
0
;
this
.
addMsg
.
B2CPrice
=
0
;
this
.
addMsg
.
IsContainsTax
=
1
;
this
.
addMsg
.
TaxPrice
=
0
;
},
Edit
(
item
)
{
this
.
addMsg
.
StartTime
=
item
.
DayStr
;
this
.
addMsg
.
EndTime
=
item
.
DayStr
;
this
.
addMsg
.
DateList
.
push
(
item
.
DayStr
);
this
.
addMsg
.
Year
=
""
;
this
.
addMsg
.
Month
=
""
;
this
.
addMsg
.
Week
=-
1
;
this
.
addMsg
.
Money
=
item
.
Money
;
this
.
addMsg
.
CostPrice
=
item
.
CostPrice
;
this
.
addMsg
.
Inventory
=
item
.
Inventory
;
//获取房型报价
GetRoomPrice
(
item
)
{
this
.
apipost
(
"scm_post_GetSCMHotelRoomPriceService"
,
{
Id
:
item
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
tempData
=
res
.
data
.
data
;
this
.
addMsg
.
DateList
.
push
(
item
.
DayStr
);
this
.
addMsg
.
Money
=
tempData
.
Money
;
this
.
addMsg
.
CostPrice
=
tempData
.
CostPrice
;
this
.
addMsg
.
Inventory
=
tempData
.
Inventory
;
this
.
addMsg
.
B2BPrice
=
tempData
.
B2BPrice
;
this
.
addMsg
.
B2CPrice
=
tempData
.
B2CPrice
;
this
.
addMsg
.
IsContainsTax
=
tempData
.
IsContainsTax
;
this
.
addMsg
.
TaxPrice
=
tempData
.
TaxPrice
;
}
});
},
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
...
...
@@ -345,6 +353,7 @@
},
}
};
</
script
>
<
style
>
...
...
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