Browse Source

pqc修改

master
shenzhouyu 3 months ago
parent
commit
0c040133d2
  1. 38
      src/views/modules/qc/PQCResultEntry.vue

38
src/views/modules/qc/PQCResultEntry.vue

@ -1338,7 +1338,7 @@ export default {
fixed: '',
columnWidth: 120,
},
{
/*{
userId: this.$store.state.user.name,
functionId: 301015,
serialNumber: '301015Table1BatchRollNo',
@ -1373,7 +1373,7 @@ export default {
status: true,
fixed: '',
columnWidth: 150,
},
},*/
{
userId: this.$store.state.user.name,
functionId: 301015,
@ -1428,7 +1428,7 @@ export default {
fixed: '',
columnWidth: 130,
},
{
/* {
userId: this.$store.state.user.name,
functionId: 301015,
serialNumber: '301015Table1InspectionCycle',
@ -1481,7 +1481,7 @@ export default {
status: true,
fixed: '',
columnWidth: 150,
},
}, */
{
userId: this.$store.state.user.name,
functionId: 301015,
@ -2776,12 +2776,12 @@ export default {
if (this.roleList.length > 0) {
let filterList = this.roleList.filter(item => item.roleName && item.roleName.indexOf('换线点检') > -1)
if (filterList.length > 0) {
this.operatorData.roleId = filterList[0].roleId
this.$set(this.operatorData, 'roleId', filterList[0].roleId != null && filterList[0].roleId !== '' ? Number(filterList[0].roleId) : '')
} else {
this.operatorData.roleId = this.roleList[0].roleId
this.$set(this.operatorData, 'roleId', this.roleList[0].roleId != null && this.roleList[0].roleId !== '' ? Number(this.roleList[0].roleId) : '')
}
} else {
this.operatorData.roleId = ''
this.$set(this.operatorData, 'roleId', '')
}
},
@ -2798,14 +2798,17 @@ export default {
setDefaultCollaborativeRole (callback) {
const apply = () => {
if (this.isMhmResponsibleBu()) {
if (this.roleList.length > 0) {
const roleName = this.isMhmResponsibleBu() ? this.defaultCollaborativeRoleName : '系统管理员'
const match = this.roleList.filter(item => item.roleName === roleName)
const match = this.roleList.filter(item => item.roleName === this.defaultCollaborativeRoleName)
const roleId = match.length > 0 ? match[0].roleId : this.roleList[0].roleId
this.$set(this.operatorData, 'roleId', roleId != null && roleId !== '' ? Number(roleId) : '')
} else {
this.$set(this.operatorData, 'roleId', '')
}
} else {
this.setDefaultLineInspectionRole()
}
callback && callback()
}
if (this.roleList.length > 0) {
@ -2887,17 +2890,18 @@ export default {
this.operatorData.roleId = ''
openDialog()
} else {
if (this.roleList.length > 0) {
let filterList = this.roleList.filter(item => item.roleName === '机修人员')
if (filterList.length > 0) {
this.operatorData.roleId = filterList[0].roleId
} else {
this.operatorData.roleId = this.roleList[0].roleId
const apply = () => {
this.setDefaultLineInspectionRole()
openDialog()
}
if (this.roleList.length > 0) {
apply()
} else {
this.operatorData.roleId = ''
getUserRoleList().then(({ data }) => {
this.roleList = (data && data.code === 0) ? (data.rows || []) : []
apply()
})
}
openDialog()
}
},

Loading…
Cancel
Save