소스 검색

优化了编辑供应商时,类别显示为0的问题

mainqaq 3 년 전
부모
커밋
1a01381564
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      src/xt_pages/supply/components/addSupply.vue

+ 5 - 2
src/xt_pages/supply/components/addSupply.vue 파일 보기

@@ -318,8 +318,11 @@ export default {
318 318
         this.title = "编辑供应商";
319 319
         this.supplier.supplierCode = data.SupplierCode;
320 320
         this.supplier.supplierName = data.SupplierName;
321
-        this.supplier.supplierType = data.SupplierType;
322
-
321
+        if (data.SupplierType == 0){
322
+          this.supplier.supplierType = ""
323
+        }else {
324
+          this.supplier.supplierType = data.SupplierType;
325
+        }
323 326
         this.supplier.vatRate = data.VatRate;
324 327
         this.supplier.number = data.Number;
325 328
         this.supplier.bank = data.Bank;