|
|
|
@ -13,11 +13,21 @@
|
|
|
|
safe-area-inset-top
|
|
|
|
safe-area-inset-top
|
|
|
|
placeholder
|
|
|
|
placeholder
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
<u-tabs
|
|
|
|
|
|
|
|
:list="menuList"
|
|
|
|
|
|
|
|
:current="current"
|
|
|
|
|
|
|
|
key-name="name"
|
|
|
|
|
|
|
|
:scrollable="false"
|
|
|
|
|
|
|
|
:active-style="{
|
|
|
|
|
|
|
|
color: '#0E85FF',
|
|
|
|
|
|
|
|
}"
|
|
|
|
|
|
|
|
@change="change"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</u-tabs>
|
|
|
|
</u-sticky>
|
|
|
|
</u-sticky>
|
|
|
|
<uni-notice-bar show-icon scrollable text="安全生产!有序生产!高效生产!" />
|
|
|
|
<uni-notice-bar show-icon scrollable text="安全生产!有序生产!高效生产!" />
|
|
|
|
<uni-section title="开工中" type="line" title-color="#18bc37"> </uni-section>
|
|
|
|
<el-collapse accordion v-if="current === 0">
|
|
|
|
<el-collapse accordion>
|
|
|
|
<el-collapse-item v-for="(item, index) in startList" :name="item.id" :key="index">
|
|
|
|
<el-collapse-item v-for="(item, index) in startList" :name="item.id">
|
|
|
|
|
|
|
|
<template #title>
|
|
|
|
<template #title>
|
|
|
|
<el-icon><Tickets /></el-icon>
|
|
|
|
<el-icon><Tickets /></el-icon>
|
|
|
|
<el-text size="large">{{item.productName}}</el-text> /
|
|
|
|
<el-text size="large">{{item.productName}}</el-text> /
|
|
|
|
@ -55,11 +65,9 @@
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</el-collapse-item>
|
|
|
|
</el-collapse-item>
|
|
|
|
</el-collapse>
|
|
|
|
</el-collapse>
|
|
|
|
|
|
|
|
<!-- 派工中-->
|
|
|
|
<!-- 派工中-->
|
|
|
|
<el-collapse accordion v-if="current === 1">
|
|
|
|
<uni-section title="派工中" type="line" title-color="#2979ff"></uni-section>
|
|
|
|
<el-collapse-item v-for="(item, index) in paigongList" :name="item.id" :key="index">
|
|
|
|
<el-collapse accordion>
|
|
|
|
|
|
|
|
<el-collapse-item v-for="(item, index) in paigongList" :name="item.id">
|
|
|
|
|
|
|
|
<template #title>
|
|
|
|
<template #title>
|
|
|
|
<el-icon><Tickets /></el-icon>
|
|
|
|
<el-icon><Tickets /></el-icon>
|
|
|
|
<el-text size="large">{{item.productName}}</el-text> /
|
|
|
|
<el-text size="large">{{item.productName}}</el-text> /
|
|
|
|
@ -84,10 +92,9 @@
|
|
|
|
<el-text>备注:{{ item.remark }}</el-text>
|
|
|
|
<el-text>备注:{{ item.remark }}</el-text>
|
|
|
|
</el-collapse-item>
|
|
|
|
</el-collapse-item>
|
|
|
|
</el-collapse>
|
|
|
|
</el-collapse>
|
|
|
|
<!-- 计划中-->
|
|
|
|
<!-- 计划中-->
|
|
|
|
<uni-section title="计划中" type="line" title-color="#f3a73f"></uni-section>
|
|
|
|
<el-collapse accordion v-if="current === 2">
|
|
|
|
<el-collapse accordion>
|
|
|
|
<el-collapse-item v-for="(item, index) in planList" :name="item.id" :key="index">
|
|
|
|
<el-collapse-item v-for="(item, index) in planList" :name="item.id">
|
|
|
|
|
|
|
|
<template #title>
|
|
|
|
<template #title>
|
|
|
|
<el-icon><Tickets /></el-icon>
|
|
|
|
<el-icon><Tickets /></el-icon>
|
|
|
|
<el-text size="large">{{item.productName}}</el-text> /
|
|
|
|
<el-text size="large">{{item.productName}}</el-text> /
|
|
|
|
@ -112,10 +119,9 @@
|
|
|
|
<el-text>备注:{{ item.remark }}</el-text>
|
|
|
|
<el-text>备注:{{ item.remark }}</el-text>
|
|
|
|
</el-collapse-item>
|
|
|
|
</el-collapse-item>
|
|
|
|
</el-collapse>
|
|
|
|
</el-collapse>
|
|
|
|
<!-- 暂停中 -->
|
|
|
|
<!-- 暂停中 -->
|
|
|
|
<uni-section title="暂停中" type="line" title-color="#e43d33"></uni-section>
|
|
|
|
<el-collapse accordion v-if="current === 3">
|
|
|
|
<el-collapse accordion>
|
|
|
|
<el-collapse-item v-for="(item, index) in pauseList" :name="item.id" :key="index">
|
|
|
|
<el-collapse-item v-for="(item, index) in pauseList" :name="item.id">
|
|
|
|
|
|
|
|
<template #title>
|
|
|
|
<template #title>
|
|
|
|
<el-icon><Tickets /></el-icon>
|
|
|
|
<el-icon><Tickets /></el-icon>
|
|
|
|
<el-text size="large">{{item.productName}}</el-text> /
|
|
|
|
<el-text size="large">{{item.productName}}</el-text> /
|
|
|
|
@ -146,18 +152,18 @@
|
|
|
|
<el-text>备注:{{ item.remark }}</el-text>
|
|
|
|
<el-text>备注:{{ item.remark }}</el-text>
|
|
|
|
</el-collapse-item>
|
|
|
|
</el-collapse-item>
|
|
|
|
</el-collapse>
|
|
|
|
</el-collapse>
|
|
|
|
<!-- <view class="charts-box">-->
|
|
|
|
<!-- <view class="charts-box">-->
|
|
|
|
<!-- <qiun-data-charts :chartData="chartData" type="column"/>-->
|
|
|
|
<!-- <qiun-data-charts :chartData="chartData" type="column"/>-->
|
|
|
|
<!-- </view>-->
|
|
|
|
<!-- </view>-->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
<script setup>
|
|
|
|
import {ref, onMounted} from 'vue';
|
|
|
|
import { ref, onMounted } from 'vue';
|
|
|
|
import useUserStore from '@/store/modules/user'
|
|
|
|
import useUserStore from '@/store/modules/user'
|
|
|
|
import {getPage, getById, paigong, updateStatus, getByStatus} from "@/api/mes/plan"
|
|
|
|
import { updateStatus, getByStatus } from "@/api/mes/plan"
|
|
|
|
import {timestampToTime} from "@/utils/dateUtil";
|
|
|
|
import { timestampToTime } from "@/utils/dateUtil";
|
|
|
|
import {Tickets} from "@element-plus/icons-vue";
|
|
|
|
import { Tickets } from "@element-plus/icons-vue";
|
|
|
|
import modal from "@/plugins/modal";
|
|
|
|
import modal from "@/plugins/modal";
|
|
|
|
import tab from "@/plugins/tab";
|
|
|
|
import tab from "@/plugins/tab";
|
|
|
|
import {showConfirm} from "@/utils/common";
|
|
|
|
import {showConfirm} from "@/utils/common";
|
|
|
|
@ -169,6 +175,25 @@ const pauseList = ref([]);
|
|
|
|
const planList = ref([]);
|
|
|
|
const planList = ref([]);
|
|
|
|
const chartData = ref({});
|
|
|
|
const chartData = ref({});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const menuList = ref([
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '开工中'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '派工中'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '计划中'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '暂停中'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
const current = ref(0)
|
|
|
|
|
|
|
|
const change = (index)=>{
|
|
|
|
|
|
|
|
current.value = index.index
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
onMounted(() => {
|
|
|
|
getServerData()
|
|
|
|
getServerData()
|
|
|
|
getPlanList()
|
|
|
|
getPlanList()
|
|
|
|
@ -233,6 +258,9 @@ function planProgress(plan){
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
|
|
.page {
|
|
|
|
|
|
|
|
width: 100%
|
|
|
|
|
|
|
|
}
|
|
|
|
.sticky {
|
|
|
|
.sticky {
|
|
|
|
background: linear-gradient(180deg, #d4e9ff 0%, #f3f9ff 100%);
|
|
|
|
background: linear-gradient(180deg, #d4e9ff 0%, #f3f9ff 100%);
|
|
|
|
backdrop-filter: blur(27.18px);
|
|
|
|
backdrop-filter: blur(27.18px);
|
|
|
|
|