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
71922da9
Commit
71922da9
authored
Mar 09, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
03618e14
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
15 deletions
+34
-15
Quotation.vue
src/components/assetsman/Quotation.vue
+34
-15
No files found.
src/components/assetsman/Quotation.vue
View file @
71922da9
...
@@ -34,19 +34,19 @@
...
@@ -34,19 +34,19 @@
</el-checkbox>
</el-checkbox>
</div>
</div>
<div
class=
"calendarItem_week"
>
<div
class=
"calendarItem_week"
>
<div
title=
"星期天"
>
日
曜日
</div>
<div
title=
"星期天"
>
日
</div>
<div
title=
"星期一"
>
月
曜日
</div>
<div
title=
"星期一"
>
月
</div>
<div
title=
"星期二"
>
火
曜日
</div>
<div
title=
"星期二"
>
火
</div>
<div
title=
"星期三"
>
水
曜日
</div>
<div
title=
"星期三"
>
水
</div>
<div
title=
"星期四"
>
木
曜日
</div>
<div
title=
"星期四"
>
木
</div>
<div
title=
"星期五"
>
金
曜日
</div>
<div
title=
"星期五"
>
金
</div>
<div
title=
"星期六"
>
土
曜日
</div>
<div
title=
"星期六"
>
土
</div>
</div>
</div>
<div
class=
"calendarItem_day"
>
<div
class=
"calendarItem_day"
>
<div
v-for=
"(subItem, index2) in item.days"
:key=
"index2"
<div
v-for=
"(subItem, index2) in item.days"
:key=
"index2"
:class=
"subItem.month===item.date?'nowMonth':'otherMonth'"
>
:class=
"subItem.month===item.date?'nowMonth':'otherMonth'"
>
<div
:class=
"stockColor(item,subItem)"
<div
:style=
"
subItem.month===item.date&&addMsg.DateList.indexOf(subItem.day)!==-1?'border-color: #089bab':''
"
:style=
"
{'border-color':getBorderColor(item,subItem,addMsg.DateList),'background-color':stockColor(subItem)}
"
@click="calendarDayOn(item, subItem)">
@click="calendarDayOn(item, subItem)">
<el-popover
placement=
"bottom"
title=
"見積情報"
width=
"330"
trigger=
"hover"
<el-popover
placement=
"bottom"
title=
"見積情報"
width=
"330"
trigger=
"hover"
v-if=
"subItem.data&&subItem.data.SubList && subItem.data.SubList[0]"
>
v-if=
"subItem.data&&subItem.data.SubList && subItem.data.SubList[0]"
>
...
@@ -289,6 +289,10 @@
...
@@ -289,6 +289,10 @@
month
:
''
month
:
''
},
},
hotelInfo
:
{},
hotelInfo
:
{},
colorArray
:
[
"#FF0000"
,
"#FF60AF"
,
"#D200D2"
,
"#921AFF"
,
"#2828FF"
,
"#0080FF"
,
"#00CACA"
,
"#02DF82"
,
"#53FF53"
,
"#A8FF24"
,
"#F9F900"
,
"#FFE66F"
,
"#FFC78E"
,
"#FF5809"
,
"#C48888"
,
"#B9B973"
,
"#6FB7B7"
,
"#9999CC"
,
"#C07AB8"
]
};
};
},
},
created
()
{
created
()
{
...
@@ -321,7 +325,7 @@
...
@@ -321,7 +325,7 @@
if
(
this
.
addMsg
.
RuTangTax
)
{
if
(
this
.
addMsg
.
RuTangTax
)
{
total
+=
Number
(
this
.
addMsg
.
RuTangTax
);
total
+=
Number
(
this
.
addMsg
.
RuTangTax
);
}
}
if
(
this
.
addMsg
.
RMoney
&&
this
.
addMsg
.
RMoney
!=
"-"
)
{
if
(
this
.
addMsg
.
RMoney
&&
this
.
addMsg
.
RMoney
!=
"-"
)
{
total
-=
Number
(
this
.
addMsg
.
RMoney
)
total
-=
Number
(
this
.
addMsg
.
RMoney
)
}
}
this
.
addMsg
.
CostPrice
=
total
.
toFixed
(
0
);
this
.
addMsg
.
CostPrice
=
total
.
toFixed
(
0
);
...
@@ -359,13 +363,28 @@
...
@@ -359,13 +363,28 @@
});
});
});
});
},
},
getBorderColor
(
item
,
subItem
,
DateList
)
{
var
str
=
""
;
if
(
subItem
.
month
===
item
.
date
&&
DateList
.
indexOf
(
subItem
.
day
)
!==
-
1
)
{
str
=
"#089bab"
;
}
return
str
;
},
//库存颜色
//库存颜色
stockColor
:
function
(
item
,
item2
,
childItem
)
{
stockColor
:
function
(
subItem
)
{
if
(
item
.
date
===
item2
.
month
&&
item2
.
hasOwnProperty
(
'data'
))
{
var
bgColor
=
""
;
return
'hasStock_1'
;
if
(
subItem
&&
subItem
.
hasOwnProperty
(
'data'
))
{
if
(
subItem
.
data
.
SubList
&&
subItem
.
data
.
SubList
.
length
>
0
)
{
subItem
.
data
.
SubList
.
forEach
(
sItem
=>
{
if
(
sItem
.
PriceType
<=
this
.
colorArray
.
length
)
{
bgColor
=
this
.
colorArray
[
sItem
.
PriceType
];
}
else
{
}
else
{
return
;
bgColor
=
'#ff6363'
;
}
})
}
}
}
return
bgColor
;
},
},
//日历点击事件
//日历点击事件
calendarDayOn
:
function
(
item
,
item2
)
{
calendarDayOn
:
function
(
item
,
item2
)
{
...
...
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