소스 검색

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

liujt 9 달 전
부모
커밋
c11639621e
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  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 = '';