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
6fc1ad43
Commit
6fc1ad43
authored
Feb 13, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
0da9a18c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
13 deletions
+50
-13
Quotation.vue
src/components/assetsman/Quotation.vue
+50
-13
No files found.
src/components/assetsman/Quotation.vue
View file @
6fc1ad43
...
...
@@ -84,17 +84,38 @@
</el-tag>
</div>
<div
class=
"baseform"
>
<el-form-item
label=
""
prop=
"CostPrice"
title=
"成本价"
>
<span
class=
"label"
>
原価
</span>
<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>
placeholder=
"原価
人民元
"
></el-input>
</el-form-item>
<el-form-item
label=
""
prop=
"Money"
title=
"
价格
"
>
<span
class=
"label"
>
ばいばい価格
</span>
<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>
placeholder=
"内部で人民元を売り買いする"
></el-input>
</el-form-item>
<el-form-item
label=
""
prop=
"B2BPrice"
title=
"同行卖价人民币"
>
<span
class=
"label"
>
同業で人民元を売り買いする
</span>
<el-input
@
keyup
.
native=
"checkInteger(addMsg,'B2BPrice')"
size=
"mini"
v-model=
"addMsg.B2BPrice"
placeholder=
"同業で人民元を売り買いする"
></el-input>
</el-form-item>
<el-form-item
label=
""
prop=
"B2CPrice"
title=
"直客价格人民币"
>
<span
class=
"label"
>
顧客価格は人民元
</span>
<el-input
@
keyup
.
native=
"checkInteger(addMsg,'B2CPrice')"
size=
"mini"
v-model=
"addMsg.B2CPrice"
placeholder=
"顧客価格は人民元"
></el-input>
</el-form-item>
<el-form-item
label=
""
title=
"是否含税"
>
<span
class=
"label"
>
税込みかどうか
</span>
<el-select
size=
"small"
v-model=
"addMsg.IsContainsTax"
placeholder=
"税込みかどうか"
>
<el-option
label=
"税抜き"
:value=
'0'
></el-option>
<el-option
label=
"税込み"
:value=
'1'
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
""
prop=
"TaxPrice"
title=
"税金"
v-if=
"addMsg.IsContainsTax==0"
>
<span
class=
"label"
>
税金
</span>
<el-input
@
keyup
.
native=
"checkInteger(addMsg,'TaxPrice')"
size=
"mini"
v-model=
"addMsg.TaxPrice"
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"
...
...
@@ -129,7 +150,7 @@
B2CPrice
:
0
,
//直客价格人民币
Inventory
:
0
,
IsContainsTax
:
1
,
//是否含税(1-含税,0-不含税)
TaxPrice
:
0
,
//税金
TaxPrice
:
0
,
//税金
},
dateList
:
[],
//日历数据
loading
:
false
,
...
...
@@ -149,6 +170,17 @@
message
:
"在庫数を入力してください"
,
trigger
:
"blur"
}],
B2BPrice
:
[{
required
:
true
,
message
:
"在庫数を入力してください"
,
trigger
:
"blur"
}],
B2CPrice
:
[{
required
:
true
,
message
:
"在庫数を入力してください"
,
trigger
:
"blur"
}],
},
RoomId
:
0
,
HotelId
:
0
,
...
...
@@ -179,6 +211,7 @@
this
.
getMonths
();
},
methods
:
{
//删除报价
DeleteAll
()
{
let
msg
=
{
RoomId
:
this
.
RoomId
,
...
...
@@ -202,6 +235,7 @@
});
});
},
//库存颜色
stockColor
:
function
(
item
,
item2
,
childItem
)
{
if
(
item
.
date
===
item2
.
month
&&
item2
.
hasOwnProperty
(
'data'
))
{
return
'hasStock_1'
;
...
...
@@ -209,7 +243,6 @@
return
;
}
},
//日历点击事件
calendarDayOn
:
function
(
item
,
item2
)
{
if
(
item
.
date
===
item2
.
month
)
{
...
...
@@ -222,6 +255,7 @@
}
}
},
//获取月份数据
getData
:
function
(
date
,
key
)
{
this
.
loading
=
true
;
this
.
apipost
(
'scm_get_GetSCMHotelRoomPriceMonthList'
,
{
...
...
@@ -298,8 +332,12 @@
})
}
},
//删除日期
DeleteDate
(
item
,
index
)
{
this
.
addMsg
.
DateList
.
splice
(
index
,
1
);
if
(
this
.
addMsg
.
DateList
&&
this
.
addMsg
.
DateList
.
length
==
0
)
{
this
.
clearAddMsg
();
}
},
//清空消息
clearAddMsg
()
{
...
...
@@ -310,7 +348,7 @@
this
.
addMsg
.
B2BPrice
=
0
;
this
.
addMsg
.
B2CPrice
=
0
;
this
.
addMsg
.
IsContainsTax
=
1
;
this
.
addMsg
.
TaxPrice
=
0
;
this
.
addMsg
.
TaxPrice
=
0
;
},
//获取房型报价
GetRoomPrice
(
item
)
{
...
...
@@ -327,10 +365,11 @@
this
.
addMsg
.
B2BPrice
=
tempData
.
B2BPrice
;
this
.
addMsg
.
B2CPrice
=
tempData
.
B2CPrice
;
this
.
addMsg
.
IsContainsTax
=
tempData
.
IsContainsTax
;
this
.
addMsg
.
TaxPrice
=
tempData
.
TaxPrice
;
this
.
addMsg
.
TaxPrice
=
tempData
.
TaxPrice
;
}
});
},
//提交数据
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
...
...
@@ -353,9 +392,7 @@
},
}
};
</
script
>
<
style
>
.Quotation
.el-checkbox__input.is-checked
+
.el-checkbox__label
{
color
:
rgb
(
8
,
155
,
171
);
...
...
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