更新
This commit is contained in:
@@ -12,147 +12,150 @@
|
||||
placeholder="请输入内容"
|
||||
@clear="clearMachine"
|
||||
@select="handleSelect"/>
|
||||
<!--<el-button type="success" icon="el-icon-search" size="mini" style="margin-left: 15px" @click="searchColor">查询</el-button>-->
|
||||
<el-tag style="margin-left: 10px; color: black" type="info">未开始</el-tag>
|
||||
<el-tag style="background: orange; color: black">进行中</el-tag>
|
||||
<el-tag style="background: lightgreen; color: black">已完成</el-tag>
|
||||
<el-tag style="background: red; color: black">已拖期</el-tag>
|
||||
</el-card>
|
||||
<el-card>
|
||||
<div class="main">
|
||||
<div class="process">
|
||||
<div :class="color[22]" class="module" style="position: relative;left: 1770px;top:220px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[22] : 'white']" class="module" style="position: relative;left: 1770px;top:220px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:装配部<br>根据营销部门发出发货请求,<br>装配部进行发货</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv23">发货</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv23">发货<br>{{ `${data[0].发货百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[21]" class="module" style="position: relative;left: 1580px;top:220px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[21] : 'white']" class="module" style="position: relative;left: 1580px;top:220px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:质检部<br>对机床进行总装调试</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv22">总装调试</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv22">总装调试<br>{{ `${data[0].总装调试百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[20]" class="module" style="position: relative;left: 1390px;top:220px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[20] : 'white']" class="module" style="position: relative;left: 1390px;top:220px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:质检部<br>对机床重要部件进行检测</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv21">装配质检</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv21">装配质检<br>{{ `${data[0].装配质检百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[19]" class="module" style="position: relative;left: 1185px;top:105px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[19] : 'white']" class="module" style="position: relative;left: 1185px;top:105px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:电气部<br>电气部长制定装配计划,<br>并记录计划执行情况</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv6">电气装配</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv6">电气装配<br>{{ `${data[0].电气装配百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[18]" class="module" style="position: relative;left: 1100px;top:176px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[18] : 'white']" class="module" style="position: relative;left: 1100px;top:176px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:装配部长<br>装配部长制定装配计划,<br>并记录计划执行情况</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv5">机械装配</el-button>
|
||||
<div slot="content"><br>角色:装配部长<br>装配部长制定装配计划,<br>并记录计划执行情况</div>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv5">机械装配<br>{{ `${data[0].机械装配百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[17]" class="module" style="position: relative;left: 1015px;top:247px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[17] : 'white']" class="module" style="position: relative;left: 1015px;top:247px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:冷作车间主任<br>冷作车间主任制定冷作计划,<br>并记录计划执行情况</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv7">冷作</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv7">冷作<br>{{ `${data[0].冷作百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[16]" class="module" style="position: relative;left: 930px;top:319px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[16] : 'white']" class="module" style="position: relative;left: 930px;top:319px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:油漆车间主任<br>油漆车间主任制定装配计划,<br>并记录计划执行情况</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv8">油漆</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv8">油漆<br>{{ `${data[0].油漆百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[15]" class="module" style="position: relative;left: 695px;top:220px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[15] : 'white']" class="module" style="position: relative;left: 695px;top:220px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:装配部长<br>此模块用于查询某机床是否达到装配条件,<br>即采购件与自制件是否成组配套</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv9">成组配套</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv9">成组配套<br>{{ `${data[0].成组配套百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[14]" class="module" style="position: relative;left: 455px;top:55px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[14] : 'white']" class="module" style="position: relative;left: 455px;top:55px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:质检部<br>对自制件进行检测</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv12">自制质检</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv12">自制质检<br>{{ `${data[0].自制质检百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[13]" class="module" style="position: relative;left: 373px;top:283px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[13] : 'white']" class="module" style="position: relative;left: 373px;top:283px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:质检部<br>对采购件进行检测</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv19">采购质检</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv19">采购质检<br>{{ `${data[0].采购质检百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[12]" class="module" style="position: relative;left: 160px;top:110px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[12] : 'white']" class="module" style="position: relative;left: 160px;top:110px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:金工车间<br>接收加工任务并使用<br>MES工作站进行报工</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv10">车间加工</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv10">车间加工<br>{{ `${data[0].车间加工百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[11]" class="module" style="position: relative;left: -25px;top:-1px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[11] : 'white']" class="module" style="position: relative;left: -25px;top:-1px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:外协员<br>进行外协加工</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv18">工序外协</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv18">工序外协<br>{{ `${data[0].工序外协百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[10]" class="module" style="position: relative;left: -230px;top:54px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[10] : 'white']" class="module" style="position: relative;left: -230px;top:54px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:计划员<br>针对做完工艺定额的零件进行排查</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv15">能力平衡</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv15">能力平衡<br>{{ `${data[0].能力平衡百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[9]" class="module" style="position: relative;left: -415px;top:54px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[9] : 'white']" class="module" style="position: relative;left: -415px;top:54px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:工艺部<br>制定零件定额</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv14">定额</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv14">定额<br>{{ `${data[0].定额百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[8]" class="module" style="position: relative;left: -597px;top:54px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[8] : 'white']" class="module" style="position: relative;left: -597px;top:54px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:工艺部<br>制定零件工艺</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv13">工艺</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv13">工艺<br>{{ `${data[0].工艺百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[7]" class="module" style="position: relative;left: -805px;top:1px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[7] : 'white']" class="module" style="position: relative;left: -805px;top:1px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:下料员<br>对于钢板等自家备料<br>下料员需要在系统确认备料<br>并通知金工领料</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv11">自家备料</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv11">自家备料<br>{{ `${data[0].自家备料百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[0]" class="module" style="position: relative;left: -1350px;top:222px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[0] : 'white']" class="module" style="position: relative;left: -1350px;top:222px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:营销内勤<br>负责创建项目及机床的基础信息,<br>此部分作为系统数据的源头</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv1">签订合同</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv1">签订合同<br>{{ `${data[0].签订合同百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[1]" class="module" style="position: relative;left: -1336px;top:222px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[1] : 'white']" class="module" style="position: relative;left: -1336px;top:222px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:技术员<br>负责导入三表(零件),<br>组件在项目启动会时提出,<br>由制造总监导入</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv2">产品设计</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv2">产品设计<br>{{ `${data[0].产品设计百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[6]" class="module" style="position: relative;left: -1057px;top:110px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[6] : 'white']" class="module" style="position: relative;left: -1057px;top:110px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:下料员<br>外购物料到货后,由下料员确认备料,<br>并通知金工领料</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv20">外购备料</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv20">外购备料<br>{{ `${data[0].外购备料百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[2]" class="module" style="position: relative;left: -1405px;top:222px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[2] : 'white']" class="module" style="position: relative;left: -1405px;top:222px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:计划员<br>计划员负责将三表中的零件按实际情况分配为:<br>自制件、采购部采购件、制造部采购件三类</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv3">零件分配</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv3">零件分配<br>{{ `${data[0].零件分配百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[3]" class="module" style="position: relative;left: -1350px;top:63px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[3] : 'white']" class="module" style="position: relative;left: -1350px;top:63px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:计划员<br>计划员分配零件后,<br>在生产计划下达模块<br>可查看到自家加工的零件任务,<br>计划员需要将这些零件投产</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv4">自制件</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv4">自制件<br>{{ `${data[0].自制件百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[5]" class="module" style="position: relative;left: -1435px;top:223px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[5] : 'white']" class="module" style="position: relative;left: -1435px;top:223px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:制造部长<br>计划员分配零件后,<br>将分配到制造部的采购件进行采购</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv17">车间采购</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black;line-height: 19px" @click="searchDiv17">车间采购<br>{{ `${data[0].车间采购百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div :class="color[4]" class="module" style="position: relative;left: -548px;top:300px; width: 80px;height: 48px;">
|
||||
<div :class="[isActive ? color[4] : 'white']" class="module" style="position: relative;left: -548px;top:300px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:采购部<br>计划员分配零件后,<br>将分配到采购部的采购件进行采购</div>
|
||||
<el-button :disabled="disabled" type="text" @click="searchDiv16">采购部采购</el-button>
|
||||
<el-button :disabled="disabled" type="text" style="color: black" @click="searchDiv16">采购部采购<br>{{ `${data[0].采购部采购百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
@@ -218,9 +221,9 @@
|
||||
{{ dataDiv1.付款方式 }}
|
||||
</div>
|
||||
<div style="margin-top: 17px">
|
||||
<sapn>回款进度:</sapn>
|
||||
<span>回款进度:</span>
|
||||
<div style="width: 200px;display: inline-block">
|
||||
<el-progress :text-inside="true" :stroke-width="15" :percentage="dataDiv1.付款百分比"/>
|
||||
<el-progress :text-inside="true" :stroke-width="15" :percentage="parseInt(dataDiv1.付款百分比)"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -242,7 +245,7 @@
|
||||
{{ dataDiv1.电话 }}
|
||||
</div>
|
||||
<div style="margin-top: 17px">
|
||||
<sapn>客户评级:</sapn>
|
||||
<span>客户评级:</span>
|
||||
<el-rate
|
||||
:max="maxDiv1"
|
||||
v-model="valueDiv1"
|
||||
@@ -351,7 +354,8 @@
|
||||
style="width: 100%;min-height: 300px;"
|
||||
size="mini"
|
||||
highlight-current-row
|
||||
border>
|
||||
border
|
||||
@row-click="turnToPartAs">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
align="center"
|
||||
@@ -366,7 +370,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="分配进度">
|
||||
<template slot-scope="scope">
|
||||
<el-progress :text-inside="true" :stroke-width="15" :percentage="percent(scope.row)"/>
|
||||
<el-progress :text-inside="true" :stroke-width="15" :percentage="parseInt(percent(scope.row))"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="组号">
|
||||
@@ -426,7 +430,8 @@
|
||||
style="width: 100%;min-height: 300px;"
|
||||
size="mini"
|
||||
highlight-current-row
|
||||
border>
|
||||
border
|
||||
@row-click="turnIniPro">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
align="center"
|
||||
@@ -898,7 +903,8 @@
|
||||
style="width: 100%"
|
||||
size="mini"
|
||||
highlight-current-row
|
||||
border>
|
||||
border
|
||||
@row-click="turnToProStatus">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
align="center"
|
||||
@@ -963,7 +969,8 @@
|
||||
style="width: 100%"
|
||||
size="mini"
|
||||
highlight-current-row
|
||||
border>
|
||||
border
|
||||
@row-click="turnMaterArrMan">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
align="center"
|
||||
@@ -1185,7 +1192,8 @@
|
||||
style="width: 100%"
|
||||
size="mini"
|
||||
highlight-current-row
|
||||
border>
|
||||
border
|
||||
@row-click="turnToPCB">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
align="center"
|
||||
@@ -1831,6 +1839,7 @@
|
||||
import { SelectMachine, ProcessOutsourcing, ProcessProportion } from '@/api/ManufacturingCenter/ParseQuery'
|
||||
import request from '@/utils/request'
|
||||
import echarts from 'echarts'
|
||||
import Cookie from 'js-cookie'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -1915,6 +1924,32 @@ export default {
|
||||
项目流水号: '无数据',
|
||||
付款百分比: 0
|
||||
},
|
||||
data: [{
|
||||
签订合同百分比: 0,
|
||||
产品设计百分比: 0,
|
||||
零件分配百分比: 0,
|
||||
自制件百分比: 0,
|
||||
车间采购百分比: 0,
|
||||
采购部采购百分比: 0,
|
||||
自家备料百分比: 0,
|
||||
外购备料百分比: 0,
|
||||
工艺百分比: 0,
|
||||
定额百分比: 0,
|
||||
能力平衡百分比: 0,
|
||||
工序外协百分比: 0,
|
||||
车间加工百分比: 0,
|
||||
自制质检百分比: 0,
|
||||
采购质检百分比: 0,
|
||||
成组配套百分比: 0,
|
||||
电气装配百分比: 0,
|
||||
机械装配百分比: 0,
|
||||
冷作百分比: 0,
|
||||
油漆百分比: 0,
|
||||
装配质检百分比: 0,
|
||||
总装调试百分比: 0,
|
||||
发货百分比: 0
|
||||
}],
|
||||
isActive: false,
|
||||
dataDiv2: {
|
||||
组件总数: '',
|
||||
整改组数: '',
|
||||
@@ -1987,32 +2022,46 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.color[0] = 'white'
|
||||
this.color[1] = 'white'
|
||||
this.color[2] = 'white'
|
||||
this.color[3] = 'white'
|
||||
this.color[4] = 'white'
|
||||
this.color[5] = 'white'
|
||||
this.color[6] = 'white'
|
||||
this.color[7] = 'white'
|
||||
this.color[8] = 'white'
|
||||
this.color[9] = 'white'
|
||||
this.color[10] = 'white'
|
||||
this.color[11] = 'white'
|
||||
this.color[12] = 'white'
|
||||
this.color[13] = 'white'
|
||||
this.color[14] = 'white'
|
||||
this.color[15] = 'white'
|
||||
this.color[16] = 'white'
|
||||
this.color[17] = 'white'
|
||||
this.color[18] = 'white'
|
||||
this.color[19] = 'white'
|
||||
this.color[20] = 'white'
|
||||
this.color[21] = 'white'
|
||||
this.color[22] = 'white'
|
||||
},
|
||||
created() {},
|
||||
methods: {
|
||||
// 跳转到零件分配
|
||||
turnToPartAs(row) {
|
||||
if (row.总未分配个数 > 0 && row.总个数 > 0) {
|
||||
Cookie.set('machineValue', this.machineValue)
|
||||
Cookie.set('group', row.组件流水号)
|
||||
this.$router.push('/ManufacturingCenter/PartAssignment')
|
||||
}
|
||||
},
|
||||
// 跳转到生产能力平衡
|
||||
turnToPCB(row) {
|
||||
if (row.完成状态 !== '已完成') {
|
||||
this.$router.push('/ManufacturingCenter/ProductionCapacityBalance')
|
||||
}
|
||||
},
|
||||
// 跳转到加工进度查询
|
||||
turnToProStatus(row) {
|
||||
if (!row.实际完成时间) {
|
||||
Cookie.set('machineValue', this.machineValue)
|
||||
Cookie.set('group', row.组件流水号)
|
||||
this.$router.push('/ManufacturingCenter/ProcessingStatus')
|
||||
}
|
||||
},
|
||||
// 跳转到生产计划下达
|
||||
turnIniPro(row) {
|
||||
if ((parseInt(row.自家加工件总条数) - parseInt(row.已传递条数)) > 0 && parseInt(row.自家加工件总条数) !== 0) {
|
||||
Cookie.set('machineValue', this.machineValue)
|
||||
Cookie.set('group', row.组件流水号)
|
||||
this.$router.push('/ManufacturingCenter/InitialProduction')
|
||||
}
|
||||
},
|
||||
// 跳转到备料完成
|
||||
turnMaterArrMan(row) {
|
||||
if (row.状态 !== '完成') {
|
||||
Cookie.set('machineValue', this.machineValue)
|
||||
Cookie.set('group', row.组件流水号)
|
||||
this.$router.push('/ManufacturingCenter/MaterialArrivalManagement')
|
||||
}
|
||||
},
|
||||
changeScroll1() {
|
||||
const div1 = document.getElementById('div1')
|
||||
const div2 = document.getElementById('div2')
|
||||
@@ -2071,6 +2120,30 @@ export default {
|
||||
this.showDiv20 = false
|
||||
this.showDiv21 = false
|
||||
this.showDiv22 = false
|
||||
this.isActive = false
|
||||
this.data[0].签订合同百分比 = 0
|
||||
this.data[0].产品设计百分比 = 0
|
||||
this.data[0].零件分配百分比 = 0
|
||||
this.data[0].自制件百分比 = 0
|
||||
this.data[0].车间采购百分比 = 0
|
||||
this.data[0].采购部采购百分比 = 0
|
||||
this.data[0].自家备料百分比 = 0
|
||||
this.data[0].外购备料百分比 = 0
|
||||
this.data[0].工艺百分比 = 0
|
||||
this.data[0].定额百分比 = 0
|
||||
this.data[0].能力平衡百分比 = 0
|
||||
this.data[0].工序外协百分比 = 0
|
||||
this.data[0].车间加工百分比 = 0
|
||||
this.data[0].自制质检百分比 = 0
|
||||
this.data[0].采购质检百分比 = 0
|
||||
this.data[0].成组配套百分比 = 0
|
||||
this.data[0].电气装配百分比 = 0
|
||||
this.data[0].机械装配百分比 = 0
|
||||
this.data[0].冷作百分比 = 0
|
||||
this.data[0].油漆百分比 = 0
|
||||
this.data[0].装配质检百分比 = 0
|
||||
this.data[0].总装调试百分比 = 0
|
||||
this.data[0].发货百分比 = 0
|
||||
},
|
||||
// 机床名称查询函数
|
||||
querySearch(queryString, cb) {
|
||||
@@ -2103,9 +2176,8 @@ export default {
|
||||
}
|
||||
},
|
||||
// 选择机床名称后的赋值函数
|
||||
handleSelect(item) {
|
||||
async handleSelect(item) {
|
||||
// 在此方法中可以把下拉框选中值中的内容赋值给其他变量使用
|
||||
console.log(item)
|
||||
this.machineValue = item.num
|
||||
this.machineValue ? this.disabled = false : this.disabled = true
|
||||
this.showDiv1 = false
|
||||
@@ -2130,6 +2202,40 @@ export default {
|
||||
this.showDiv19 = false
|
||||
this.showDiv20 = false
|
||||
this.showDiv0 = true
|
||||
await request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '3',
|
||||
name: `select * from 综合查询_状态 where 机床流水号 = ${this.machineValue}`
|
||||
}
|
||||
}).then(res => {
|
||||
this.isActive = true
|
||||
this.data = res.data
|
||||
if (res.data[0].签订合同状态 === 1) { this.color[0] = 'white' } else if (res.data[0].签订合同状态 === 2) { this.color[0] = 'yellow' } else if (res.data[0].签订合同状态 === 3) { this.color[0] = 'green' } else if (res.data[0].签订合同状态 === 4) { this.color[0] = 'red' }
|
||||
if (res.data[0].产品设计状态 === 1) { this.color[1] = 'white' } else if (res.data[0].产品设计状态 === 2) { this.color[1] = 'yellow' } else if (res.data[0].产品设计状态 === 3) { this.color[1] = 'green' } else if (res.data[0].产品设计状态 === 4) { this.color[1] = 'red' }
|
||||
if (res.data[0].零件分配状态 === 1) { this.color[2] = 'white' } else if (res.data[0].零件分配状态 === 2) { this.color[2] = 'yellow' } else if (res.data[0].零件分配状态 === 3) { this.color[2] = 'green' } else if (res.data[0].零件分配状态 === 4) { this.color[2] = 'red' }
|
||||
if (res.data[0].自制件状态 === 1) { this.color[3] = 'white' } else if (res.data[0].自制件状态 === 2) { this.color[3] = 'yellow' } else if (res.data[0].自制件状态 === 3) { this.color[3] = 'green' } else if (res.data[0].自制件状态 === 4) { this.color[3] = 'red' }
|
||||
if (res.data[0].采购部采购状态 === 1) { this.color[4] = 'white' } else if (res.data[0].采购部采购状态 === 2) { this.color[4] = 'yellow' } else if (res.data[0].采购部采购状态 === 3) { this.color[4] = 'green' } else if (res.data[0].采购部采购状态 === 4) { this.color[4] = 'red' }
|
||||
if (res.data[0].车间采购状态 === 1) { this.color[5] = 'white' } else if (res.data[0].车间采购状态 === 2) { this.color[5] = 'yellow' } else if (res.data[0].车间采购状态 === 3) { this.color[5] = 'green' } else if (res.data[0].车间采购状态 === 4) { this.color[5] = 'red' }
|
||||
if (res.data[0].外购备料状态 === 1) { this.color[6] = 'white' } else if (res.data[0].外购备料状态 === 2) { this.color[6] = 'yellow' } else if (res.data[0].外购备料状态 === 3) { this.color[6] = 'green' } else if (res.data[0].外购备料状态 === 4) { this.color[6] = 'red' }
|
||||
if (res.data[0].自家备料状态 === 1) { this.color[7] = 'white' } else if (res.data[0].自家备料状态 === 2) { this.color[7] = 'yellow' } else if (res.data[0].自家备料状态 === 3) { this.color[7] = 'green' } else if (res.data[0].自家备料状态 === 4) { this.color[7] = 'red' }
|
||||
if (res.data[0].工艺状态 === 1) { this.color[8] = 'white' } else if (res.data[0].工艺状态 === 2) { this.color[8] = 'yellow' } else if (res.data[0].工艺状态 === 3) { this.color[8] = 'green' } else if (res.data[0].工艺状态 === 4) { this.color[8] = 'red' }
|
||||
if (res.data[0].定额状态 === 1) { this.color[9] = 'white' } else if (res.data[0].定额状态 === 2) { this.color[9] = 'yellow' } else if (res.data[0].定额状态 === 3) { this.color[9] = 'green' } else if (res.data[0].定额状态 === 4) { this.color[9] = 'red' }
|
||||
if (res.data[0].能力平衡状态 === 1) { this.color[10] = 'white' } else if (res.data[0].能力平衡状态 === 2) { this.color[10] = 'yellow' } else if (res.data[0].能力平衡状态 === 3) { this.color[10] = 'green' } else if (res.data[0].能力平衡状态 === 4) { this.color[10] = 'red' }
|
||||
if (res.data[0].工序外协状态 === 1) { this.color[11] = 'white' } else if (res.data[0].工序外协状态 === 2) { this.color[11] = 'yellow' } else if (res.data[0].工序外协状态 === 3) { this.color[11] = 'green' } else if (res.data[0].工序外协状态 === 4) { this.color[11] = 'red' }
|
||||
if (res.data[0].车间加工状态 === 1) { this.color[12] = 'white' } else if (res.data[0].车间加工状态 === 2) { this.color[12] = 'yellow' } else if (res.data[0].车间加工状态 === 3) { this.color[12] = 'green' } else if (res.data[0].车间加工状态 === 4) { this.color[12] = 'red' }
|
||||
if (res.data[0].采购质检状态 === 1) { this.color[13] = 'white' } else if (res.data[0].采购质检状态 === 2) { this.color[13] = 'yellow' } else if (res.data[0].采购质检状态 === 3) { this.color[13] = 'green' } else if (res.data[0].采购质检状态 === 4) { this.color[13] = 'red' }
|
||||
if (res.data[0].自制质检状态 === 1) { this.color[14] = 'white' } else if (res.data[0].自制质检状态 === 2) { this.color[14] = 'yellow' } else if (res.data[0].自制质检状态 === 3) { this.color[14] = 'green' } else if (res.data[0].自制质检状态 === 4) { this.color[14] = 'red' }
|
||||
if (res.data[0].成组配套状态 === 1) { this.color[15] = 'white' } else if (res.data[0].成组配套状态 === 2) { this.color[15] = 'yellow' } else if (res.data[0].成组配套状态 === 3) { this.color[15] = 'green' } else if (res.data[0].成组配套状态 === 4) { this.color[15] = 'red' }
|
||||
if (res.data[0].油漆状态 === 1) { this.color[16] = 'white' } else if (res.data[0].油漆状态 === 2) { this.color[16] = 'yellow' } else if (res.data[0].油漆状态 === 3) { this.color[16] = 'green' } else if (res.data[0].油漆状态 === 4) { this.color[16] = 'red' }
|
||||
if (res.data[0].冷作状态 === 1) { this.color[17] = 'white' } else if (res.data[0].冷作状态 === 2) { this.color[17] = 'yellow' } else if (res.data[0].冷作状态 === 3) { this.color[17] = 'green' } else if (res.data[0].冷作状态 === 4) { this.color[17] = 'red' }
|
||||
if (res.data[0].机械装配状态 === 1) { this.color[18] = 'white' } else if (res.data[0].机械装配状态 === 2) { this.color[18] = 'yellow' } else if (res.data[0].机械装配状态 === 3) { this.color[18] = 'green' } else if (res.data[0].机械装配状态 === 4) { this.color[18] = 'red' }
|
||||
if (res.data[0].电气装配状态 === 1) { this.color[19] = 'white' } else if (res.data[0].电气装配状态 === 2) { this.color[19] = 'yellow' } else if (res.data[0].电气装配状态 === 3) { this.color[19] = 'green' } else if (res.data[0].电气装配状态 === 4) { this.color[19] = 'red' }
|
||||
if (res.data[0].装配质检状态 === 1) { this.color[20] = 'white' } else if (res.data[0].装配质检状态 === 2) { this.color[20] = 'yellow' } else if (res.data[0].装配质检状态 === 3) { this.color[20] = 'green' } else if (res.data[0].装配质检状态 === 4) { this.color[20] = 'red' }
|
||||
if (res.data[0].总装调试状态 === 1) { this.color[21] = 'white' } else if (res.data[0].总装调试状态 === 2) { this.color[21] = 'yellow' } else if (res.data[0].总装调试状态 === 3) { this.color[21] = 'green' } else if (res.data[0].总装调试状态 === 4) { this.color[21] = 'red' }
|
||||
if (res.data[0].发货状态 === 1) { this.color[22] = 'white' } else if (res.data[0].发货状态 === 2) { this.color[22] = 'yellow' } else if (res.data[0].发货状态 === 3) { this.color[22] = 'green' } else if (res.data[0].发货状态 === 4) { this.color[22] = 'red' }
|
||||
})
|
||||
},
|
||||
// 查询签订合同div数据
|
||||
async searchDiv1() {
|
||||
@@ -2792,7 +2898,6 @@ export default {
|
||||
order by 组号`
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res, 8766)
|
||||
this.tableDataDiv7 = res.data
|
||||
this.dataDiv7.length = res.data.length
|
||||
request({
|
||||
@@ -3084,7 +3189,6 @@ export default {
|
||||
group by a.[组号],a.组件名称`
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res, 98765)
|
||||
this.tableDataDiv9C = res.data
|
||||
})
|
||||
})
|
||||
@@ -3228,9 +3332,8 @@ export default {
|
||||
await request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '3',
|
||||
name: `declare @机床流水号 int = ${this.machineValue}
|
||||
/* 原
|
||||
declare @机床流水号 int = 89
|
||||
select *,(case when 100 * 已备料条数/零件条数 = 100 then '' else '——' end) as 完成时间 from (
|
||||
select case when 已备料条数 = 零件条数 then '完成' else '未完成' end as 状态
|
||||
,所有.*,已备料条数
|
||||
@@ -3265,7 +3368,46 @@ export default {
|
||||
inner join 车间生产管理工艺_备料出库记录 on 车间生产管理工艺_零件工艺计划.工艺计划流水号 = 车间生产管理工艺_备料出库记录.工艺计划流水号
|
||||
group by PDM_组件名称.组号,PDM_组件名称.组件名称,PDM_机床名称.机床流水号,PDM_机床名称.机床图号,自制备料.备料到货) as 完成
|
||||
on 所有.组号 = 完成.组号 and 所有.机床流水号 = 完成.机床流水号
|
||||
) as 头`
|
||||
) as 头
|
||||
*/
|
||||
data: {
|
||||
type: '3',
|
||||
name: `declare @机床流水号 int = ${this.machineValue}
|
||||
select *,(case when 100 * 已备料条数/零件条数 = 100 then '' else '——' end) as 完成时间 from (
|
||||
select case when 已备料条数 = 零件条数 then '完成' else '未完成' end as 状态
|
||||
,所有.*,已备料条数
|
||||
,100*已备料条数/零件条数 as 备料进度
|
||||
from (
|
||||
select PDM_组件名称.组号,PDM_组件名称.组件名称,PDM_组件名称.组件流水号,PDM_机床名称.机床流水号
|
||||
,COUNT(*) as 零件条数
|
||||
from (SELECT [工艺计划流水号],[零件图号], [零件名称], [备料打印] , [备料到货]
|
||||
from [车间生产管理工艺_零件工艺计划_传递后_视图]
|
||||
WHERE 考核状态 >= 3 and 考核状态 <8 and 工艺任务分配状态 =2 and 批次零件状态=1 and 备料打印 = 1 and 机床流水号 = @机床流水号
|
||||
and 工艺计划流水号 in ( select 工艺计划流水号 from 车间生产管理工艺_零件工序 where 工艺编号 = 29 )) as 自制备料
|
||||
inner join 车间生产管理工艺_零件工艺计划 on 自制备料.工艺计划流水号 = 车间生产管理工艺_零件工艺计划.工艺计划流水号
|
||||
inner join MRP_计划订单_组件零件清单_基本件 on 车间生产管理工艺_零件工艺计划.组件零件基本件流水号 = MRP_计划订单_组件零件清单_基本件.组件零件基本件流水号
|
||||
inner join MRP_计划订单_机床组件清单 on MRP_计划订单_机床组件清单.机床组件流水号 = MRP_计划订单_组件零件清单_基本件.机床组件流水号
|
||||
inner join PDM_组件名称 on PDM_组件名称.组件流水号 = MRP_计划订单_机床组件清单.组件流水号
|
||||
inner join PDM_机床名称 on PDM_组件名称.机床流水号 = PDM_机床名称.机床流水号
|
||||
group by PDM_组件名称.组号,PDM_组件名称.组件名称,PDM_组件名称.组件流水号,PDM_机床名称.机床流水号,PDM_机床名称.机床图号
|
||||
) as 所有
|
||||
left join
|
||||
(select 自制备料.备料到货
|
||||
,PDM_组件名称.组号,PDM_组件名称.组件名称,PDM_组件名称.组件流水号,PDM_机床名称.机床流水号
|
||||
,COUNT(*) as 已备料条数
|
||||
from (SELECT [工艺计划流水号],[零件图号], [零件名称], [备料打印] , [备料到货]
|
||||
from [车间生产管理工艺_零件工艺计划_传递后_视图]
|
||||
WHERE 考核状态 >= 3 and 考核状态 <8 and 工艺任务分配状态 =2 and 批次零件状态=1 and 备料打印 = 1 and 备料到货 = 1 and 机床流水号 = @机床流水号
|
||||
and 工艺计划流水号 in ( select 工艺计划流水号 from 车间生产管理工艺_零件工序 where 工艺编号 = 29 )) as 自制备料
|
||||
inner join 车间生产管理工艺_零件工艺计划 on 自制备料.工艺计划流水号 = 车间生产管理工艺_零件工艺计划.工艺计划流水号
|
||||
inner join MRP_计划订单_组件零件清单_基本件 on 车间生产管理工艺_零件工艺计划.组件零件基本件流水号 = MRP_计划订单_组件零件清单_基本件.组件零件基本件流水号
|
||||
inner join MRP_计划订单_机床组件清单 on MRP_计划订单_机床组件清单.机床组件流水号 = MRP_计划订单_组件零件清单_基本件.机床组件流水号
|
||||
inner join PDM_组件名称 on PDM_组件名称.组件流水号 = MRP_计划订单_机床组件清单.组件流水号
|
||||
inner join PDM_机床名称 on PDM_组件名称.机床流水号 = PDM_机床名称.机床流水号
|
||||
inner join 车间生产管理工艺_备料出库记录 on 车间生产管理工艺_零件工艺计划.工艺计划流水号 = 车间生产管理工艺_备料出库记录.工艺计划流水号
|
||||
group by PDM_组件名称.组号,PDM_组件名称.组件名称,PDM_组件名称.组件流水号,PDM_机床名称.机床流水号,PDM_机床名称.机床图号,自制备料.备料到货) as 完成
|
||||
on 所有.组号 = 完成.组号 and 所有.机床流水号 = 完成.机床流水号
|
||||
) as 头 order by 组号`
|
||||
}
|
||||
}).then(res => {
|
||||
this.tableDataDiv11 = res.data
|
||||
@@ -3346,7 +3488,6 @@ export default {
|
||||
group by 组号, 组件名称 order by 组号`
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
this.tableDataDiv12 = res.data
|
||||
})
|
||||
},
|
||||
@@ -3472,7 +3613,6 @@ export default {
|
||||
group by 机床流水号,组号,组件名称 order by 组号`
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res, 98765)
|
||||
this.tableDataDiv16C = res.data
|
||||
})
|
||||
})
|
||||
@@ -3995,7 +4135,6 @@ export default {
|
||||
order by 组号`
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
this.tableDataDiv14 = res.data
|
||||
for (let i = 0; i < res.data.length; i++) {
|
||||
this.dataDiv14.xData.push(res.data[i].组号)
|
||||
@@ -4126,7 +4265,6 @@ export default {
|
||||
drop table #临时表2`
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
this.tableDataDiv15 = res.data
|
||||
for (let i = 0; i < res.data.length; i++) {
|
||||
this.dataDiv15.xData.push(res.data[i].组号)
|
||||
@@ -4195,12 +4333,8 @@ export default {
|
||||
name: `select * from dbo.发货管理_发货单 where 机床流水号 = ${this.machineValue} and 是否发出 = 1`
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
this.tableDataDiv23 = res.data
|
||||
})
|
||||
},
|
||||
aaa() {
|
||||
console.log(this.dataDiv10.data, 89)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4225,9 +4359,12 @@ export default {
|
||||
.showDiv{
|
||||
height: 380px;
|
||||
}
|
||||
.el-button{
|
||||
padding-top: 5px;
|
||||
}
|
||||
.module{
|
||||
border-radius: 6px;
|
||||
border: 3px solid black;
|
||||
border: 1px solid black;
|
||||
/*background-color: white;*/
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user