|
@@ -1,4 +1,4 @@
|
|
-import { supplierAllList } from '@/api/supplier.js'
|
|
|
|
|
|
+import { supplierAllList, supplierAuthAllList } from '@/api/supplier.js'
|
|
const Employee = {
|
|
const Employee = {
|
|
template: `
|
|
template: `
|
|
<a-select
|
|
<a-select
|
|
@@ -36,6 +36,10 @@ const Employee = {
|
|
disabledFlag: {
|
|
disabledFlag: {
|
|
type: Boolean,
|
|
type: Boolean,
|
|
default: false
|
|
default: false
|
|
|
|
+ },
|
|
|
|
+ isPermission: {
|
|
|
|
+ type: Boolean,
|
|
|
|
+ default: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
@@ -65,7 +69,8 @@ const Employee = {
|
|
this.$emit('change', value, item)
|
|
this.$emit('change', value, item)
|
|
},
|
|
},
|
|
getList () {
|
|
getList () {
|
|
- supplierAllList().then(res => {
|
|
|
|
|
|
+ const funs = this.isPermission ? supplierAuthAllList : supplierAllList
|
|
|
|
+ funs().then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
if (this.enableFlag != '') {
|
|
if (this.enableFlag != '') {
|
|
this.list = res.data.filter(item => item.enableFlag == this.enableFlag)
|
|
this.list = res.data.filter(item => item.enableFlag == this.enableFlag)
|