diff --git a/src/views/emis/EmisBaseTools/EmisSupplierMultiplePicker.vue b/src/views/emis/EmisBaseTools/EmisSupplierMultiplePicker.vue index e26ac20c..c95674a8 100644 --- a/src/views/emis/EmisBaseTools/EmisSupplierMultiplePicker.vue +++ b/src/views/emis/EmisBaseTools/EmisSupplierMultiplePicker.vue @@ -2,6 +2,7 @@ +
@@ -23,7 +25,7 @@ 确定
- +
@@ -62,46 +64,51 @@ data() { }, watch: { value(newVal) { + if(this.value) { + this.svalue = this.value.split(','); + this.queryData(null,this.value,this.value); + } + // this.queryParams.sortCodeStr=this.value; + // console.log("xxxx===>xxx2:",this.queryParams) + // this.queryData(null); }, }, created() { if(this.value) { this.svalue = this.value.split(','); + this.queryData(null,this.value,this.value); } - this.queryParams.code=this.value; - console.log("xxxx===>xxx1:",this.queryParams) - this.queryData(null); }, methods: { confirmOk(){ let selCodeStr=""; let selNameStr=""; - if(this.svalue&&this.svalue.length>0){ selCodeStr=this.svalue.join(','); } - - selCodeStr = selCodeStr.substring(0,selCodeStr.length-1); - - console.log("===>==1:",selCodeStr); - + console.log("===>==1=>》:",this.svalue,selCodeStr); this.$emit('input', selCodeStr) this.$emit('onChange',selCodeStr) - this.dispatch('ElFormItem', 'el.form.blur', [this.svalue]); + // this.dispatch('ElFormItem', 'el.form.blur', [this.svalue]); this.$refs.selectRef.blur(); }, onFocus(){ - this.queryData(); + if(this.svalue&&this.svalue.length>0){ + let selCodeStr=this.svalue.join(','); + this.queryData(null,null,sortCodeStr); + } }, onChange(val) { - this.confirmOk() + // this.confirmOk() }, - queryData(queryVal) { + queryData(val,key,sortCodeStr) { this.queryParams.pageNum=1; - this.queryParams.custName=queryVal; + this.queryParams.name=val; + this.queryParams.code=key; + this.queryParams.sortCodeStr=sortCodeStr; console.log("xxxx===>xxx2:",this.queryParams) listSimpleEmisSupplier(this.queryParams).then(response => { diff --git a/src/views/emis/emisTransPlanRule/index.vue b/src/views/emis/emisTransPlanRule/index.vue index 21bc1f49..2e9ce554 100644 --- a/src/views/emis/emisTransPlanRule/index.vue +++ b/src/views/emis/emisTransPlanRule/index.vue @@ -291,10 +291,12 @@ export default { // this.router.push({ path: '/emis/emisTransPlanRule/viewDetail', query: { id: row.id }}) }, handleFormChanged(){ + this.currentId=null; this.openForm = false; this.getList(); }, cancelForm(){ + this.currentId=null; this.openForm = false; }, /** 删除按钮操作 */