更新
This commit is contained in:
@@ -43,3 +43,14 @@ export function searchMachine() {
|
||||
}
|
||||
})
|
||||
}
|
||||
export function searchAll() {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: '1_总查询',
|
||||
param: '机床流水号=' + arguments[0]
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
BIN
src/assets/img/img14.png
Normal file
BIN
src/assets/img/img14.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 71 KiB |
BIN
src/assets/img/img15.png
Normal file
BIN
src/assets/img/img15.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 74 KiB |
@@ -23,7 +23,7 @@ export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFil
|
||||
export const MESUploadFile = `http://192.168.1.231:8411/submit/MESUploadFile.ashx`
|
||||
export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx`
|
||||
const service = axios.create({
|
||||
baseURL: `http://192.168.0.101:8411/submit/MESCommonBase.ashx`,
|
||||
baseURL: `http://192.168.1.231:8411/submit/MESCommonBase.ashx`,
|
||||
timeout: 1500000 // 请求超时时间
|
||||
})
|
||||
export default service
|
||||
|
||||
@@ -6,139 +6,133 @@
|
||||
<div id="son" :class="[isActive ? color[22] : 'weikaishi']" class="module" style="position: relative;left: 1588px;top:190px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:装配部<br>根据营销部门发出发货请求,<br>装配部进行发货</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[22] : 'weikaishi']" type="text" @click.stop="searchDiv23">发货<br>{{ `${data[0].发货百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[22] : 'weikaishi']" type="text" @click.stop="searchDiv23">发货</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son1" :class="[isActive ? color[21] : 'weikaishi']" class="module" style="position: relative;left: 1400px;top:190px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:质检部<br>对机床进行总装调试</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[21] : 'weikaishi']" type="text" @click.stop="searchDiv22">总装调试<br>{{ `${data[0].总装调试百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[21] : 'weikaishi']" type="text" @click.stop="searchDiv22">总装调试</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son2" :class="[isActive ? color[20] : 'weikaishi']" class="module" style="position: relative;left: 1210px;top:190px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:质检部<br>对机床重要部件进行检测</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[20] : 'weikaishi']" type="text" @click.stop="searchDiv21">装配质检<br>{{ `${data[0].装配质检百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[20] : 'weikaishi']" type="text" @click.stop="searchDiv21">装配质检<br>{{ `${data2[0].装配质检}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son3" :class="[isActive ? color[19] : 'weikaishi']" class="module" style="position: relative;left: 1005px;top:62px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:电气部<br>电气部长制定装配计划,<br>并记录计划执行情况</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[19] : 'weikaishi']" type="text" @click.stop="searchDiv6">电气装配<br>{{ `${data[0].电气装配百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[19] : 'weikaishi']" type="text" @click.stop="searchDiv6">电气装配<br>{{ `${data2[0].电气装配}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son4" :class="[isActive ? color[18] : 'weikaishi']" class="module" style="position: relative;left: 920px;top:140px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content"><br>角色:装配部长<br>装配部长制定装配计划,<br>并记录计划执行情况</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[18] : 'weikaishi']" type="text" @click.stop="searchDiv5">机械装配<br>{{ `${data[0].机械装配百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[18] : 'weikaishi']" type="text" @click.stop="searchDiv5">机械装配<br>{{ `${data2[0].机械装配}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son5" :class="[isActive ? color[17] : 'weikaishi']" class="module" style="position: relative;left: 835px;top:220px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:冷作车间主任<br>冷作车间主任制定冷作计划,<br>并记录计划执行情况</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[17] : 'weikaishi']" type="text" @click.stop="searchDiv7">冷作<br>{{ `${data[0].冷作百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[17] : 'weikaishi']" type="text" @click.stop="searchDiv7">冷作<br>{{ `${data2[0].冷作}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son6" :class="[isActive ? color[16] : 'weikaishi']" class="module" style="position: relative;left: 750px;top:300px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:油漆车间主任<br>油漆车间主任制定装配计划,<br>并记录计划执行情况</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[16] : 'weikaishi']" type="text" @click.stop="searchDiv8">油漆<br>{{ `${data[0].油漆百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[16] : 'weikaishi']" type="text" @click.stop="searchDiv8">油漆<br>{{ `${data2[0].油漆}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son7" :class="[isActive ? color[15] : 'weikaishi']" class="module" style="position: relative;left: 544px;top:190px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:装配部长<br>此模块用于查询某机床是否达到装配条件,<br>即采购件与自制件是否成组配套</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[15] : 'weikaishi']" type="text" @click.stop="searchDiv9">成组配套<br>{{ `${data[0].成组配套百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[15] : 'weikaishi']" type="text" @click.stop="searchDiv9">成组配套<br>{{ `${data2[0].成组配套}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son8" :class="[isActive ? color[14] : 'weikaishi']" class="module" style="position: relative;left: 321px;top:95px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:质检部<br>对自制件进行检测</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[14] : 'weikaishi']" type="text" @click.stop="searchDiv12">自制质检<br>{{ `${data[0].自制质检百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[14] : 'weikaishi']" type="text" @click.stop="searchDiv12">自制质检<br>{{ `${data2[0].自制质检}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son9" :class="[isActive ? color[13] : 'weikaishi']" class="module" style="position: relative;left: 240px;top:286px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:质检部<br>对采购件进行检测</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[13] : 'weikaishi']" type="text" @click.stop="searchDiv19">采购质检<br>{{ `${data[0].采购质检百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[13] : 'weikaishi']" type="text" @click.stop="searchDiv19">采购质检<br>{{ `${data2[0].采购质检}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son10" :class="[isActive ? color[12] : 'weikaishi']" class="module" style="position: relative;left: 30px;top:155px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:金工车间<br>接收加工任务并使用<br>MES工作站进行报工</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[12] : 'weikaishi']" type="text" @click.stop="searchDiv10">车间加工<br>{{ `${data[0].车间加工百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[12] : 'weikaishi']" type="text" @click.stop="searchDiv10">车间加工<br>{{ `${data2[0].车间加工}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son11" :class="[isActive ? color[11] : 'weikaishi']" class="module" style="position: relative;left: -133px;top:33px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:外协员<br>进行外协加工</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[11] : 'weikaishi']" type="text" @click.stop="searchDiv18">工序外协<br>{{ `${data[0].工序外协百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[11] : 'weikaishi']" type="text" @click.stop="searchDiv18">工序外协<br>{{ `${data2[0].外协}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son12" :class="[isActive ? color[10] : 'weikaishi']" class="module" style="position: relative;left: -335px;top:94px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:计划员<br>针对做完工艺定额的零件进行排查</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[10] : 'weikaishi']" type="text" @click.stop="searchDiv15">能力平衡<br>{{ `${data[0].能力平衡百分比}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div v-show="false" id="son13" :class="[isActive ? color[9] : 'weikaishi']" class="module" style="position: relative;left: -420px;top:94px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:工艺部<br>制定零件定额</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[9] : 'weikaishi']" type="text" @click.stop="searchDiv14">定额<br>{{ `${data[0].定额百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[10] : 'weikaishi']" type="text" @click.stop="searchDiv15">能力平衡<br>{{ `${data2[0].能力平衡}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son14" :class="[isActive ? color[8] : 'weikaishi']" class="module" style="position: relative;left: -520px;top:93px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:工艺部<br>制定零件工艺</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[8] : 'weikaishi']" type="text" @click.stop="searchDiv13">工艺<br>{{ `${data[0].工艺百分比}%` }}</el-button>
|
||||
<div slot="content">角色:工艺部<br>制定零件工艺定额</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[8] : 'weikaishi']" type="text" @click.stop="searchDiv13">工艺定额<br>{{ `${data2[0].工艺定额}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son15" :class="[isActive ? color[7] : 'weikaishi']" class="module" style="position: relative;left: -728px;top:33px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:下料员<br>对于钢板等自家备料<br>下料员需要在系统确认备料<br>并通知金工领料</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[7] : 'weikaishi']" type="text" @click.stop="searchDiv11">自家备料<br>{{ `${data[0].自家备料百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[7] : 'weikaishi']" type="text" @click.stop="searchDiv11">自家备料<br>{{ `${data2[0].自家备料}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son16" :class="[isActive ? color[0] : 'weikaishi']" class="module" style="position: relative;left: -1255px;top:236px; width: 80px;height: 48px;">
|
||||
<!--<el-tooltip placement="top">-->
|
||||
<!--<div slot="content">角色:营销内勤<br>负责创建项目及机床的基础信息,<br>此部分作为系统数据的源头</div>-->
|
||||
<!--</el-tooltip>-->
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[0] : 'weikaishi']" type="text" @click.stop="searchDiv1">签订合同<br>{{ `${data[0].签订合同百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[0] : 'weikaishi']" type="text" @click.stop="searchDiv1">签订合同<br>{{ `${data2[0].签订合同}%` }}</el-button>
|
||||
</div>
|
||||
<div id="son17" :class="[isActive ? color[1] : 'weikaishi']" class="module" style="position: relative;left: -1240px;top:236px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:技术员<br>负责导入三表(零件),<br>组件在项目启动会时提出,<br>由制造总监导入</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[1] : 'weikaishi']" type="text" @click.stop="searchDiv2">产品设计<br>{{ `${data[0].产品设计百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[1] : 'weikaishi']" type="text" @click.stop="searchDiv2">产品设计<br>{{ `${data2[0].产品设计}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son18" :class="[isActive ? color[6] : 'weikaishi']" class="module" style="position: relative;left: -980px;top:155px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:下料员<br>外购物料到货后,由下料员确认备料,<br>并通知金工领料</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[6] : 'weikaishi']" type="text" @click.stop="searchDiv20">外购备料<br>{{ `${data[0].外购备料百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[6] : 'weikaishi']" type="text" @click.stop="searchDiv20">外购备料<br>{{ `${data2[0].外购备料}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son19" :class="[isActive ? color[2] : 'weikaishi']" class="module" style="position: relative;left: -1311px;top:236px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:计划员<br>计划员负责将三表中的零件按实际情况分配为:<br>自制件、采购部采购件、制造部采购件三类</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[2] : 'weikaishi']" type="text" @click.stop="searchDiv3">零件分配<br>{{ `${data[0].零件分配百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[2] : 'weikaishi']" type="text" @click.stop="searchDiv3">零件分配<br>{{ `${data2[0].零件分配}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son20" :class="[isActive ? color[3] : 'weikaishi']" class="module" style="position: relative;left: -1269px;top:103px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:计划员<br>计划员分配零件后,<br>在生产计划下达模块<br>可查看到自家加工的零件任务,<br>计划员需要将这些零件投产</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[3] : 'weikaishi']" type="text" @click.stop="searchDiv4">自制件<br>{{ `${data[0].自制件百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[3] : 'weikaishi']" type="text" @click.stop="searchDiv4">自制件<br>{{ `${data2[0].自制件}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son21" :class="[isActive ? color[5] : 'weikaishi']" class="module" style="position: relative;left: -1354px;top:236px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:制造部长<br>计划员分配零件后,<br>将分配到制造部的采购件进行采购</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[5] : 'weikaishi']" type="text" @click.stop="searchDiv17">车间采购<br>{{ `${data[0].车间采购百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[5] : 'weikaishi']" type="text" @click.stop="searchDiv17">车间采购<br>{{ `${data2[0].车间采购}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div id="son22" :class="[isActive ? color[4] : 'weikaishi']" class="module" style="position: relative;left: -1438px;top:328px; width: 80px;height: 48px;">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">角色:采购部<br>计划员分配零件后,<br>将分配到采购部的采购件进行采购</div>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[4] : 'weikaishi']" type="text" @click.stop="searchDiv16">采购部采购<br>{{ `${data[0].采购部采购百分比}%` }}</el-button>
|
||||
<el-button :disabled="disabled" :class="[isActive ? color[4] : 'weikaishi']" type="text" @click.stop="searchDiv16">采购部采购<br>{{ `${data2[0].采购部采购}%` }}</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1875,7 +1869,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { SelectMachine, ProcessOutsourcing, ProcessProportion, searchMachine } from '@/api/ManufacturingCenter/ParseQuery'
|
||||
import { SelectMachine, ProcessOutsourcing, ProcessProportion, searchMachine, searchAll } from '@/api/ManufacturingCenter/ParseQuery'
|
||||
import request from '@/utils/request'
|
||||
import echarts from 'echarts'
|
||||
import Cookie from 'js-cookie'
|
||||
@@ -1991,6 +1985,30 @@ export default {
|
||||
总装调试百分比: 0,
|
||||
发货百分比: 0
|
||||
}],
|
||||
data2: [{
|
||||
签订合同: 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: {
|
||||
组件总数: '',
|
||||
@@ -2192,29 +2210,26 @@ export default {
|
||||
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
|
||||
this.data2[0].签订合同 = 0
|
||||
this.data2[0].产品设计 = 0
|
||||
this.data2[0].零件分配 = 0
|
||||
this.data2[0].自制件 = 0
|
||||
this.data2[0].车间采购 = 0
|
||||
this.data2[0].采购部采购 = 0
|
||||
this.data2[0].自家备料 = 0
|
||||
this.data2[0].外购备料 = 0
|
||||
this.data2[0].工艺定额 = 0
|
||||
this.data2[0].能力平衡 = 0
|
||||
this.data2[0].外协 = 0
|
||||
this.data2[0].车间加工 = 0
|
||||
this.data2[0].自制质检 = 0
|
||||
this.data2[0].采购质检 = 0
|
||||
this.data2[0].成组配套 = 0
|
||||
this.data2[0].电气装配 = 0
|
||||
this.data2[0].机械装配 = 0
|
||||
this.data2[0].冷作 = 0
|
||||
this.data2[0].油漆 = 0
|
||||
this.data2[0].装配质检 = 0
|
||||
this.machineValue ? this.check = 1 : this.check = 0
|
||||
searchMachine(this.check, this.machineValue).then(response => {
|
||||
this.tableDataDiv0 = response.data
|
||||
@@ -2290,40 +2305,31 @@ export default {
|
||||
this.showDiv19 = false
|
||||
this.showDiv20 = false
|
||||
this.showDiv0 = true
|
||||
await request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '3',
|
||||
name: `select * from 综合查询_状态 where 机床流水号 = ${this.machineValue1}`
|
||||
}
|
||||
}).then(res => {
|
||||
await searchAll(this.machineValue1).then(response => {
|
||||
this.isActive = true
|
||||
this.data = res.data
|
||||
console.log(res)
|
||||
if (res.data[0].签订合同状态 === 1) { this.color[0] = 'weikaishi' } else if (res.data[0].签订合同状态 === 2) { this.color[0] = 'jixingzhong' } else if (res.data[0].签订合同状态 === 3) { this.color[0] = 'yiwancheng' } else if (res.data[0].签订合同状态 === 4) { this.color[0] = 'red' }
|
||||
if (res.data[0].产品设计状态 === 1) { this.color[1] = 'weikaishi' } else if (res.data[0].产品设计状态 === 2) { this.color[1] = 'jixingzhong' } else if (res.data[0].产品设计状态 === 3) { this.color[1] = 'yiwancheng' } else if (res.data[0].产品设计状态 === 4) { this.color[1] = 'red' }
|
||||
if (res.data[0].零件分配状态 === 1) { this.color[2] = 'weikaishi' } else if (res.data[0].零件分配状态 === 2) { this.color[2] = 'jixingzhong' } else if (res.data[0].零件分配状态 === 3) { this.color[2] = 'yiwancheng' } else if (res.data[0].零件分配状态 === 4) { this.color[2] = 'red' }
|
||||
if (res.data[0].自制件状态 === 1) { this.color[3] = 'weikaishi' } else if (res.data[0].自制件状态 === 2) { this.color[3] = 'jixingzhong' } else if (res.data[0].自制件状态 === 3) { this.color[3] = 'yiwancheng' } else if (res.data[0].自制件状态 === 4) { this.color[3] = 'red' }
|
||||
if (res.data[0].采购部采购状态 === 1) { this.color[4] = 'weikaishi' } else if (res.data[0].采购部采购状态 === 2) { this.color[4] = 'jixingzhong' } else if (res.data[0].采购部采购状态 === 3) { this.color[4] = 'yiwancheng' } else if (res.data[0].采购部采购状态 === 4) { this.color[4] = 'red' }
|
||||
if (res.data[0].车间采购状态 === 1) { this.color[5] = 'weikaishi' } else if (res.data[0].车间采购状态 === 2) { this.color[5] = 'jixingzhong' } else if (res.data[0].车间采购状态 === 3) { this.color[5] = 'yiwancheng' } else if (res.data[0].车间采购状态 === 4) { this.color[5] = 'red' }
|
||||
if (res.data[0].外购备料状态 === 1) { this.color[6] = 'weikaishi' } else if (res.data[0].外购备料状态 === 2) { this.color[6] = 'jixingzhong' } else if (res.data[0].外购备料状态 === 3) { this.color[6] = 'yiwancheng' } else if (res.data[0].外购备料状态 === 4) { this.color[6] = 'red' }
|
||||
if (res.data[0].自家备料状态 === 1) { this.color[7] = 'weikaishi' } else if (res.data[0].自家备料状态 === 2) { this.color[7] = 'jixingzhong' } else if (res.data[0].自家备料状态 === 3) { this.color[7] = 'yiwancheng' } else if (res.data[0].自家备料状态 === 4) { this.color[7] = 'red' }
|
||||
if (res.data[0].工艺状态 === 1) { this.color[8] = 'weikaishi' } else if (res.data[0].工艺状态 === 2) { this.color[8] = 'jixingzhong' } else if (res.data[0].工艺状态 === 3) { this.color[8] = 'yiwancheng' } else if (res.data[0].工艺状态 === 4) { this.color[8] = 'red' }
|
||||
if (res.data[0].定额状态 === 1) { this.color[9] = 'weikaishi' } else if (res.data[0].定额状态 === 2) { this.color[9] = 'jixingzhong' } else if (res.data[0].定额状态 === 3) { this.color[9] = 'yiwancheng' } else if (res.data[0].定额状态 === 4) { this.color[9] = 'red' }
|
||||
if (res.data[0].能力平衡状态 === 1) { this.color[10] = 'weikaishi' } else if (res.data[0].能力平衡状态 === 2) { this.color[10] = 'jixingzhong' } else if (res.data[0].能力平衡状态 === 3) { this.color[10] = 'yiwancheng' } else if (res.data[0].能力平衡状态 === 4) { this.color[10] = 'red' }
|
||||
if (res.data[0].工序外协状态 === 1) { this.color[11] = 'weikaishi' } else if (res.data[0].工序外协状态 === 2) { this.color[11] = 'jixingzhong' } else if (res.data[0].工序外协状态 === 3) { this.color[11] = 'yiwancheng' } else if (res.data[0].工序外协状态 === 4) { this.color[11] = 'red' }
|
||||
if (res.data[0].车间加工状态 === 1) { this.color[12] = 'weikaishi' } else if (res.data[0].车间加工状态 === 2) { this.color[12] = 'jixingzhong' } else if (res.data[0].车间加工状态 === 3) { this.color[12] = 'yiwancheng' } else if (res.data[0].车间加工状态 === 4) { this.color[12] = 'red' }
|
||||
if (res.data[0].采购质检状态 === 1) { this.color[13] = 'weikaishi' } else if (res.data[0].采购质检状态 === 2) { this.color[13] = 'jixingzhong' } else if (res.data[0].采购质检状态 === 3) { this.color[13] = 'yiwancheng' } else if (res.data[0].采购质检状态 === 4) { this.color[13] = 'red' }
|
||||
if (res.data[0].自制质检状态 === 1) { this.color[14] = 'weikaishi' } else if (res.data[0].自制质检状态 === 2) { this.color[14] = 'jixingzhong' } else if (res.data[0].自制质检状态 === 3) { this.color[14] = 'yiwancheng' } else if (res.data[0].自制质检状态 === 4) { this.color[14] = 'red' }
|
||||
if (res.data[0].成组配套状态 === 1) { this.color[15] = 'weikaishi' } else if (res.data[0].成组配套状态 === 2) { this.color[15] = 'jixingzhong' } else if (res.data[0].成组配套状态 === 3) { this.color[15] = 'yiwancheng' } else if (res.data[0].成组配套状态 === 4) { this.color[15] = 'red' }
|
||||
if (res.data[0].油漆状态 === 1) { this.color[16] = 'weikaishi' } else if (res.data[0].油漆状态 === 2) { this.color[16] = 'jixingzhong' } else if (res.data[0].油漆状态 === 3) { this.color[16] = 'yiwancheng' } else if (res.data[0].油漆状态 === 4) { this.color[16] = 'red' }
|
||||
if (res.data[0].冷作状态 === 1) { this.color[17] = 'weikaishi' } else if (res.data[0].冷作状态 === 2) { this.color[17] = 'jixingzhong' } else if (res.data[0].冷作状态 === 3) { this.color[17] = 'yiwancheng' } else if (res.data[0].冷作状态 === 4) { this.color[17] = 'red' }
|
||||
if (res.data[0].机械装配状态 === 1) { this.color[18] = 'weikaishi' } else if (res.data[0].机械装配状态 === 2) { this.color[18] = 'jixingzhong' } else if (res.data[0].机械装配状态 === 3) { this.color[18] = 'yiwancheng' } else if (res.data[0].机械装配状态 === 4) { this.color[18] = 'red' }
|
||||
if (res.data[0].电气装配状态 === 1) { this.color[19] = 'weikaishi' } else if (res.data[0].电气装配状态 === 2) { this.color[19] = 'jixingzhong' } else if (res.data[0].电气装配状态 === 3) { this.color[19] = 'yiwancheng' } else if (res.data[0].电气装配状态 === 4) { this.color[19] = 'red' }
|
||||
if (res.data[0].装配质检状态 === 1) { this.color[20] = 'weikaishi' } else if (res.data[0].装配质检状态 === 2) { this.color[20] = 'jixingzhong' } else if (res.data[0].装配质检状态 === 3) { this.color[20] = 'yiwancheng' } else if (res.data[0].装配质检状态 === 4) { this.color[20] = 'red' }
|
||||
if (res.data[0].总装调试状态 === 1) { this.color[21] = 'weikaishi' } else if (res.data[0].总装调试状态 === 2) { this.color[21] = 'jixingzhong' } else if (res.data[0].总装调试状态 === 3) { this.color[21] = 'yiwancheng' } else if (res.data[0].总装调试状态 === 4) { this.color[21] = 'red' }
|
||||
if (res.data[0].发货状态 === 1) { this.color[22] = 'weikaishi' } else if (res.data[0].发货状态 === 2) { this.color[22] = 'jixingzhong' } else if (res.data[0].发货状态 === 3) { this.color[22] = 'yiwancheng' } else if (res.data[0].发货状态 === 4) { this.color[22] = 'red' }
|
||||
this.data2 = response.data
|
||||
if (response.data[0].签订合同 === 0) { this.color[0] = 'weikaishi' } else if (response.data[0].签订合同 !== 0 && response.data[0].签订合同 !== 100) { this.color[0] = 'jixingzhong' } else if (response.data[0].签订合同 === 100) { this.color[0] = 'yiwancheng' }
|
||||
if (response.data[0].产品设计 === 0) { this.color[1] = 'weikaishi' } else if (response.data[0].产品设计 !== 0 && response.data[0].产品设计 !== 100) { this.color[1] = 'jixingzhong' } else if (response.data[0].产品设计 === 100) { this.color[1] = 'yiwancheng' }
|
||||
if (response.data[0].零件分配 === 0) { this.color[2] = 'weikaishi' } else if (response.data[0].零件分配 !== 0 && response.data[0].零件分配 !== 100) { this.color[2] = 'jixingzhong' } else if (response.data[0].零件分配 === 100) { this.color[2] = 'yiwancheng' }
|
||||
if (response.data[0].自制件 === 0) { this.color[3] = 'weikaishi' } else if (response.data[0].自制件 !== 0 && response.data[0].自制件 !== 100) { this.color[3] = 'jixingzhong' } else if (response.data[0].自制件 === 100) { this.color[3] = 'yiwancheng' }
|
||||
if (response.data[0].采购部采购 === 0) { this.color[4] = 'weikaishi' } else if (response.data[0].采购部采购 !== 0 && response.data[0].采购部采购 !== 100) { this.color[4] = 'jixingzhong' } else if (response.data[0].采购部采购 === 100) { this.color[4] = 'yiwancheng' }
|
||||
if (response.data[0].车间采购 === 0) { this.color[5] = 'weikaishi' } else if (response.data[0].车间采购 !== 0 && response.data[0].车间采购 !== 100) { this.color[5] = 'jixingzhong' } else if (response.data[0].车间采购 === 100) { this.color[5] = 'yiwancheng' }
|
||||
if (response.data[0].外购备料 === 0) { this.color[6] = 'weikaishi' } else if (response.data[0].外购备料 !== 0 && response.data[0].外购备料 !== 100) { this.color[6] = 'jixingzhong' } else if (response.data[0].外购备料 === 100) { this.color[6] = 'yiwancheng' }
|
||||
if (response.data[0].自家备料 === 0) { this.color[7] = 'weikaishi' } else if (response.data[0].自家备料 !== 0 && response.data[0].自家备料 !== 100) { this.color[7] = 'jixingzhong' } else if (response.data[0].自家备料 === 100) { this.color[7] = 'yiwancheng' }
|
||||
if (response.data[0].工艺定额 === 0) { this.color[8] = 'weikaishi' } else if (response.data[0].工艺定额 !== 0 && response.data[0].工艺定额 !== 100) { this.color[8] = 'jixingzhong' } else if (response.data[0].工艺定额 === 100) { this.color[8] = 'yiwancheng' }
|
||||
if (response.data[0].能力平衡 === 0) { this.color[10] = 'weikaishi' } else if (response.data[0].能力平衡 !== 0 && response.data[0].能力平衡 !== 100) { this.color[10] = 'jixingzhong' } else if (response.data[0].能力平衡 === 100) { this.color[10] = 'yiwancheng' }
|
||||
if (response.data[0].外协 === 0) { this.color[11] = 'weikaishi' } else if (response.data[0].外协 !== 0 && response.data[0].外协 !== 100) { this.color[11] = 'jixingzhong' } else if (response.data[0].外协 === 100) { this.color[11] = 'yiwancheng' }
|
||||
if (response.data[0].车间加工 === 0) { this.color[12] = 'weikaishi' } else if (response.data[0].车间加工 !== 0 && response.data[0].车间加工 !== 100) { this.color[12] = 'jixingzhong' } else if (response.data[0].车间加工 === 100) { this.color[12] = 'yiwancheng' }
|
||||
if (response.data[0].采购质检 === 0) { this.color[13] = 'weikaishi' } else if (response.data[0].采购质检 !== 0 && response.data[0].采购质检 !== 100) { this.color[13] = 'jixingzhong' } else if (response.data[0].采购质检 === 100) { this.color[13] = 'yiwancheng' }
|
||||
if (response.data[0].自制质检 === 0) { this.color[14] = 'weikaishi' } else if (response.data[0].自制质检 !== 0 && response.data[0].自制质检 !== 100) { this.color[14] = 'jixingzhong' } else if (response.data[0].自制质检 === 100) { this.color[14] = 'yiwancheng' }
|
||||
if (response.data[0].成组配套 === 0) { this.color[15] = 'weikaishi' } else if (response.data[0].成组配套 !== 0 && response.data[0].成组配套 !== 100) { this.color[15] = 'jixingzhong' } else if (response.data[0].成组配套 === 100) { this.color[15] = 'yiwancheng' }
|
||||
if (response.data[0].油漆 === 0) { this.color[16] = 'weikaishi' } else if (response.data[0].油漆 !== 0 && response.data[0].油漆 !== 100) { this.color[16] = 'jixingzhong' } else if (response.data[0].油漆 === 100) { this.color[16] = 'yiwancheng' }
|
||||
if (response.data[0].冷作 === 0) { this.color[17] = 'weikaishi' } else if (response.data[0].冷作 !== 0 && response.data[0].冷作 !== 100) { this.color[17] = 'jixingzhong' } else if (response.data[0].冷作 === 100) { this.color[17] = 'yiwancheng' }
|
||||
if (response.data[0].机械装配 === 0) { this.color[18] = 'weikaishi' } else if (response.data[0].机械装配 !== 0 && response.data[0].机械装配 !== 100) { this.color[18] = 'jixingzhong' } else if (response.data[0].机械装配 === 100) { this.color[18] = 'yiwancheng' }
|
||||
if (response.data[0].电气装配 === 0) { this.color[19] = 'weikaishi' } else if (response.data[0].电气装配 !== 0 && response.data[0].电气装配 !== 100) { this.color[19] = 'jixingzhong' } else if (response.data[0].电气装配 === 100) { this.color[19] = 'yiwancheng' }
|
||||
if (response.data[0].装配质检 === 0) { this.color[20] = 'weikaishi' } else if (response.data[0].装配质检 !== 0 && response.data[0].装配质检 !== 100) { this.color[20] = 'jixingzhong' } else if (response.data[0].装配质检 === 100) { this.color[20] = 'yiwancheng' }
|
||||
if (response.data[0].总装调试 === 0) { this.color[21] = 'weikaishi' } else if (response.data[0].总装调试 !== 0 && response.data[0].总装调试 !== 100) { this.color[21] = 'jixingzhong' } else if (response.data[0].总装调试 === 100) { this.color[21] = 'yiwancheng' }
|
||||
if (response.data[0].发货 === 0) { this.color[22] = 'weikaishi' } else if (response.data[0].发货 !== 0 && response.data[0].发货 !== 100) { this.color[22] = 'jixingzhong' } else if (response.data[0].发货 === 100) { this.color[22] = 'yiwancheng' }
|
||||
})
|
||||
},
|
||||
// 查询签订合同div数据
|
||||
@@ -4458,7 +4464,7 @@ export default {
|
||||
width: 1858px;
|
||||
height: 400px;
|
||||
/*border: 1px solid red;*/
|
||||
background: url('../../../assets/img/img11.png') repeat;
|
||||
background: url('../../../assets/img/img15.png') repeat;
|
||||
background-repeat:no-repeat;
|
||||
background-size:100% 100%;-moz-background-size:100% 100%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user