From 9c6115340a7cd7e36198a0d0503068a260d30581 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 03 三月 2023 16:32:25 +0800
Subject: [PATCH] 1.节拍工价、工单新增控制必须设置计件单价
---
src/views/kb/cjsc.vue | 104 ++++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 92 insertions(+), 12 deletions(-)
diff --git a/src/views/kb/cjsc.vue b/src/views/kb/cjsc.vue
index 55518ac..6c7caef 100644
--- a/src/views/kb/cjsc.vue
+++ b/src/views/kb/cjsc.vue
@@ -1,6 +1,12 @@
<template>
<div>
<div class="kb_dashboard">
+
+ <!-- 鏄熺┖鑳屾櫙-->
+ <div ref="starsRef" class="stars">
+ <div v-for="(item, index) in starsCount" :key="index" class="star" />
+ </div>
+
<div class="kb_header">
<div class="flex_c_c kb_header_text">
<div id="topBarLeft" style="width:600px;height:100%" />
@@ -38,7 +44,12 @@
prop="partname"
width="120"
label="浜у搧鍚嶇О"
- />
+ >
+ <template slot-scope="{row}">
+ <div v-if="row.partname" class="ellipsis">{{ row.partname }}</div>
+ <div v-else>/</div>
+ </template>
+ </el-table-column>
<el-table-column
prop="good_qty"
label="鏁伴噺"
@@ -72,7 +83,12 @@
prop="partname"
width="120"
label="浜у搧鍚嶇О"
- />
+ >
+ <template slot-scope="{row}">
+ <div v-if="row.partname" class="ellipsis">{{ row.partname }}</div>
+ <div v-else>/</div>
+ </template>
+ </el-table-column>
<el-table-column
prop="good_qty"
label="鏁伴噺"
@@ -141,6 +157,7 @@
>
<template slot-scope="{row}">
<div
+ class="ellipsis"
:style="{color:row.eqp_name==='瑁呴厤涓�绾�'?'#FFFF77':row.eqp_name==='瑁呴厤浜岀嚎'?'#FF8888':row.eqp_name==='瑁呴厤涓夌嚎'?'#D28EFF':'#66FFFF'}"
> {{ row.partname }}
</div>
@@ -161,7 +178,7 @@
<el-table-column
prop="plan_startdate"
label="棰勮寮�濮�"
- width="130"
+ width="125"
>
<template slot-scope="{row}">
<div
@@ -175,7 +192,7 @@
<el-table-column
prop="plan_enddate"
label="棰勮瀹屽伐"
- width="130"
+ width="125"
>
<template slot-scope="{row}">
<div
@@ -189,10 +206,11 @@
<el-table-column
prop="stepname"
label="宸ュ簭"
- width="90"
+ width="100"
>
<template slot-scope="{row}">
<div
+ class="ellipsis"
:style="{color:row.eqp_name==='瑁呴厤涓�绾�'?'#FFFF77':row.eqp_name==='瑁呴厤浜岀嚎'?'#FF8888':row.eqp_name==='瑁呴厤涓夌嚎'?'#D28EFF':'#66FFFF'}"
> {{ row.stepname }}
</div>
@@ -236,7 +254,12 @@
prop="partname"
width="120"
label="浜у搧鍚嶇О"
- />
+ >
+ <template slot-scope="{row}">
+ <div v-if="row.partname" class="ellipsis">{{ row.partname }}</div>
+ <div v-else>/</div>
+ </template>
+ </el-table-column>
<el-table-column
prop="good_qty"
label="鏁伴噺"
@@ -270,7 +293,12 @@
prop="partname"
width="120"
label="浜у搧鍚嶇О"
- />
+ >
+ <template slot-scope="{row}">
+ <div v-if="row.partname" class="ellipsis">{{ row.partname }}</div>
+ <div v-else>/</div>
+ </template>
+ </el-table-column>
<el-table-column
prop="good_qty"
label="鏁伴噺"
@@ -307,7 +335,10 @@
tableDataRightBottomTemp: [],
tableDataCenterTop: [],
- tableDataCenterTopTemp: []
+ tableDataCenterTopTemp: [],
+
+ starsCount: 800, // 鏄熸槦鏁伴噺
+ distance: 900 // 闂磋窛
}
},
created() {
@@ -328,8 +359,23 @@
// 涓棿琛ㄦ牸鏁版嵁鍐呭
this.getCenterTableDataSetInterval()
+
+ this.setStarsRef()
},
methods: {
+ setStarsRef() {
+ const starNodes = Array.from(this.$refs.starsRef.children)
+ starNodes.forEach(item => {
+ const speed = 0.2 + Math.random() * 1
+ const thisDistance = this.distance + Math.random() * 300
+ item.style.transformOrigin = `0 0 ${thisDistance}px`
+ item.style.transform = `
+ translate3d(0,0,-${thisDistance}px)
+ rotateY(${Math.random() * 360}deg)
+ rotateX(${Math.random() * -50}deg)
+ scale(${speed},${speed})`
+ })
+ },
// 涓棿閮ㄥ垎鐨勮〃鏍�
getCenterTableDataSetInterval() {
let startValue = 0 // 鍒濆鍊�
@@ -370,7 +416,7 @@
let startValue = 0 // 鍒濆鍊�
const scale = 10// 鍒诲害
- WkshpLineData({ LineCode: 'DEV06' }).then(res => {
+ WkshpLineData({ LineCode: '001' }).then(res => {
this.tableDataLeftTopTemp = res.data
this.tableDataLeftTop = this.tableDataLeftTopTemp.slice(startValue, startValue + scale)
@@ -393,7 +439,7 @@
let startValue = 0 // 鍒濆鍊�
const scale = 10// 鍒诲害
- WkshpLineData({ LineCode: 'DEV02' }).then(res => {
+ WkshpLineData({ LineCode: '002' }).then(res => {
this.tableDataLeftBottomTemp = res.data
this.tableDataLeftBottom = this.tableDataLeftBottomTemp.slice(startValue, startValue + scale)
@@ -416,7 +462,7 @@
let startValue = 0 // 鍒濆鍊�
const scale = 10// 鍒诲害
- WkshpLineData({ LineCode: 'DEV03' }).then(res => {
+ WkshpLineData({ LineCode: '003' }).then(res => {
this.tableDataRightTop = this.tableDataRightTopTemp.slice(startValue, startValue + scale)
const loop = Math.floor(this.tableDataRightTopTemp.length / scale)// 闇�瑕佸惊鐜殑娆℃暟
@@ -438,7 +484,7 @@
let startValue = 0 // 鍒濆鍊�
const scale = 10// 鍒诲害
- WkshpLineData({ LineCode: 'DEV04' }).then(res => {
+ WkshpLineData({ LineCode: '004' }).then(res => {
this.tableDataRightBottom = this.tableDataRightBottomTemp.slice(startValue, startValue + scale)
const loop = Math.floor(this.tableDataRightBottomTemp.length / scale)// 闇�瑕佸惊鐜殑娆℃暟
@@ -543,3 +589,37 @@
}
</style>
+<!--鏄熺┖-->
+<style lang="css" scoped>
+@keyframes rotate {
+ 0% {
+ transform: perspective(400px) rotateZ(20deg) rotateX(-40deg) rotateY(0);
+ }
+ 100% {
+ transform: perspective(400px) rotateZ(20deg) rotateX(-40deg) rotateY(-360deg);
+ }
+}
+
+.stars {
+ transform: perspective(500px);
+ transform-style: preserve-3d;
+ position: absolute;
+ perspective-origin: 50% 100%;
+ left: 45%;
+ animation: rotate 90s infinite linear;
+ bottom: 0;
+ z-index: 102;
+}
+
+.star {
+ width: 2px;
+ height: 2px;
+ /*background: #f7f7b6;*/
+ background: #8edffc;
+ position: absolute;
+ left: 0;
+ top: 0;
+ backface-visibility: hidden;
+ z-index: 102;
+}
+</style>
--
Gitblit v1.9.3