Commit 71922da9 authored by 黄奎's avatar 黄奎

页面修改

parent 03618e14
...@@ -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')) {
} else { if (subItem.data.SubList && subItem.data.SubList.length > 0) {
return; subItem.data.SubList.forEach(sItem => {
if (sItem.PriceType <= this.colorArray.length) {
bgColor = this.colorArray[sItem.PriceType];
} else {
bgColor = '#ff6363';
}
})
}
} }
return bgColor;
}, },
//日历点击事件 //日历点击事件
calendarDayOn: function (item, item2) { calendarDayOn: function (item, item2) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment