瀏覽代碼

优化了编辑供应商时,类别显示为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
         this.title = "编辑供应商";
318
         this.title = "编辑供应商";
319
         this.supplier.supplierCode = data.SupplierCode;
319
         this.supplier.supplierCode = data.SupplierCode;
320
         this.supplier.supplierName = data.SupplierName;
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
         this.supplier.vatRate = data.VatRate;
326
         this.supplier.vatRate = data.VatRate;
324
         this.supplier.number = data.Number;
327
         this.supplier.number = data.Number;
325
         this.supplier.bank = data.Bank;
328
         this.supplier.bank = data.Bank;