|
|
@@ -82,9 +82,11 @@
|
|
|
style="width: 50%; margin: 20px"
|
|
|
:header-cell-style="{ background: '#004d8c', color: '#FFFFFF' }"
|
|
|
:data="technologyList"
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
- >
|
|
|
- <el-table-column type="selection" width="55" align="center"/>
|
|
|
+ highlight-current-row
|
|
|
+ @current-change="handleSelectionChange"
|
|
|
+ >
|
|
|
+<!-- <el-table-column type="selection" width="55" align="center"/>-->
|
|
|
+
|
|
|
<!-- <el-table-column-->
|
|
|
<!-- label="sop名称"-->
|
|
|
<!-- align="center"-->
|
|
|
@@ -198,7 +200,9 @@
|
|
|
<el-table-column label="步骤" prop="number">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.lockNum !== null">
|
|
|
- <i class="el-icon-goods">{{ scope.row.lockNum }}</i>
|
|
|
+ <img src="@/assets/images/lockImg.png" alt="" style="width: 12px;height:13px;margin-top: 5px;">
|
|
|
+<!-- <i class="el-icon-goods"></i>-->
|
|
|
+ {{ scope.row.lockNum }}
|
|
|
</span>
|
|
|
<span v-if="scope.row.userNum !== null">
|
|
|
<i class="el-icon-user">{{ scope.row.userNum }}</i>
|
|
|
@@ -687,6 +691,7 @@ export default {
|
|
|
return {
|
|
|
tabPosition: 'first',
|
|
|
selectedOption: '',
|
|
|
+ selectedRow:null,//设备工艺 单选表格
|
|
|
marsSopPage: [], //岗位对应sop列表--现在准备存放设备工艺 而不是选设备工艺的sop
|
|
|
technologyList:[],//设备工艺表格数据
|
|
|
marsSopTitle: '', //岗位后 对应展示sop
|
|
|
@@ -729,6 +734,7 @@ export default {
|
|
|
AffectedTickets:[],//第八步查看详情信息表格
|
|
|
sopTypeOption: [],
|
|
|
sopId:null,
|
|
|
+ workstationId:null,//岗位Id
|
|
|
rules: {
|
|
|
locker: [
|
|
|
{ required: true, message: '上锁人不能为空', trigger: 'change' }
|
|
|
@@ -763,6 +769,26 @@ export default {
|
|
|
this.handlelockerChage(val)
|
|
|
console.log('我制定了')
|
|
|
}
|
|
|
+ },
|
|
|
+ 'workstationId': function (val) {
|
|
|
+ if (val) {
|
|
|
+ this.workstationId=val
|
|
|
+ const query = {
|
|
|
+ pageSize: 10000,
|
|
|
+ pageNum: 1,
|
|
|
+ workstationId:this.workstationId,
|
|
|
+ }
|
|
|
+ getUserList(query).then((res) => {
|
|
|
+ this.listLockerOption = res.rows
|
|
|
+ .filter((item) => item.unitId == 9)
|
|
|
+ .map((item) => ({
|
|
|
+ label: item.nickName,
|
|
|
+ value: item.userId
|
|
|
+ }))
|
|
|
+ this.insideTableData = res.rows.filter((item) => item.unitId == 9)
|
|
|
+ this.outsideTableData = res.rows.filter((item) => item.unitId != '9')
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -834,11 +860,12 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
handleTicketClick(data) {
|
|
|
console.log(data, '查看作业票详情')
|
|
|
this.ticketId = data.ticketId
|
|
|
this.tabPosition = 'third'
|
|
|
+ this.workstationId = data.workstationId
|
|
|
+
|
|
|
getStepInfo(this.ticketId).then((res) => {
|
|
|
this.EightStepForm = res.data
|
|
|
console.log(res, '作业票-详细信息')
|
|
|
@@ -868,14 +895,21 @@ export default {
|
|
|
}
|
|
|
getWorkstationTicketList(data).then((res) => {
|
|
|
console.log(res, '查看-正在进行中作业票列表')
|
|
|
+
|
|
|
this.TicketListPage = res.data.filter(
|
|
|
(item) => item.workstationId == '8'
|
|
|
)
|
|
|
+
|
|
|
this.COCOTicketListPage = res.data.filter(
|
|
|
(item) => item.workstationId == '7'
|
|
|
)
|
|
|
})
|
|
|
- listTechnology(data).then((res) => {
|
|
|
+ const data1 = {
|
|
|
+ pages: 1,
|
|
|
+ size: -1,
|
|
|
+ machineryType: '工艺',
|
|
|
+ }
|
|
|
+ listTechnology(data1).then((res) => {
|
|
|
console.log(res, 'technologyList')
|
|
|
this.technologyList = res.data.records
|
|
|
})
|
|
|
@@ -885,8 +919,10 @@ export default {
|
|
|
})
|
|
|
const query = {
|
|
|
pageSize: 10000,
|
|
|
- pageNum: 1
|
|
|
+ pageNum: 1,
|
|
|
+ workstationId:this.workstationId,
|
|
|
}
|
|
|
+ console.log(query,'用户的参数')
|
|
|
getUserList(query).then((res) => {
|
|
|
console.log(res, 'userList')
|
|
|
this.listLockerOption = res.rows
|
|
|
@@ -917,15 +953,17 @@ export default {
|
|
|
console.log(val)
|
|
|
this.tabPosition = val
|
|
|
this.marsSopTitle = workstationName
|
|
|
+ this.workstationId=workstationId
|
|
|
if (workstationId) {
|
|
|
const data = {
|
|
|
pages: 1,
|
|
|
size: -1,
|
|
|
- workstationId: workstationId
|
|
|
+ workstationId: workstationId,
|
|
|
+ machineryType: '工艺',
|
|
|
}
|
|
|
listTechnology(data).then((res) => {
|
|
|
console.log(res,'设备工艺---列表')
|
|
|
- this.technologyList = res.data.records.filter((item) =>item.machineryType=='工艺')
|
|
|
+ this.technologyList = res.data.records
|
|
|
})
|
|
|
// getIsMarsSopPage(data).then((res) => {
|
|
|
// console.log(res, 'SopPage')
|
|
|
@@ -969,16 +1007,17 @@ export default {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
- // 多选框选中数据
|
|
|
+
|
|
|
+ // 单选选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
console.log(selection, 'mars设备工艺表格多选拿到的数据')
|
|
|
|
|
|
this.form = selection
|
|
|
- this.machineryId = selection[0].machineryId
|
|
|
- getTechnologyInfo(selection[0].machineryId).then((res) => {
|
|
|
+ this.machineryId = selection.machineryId
|
|
|
+ getTechnologyInfo(selection.machineryId).then((res) => {
|
|
|
this.machineryImg = res.data.machineryImg
|
|
|
})
|
|
|
- selectSopTypeByMachineryId(selection[0].machineryId).then((res) => {
|
|
|
+ selectSopTypeByMachineryId(selection.machineryId).then((res) => {
|
|
|
console.log(res, 'SopTypeByMachineryId')
|
|
|
this.sopTypeOption=res.data.map((item) =>{
|
|
|
return{
|
|
|
@@ -998,15 +1037,14 @@ export default {
|
|
|
|
|
|
const query = {
|
|
|
pageSize: 10000,
|
|
|
- pageNum: 1
|
|
|
+ pageNum: 1,
|
|
|
+ workstationId:'8',
|
|
|
}
|
|
|
getUserList(query).then((res) => {
|
|
|
this.insideTableData = res.rows.filter((item) => item.unitId == 9)
|
|
|
this.outsideTableData = res.rows.filter((item) => item.unitId != '9')
|
|
|
- console.log(this.insideTableData, this.outsideTableData, '用户')
|
|
|
|
|
|
// 获取已分配人员数据
|
|
|
-
|
|
|
getJobTicketInfo(this.ticketId).then((res) => {
|
|
|
const assignedUsers = res.data.jobTicketUserList || [];
|
|
|
console.log(assignedUsers, '已分配人员');
|