浏览代码

材料请购单-选择组织时清空数据

jingbb 1 年之前
父节点
当前提交
2b8781372b
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/views/production/materialprocurement/modules/materialProcurementAdd.vue

+ 8 - 0
src/views/production/materialprocurement/modules/materialProcurementAdd.vue

@@ -775,6 +775,14 @@
                 this.$set(this.form,'orgName',data.Name)
                 this.$set(this.form,'orgName',data.Name)
                 this.$set(this.form,'orgCode',data.Code)
                 this.$set(this.form,'orgCode',data.Code)
                 this.$set(this.form,'planOrg',data.ID)
                 this.$set(this.form,'planOrg',data.ID)
+                this.$set(this.form,'salesperson','')
+                this.$set(this.form,'salespersonId','')
+                this.$set(this.form,'planDept','')
+                this.$set(this.form,'planDeptId','')
+                this.$set(this.form,'projectName','')
+                this.$set(this.form,'projectCode','')
+                this.$set(this.form,'project','')
+                this.formTable.dataSource = []
                 if(this.form.orgName&&this.form.orgName!==''){
                 if(this.form.orgName&&this.form.orgName!==''){
                     this.$refs.form.clearValidate(['orgName']);
                     this.$refs.form.clearValidate(['orgName']);
                 }
                 }