|
|
@@ -1027,6 +1027,9 @@ export default {
|
|
|
},
|
|
|
orgtreeChange (val) {
|
|
|
this.userOptions = []
|
|
|
+ if (val.length < 1) {
|
|
|
+ return
|
|
|
+ }
|
|
|
let deptid = val[val.length - 1]
|
|
|
let auditstepcode = 'PROF_RECE'
|
|
|
api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
@@ -1162,7 +1165,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
isCanUpdateSupplier (supplierId) {
|
|
|
- api.isCanUpdateSupplier(supplierId, this.$axios).then(res => {
|
|
|
+ api.isCanUpdateSupplier(supplierId, '03', this.$axios).then(res => {
|
|
|
this.canUpdateSupplier = (res.data.code === 0)
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|