From 3c75ba788897a524771bfde12feddcc94aaf14c6 Mon Sep 17 00:00:00 2001 From: huanghongfeng <huanghongfeng@hnkhzn.com> Date: 星期二, 22 四月 2025 11:26:02 +0800 Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/MeiXinLaiRui/LunDuiYa --- 项目代码/WMS/WIDESEA_WMSClient/src/views/charts/flex.vue | 386 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 386 insertions(+), 0 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/charts/flex.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/charts/flex.vue" new file mode 100644 index 0000000..e94823a --- /dev/null +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/charts/flex.vue" @@ -0,0 +1,386 @@ +<template> + <div class="home-contianer"> + <div> + <div class="order-title"> + <h2>璁㈠崟缁熻</h2> + </div> + <div + data-v-542f4644 + class="ivu-row" + style="padding: 15px; background: white" + > + <div + v-for="item in topColor" + :key="item.name" + class="ivu-col ivu-col-span-6" + style="padding-left: 8px; padding-right: 8px" + > + <div + data-v-542f4644 + class="ivu-card" + :style="{ background: item.background }" + > + <div class="icon-left"> + <i :class="item.icon" /> + </div> + <div class="ivu-card-body"> + <div class="demo-color-name">{{ item.name }}</div> + <div class="demo-color-desc">#{{ item.qty }}</div> + </div> + </div> + </div> + </div> + + <div class="numbers"> + + <div class="item" v-for="index in 8" :key="index"> + <div class="number"> + <!-- {{value}} --> + {{index * 1000}} + </div> + <div>Order total</div> + </div> + </div> + + <div class="order-title"> + <h2>璁㈠崟鏌ヨ</h2> + </div> + + <div class="order-range"> + <div + class="order-item" + v-for="(item, index) in totalRange" + :key="index" + > + <div class="total"> + <div class="number"> + {{item.qty}} + </div> + </div> + <div class="name">{{ titleLeft + item.name }}</div> + <div class="date"> + {{ beginDate.replace(/-/g, ".") }} -- + {{ endDate.replace(/-/g, ".") }} + </div> + </div> + </div> + </div> + </div> +</template> +<script> + + +export default { + data() { + return { + beginDate: "", + endDate: "", + n: 90, + topColor: [ + { + name: "璁㈠崟鏁�", + desc: "#205", + background: "rgb(25, 190, 107)", + icon: "el-icon-shopping-cart-full", + qty: 6000, + key: "total", + }, + { + name: "宸蹭粯娆�", + desc: "#412", + background: "rgb(45, 183, 245)", + icon: "el-icon-wallet", + qty: 7100, + key: "total", + }, + { + name: "寰呭彂璐�", + desc: "#412", + background: "#f2b458", + icon: "el-icon-shopping-cart-1", + qty: 500, + key: "hasPay", + }, + { + name: "閰嶉�佷腑", + desc: "#412", + background: "rgb(84, 110, 122)", + icon: "el-icon-shopping-cart-2", + qty: 800, + key: "notShip", + }, + { + name: "宸插畬鎴�", + desc: "#412", + background: "rgb(45, 183, 245)", + icon: "el-icon-set-up", + qty: 1880, + key: "completed", + }, + { + name: "閫�璐ц鍗�", + desc: "#12", + background: "rgb(237, 64, 20)", + icon: "el-icon-data-analysis", + qty: 2290, + key: "refund", + }, + ], + totalRange: [ + { + name: "璁㈠崟鏁�", + desc: "#205", + background: "rgb(25, 190, 107)", + icon: "ios-cart", + qty: 1290, + key: "total", + }, + { + name: "宸蹭粯娆�", + desc: "#412", + background: "rgb(45, 183, 245)", + icon: "ios-cash", + qty: 3450, + key: "total", + }, + { + name: "寰呭彂璐�", + desc: "#412", + background: "rgb(255, 153, 0)", + icon: "md-bus", + qty: 200, + key: "hasPay", + }, + { + name: "閰嶉�佷腑", + desc: "#412", + background: " rgb(84, 110, 122)", + icon: "md-pin", + qty: 7000, + key: "notShip", + }, + { + name: "浜ゆ槗瀹屾垚", + desc: "#412", + background: "rgb(45, 183, 245)", + icon: "ios-help-buoy", + qty: 8900, + key: "completed", + }, + { + name: "閫�璐ц鍗�", + desc: "#12", + background: "rgb(237, 64, 20)", + icon: "ios-navigate", + qty: 2450, + key: "refund", + }, + ], + value1: "1", + titleLeft: "", + dateNow: "", + }; + }, + methods: { + getDate() { + var date = new Date(); + var year = date.getFullYear(); + var month = date.getMonth() + 1; + var day = date.getDate(); + var hour = date.getHours(); + var minutes = date.getMinutes(); + var second = date.getSeconds(); + this.beginDate = + year + + "-" + + (month < 10 ? "0" + month : month) + + "-" + + (day < 10 ? "0" + day : day); + this.endDate = this.beginDate; + this.dateNow = this.beginDate; + }, + search() { + if (this.dateNow == this.beginDate && this.dateNow == this.endDate) { + this.titleLeft = "浠婃棩"; + } else { + this.titleLeft = "褰撴湡"; + } + }, + }, + created() { + this.getDate(); + }, + mounted() {}, +}; +</script> +<style scoped> +.home-contianer { + background: #efefef; + width: 100%; + height: 100%; + /* padding: 20px; */ +} + +.ivu-card-body { + text-align: center; + padding: 20px 5px; + /* padding-left: 80px; */ + font-size: 16px; +} +.demo-color-name { + color: #fff; + font-size: 14px; +} +.demo-color-desc { + color: white; + /* opacity: 0.7; */ + font-size: 20px; + margin-top: 2px; +} +.ivu-card { + box-shadow: 0 3px 13px rgba(117, 114, 114, 0.47); + display: flex; + position: relative; + padding-top: 10px; + border-radius: 5px; +} +.ivu-card .icon-left { + width: 85px; +} +.ivu-card .ivu-card-body { + flex: 1; +} +.ivu-card .icon-left { + text-align: center; + border-right: 1px solid; + padding: 8px 0px; + height: 100%; + + font-size: 50px; + color: white; +} +.ivu-row { + border-bottom: 2px dotted #eee; + padding: 15px; + margin-bottom: 15px; + display: flex; +} + +.ivu-row > div { + flex: 1; +} + +.h5-desc { + padding-top: 10px; +} +</style> + +<style lang="less" scoped> +.jn-day-total { + display: flex; + padding: 15px; + background: white; + .date-text { + line-height: 36px; + padding: 0 15px; + } + .date { + margin-right: 20px; + } + .btn { + margin-left: 10px; + } +} +.order-title { + h2 { + padding: 7px 15px; + font-weight: 500; + background: white; + border-bottom: 1px dotted #d4d4d4; + } +} + +.order-range { + padding: 0 15px; + background: white; + background: white; + display: flex; + // flex-direction: row-reverse; +} + +.order-range .order-item { + box-shadow: 0 3px 13px rgba(117, 114, 114, 0.47); + flex: 1; + border-radius: 6px; + font-size: 14px; + text-align: center; + border: 1px solid #e6e6e6; + margin: 7px; +} + +.order-range .total { + color: white; + font-size: 50px; + font-weight: bold; + line-height: 100px; + background: #55ce80; + font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", + "Microsoft YaHei", "寰蒋闆呴粦", Arial, sans-serif; +} +.order-range .number { + transition: transform 0.8s; +} +.order-range .number:hover { + cursor: pointer; + transform: scale(1.2); +} +.order-range .name { + font-size: 20px; + padding: 10px; +} + +.order-range .date { + padding: 1px 0 20px 0; + color: #9e9e9e; + font-size: 13px; +} +</style> + + +<style lang="less" scoped> +.numbers { + margin-bottom: 15px; + border-radius: 5px; + border: 1px solid #eaeaea; + background: white; + display: flex; + + padding: 20px 0px; + .item { + flex: 1; + text-align: center; + border-right: 1px solid #e5e5e5; + } + .item > 銆�div:first-child { + word-break: break-all; + color: #282727; + font-size: 30px; + // padding-bottom: 12px; + } + .item > 銆�div:last-child { + font-size: 13px; + color: #777; + } + .item:last-child { + border-right: none; + } + .number { + cursor: pointer; + transition: transform 0.8s; + } + .number:hover { + transform: scale(1.2); + color: #03c10b !important; + } +} +</style> -- Gitblit v1.9.3