|
@@ -4,7 +4,7 @@
|
|
|
<header>
|
|
<header>
|
|
|
<el-button type="primary" @click="onBZ">班组维护</el-button>
|
|
<el-button type="primary" @click="onBZ">班组维护</el-button>
|
|
|
<el-button type="primary" @click="onzhicheng" >制程检验</el-button>
|
|
<el-button type="primary" @click="onzhicheng" >制程检验</el-button>
|
|
|
- <!-- <el-button type="primary" @click="onDel">删除</el-button> -->
|
|
|
|
|
|
|
+ <el-button type="primary" @click="onDel">删除</el-button>
|
|
|
<el-button type="primary" @click="onxuncha">管理巡查</el-button>
|
|
<el-button type="primary" @click="onxuncha">管理巡查</el-button>
|
|
|
<el-button type="primary" @click="ondianjian">设备点检</el-button>
|
|
<el-button type="primary" @click="ondianjian">设备点检</el-button>
|
|
|
<el-button type="primary" @click="onyinban">印版领退</el-button>
|
|
<el-button type="primary" @click="onyinban">印版领退</el-button>
|
|
@@ -24,7 +24,14 @@
|
|
|
</el-aside>
|
|
</el-aside>
|
|
|
<el-container>
|
|
<el-container>
|
|
|
<el-main>
|
|
<el-main>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+<div class="button-container" v-if="showbutton" style="height: 50%;width: 100%; flex: 1; border: 0px magenta solid; margin: 0; padding: 0;">
|
|
|
|
|
+ <button v-for="(item, index) in machineData" :key="index" class="custom-button" @click="handleButtonClick(item.设备编号)">
|
|
|
|
|
+ <img :src="`/src/assets/${item.状态}.png`" :alt="altText" style="max-width: 100%; height: auto;"/>
|
|
|
|
|
+ <span style="margin-top: 8px;">{{ item.设备编号 + ' - ' + item.设备名称 }}</span>
|
|
|
|
|
+ </button>
|
|
|
|
|
+</div>
|
|
|
|
|
|
|
|
<div class="gva-search-box" v-if="JTMCOn" style="overflow: hidden; padding: 0; display: flex;">
|
|
<div class="gva-search-box" v-if="JTMCOn" style="overflow: hidden; padding: 0; display: flex;">
|
|
|
|
|
|
|
@@ -139,7 +146,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-if="JTMCOn" class="gva-table-box">
|
|
|
|
|
|
|
+ <div v-if="JTMCOn" class="gva-table-box" >
|
|
|
<div class="gva-btn-list">
|
|
<div class="gva-btn-list">
|
|
|
</div>
|
|
</div>
|
|
|
<el-tabs v-model="activName" type="card" @tab-click="handleClick">
|
|
<el-tabs v-model="activName" type="card" @tab-click="handleClick">
|
|
@@ -984,13 +991,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="dateOn" >
|
|
<div v-if="dateOn" >
|
|
|
|
|
+
|
|
|
<el-tabs v-model="activName" type="card" @tab-click="handleClick">
|
|
<el-tabs v-model="activName" type="card" @tab-click="handleClick">
|
|
|
<el-tab-pane label="当日上报产量" @click="showTable('工艺资料')" name="first">
|
|
<el-tab-pane label="当日上报产量" @click="showTable('工艺资料')" name="first">
|
|
|
<el-table ref="multipleTable"
|
|
<el-table ref="multipleTable"
|
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
|
:row-style="{ height: '20px' }"
|
|
:row-style="{ height: '20px' }"
|
|
|
:cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
|
|
:cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
|
|
|
- :header-cell-style="{ padding: '0px' }"
|
|
|
|
|
|
|
+ :header-cell-style="{ padding: '0px' }" @row-click="getUid"
|
|
|
highlight-current-row="true" @row-dblclick="gytableDatadoubleClick"
|
|
highlight-current-row="true" @row-dblclick="gytableDatadoubleClick"
|
|
|
style="width: 100%;height: 400px" border tooltip-effect="dark" :data="gytableData" row-key="ID" @selection-change="handleSelectionChange">
|
|
style="width: 100%;height: 400px" border tooltip-effect="dark" :data="gytableData" row-key="ID" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" />
|
|
<el-table-column type="selection" width="55" />
|
|
@@ -1853,6 +1861,7 @@ import {
|
|
|
chanliangEdit,
|
|
chanliangEdit,
|
|
|
productionGdmc,
|
|
productionGdmc,
|
|
|
productionYjmc,
|
|
productionYjmc,
|
|
|
|
|
+ ChanliangDel
|
|
|
} from '@/api/jixiaoguanli/jitairibaobiao'
|
|
} from '@/api/jixiaoguanli/jitairibaobiao'
|
|
|
|
|
|
|
|
import {
|
|
import {
|
|
@@ -1878,6 +1887,7 @@ let JTMC=ref()
|
|
|
let date=ref()
|
|
let date=ref()
|
|
|
let titinfo=ref()
|
|
let titinfo=ref()
|
|
|
let JTMCOn=ref()
|
|
let JTMCOn=ref()
|
|
|
|
|
+let showbutton=ref()
|
|
|
let dateOn=ref()
|
|
let dateOn=ref()
|
|
|
const activName = ref('first')
|
|
const activName = ref('first')
|
|
|
let productCode=ref()
|
|
let productCode=ref()
|
|
@@ -1891,6 +1901,9 @@ const handleNodeClick = (nodeData,node) => {
|
|
|
if (nodeData.level === 1) {
|
|
if (nodeData.level === 1) {
|
|
|
console.log(node.label); // 第一级节点
|
|
console.log(node.label); // 第一级节点
|
|
|
CJMC.value=node.label
|
|
CJMC.value=node.label
|
|
|
|
|
+ showbutton.value=true
|
|
|
|
|
+ JTMCOn.value=false
|
|
|
|
|
+ dateOn.value=false
|
|
|
MachinelList()
|
|
MachinelList()
|
|
|
// MachineVisible.value=true
|
|
// MachineVisible.value=true
|
|
|
} else if (nodeData.level === 2) {
|
|
} else if (nodeData.level === 2) {
|
|
@@ -1898,6 +1911,7 @@ const handleNodeClick = (nodeData,node) => {
|
|
|
JTMC=node.label.split("-")[0]
|
|
JTMC=node.label.split("-")[0]
|
|
|
JTMCOn.value=true
|
|
JTMCOn.value=true
|
|
|
dateOn.value=false
|
|
dateOn.value=false
|
|
|
|
|
+ showbutton.value=false
|
|
|
FacilityProduction()
|
|
FacilityProduction()
|
|
|
FacilityWorklist()
|
|
FacilityWorklist()
|
|
|
// FacilityTeam(JTMC)
|
|
// FacilityTeam(JTMC)
|
|
@@ -1912,6 +1926,7 @@ const handleNodeClick = (nodeData,node) => {
|
|
|
drzcDatas.value=[]
|
|
drzcDatas.value=[]
|
|
|
columnNames=[]
|
|
columnNames=[]
|
|
|
drzcData=[]
|
|
drzcData=[]
|
|
|
|
|
+ showbutton.value=false
|
|
|
FacilityInspect()
|
|
FacilityInspect()
|
|
|
FacilitychanLiang()
|
|
FacilitychanLiang()
|
|
|
|
|
|
|
@@ -1930,8 +1945,7 @@ const MachinelList = async () => {
|
|
|
machineData.splice(0, machineData.length, ...response.data);
|
|
machineData.splice(0, machineData.length, ...response.data);
|
|
|
console.log(machineData)
|
|
console.log(machineData)
|
|
|
// return require(`@/assets/${machineData.状态}.png`);
|
|
// return require(`@/assets/${machineData.状态}.png`);
|
|
|
-
|
|
|
|
|
- MachineVisible.value=true
|
|
|
|
|
|
|
+ // MachineVisible.value=true
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1941,8 +1955,8 @@ function handleButtonClick(deviceId) {
|
|
|
MachineVisible.value=false
|
|
MachineVisible.value=false
|
|
|
// dialogSbyxgl.value=true
|
|
// dialogSbyxgl.value=true
|
|
|
JTMC=deviceId.split("-")[0]
|
|
JTMC=deviceId.split("-")[0]
|
|
|
- JTMCOn.value=true
|
|
|
|
|
- dateOn.value=false
|
|
|
|
|
|
|
+ // JTMCOn.value=true
|
|
|
|
|
+ // dateOn.value=false
|
|
|
console.log(JTMC)
|
|
console.log(JTMC)
|
|
|
GetdialogSbyxgl()
|
|
GetdialogSbyxgl()
|
|
|
|
|
|
|
@@ -2283,9 +2297,25 @@ const getTableList = async() => {
|
|
|
getTableData()
|
|
getTableData()
|
|
|
//删除
|
|
//删除
|
|
|
function onDel() {
|
|
function onDel() {
|
|
|
|
|
+ Chanliangdel()
|
|
|
|
|
+}
|
|
|
|
|
+// 日产量上报删除
|
|
|
|
|
+const Chanliangdel = async() => {
|
|
|
|
|
|
|
|
|
|
+ const res = await ChanliangDel({ UniqId:uid.value})
|
|
|
|
|
+ if (res.msg === '成功') {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: '成功'
|
|
|
|
|
+ })
|
|
|
|
|
+ FacilitychanLiang()
|
|
|
|
|
+ }else{
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: '失败'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
//制程检验
|
|
//制程检验
|
|
|
const zhichengstatus=ref(false)
|
|
const zhichengstatus=ref(false)
|
|
|
const xunchaData = ref([]);
|
|
const xunchaData = ref([]);
|
|
@@ -2983,6 +3013,12 @@ function gytableDatadoubleClick(row, column, event) {
|
|
|
MachineChanliang(row.UniqId)
|
|
MachineChanliang(row.UniqId)
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+const uid=ref()
|
|
|
|
|
+function getUid(row, column, event) {
|
|
|
|
|
+ uid.value=row.UniqId
|
|
|
|
|
+ console.log(uid)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
//获取详细信息
|
|
//获取详细信息
|
|
|
const MachineChanliang = async(value) => {
|
|
const MachineChanliang = async(value) => {
|
|
|
const response = await MachineChanliangDetail({UniqId:value});
|
|
const response = await MachineChanliangDetail({UniqId:value});
|