|
@@ -29,6 +29,10 @@ const Employee = {
|
|
|
type: String,
|
|
|
default: '请选择申请人(输入名称搜索)'
|
|
|
},
|
|
|
+ notInSn:{
|
|
|
+ type: Array,
|
|
|
+ default: () => []
|
|
|
+ }
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -43,6 +47,12 @@ const Employee = {
|
|
|
value(newValue, oldValue) {
|
|
|
this.defaultVal = newValue
|
|
|
},
|
|
|
+ notInSn(a,b){
|
|
|
+ console.log(a,b)
|
|
|
+ if(JSON.stringify(a) !== JSON.stringify(b)){
|
|
|
+ this.getList()
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
filterOption (input, option) {
|
|
@@ -57,7 +67,8 @@ const Employee = {
|
|
|
this.$emit('input', value);
|
|
|
},
|
|
|
getList () {
|
|
|
- this.list = this.$store.state.app.employeeList
|
|
|
+ console.log(11)
|
|
|
+ this.list = this.$store.state.app.employeeList.filter(item => this.notInSn.indexOf(item.employeeSn)<0)
|
|
|
if(this.list.length==0){
|
|
|
employeeQueryList({}).then(res => {
|
|
|
if (res.status == 200) {
|