Эх сурвалжийг харах

园区贸易数据新增数据检测

lcmxs 1 жил өмнө
parent
commit
db100b0357

+ 26 - 49
src/views/GARDENTRADEDATA/edit.vue

@@ -3,6 +3,7 @@
     <el-form ref="form" :model="form" :rules="rules" label-width="200px">
       <el-form-item label="企业出口退税额" prop="companyDrawback">
         <el-input
+          type="number"
           v-model="form.companyDrawback"
           placeholder="请输入企业出口退税额"
         ></el-input>
@@ -10,6 +11,7 @@
 
       <el-form-item label="园区出口退税总额" prop="gardenDrawback">
         <el-input
+          type="number"
           v-model="form.gardenDrawback"
           placeholder="请输入园区出口退税总额"
         ></el-input>
@@ -17,6 +19,7 @@
 
       <el-form-item label="园区运营单位缴税总额" prop="gardenTax">
         <el-input
+          type="number"
           v-model="form.gardenTax"
           placeholder="请输入园区运营单位缴税总额"
         ></el-input>
@@ -24,6 +27,7 @@
 
       <el-form-item label="企业承接单量" prop="companyLists">
         <el-input
+          type="number"
           v-model="form.companyLists"
           placeholder="请输入企业承接单量"
         ></el-input>
@@ -31,6 +35,7 @@
 
       <el-form-item label="园区承接单总量" prop="gardenLits">
         <el-input
+          type="number"
           v-model="form.gardenLits"
           placeholder="请输入园区承接单总量"
         ></el-input>
@@ -38,6 +43,7 @@
 
       <el-form-item label="企业创新获奖量" prop="companyInnovative">
         <el-input
+          type="number"
           v-model="form.companyInnovative"
           placeholder="请输入企业创新获奖量"
         ></el-input>
@@ -45,6 +51,7 @@
 
       <el-form-item label="园区内创新获奖总量" prop="gardenInnovative">
         <el-input
+          type="number"
           v-model="form.gardenInnovative"
           placeholder="请输入园区内创新获奖总量"
         ></el-input>
@@ -52,6 +59,7 @@
 
       <el-form-item label="企业工业用水、用电量" prop="companyWaterElectric">
         <el-input
+          type="number"
           v-model="form.companyWaterElectric"
           placeholder="请输入企业工业用水、用电量"
         ></el-input>
@@ -59,6 +67,7 @@
 
       <el-form-item label="园区工业用水、用电总量" prop="gardenWaterElectric">
         <el-input
+          type="number"
           v-model="form.gardenWaterElectric"
           placeholder="请输入园区工业用水、用电总量"
         ></el-input>
@@ -94,72 +103,40 @@ export default {
           { required: true, message: "保税区ID不能为空", trigger: "blur" },
         ],
         companyDrawback: [
-          {
-            required: true,
-            message: "企业出口退税额 不能为空",
-            trigger: "blur",
-          },
-          { type: "number", message: "企业出口退税额年龄必须为数字值" },
+          { required: true, message: "企业出口退税额 不能为空", trigger: "blur", },
+          { pattern: /^[1-9]\d*$/, message: "企业出口退税额年龄必须为整数值" },
         ],
         gardenDrawback: [
-          {
-            required: true,
-            message: "园区出口退税总额 不能为空",
-            trigger: "blur",
-          },
-          { type: "number", message: "园区出口退税总额必须为数字值" },
+          { required: true, message: "园区出口退税总额 不能为空", trigger: "blur", },
+          { pattern: /^[1-9]\d*$/, message: "园区出口退税总额必须为整数值" },
         ],
         gardenTax: [
-          {
-            required: true,
-            message: "园区运营单位缴税总额 不能为空",
-            trigger: "blur",
-          },
-          { type: "number", message: "园区运营单位缴税总额必须为数字值" },
+          { required: true, message: "园区运营单位缴税总额 不能为空", trigger: "blur", },
+          { pattern: /^[1-9]\d*$/, message: "园区运营单位缴税总额必须为整数值" },
         ],
         companyLists: [
           { required: true, message: "企业承接单量 不能为空", trigger: "blur" },
-          { type: "number", message: "企业承接单量必须为数字值" },
+          { pattern: /^[1-9]\d*$/, message: "企业承接单量必须为整数值" },
         ],
         gardenLits: [
-          {
-            required: true,
-            message: "园区承接单总量 不能为空",
-            trigger: "blur",
-          },
-          { type: "number", message: "园区承接单总量年龄必须为数字值" },
+          { required: true, message: "园区承接单总量 不能为空", trigger: "blur", },
+          { pattern: /^[1-9]\d*$/, message: "园区承接单总量年龄必须为整数值" },
         ],
         companyInnovative: [
-          {
-            required: true,
-            message: "企业创新获奖量 不能为空",
-            trigger: "blur",
-          },
-          { type: "number", message: "企业创新获奖量必须为数字值" },
+          { required: true, message: "企业创新获奖量 不能为空", trigger: "blur", },
+          { pattern: /^[1-9]\d*$/, message: "企业创新获奖量必须为整数值" },
         ],
         gardenInnovative: [
-          {
-            required: true,
-            message: "园区内创新获奖总量 不能为空",
-            trigger: "blur",
-          },
-          { type: "number", message: "园区内创新获奖总量必须为数字值" },
+          { required: true, message: "园区内创新获奖总量 不能为空", trigger: "blur", },
+          { pattern: /^[1-9]\d*$/, message: "园区内创新获奖总量必须为整数值" },
         ],
         companyWaterElectric: [
-          {
-            required: true,
-            message: "企业工业用水、用电量 不能为空",
-            trigger: "blur",
-          },
-          { type: "number", message: "必须为数字值" },
+          { required: true, message: "企业工业用水、用电量 不能为空", trigger: "blur", },
+          { pattern: /^[1-9]\d*$/, message: "必须为整数值" },
         ],
         gardenWaterElectric: [
-          {
-            required: true,
-            message: "园区工业用水、用电总量 不能为空",
-            trigger: "blur",
-          },
-          { type: "number", message: "必须为数字值" },
+          { required: true, message: "园区工业用水、用电总量 不能为空", trigger: "blur", },
+          { pattern: /^[1-9]\d*$/, message: "必须为整数值" },
         ],
       },
     };