Browse Source

2025-04-15

master
qiezi 9 months ago
parent
commit
bce8d06f53
  1. 8
      src/views/modules/common/ChooseUser.vue
  2. 16
      src/views/modules/sampleManagement/com_technical-add-or-update.vue
  3. 6
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue
  4. 16
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue

8
src/views/modules/common/ChooseUser.vue

@ -126,6 +126,7 @@ export default {
param3: '',
param: '',
site: '',
roleId:'',
conSql: '',
param4: this.$store.state.user.site,
dataList: [],
@ -161,19 +162,18 @@ export default {
},
//
init(site,conSql,param) {
init(site,conSql,param,roleId) {
this.visible = true;
this.site=site
this.roleId = roleId
this.param = param===null?'':param
this.conSql = conSql?conSql: ''
// tagNo
this.getDataList(true)
this.dataListLoading = false
},
getDataList (bool) {
let sql = "select a.username,a.user_display userDisplay,b.site,b.bu_no as buNo from sys_user a left join AccessBu b on a.username=b.username where b.bu_no like '"
let sql = `select a.username,a.user_display userDisplay,b.site,b.bu_no as buNo from sys_user a left join AccessBu b on a.username=b.username inner join AccessRole c on a.username = c.username and c.role_no = '${this.roleId?this.roleId:''}' where b.bu_no like '`
sql += this.conSql+"'"
sql += " and b.site = '" + this.site + "'"

16
src/views/modules/sampleManagement/com_technical-add-or-update.vue

@ -516,32 +516,32 @@
this.tagNo1 = type
this.$nextTick(() => {
let strVal = ''
let roleId = ''
if(type==1) {
strVal = this.dataForm.cqcOperator
roleId = 'R008'
}
if(type==2) {
strVal = this.dataForm.faiOperator
}
if(type==3) {
strVal = this.dataForm.peOperater
roleId = 'R009'
}
if(type==4) {
strVal = this.dataForm.csOperater
}
if(type==5) {
strVal = this.dataForm.dccOperater
roleId = 'R010'
}
if(type==6) {
strVal = this.dataForm.mpOperator
roleId = 'R021'
}
if(type==7) {
strVal = this.dataForm.engineerNo
roleId = 'R020'
}
if(type==8) {
strVal = this.dataForm.technicianNo
roleId = 'R014'
}
this.$refs.userList.init(this.$store.state.user.site,this.dataForm.buNo!==''?this.dataForm.buNo:'%%', strVal)
this.$refs.userList.init(this.$store.state.user.site,this.dataForm.buNo!==''?this.dataForm.buNo:'%%', strVal,roleId)
})
},
/* 列表方法的回调 */

6
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue

@ -939,15 +939,17 @@
this.tagNo1 = type
this.$nextTick(() => {
let strVal = ''
let roleId = ''
if(type==1) {
strVal = this.sheetData.overPrintOperator
roleId = 'R018'
}
if(type==2) {
strVal = this.sheetData.printOperator
roleId = 'R019'
}
this.$refs.baseList.init(this.searchData.site,this.searchData.buNo, strVal)
this.$refs.baseList.init(this.searchData.site,this.searchData.buNo, strVal,roleId)
})
},
/* 列表方法的回调 */

16
src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue

@ -452,32 +452,32 @@
this.tagNo1 = type
this.$nextTick(() => {
let strVal = ''
let roleId = ''
if(type==1) {
strVal = this.dataForm.cqcOperator
roleId = 'R008'
}
if(type==2) {
strVal = this.dataForm.faiOperator
}
if(type==3) {
strVal = this.dataForm.peOperater
roleId = 'R009'
}
if(type==4) {
strVal = this.dataForm.csOperater
}
if(type==5) {
strVal = this.dataForm.dccOperater
roleId = 'R010'
}
if(type==6) {
strVal = this.dataForm.mpOperator
roleId = 'R021'
}
if(type==7) {
strVal = this.dataForm.engineerNo
roleId = 'R020'
}
if(type==8) {
strVal = this.dataForm.technicianNo
roleId = 'R014'
}
this.$refs.baseList.init(this.searchData.site,this.searchData.buNo, strVal)
this.$refs.baseList.init(this.searchData.site,this.searchData.buNo, strVal,roleId)
})
},
/* 列表方法的回调 */

Loading…
Cancel
Save