Selaa lähdekoodia

生产总订单-选择弹窗获取数据所需参数更改

jingbb 1 vuosi sitten
vanhempi
commit
dbabe80888

+ 10 - 3
src/views/production/productionTotalOrder/modules/productionTotalOrderAdd.vue

@@ -403,17 +403,24 @@
                 })
             },
             onSearchProductionOrg(){ 
-                
                     this.$refs.organizationPopup.visible = true
                     this.$refs.organizationPopup.getData()
             },
             onSearchPerson(){
+                if(this.form.orgName&&this.form.orgName!==''){
                     this.$refs.OperatorsPopup.visible = true
-                    this.$refs.OperatorsPopup.getData()
+                    this.$refs.OperatorsPopup.getData(this.form.pkOrg)
+                }else{
+                    this.$message.warning('请选择生产组织!')
+                }
             },
             onSearchPlanDept(){
+                if(this.form.orgName&&this.form.orgName!==''){
                     this.$refs.deparmentPopup.visible = true
-                    this.$refs.deparmentPopup.getData()
+                    this.$refs.deparmentPopup.getData(this.form.pkOrg)
+                }else{
+                    this.$message.warning('请选择生产组织!')
+                }
             },
             okData(data){
                 this.$set(this.form,'projectCode',data.Code)