Browse Source

refactor(采购订单): 选择订单类型清空其他值

liujt 7 months ago
parent
commit
c11639621e
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/views/purchasingManage/purchaseOrder/components/addDialog.vue

+ 2 - 4
src/views/purchasingManage/purchaseOrder/components/addDialog.vue

@@ -1515,9 +1515,8 @@
       },
 
       sourceTypeChange() {
-        // if(this.showReturnRelation) {
-        //   this.form.relationType = '';
-        // }
+        // 当sourceType改变时,重置relationType及相关字段
+        this.form.relationType = '';
         this.valueChange();
       },
       handleChangeRelationType(val) {
@@ -1530,7 +1529,6 @@
         this.form.purchasePlanId = '';
         this.form.purchasePlanNo = '';
         this.form.purchasePlanName = '';
-        // this.form.relationType = '';
 
         this.form.relationId = '';
         this.form.relationCode = '';