Просмотр исходного кода

fix(adjustNote): 优化表单字段命名及移除冗余代码

liujt 7 месяцев назад
Родитель
Сommit
cbecd6e54c

+ 1 - 3
src/views/bpm/handleTask/components/adjustNote/detailDialog.vue

@@ -3,7 +3,6 @@
     <el-form
     <el-form
       ref="form"
       ref="form"
       :model="form"
       :model="form"
-      :rules="rules"
       class="el-form-box"
       class="el-form-box"
       label-width="160px"
       label-width="160px"
     >
     >
@@ -108,7 +107,7 @@
 
 
         <el-col :span="8">
         <el-col :span="8">
           <el-form-item labelWidth="100px" prop="files" label="附件">
           <el-form-item labelWidth="100px" prop="files" label="附件">
-            <fileMain v-model="form.files" disabled></fileMain>
+            <fileMain v-model="form.files" type="view"></fileMain>
           </el-form-item>
           </el-form-item>
         </el-col>
         </el-col>
       </el-row>
       </el-row>
@@ -155,7 +154,6 @@
                 type="number"
                 type="number"
                 v-model="form.adjustDiscountAmount"
                 v-model="form.adjustDiscountAmount"
                 placeholder="请输入"
                 placeholder="请输入"
-                @input="discountInput"
               />
               />
             </el-form-item>
             </el-form-item>
           </el-col>
           </el-col>

+ 4 - 4
src/views/bpm/handleTask/components/adjustNote/inventoryTable.vue

@@ -167,9 +167,9 @@
           },
           },
           {
           {
             width: 130,
             width: 130,
-            prop: 'notaxSinglePrice',
+            prop: 'unTaxPrice',
             label: '不含税单价',
             label: '不含税单价',
-            slot: 'notaxSinglePrice',
+            slot: 'unTaxPrice',
             align: 'center'
             align: 'center'
           },
           },
           {
           {
@@ -378,13 +378,13 @@
           if (item.adjustPrice && item.taxRate) {
           if (item.adjustPrice && item.taxRate) {
             this.$set(
             this.$set(
               this.form.datasource[index],
               this.form.datasource[index],
-              'notaxSinglePrice',
+              'unTaxPrice',
               parseFloat(
               parseFloat(
                 (item.adjustPrice / (1 + item.taxRate / 100)).toFixed(2)
                 (item.adjustPrice / (1 + item.taxRate / 100)).toFixed(2)
               )
               )
             );
             );
           } else {
           } else {
-            this.$set(this.form.datasource[index], 'notaxSinglePrice', '');
+            this.$set(this.form.datasource[index], 'unTaxPrice', '');
           }
           }
         });
         });
       },
       },