|
@@ -28,6 +28,10 @@ const Employee = {
|
|
|
type: String,
|
|
|
default: '请选择供应商'
|
|
|
},
|
|
|
+ enableFlag: {
|
|
|
+ type: String,
|
|
|
+ default: '1'
|
|
|
+ }
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -56,9 +60,9 @@ const Employee = {
|
|
|
this.$emit('input', value);
|
|
|
},
|
|
|
getList () {
|
|
|
- supplierAllList({}).then(res => {
|
|
|
+ supplierAllList().then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- this.list = res.data
|
|
|
+ this.list = res.data.filter(item => item.enableFlag == this.enableFlag)
|
|
|
} else {
|
|
|
this.list = []
|
|
|
}
|