瀏覽代碼

TOTEXP 里面的组件的年份不要到月,增加市进出口总值

sakura 1 年之前
父節點
當前提交
67c9dba64a
共有 1 個文件被更改,包括 12 次插入7 次删除
  1. 12 7
      src/views/TOTEXP/index.vue

+ 12 - 7
src/views/TOTEXP/index.vue

@@ -179,7 +179,7 @@
     />
 
     <!-- 添加或修改保税区进出口总值数据对话框 -->
-    <el-dialog :title="title" :visible.sync="open" width="550px" append-to-body>
+    <el-dialog :title="title" :visible.sync="open" width="580px" append-to-body>
       <el-form :ref="'form'" :model="form" :rules="rules" label-width="80px">
         <el-form-item prop="deptId" label-width="120px" label="保税区名称">
           <el-select
@@ -188,6 +188,7 @@
             default-first-option
             clearable
             placeholder="请选择保税区"
+            style="width: 100%;"
           >
             <el-option
               v-for="item in deptList"
@@ -198,8 +199,8 @@
             </el-option>
           </el-select>
         </el-form-item>
-        <el-form-item prop="year" label-width="100px" label="年份">
-          <el-select v-model="form.year" filterable default-first-option clearable placeholder="请选择年份">
+        <el-form-item prop="year" label-width="120px" label="年份">
+          <el-select v-model="form.year" style="width: 100%;" filterable default-first-option clearable placeholder="请选择年份">
             <el-option
               v-for="(item,index) in nearYearList"
               :key="index"
@@ -226,15 +227,15 @@
           >
           </el-cascader>
         </el-form-item> -->
-        <el-form-item prop="ratio" label-width="100px" label="同比">
-          <el-input v-model="form.ratio" placeholder="请输入同比"></el-input>
-        </el-form-item>
-        <el-form-item prop="imExport" label-width="100px" label="进出口总值">
+        <el-form-item prop="imExport" label-width="120px" label="进出口总值">
           <el-input
             v-model="form.imExport"
             placeholder="请输入进出口总值"
           ></el-input>
         </el-form-item>
+        <el-form-item prop="cityTotal" label-width="120px" label="市进口总值">
+          <el-input v-model="form.cityTotal" placeholder="请输入市进口总值"></el-input>
+        </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button type="primary" @click="submitForm">确 定</el-button>
@@ -304,6 +305,10 @@ export default {
           { required: true, message: "进出口值不能为空", trigger: "blur" },
           { trigger: "blur", validator: this.validatorFloatNum },
         ],
+        cityTotal: [
+          { required: true, message: "市进出口值不能为空", trigger: "blur" },
+          { trigger: "blur", validator: this.validatorFloatNum },
+        ],
         year: [{ required: true, message: "年份不能为空", trigger: "blur" }],
       },
     };