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

fix(商品价格管理): 移除失败提示并添加税率必填验证

liujt преди 6 месеца
родител
ревизия
4da2a547fb

+ 1 - 1
src/views/commodityManagement/commodityPriceList/components/addDialog.vue

@@ -493,7 +493,7 @@
             this.$emit('done');
           }
         } catch (error) {
-          this.$message.error('操作失败');
+          // this.$message.error('操作失败');
         } finally {
           this.loading = false;
         }

+ 6 - 0
src/views/commodityManagement/commodityPriceList/components/productTable.vue

@@ -47,6 +47,11 @@
         <el-form-item
           style="margin-bottom: 20px"
           :prop="'datasource.' + scope.$index + '.taxRate'"
+          :rules="{
+            required: true,
+            message: '请输入税率',
+            trigger: 'change'
+          }"
         >
           <el-input
             v-model="scope.row.taxRate"
@@ -176,6 +181,7 @@ export default {
         },
         {
           prop: 'taxRate',
+          headerSlot: 'headerTaxRate',
           slot: 'taxRate',
           label: '税率',
           align: 'center'