Explorar o código

添加机构增加管理费用

cuixinpeng %!s(int64=3) %!d(string=hai) anos
pai
achega
fab48c12a5
Modificáronse 1 ficheiros con 23 adicións e 3 borrados
  1. 23 3
      src/views/Sys/Deptall.vue

+ 23 - 3
src/views/Sys/Deptall.vue

@@ -115,9 +115,9 @@
           </el-col>
         </el-row>
         <el-row>
-          <el-col :span="16">
-            <el-form-item label="机构地址" prop="address">
-              <el-input v-model="dataForm.address" placeholder="机构地址"></el-input>
+          <el-col :span="8">
+            <el-form-item label="管理费比例%" prop="managementFee"  label-width="120px">
+              <el-input-number style="width: 90%" v-model="dataForm.managementFee" controls-position="right" placeholder="管理费比例%" :min="0"></el-input-number>
             </el-form-item>
           </el-col>
           <el-col :span="8">
@@ -126,6 +126,18 @@
                 :min="0"></el-input-number>
             </el-form-item>
           </el-col>
+          <el-col :span="8">
+          </el-col>
+        </el-row>
+        <el-row>
+          <el-col :span="16">
+            <el-form-item label="机构地址" prop="address">
+              <el-input v-model="dataForm.address" placeholder="机构地址"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="8">
+
+          </el-col>
         </el-row>
         <el-row> </el-row>
       </el-form>
@@ -319,6 +331,7 @@ export default {
         area: "", //区县
         house: "", //门店
         deptType: "", //机构类型:用来区分是子公司还是部门啥的,现有:子公司C,门店M,部门D
+        managementFee:0,//管理费比例
         orderNum: 0,
       },
       //表单验证
@@ -358,6 +371,13 @@ export default {
             trigger: "blur",
           },
         ],
+        managementFee: [
+          {
+            required: true,
+            message: "管理费比例不能为空",
+            trigger: "blur",
+          },
+        ],
       },
       //-- address begin ---
       selectAddress: {