Преглед на файлове

fix: 调整税率类型,优化商机只有一个售出方企业名称自动填充

liujt преди 8 месеца
родител
ревизия
cf355b94ce
променени са 2 файла, в които са добавени 7 реда и са изтрити 1 реда
  1. 1 1
      src/BIZComponents/inventoryTable.vue
  2. 6 0
      src/views/saleManage/saleOrder/components/addDialog.vue

+ 1 - 1
src/BIZComponents/inventoryTable.vue

@@ -930,7 +930,7 @@
       },
       // 是否税率必填
       isTaxRate: {
-        type: Number,
+        type: [Number, String],
         default: 0
       },
       defTaxRate: {

+ 6 - 0
src/views/saleManage/saleOrder/components/addDialog.vue

@@ -882,6 +882,12 @@
           totalPrice: totalPrice,
           discountTotalPrice: discountTotalPrice
         });
+
+        if(this.enterprisePage.length === 1) {
+          this.form.partbName = this.enterprisePage[0].name;
+          this.getEnterprise()
+        }
+
         this.$nextTick(() => {
           this.$refs.inventoryTable &&
             this.$refs.inventoryTable.putTableValue(info);