|
|
@@ -1,85 +1,85 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
+ <div style="margin-left: 0px;padding: 0px;">
|
|
|
<header>
|
|
|
- <div style="height: 100px;">
|
|
|
- <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="onBZ" >班组维护</el-button>
|
|
|
- <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 90px" @click="onchanliang" v-if="zdtreeType === true" >日产量上报</el-button>
|
|
|
- <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="onzhicheng" >制程检验</el-button>
|
|
|
- <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="ondianjian" >设备点检</el-button>
|
|
|
- <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="onxuncha" >管理巡查</el-button>
|
|
|
- <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 95px" @click="onstatus" >设置机台状态</el-button>
|
|
|
- <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="onyinban">印版领退</el-button>
|
|
|
- <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="onClear" >换型清场</el-button>
|
|
|
- <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="pd_gdprintonClick" >工单打印</el-button>
|
|
|
- <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 95px" @click="gzSel" >员工工资查询</el-button>
|
|
|
- <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="oncomplaints" >客诉记录</el-button>
|
|
|
- <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 120px" @click="deldbcl_onclick" :disabled="dbclSelection === ''" title="当班产量明细" >当班产量明细删除</el-button>
|
|
|
- <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 95px" @click="pd_lcdlistonClick" >流程单查询</el-button>
|
|
|
- <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 165px" @click="scpconClick" >工单生产批次信息查询</el-button>
|
|
|
+ <div style="height: 110px;">
|
|
|
+ <el-button type="primary" size="large" class="bt" style="color:white;font-size: 16px;font-weight: bold;width: 70px" @click="onBZ" >班组维护</el-button>
|
|
|
+ <el-button type="primary" size="large" class="bt" style="color:white;font-size: 16px;font-weight: bold;width: 90px" @click="onchanliang" v-if="zdtreeType === true" >日产量上报</el-button>
|
|
|
+ <el-button type="primary" size="large" class="bt" style="color:white;font-size: 16px;font-weight: bold;width: 70px" @click="onzhicheng" >制程检验</el-button>
|
|
|
+ <el-button type="primary" size="large" class="bt" style="color:white;font-size: 16px;font-weight: bold;width: 70px" @click="ondianjian" >设备点检</el-button>
|
|
|
+ <el-button type="primary" size="large" class="bt" style="color:white;font-size: 16px;font-weight: bold;width: 70px" @click="onxuncha" >管理巡查</el-button>
|
|
|
+ <el-button type="primary" size="large" class="bt" style="color:white;font-size: 16px;font-weight: bold;width: 95px" @click="onstatus" >设置机台状态</el-button>
|
|
|
+ <el-button type="primary" size="large" class="bt" style="color:white;font-size: 16px;font-weight: bold;width: 70px" @click="onyinban">印版领退</el-button>
|
|
|
+ <el-button type="primary" size="large" class="bt" style="color:white;font-size: 16px;font-weight: bold;width: 70px" @click="onClear" >换型清场</el-button>
|
|
|
+ <el-button type="primary" size="large" class="bt" style="color:white;font-size: 16px;font-weight: bold;width: 70px" @click="pd_gdprintonClick" >工单打印</el-button>
|
|
|
+ <el-button type="primary" size="large" class="bt" style="color:white;font-size: 16px;font-weight: bold;width: 95px" @click="gzSel" >员工工资查询</el-button>
|
|
|
+ <el-button type="primary" size="large" class="bt" style="color:white;font-size: 16px;font-weight: bold;width: 70px" @click="oncomplaints" >客诉记录</el-button>
|
|
|
+ <el-button type="primary" size="large" class="bt" style="color:white;font-size: 16px;font-weight: bold;width: 120px" @click="deldbcl_onclick" :disabled="dbclSelection === ''" title="当班产量明细" >当班产量明细删除</el-button>
|
|
|
+ <el-button type="primary" size="large" class="bt" style="color:white;font-size: 16px;font-weight: bold;width: 85px" @click="pd_lcdlistonClick" >流程单查询</el-button>
|
|
|
+ <el-button type="primary" size="large" class="bt" style="color:white;font-size: 16px;font-weight: bold;width: 165px" @click="scpconClick" >工单生产批次信息查询</el-button>
|
|
|
<el-button type="primary" size="large" class="bt" style="color:white;font-size: 20px;font-weight: bold;width: 70px" @click="onOver" title="完工按钮" >完工</el-button>
|
|
|
</div>
|
|
|
</header>
|
|
|
|
|
|
<el-container>
|
|
|
<el-container>
|
|
|
- <el-main>
|
|
|
- <div class="gva-search-box" style=" overflow: hidden; padding: 0; margin-top:30px;display: flex;">
|
|
|
- <div style="flex: 1; border: 0px magenta solid; margin: 0; padding: 0; margin-left: 20px; margin-top: 20px; color: red;">
|
|
|
-
|
|
|
-
|
|
|
- <el-row :gutter="20">
|
|
|
- <el-col :span="5">
|
|
|
- <el-form-item label="机台号" prop="id" label-width="60" class="zy-label"><el-input v-model="formData.机台号" placeholder=""/></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="工单编号" prop="id"><el-input v-model="formData.工单编号" placeholder="" /></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label=" "prop="name"><el-input v-model="formData.产品名称" placeholder="" /></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
-
|
|
|
- <el-row :gutter="20">
|
|
|
- <el-col :span="7">
|
|
|
- <el-form-item label="印件编号" style="font-size: 1.5vh;" prop="id"><el-input v-model="formData.印件号" placeholder="" /></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="15">
|
|
|
- <el-form-item label="工序名称" prop="name"><el-input v-model="formData.工序名称" placeholder="" /></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
-
|
|
|
- <el-row :gutter="20">
|
|
|
- <el-col :span="4">
|
|
|
- <el-form-item label="班组成员" prop="id"></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
-
|
|
|
- <el-row :gutter="1">
|
|
|
- <!-- 循环生成 el-input 组件 -->
|
|
|
- <el-col v-for="i in 6" :span="4" :key="i">
|
|
|
- <el-input v-model="formData[`sczl_bh${i}`]" placeholder="" />
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <el-main style="padding: 0px;">
|
|
|
+ <div class="gva-search-box" style=" overflow: hidden; padding: 0; margin-top:50px;display: flex;">
|
|
|
+ <div style="flex: 1; border: 0px magenta solid; margin: 0; padding: 0; margin-left: 20px; margin-top: 20px; color: red;">
|
|
|
+
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="5">
|
|
|
+ <el-form-item label="机台号" prop="id" label-width="60" class="zy-label"><el-input v-model="formData.机台号" placeholder=""/></el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="工单编号" prop="id"><el-input v-model="formData.工单编号" placeholder="" /></el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label=" "prop="name"><el-input v-model="formData.产品名称" placeholder="" /></el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="7">
|
|
|
+ <el-form-item label="印件编号" style="font-size: 1.5vh;" prop="id"><el-input v-model="formData.印件号" placeholder="" /></el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="15">
|
|
|
+ <el-form-item label="工序名称" prop="name"><el-input v-model="formData.工序名称" placeholder="" /></el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
|
|
|
- <el-row :gutter="1">
|
|
|
- <!-- 循环生成 el-input 组件 -->
|
|
|
- <el-col v-for="i in 6" :span="4" :key="i">
|
|
|
- <el-input v-model="formData[`sczl_name${i}`]" placeholder="" class="red-input"/>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </div>
|
|
|
- <!-- overflow: hidden;flex: 1; -->
|
|
|
- <div style="border: 0px lawngreen solid; margin: 0; padding: 0;width:34%;">
|
|
|
- <el-table tooltip-effect="dark" :data="selectData" row-key="ID" highlight-current-row="true" border
|
|
|
- :row-style="{ height: '20px'}" :cell-style="{ padding: '0px'}"
|
|
|
- :header-row-style="{ height: '20px'}" style="width:100%;height: 30vh;" @row-dblclick="handleSelectClick" >
|
|
|
- <el-table-column prop="process" label="印件及工序"width="280" />
|
|
|
- <el-table-column prop="completed" label="已完成板数" width="160" />
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
-</div>
|
|
|
-
|
|
|
- <div class="gva-table-box" style="margin-top: 20px;">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="班组成员" prop="id"></el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="1">
|
|
|
+ <!-- 循环生成 el-input 组件 -->
|
|
|
+ <el-col v-for="i in 6" :span="4" :key="i">
|
|
|
+ <el-input v-model="formData[`sczl_bh${i}`]" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="1">
|
|
|
+ <!-- 循环生成 el-input 组件 -->
|
|
|
+ <el-col v-for="i in 6" :span="4" :key="i">
|
|
|
+ <el-input v-model="formData[`sczl_name${i}`]" placeholder="" class="red-input"/>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <!-- overflow: hidden;flex: 1; -->
|
|
|
+ <div style="border: 0px lawngreen solid; margin: 0; padding: 0;width:34%;">
|
|
|
+ <el-table tooltip-effect="dark" :data="selectData" row-key="ID" highlight-current-row="true" border
|
|
|
+ :row-style="{ height: '10px'}" :cell-style="{ padding: '0px'}"
|
|
|
+ :header-row-style="{ height: '10px'}" style="width:100%;height: 30vh;" @row-dblclick="handleSelectClick" >
|
|
|
+ <el-table-column prop="process" label="印件及工序"width="290" />
|
|
|
+ <el-table-column prop="completed" label="已完成板数"/>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 表格列表信息 -->
|
|
|
+ <div class="gva-table-box" style="margin-top: 10px;">
|
|
|
<el-tabs v-model="activName" type="card" @tab-click="duohandleClick" >
|
|
|
<el-tab-pane label="设备作业清单" @click.native="showTable('设备作业清单', 'first')" name="first" :class="{ 'active-tab': activeTab === 'first' }" style="font-size: 16px;">
|
|
|
<el-table ref="multipleTable"
|
|
|
@@ -92,6 +92,7 @@
|
|
|
:header-cell-style="{ padding: '0px' }"
|
|
|
@contextmenu.prevent="yjonRightClick"
|
|
|
@row-click="yjupdateCompanyFunc"
|
|
|
+ @row-dblclick="sjsbzyqdCompanyFunc"
|
|
|
style="width: 100%;height: 330px;color:purple;font-weight: bold;" border tooltip-effect="dark"
|
|
|
:data="sbzyData"
|
|
|
row-key="ID"
|
|
|
@@ -1838,37 +1839,34 @@
|
|
|
<hr>
|
|
|
<p style="font-size: 14px; color: red; margin: 10px 0;">搜索栏目为空,则从最近2周完工的工单中选择</p>
|
|
|
<p style="font-size: 14px; color: red; margin: 10px 0;">否则,以栏目值为关键字,从工单编号、产品名称、客户名称中选择</p>
|
|
|
- <p style="font-size: 18px; color: red; margin: 10px 0;">在列表中进行双击打开查看流程单查询</p>
|
|
|
<hr>
|
|
|
|
|
|
<!-- 输入框和按钮 -->
|
|
|
<div style="display: flex; align-items: center; margin-top: 10px;">
|
|
|
- <el-input v-model="searchInfolcd" placeholder="Enter回车搜索工单编号" @keydown="Enterkeysearch" id="searchInfo" style="flex: 1; margin-right: 10px;"></el-input>
|
|
|
- <el-button type="primary" title="搜索" icon="el-icon-search" @click="onSubmitlcd" >搜索</el-button>
|
|
|
+ <el-input v-model="searchInfolcd" placeholder="Enter回车搜索工单编号" @keydown="Enterkeysearch" id="searchInfo" style="height: 40px;flex: 1;"></el-input>
|
|
|
+ <el-button type="primary" title="搜索" icon="el-icon-search" style="width: 70px;height: 40px;font-size: 18px;" @click="onSubmitlcd" >搜索</el-button>
|
|
|
+ <el-button type="primary" title="查看" icon="el-icon-search" style="width: 110px;height: 40px;font-size: 18px;" @click="onstatsuclick" >查看流程单</el-button>
|
|
|
</div>
|
|
|
|
|
|
<!-- 表格展示区域 -->
|
|
|
<div class="gva-table-box" style="margin-top: 15px;">
|
|
|
<el-table
|
|
|
- ref="multipleTable"
|
|
|
- style="width: 100%; height: 30vh; verflow: auto;"
|
|
|
- :row-style="{ height: '20px' }" :header-cell-style="{ padding: '0px' }"
|
|
|
- :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
|
|
|
- :data="tableDatalcd"
|
|
|
- :border="true"
|
|
|
- :tooltip-effect="'dark'"
|
|
|
- row-key="ID"
|
|
|
- highlight-current-row
|
|
|
- @row-click="tableRowClicklcd"
|
|
|
- @row-dblclick="updateCompanyFunclcd"
|
|
|
- @selection-change="handleSelectionChange">
|
|
|
-
|
|
|
+ ref="multipleTable"
|
|
|
+ style="width: 100%; height: 30vh; verflow: auto;"
|
|
|
+ :row-style="{ height: '20px' }" :header-cell-style="{ padding: '0px' }"
|
|
|
+ :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
|
|
|
+ :data="tableDatalcd"
|
|
|
+ :border="true"
|
|
|
+ :tooltip-effect="'dark'"
|
|
|
+ row-key="ID"
|
|
|
+ highlight-current-row
|
|
|
+ @row-click="tableRowClicklcd"
|
|
|
+ @row-dblclick="updateCompanyFunclcd"
|
|
|
+ @selection-change="handleSelectionChange">
|
|
|
<el-table-column align="left" label="工单编号" width="115" prop="Gd_gdbh" />
|
|
|
<el-table-column align="left" label="行号" width="60" prop="行号" />
|
|
|
<el-table-column align="left" label="工序名称" prop="Gd_cpmc" />
|
|
|
-
|
|
|
<!-- <el-table-column prop="工单" label="工单编号-行号-工序名称" align="left" sortable show-overflow-tooltipmin-width="300"/> -->
|
|
|
-
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -2840,6 +2838,7 @@ const clickybupdate = async (row) => {
|
|
|
//班组人员及分配比例双击
|
|
|
const gyupdateCompanyFunc = async (row) => {
|
|
|
console.log('班组人员及分配比例双击')
|
|
|
+ SetMachineTeams(roww.value)
|
|
|
}
|
|
|
//班组人员及分配比例右键
|
|
|
const bzonRightClick = async (row) => {
|
|
|
@@ -5594,6 +5593,12 @@ const yjupdateCompanyFunc = async(row) => {
|
|
|
console.log(res)
|
|
|
selectData.value = res.data;
|
|
|
}
|
|
|
+const sjsbzyqdCompanyFunc = async(row) => {
|
|
|
+ location.reload();
|
|
|
+ setMachineTeams(rowws.value)
|
|
|
+ ElMessage({type: 'success', message: '切换成功'})
|
|
|
+}
|
|
|
+
|
|
|
//设备作业清单右键
|
|
|
const yjonRightClick = async(row) => {
|
|
|
console.log(rowws.value)
|
|
|
@@ -5834,16 +5839,19 @@ const pd_lcdformData = reactive({
|
|
|
// 流程单查询按钮
|
|
|
const processList = ref([]);
|
|
|
const pd_lcdlistonClick = async () => {
|
|
|
+ console.log(formData)
|
|
|
if(_Gd_gdbh.value === '' || _Gd_gdbh.value === null){
|
|
|
- ElMessage({type: 'warning',message: '请选择具体的工单,在进行操作'})
|
|
|
- return false;
|
|
|
+ pd_lcdformData['gdbh'] = formData.value.工单编号;
|
|
|
+ pd_lcdformData['yjno'] = formData.value.印件号;
|
|
|
+ // ElMessage({type: 'warning',message: '请选择具体的工单,在进行操作'})
|
|
|
+ // return false;
|
|
|
}else{
|
|
|
pd_lcdformData['gdbh'] = _Gd_gdbh.value;
|
|
|
pd_lcdformData['yjno'] = _Gd_yjno.value;
|
|
|
- pd_lcdlist.value = true;
|
|
|
- processList.value = []
|
|
|
- _getOrderProcessLeft_list();
|
|
|
}
|
|
|
+ pd_lcdlist.value = true;
|
|
|
+ processList.value = []
|
|
|
+ _getOrderProcessLeft_list();
|
|
|
}
|
|
|
const pd_lcdProductValue = async () => {
|
|
|
_getOrderProcessLeft_list();
|
|
|
@@ -5907,6 +5915,7 @@ const scpconClick = async () => {
|
|
|
console.log(formData.value.工单编号)
|
|
|
searchInfolcd.value = formData.value.工单编号
|
|
|
scpconlist.value = true;
|
|
|
+ tableDatalcd.splice(0,tableDatalcd.length,...[]);//表格数据
|
|
|
onSubmitlcd()//调用接口
|
|
|
}
|
|
|
//进入页面默认光标加载
|
|
|
@@ -5934,9 +5943,14 @@ const Enterkeysearch = (event) => {
|
|
|
const _StaGetOrderList = async (node) => {
|
|
|
const StaGetOrderListdata = await StaGetOrderList({search:searchInfolcd.value});
|
|
|
console.log(StaGetOrderListdata)
|
|
|
- if(StaGetOrderListdata.data.length === 0){
|
|
|
- ElMessage({type: 'warning',message: '未搜索具体查询条件'})
|
|
|
- }
|
|
|
+ if (StaGetOrderListdata.data === null) {
|
|
|
+ ElMessage({
|
|
|
+ type: 'warning',
|
|
|
+ message: '未搜索具体查询条件',
|
|
|
+ customClass: 'custom-message', // 添加自定义类名
|
|
|
+ duration: 3000 // 可选:设置消息显示的持续时间(单位:毫秒)
|
|
|
+ });
|
|
|
+ }
|
|
|
tableDatalcd.splice(0,tableDatalcd.length,...StaGetOrderListdata.data);//表格数据
|
|
|
};
|
|
|
|
|
|
@@ -5956,6 +5970,24 @@ const _GetorderDetail = ref(null)
|
|
|
弹窗页面
|
|
|
*/
|
|
|
const popdialog = ref(false);
|
|
|
+const currentRow = ref('');
|
|
|
+// 获取当前行数据
|
|
|
+const tableRowClicklcd = (row) => {
|
|
|
+ currentRow.value = row; // 保存当前选中行
|
|
|
+};
|
|
|
+
|
|
|
+// 按钮点击逻辑
|
|
|
+const onstatsuclick = async () => {
|
|
|
+ console.log(currentRow)
|
|
|
+ if (!currentRow.value) {
|
|
|
+ ElMessage({
|
|
|
+ type: "warning",
|
|
|
+ message: "请先点击选择一行数据",
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ await updateCompanyFunclcd(currentRow.value);
|
|
|
+};
|
|
|
//双击
|
|
|
const updateCompanyFunclcd = async (row) => {
|
|
|
console.log("双击",row)
|
|
|
@@ -5971,10 +6003,8 @@ const updateCompanyFunclcd = async (row) => {
|
|
|
}
|
|
|
});
|
|
|
_GetorderDetail.value = resultData;
|
|
|
- console.log("_GetorderDetail.value", _GetorderDetail.value);
|
|
|
-
|
|
|
+ // console.log("_GetorderDetail.value", _GetorderDetail.value);
|
|
|
_StaGetList(row)
|
|
|
-
|
|
|
}
|
|
|
|
|
|
//左侧树形节点点击事件
|
|
|
@@ -6208,5 +6238,13 @@ const sbzyqdsatusCellClass = ({row, column, rowIndex, columnIndex}) =>{
|
|
|
background: #ff80ff !important;
|
|
|
}
|
|
|
/* 假设你知道弹窗内部文本的类名或标签名,这里只是一个示例 */
|
|
|
+/* 自定义 ElMessage 样式 */
|
|
|
+:deep(.custom-message .el-message__content) {
|
|
|
+ font-size: 18px; /* 设置文字大小 */
|
|
|
+ font-weight: bold; /* 文字加粗 */
|
|
|
+}
|
|
|
|
|
|
+:deep(.custom-message) {
|
|
|
+ width: 400px; /* 设置消息框的宽度 */
|
|
|
+}
|
|
|
</style>
|