|
|
@@ -10,6 +10,7 @@
|
|
|
<el-button type="primary" @click="onyinban">印版领退</el-button>
|
|
|
<el-button type="primary" @click="onstatus" >设置机台状态</el-button>
|
|
|
<el-button type="primary" @click="oncomplaints" >客诉记录</el-button>
|
|
|
+ <el-button type="primary" @click="onClear" >换型清场</el-button>
|
|
|
</header>
|
|
|
<el-container>
|
|
|
<el-aside width="200px">
|
|
|
@@ -153,16 +154,16 @@
|
|
|
style="width: 100%;height: 330px" border tooltip-effect="dark" :data="sbzyData" row-key="ID" @selection-change="handleSelectionChange">
|
|
|
<!-- <el-table-column type="selection" width="55" />-->
|
|
|
<!-- <el-table-column align="left" label="选择" prop="bh" width="80"/> -->
|
|
|
- <el-table-column align="left" label="工单编号|质量信息" prop="工单编号|质量信息" width="145" />
|
|
|
- <el-table-column align="left" label="印件资料" prop="印件资料" width="240" />
|
|
|
- <el-table-column align="left" label="工序名称" prop="工序名称" width="100" />
|
|
|
- <el-table-column align="left" label="计划产量/已完成" prop="计划产量/已完成" width="130"/>
|
|
|
- <el-table-column align="left" label="装版时数" prop="装版时数" width="85"/>
|
|
|
- <el-table-column align="left" label="工序产能" prop="工序产能" width="85"/>
|
|
|
- <el-table-column align="left" label="计划工时" prop="计划工时" width="85"/>
|
|
|
- <el-table-column align="left" label="计划生产时段" prop="计划生产时段" width="210" />
|
|
|
- <el-table-column align="left" label="排产备注" prop="排产备注" width="100" />
|
|
|
- <el-table-column align="left" label="产品名称" prop="产品名称" width="240" />
|
|
|
+ <el-table-column align="left" sortable label="工单编号|质量信息" prop="工单编号|质量信息" width="145" />
|
|
|
+ <el-table-column align="left" sortable label="印件资料" prop="印件资料" width="240" />
|
|
|
+ <el-table-column align="left" sortable label="工序名称" prop="工序名称" width="100" />
|
|
|
+ <el-table-column align="left" sortable label="计划产量/已完成" prop="计划产量/已完成" width="130"/>
|
|
|
+ <el-table-column align="left" sortable label="装版时数" prop="装版时数" width="85"/>
|
|
|
+ <el-table-column align="left" sortable label="工序产能" prop="工序产能" width="85"/>
|
|
|
+ <el-table-column align="left" sortable label="计划工时" prop="计划工时" width="85"/>
|
|
|
+ <el-table-column align="left" sortable label="计划生产时段" prop="计划生产时段" width="210" />
|
|
|
+ <el-table-column align="left" sortable label="排产备注" prop="排产备注" width="100" />
|
|
|
+ <el-table-column align="left" sortable label="产品名称" prop="产品名称" width="240" />
|
|
|
</el-table>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
@@ -179,17 +180,17 @@
|
|
|
@row-click="clickybupdate">
|
|
|
<!-- <el-table-column type="selection" width="55" />-->
|
|
|
<!-- <el-table-column align="left" label="选择" prop="方案" width="70"/> -->
|
|
|
- <el-table-column align="left" label="班组号" prop="班组号" width="70" />
|
|
|
- <el-table-column align="left" label="组员1" prop="0" width="200" />
|
|
|
- <el-table-column align="left" label="组员2" prop="1" width="200" />
|
|
|
- <el-table-column align="left" label="组员3" prop="2" width="200" />
|
|
|
- <el-table-column align="left" label="组员4" prop="3" width="200" />
|
|
|
- <el-table-column align="left" label="组员5" prop="4" width="200" />
|
|
|
- <el-table-column align="left" label="组员6" prop="5" width="70" />
|
|
|
- <el-table-column align="left" label="组员7" prop="6" width="70" />
|
|
|
- <el-table-column align="left" label="组员8" prop="7" width="70" />
|
|
|
- <el-table-column align="left" label="组员9" prop="8" width="70" />
|
|
|
- <el-table-column align="left" label="组员10" prop="9_正品版" width="70" />
|
|
|
+ <el-table-column align="left" sortable label="班组号" prop="班组号" width="70" />
|
|
|
+ <el-table-column align="left" sortable label="组员1" prop="0" width="200" />
|
|
|
+ <el-table-column align="left" sortable label="组员2" prop="1" width="200" />
|
|
|
+ <el-table-column align="left" sortable label="组员3" prop="2" width="200" />
|
|
|
+ <el-table-column align="left" sortable label="组员4" prop="3" width="200" />
|
|
|
+ <el-table-column align="left" sortable label="组员5" prop="4" width="200" />
|
|
|
+ <el-table-column align="left" sortable label="组员6" prop="5" width="70" />
|
|
|
+ <el-table-column align="left" sortable label="组员7" prop="6" width="70" />
|
|
|
+ <el-table-column align="left" sortable label="组员8" prop="7" width="70" />
|
|
|
+ <el-table-column align="left" sortable label="组员9" prop="8" width="70" />
|
|
|
+ <el-table-column align="left" sortable label="组员10" prop="9_正品版" width="70" />
|
|
|
</el-table>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
@@ -204,27 +205,27 @@
|
|
|
style="width: 100%;height: 400px" border tooltip-effect="dark" :data="CLMXData" row-key="ID" @selection-change="handleSelectionChange"
|
|
|
>
|
|
|
<!-- <el-table-column type="selection" width="55" />-->
|
|
|
- <el-table-column align="left" label="生产时段" prop="生产时间段" width="180"/>
|
|
|
- <el-table-column align="left" label="工单编号" prop="工单编号" width="85" />
|
|
|
- <el-table-column align="left" label="产品名称" prop="产品名称" width="150" />
|
|
|
- <el-table-column align="left" label="印件及工序" prop="印件及工序" width="320"/>
|
|
|
- <el-table-column align="left" label="标牌号" prop="标牌号" width="80"/>
|
|
|
- <el-table-column align="left" label="产量" prop="产量" width="100"/>
|
|
|
- <el-table-column align="left" label="制程废品" prop="制程废品" width="100" />
|
|
|
- <el-table-column align="left" label="制程次品" prop="制程次品" width="100" />
|
|
|
- <el-table-column align="left" label="前工序废" prop="前工序废" width="100" />
|
|
|
- <el-table-column align="left" label="来料异常" prop="来料异常" width="100"/>
|
|
|
- <el-table-column align="left" label="装版工时" prop="装版工时" width="100" />
|
|
|
- <el-table-column align="left" label="保养工时" prop="保养工时" width="100" />
|
|
|
- <el-table-column align="left" label="打样工时" prop="打样工时" width="100"/>
|
|
|
- <el-table-column align="left" label="异常停机工时" prop="异常停机工时" width="120"/>
|
|
|
- <el-table-column align="left" label="通电工时" prop="通电工时" width="100"/>
|
|
|
- <el-table-column align="left" label="码开始行" prop="码开始行" width="100" />
|
|
|
- <el-table-column align="left" label="码结束行" prop="码结束行" width="100" />
|
|
|
- <el-table-column align="left" label="码包" prop="码包" width="100" />
|
|
|
- <el-table-column align="left" label="主电表" prop="主电表" width="100"/>
|
|
|
- <el-table-column align="left" label="辅电表" prop="辅电表" width="100" />
|
|
|
- <el-table-column align="left" label="色度数" prop="色度数" width="100" />
|
|
|
+ <el-table-column align="left" sortable label="生产时段" prop="生产时间段" width="180"/>
|
|
|
+ <el-table-column align="left" sortable label="工单编号" prop="工单编号" width="85" />
|
|
|
+ <el-table-column align="left" sortable label="产品名称" prop="产品名称" width="150" />
|
|
|
+ <el-table-column align="left" sortable label="印件及工序" prop="印件及工序" width="320"/>
|
|
|
+ <el-table-column align="left" sortable label="标牌号" prop="标牌号" width="80"/>
|
|
|
+ <el-table-column align="left" sortable label="产量" prop="产量" width="100"/>
|
|
|
+ <el-table-column align="left" sortable label="制程废品" prop="制程废品" width="100" />
|
|
|
+ <el-table-column align="left" sortable label="制程次品" prop="制程次品" width="100" />
|
|
|
+ <el-table-column align="left" sortable label="前工序废" prop="前工序废" width="100" />
|
|
|
+ <el-table-column align="left" sortable label="来料异常" prop="来料异常" width="100"/>
|
|
|
+ <el-table-column align="left" sortable label="装版工时" prop="装版工时" width="100" />
|
|
|
+ <el-table-column align="left" sortable label="保养工时" prop="保养工时" width="100" />
|
|
|
+ <el-table-column align="left" sortable label="打样工时" prop="打样工时" width="100"/>
|
|
|
+ <el-table-column align="left" sortable label="异常停机工时" prop="异常停机工时" width="120"/>
|
|
|
+ <el-table-column align="left" sortable label="通电工时" prop="通电工时" width="100"/>
|
|
|
+ <el-table-column align="left" sortable label="码开始行" prop="码开始行" width="100" />
|
|
|
+ <el-table-column align="left" sortable label="码结束行" prop="码结束行" width="100" />
|
|
|
+ <el-table-column align="left" sortable label="码包" prop="码包" width="100" />
|
|
|
+ <el-table-column align="left" sortable label="主电表" prop="主电表" width="100"/>
|
|
|
+ <el-table-column align="left" sortable label="辅电表" prop="辅电表" width="100" />
|
|
|
+ <el-table-column align="left" sortable label="色度数" prop="色度数" width="100" />
|
|
|
</el-table>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
@@ -237,10 +238,10 @@
|
|
|
highlight-current-row="true"
|
|
|
style="width: 100%;height: 400px" border tooltip-effect="dark" :data="JYData" row-key="ID" @selection-change="handleSelectionChange">
|
|
|
<!-- <el-table-column type="selection" width="55" />-->
|
|
|
- <el-table-column align="left" label="工单编号" prop="工单编号" width="85"/>
|
|
|
- <el-table-column align="left" label="印件号" prop="印件号" width="70" />
|
|
|
- <el-table-column align="left" label="工序名称" prop="工序名称" width="85" />
|
|
|
- <el-table-column align="left" label="检验项目" prop="检验项目" width="85"/>
|
|
|
+ <el-table-column align="left" sortable label="工单编号" prop="工单编号" width="85"/>
|
|
|
+ <el-table-column align="left" sortable label="印件号" prop="印件号" width="70" />
|
|
|
+ <el-table-column align="left" sortable label="工序名称" prop="工序名称" width="85" />
|
|
|
+ <el-table-column align="left" sortable label="检验项目" prop="检验项目" width="85"/>
|
|
|
<el-table-column
|
|
|
v-for="time in columnNames"
|
|
|
:key="time"
|
|
|
@@ -1150,6 +1151,153 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ v-model="huanxingVisible"
|
|
|
+ title="换型清场"
|
|
|
+ destroy-on-close
|
|
|
+ width="1100px"
|
|
|
+ style="height: 78%;"
|
|
|
+ >
|
|
|
+ <div style="display: flex;">
|
|
|
+ <div style="flex: 0.1;">
|
|
|
+ <el-aside width="180px" style="margin: 0;">
|
|
|
+ <div class="JKWTree-tree" style="height: 55vh; border-right: 1px solid #ebeef5;">
|
|
|
+ <el-tree :data="huanxingtreeData" :props="defaultProps" highlight-current="true"
|
|
|
+ @node-click="huanxingNodeClick"></el-tree>
|
|
|
+ </div>
|
|
|
+ </el-aside>
|
|
|
+ </div>
|
|
|
+ <div v-if="huanxingstatus" style="flex: 0; margin: 0;">
|
|
|
+ <el-tabs v-model="activNames" type="card" @tab-click="handleClick">
|
|
|
+ <el-tab-pane label="换型清场明细信息" @click="showTable('换型清场明细信息')" name="first">
|
|
|
+
|
|
|
+ </el-tab-pane>
|
|
|
+
|
|
|
+ <el-tab-pane label="当前设备换型记录" style="width: 110%;" @click="showTable('当前设备换型记录')" name="second">
|
|
|
+ <el-table
|
|
|
+ tooltip-effect="dark"
|
|
|
+ :data="huanxingselectData"
|
|
|
+ row-key="ID"
|
|
|
+ highlight-current-row="true"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ border @row-click="dianjianhandle"
|
|
|
+ style="width:30%; height:50vh;"
|
|
|
+ @row-dblclick="handleSelectClick"
|
|
|
+ :row-class-name="rowClassName"
|
|
|
+ >
|
|
|
+ <el-table-column
|
|
|
+ prop="日期"
|
|
|
+ label="日期"
|
|
|
+ width="160"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="机台编号"
|
|
|
+ label="机台编号"
|
|
|
+ width="90"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="班组"
|
|
|
+ label="班组"
|
|
|
+ width="70"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="工单编号A"
|
|
|
+ label="工单编号A"
|
|
|
+ width="95"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="印件名称A"
|
|
|
+ label="印件名称A"
|
|
|
+ width="130"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="印件工序A"
|
|
|
+ label="印件工序A"
|
|
|
+ width="150"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="码包号A"
|
|
|
+ label="码包号A"
|
|
|
+ width="80"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="工单编号B"
|
|
|
+ label="工单编号B"
|
|
|
+ width="100"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="印件名称B"
|
|
|
+ label="印件名称B"
|
|
|
+ width="100"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="印件工序B"
|
|
|
+ label="印件工序B"
|
|
|
+ width="150"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="码包号B"
|
|
|
+ label="码包号B"
|
|
|
+ width="80"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="清场项目A"
|
|
|
+ label="菲林_标样_签样品_留样品"
|
|
|
+ width="190"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="清场项目B"
|
|
|
+ label="版材_纸张_电化铝_油墨"
|
|
|
+ width="190"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="清场项目C"
|
|
|
+ label="过版纸_废品_次品"
|
|
|
+ width="170"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="清场项目D"
|
|
|
+ label="半成品_成品_零头"
|
|
|
+ width="170"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="清场项目E"
|
|
|
+ label="操作台桌面_抽屉_地面"
|
|
|
+ width="180"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="机长"
|
|
|
+ label="机长"
|
|
|
+ width="80"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="班长"
|
|
|
+ label="带班长"
|
|
|
+ width="80"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="质量巡查员"
|
|
|
+ label="质量巡查员"
|
|
|
+ width="100"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="创建时间"
|
|
|
+ label="创建时间"
|
|
|
+ width="120"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="UNIQID"
|
|
|
+ label="UNIQID"
|
|
|
+ width="80"
|
|
|
+ />
|
|
|
+ </el-table>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
<Shebeizhuangtai
|
|
|
v-if="dialogSbyxgl"
|
|
|
v-model="dialogSbyxgl"
|
|
|
@@ -1203,7 +1351,9 @@ import {
|
|
|
facilityPrintDetail,
|
|
|
ProcessInspectionRecordsItem,
|
|
|
MachineDetailList,
|
|
|
- ComplaintRecord
|
|
|
+ ComplaintRecord,
|
|
|
+ remodelGetTab,
|
|
|
+ ModelChangeRecord
|
|
|
} from '@/api/jixiaoguanli/jitairibaobiao'
|
|
|
|
|
|
import {
|
|
|
@@ -1300,7 +1450,7 @@ const FacilityProduction = async () => {
|
|
|
})
|
|
|
}
|
|
|
// console.log(formData.value.工单编号)
|
|
|
- FacilityTeam(JTMC)
|
|
|
+
|
|
|
}
|
|
|
// getTableData()
|
|
|
}
|
|
|
@@ -1317,12 +1467,15 @@ const FacilityWorklist = async () => {
|
|
|
if (res.code === 0) {
|
|
|
selectData.value = res.data
|
|
|
}
|
|
|
+ console.log('22222222')
|
|
|
+ FacilityTeam(JTMC)
|
|
|
}
|
|
|
}
|
|
|
//检验记录
|
|
|
const InspectionRecord = async () => {
|
|
|
console.log(formData.value.班组)
|
|
|
- const response = await inspectionRecord({machine:JTMC,Gd_gdbh:formData.value.工单编号,team:formData.value.班组});
|
|
|
+ // const response = await inspectionRecord({machine:JTMC,Gd_gdbh:formData.value.工单编号,team:formData.value.班组});
|
|
|
+ const response = await inspectionRecord({machine:'JY01#',Gd_gdbh:'2311114',team:'A班'});
|
|
|
// const response = await inspectionRecord({machine:'JY01#',Gd_gdbh:'2312191',team:'A班'});
|
|
|
console.log(response)
|
|
|
if(response.code==0){
|
|
|
@@ -1369,7 +1522,8 @@ const FacilityDetail = async () => {
|
|
|
console.log(formData.value.工单编号)
|
|
|
console.log('123123')
|
|
|
console.log(formData.value.班组)
|
|
|
- const response = await facilityDetail({ machine: JTMC, Gd_gdbh: formData.value.工单编号, team: formData.value.班组 });
|
|
|
+ // const response = await facilityDetail({ machine: JTMC, Gd_gdbh: formData.value.工单编号, team: formData.value.班组 });
|
|
|
+ const response = await facilityDetail({ machine: 'JY01#', Gd_gdbh: '2312191', team: 'A班' });
|
|
|
// const response = await facilityDetail({ machine: JTMC, Gd_gdbh: '2311114', team:'A班' });
|
|
|
if (response.code === 0) {
|
|
|
console.log('123123')
|
|
|
@@ -1624,18 +1778,23 @@ function oncomplaints() {
|
|
|
}
|
|
|
// 客诉记录表格填充
|
|
|
const Complaints = async() => {
|
|
|
- console.log(sbzyData[0].产品代号)
|
|
|
- console.log(sbzyData[0].产品代号)
|
|
|
- console.log(sbzyData[0].产品代号)
|
|
|
- const res = await ComplaintRecord({productCode :cpcode.value})
|
|
|
- if (res.code === 0) {
|
|
|
- // console.log(res)
|
|
|
- complaintsData.splice(0, complaintsData.length, ...res.data);
|
|
|
- console.log(complaintsData);
|
|
|
- console.log(complaintsData[0].产品编号)
|
|
|
- selectedRowData.value=complaintsData[0]
|
|
|
- console.log(selectedRowData)
|
|
|
- complaintsShow.value=true
|
|
|
+ // console.log(sbzyData[0].产品代号)
|
|
|
+ // console.log(sbzyData[0].产品代号)
|
|
|
+ // console.log(sbzyData[0].产品代号)
|
|
|
+ // const res = await ComplaintRecord({productCode :cpcode.value})
|
|
|
+ const res = await ComplaintRecord({productCode :'100601011'})
|
|
|
+ if (res.code === 0) {
|
|
|
+ if(res.data==null){
|
|
|
+ console.log('暂无客诉记录')
|
|
|
+ }else{
|
|
|
+ complaintsData.splice(0, complaintsData.length, ...res.data);
|
|
|
+ console.log(complaintsData);
|
|
|
+ console.log(complaintsData[0].产品编号)
|
|
|
+ selectedRowData.value=complaintsData[0]
|
|
|
+ console.log(selectedRowData)
|
|
|
+ complaintsShow.value=true
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
const selectedRowData = ref({
|
|
|
@@ -1646,6 +1805,54 @@ const complaintshandle = (val, row) => {
|
|
|
console.log(val)
|
|
|
selectedRowData.value=val
|
|
|
};
|
|
|
+//换型清场
|
|
|
+const huanxingVisible = ref(false)
|
|
|
+const huanxingtreeData=ref([])
|
|
|
+const huanxingselectData = ref([])
|
|
|
+const huanxingstatus=ref(false)
|
|
|
+const activNames=ref('first')
|
|
|
+function onClear() {
|
|
|
+ huanxingVisible.value=true
|
|
|
+ RemodelGetTab()
|
|
|
+}
|
|
|
+const RemodelGetTab = async() => {
|
|
|
+ const response = await remodelGetTab()
|
|
|
+ let arr=[]
|
|
|
+ if (response.code === 0) {
|
|
|
+ for(let key in response.data){
|
|
|
+ if(response.data[key][0]){
|
|
|
+ let children =[]
|
|
|
+ for (let i = 0; i < response.data[key].length; i++) {
|
|
|
+ children.push({label:response.data[key][i],machine:key})
|
|
|
+ }
|
|
|
+ arr.push({
|
|
|
+ label:key,
|
|
|
+ children:children
|
|
|
+ })
|
|
|
+ console.log(response.data[key].length)
|
|
|
+ }else{
|
|
|
+ arr.push({label:key})
|
|
|
+ }
|
|
|
+ }
|
|
|
+ huanxingtreeData.value=arr
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+const huanxingNodeClick = (node) => {
|
|
|
+ //存放当前节点的nodeId
|
|
|
+ if(node.machine){
|
|
|
+ huanxingstatus.value=true
|
|
|
+ modelChangeRecord(node.machine)
|
|
|
+ }else{
|
|
|
+ console.log('2')
|
|
|
+ }
|
|
|
+}
|
|
|
+const modelChangeRecord = async (val) => {
|
|
|
+ const response = await ModelChangeRecord({machine:val});
|
|
|
+ if (response.code === 0) {
|
|
|
+ huanxingselectData.value=response.data
|
|
|
+ }
|
|
|
+}
|
|
|
import { nextTick } from 'vue';
|
|
|
//设备点检
|
|
|
function ondianjian() {
|