From feeb447000954766bf8b738b91093ed9dc5c361a Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 16 Mar 2021 18:13:32 +0800
Subject: [PATCH] 分销订单0316

---
 zq-erp/src/main/resources/templates/views/admin/fenxiao/fenxiao-setting.html |   54 +++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 37 insertions(+), 17 deletions(-)

diff --git a/zq-erp/src/main/resources/templates/views/admin/fenxiao/fenxiao-setting.html b/zq-erp/src/main/resources/templates/views/admin/fenxiao/fenxiao-setting.html
index 7ac67c3..4b6da5c 100644
--- a/zq-erp/src/main/resources/templates/views/admin/fenxiao/fenxiao-setting.html
+++ b/zq-erp/src/main/resources/templates/views/admin/fenxiao/fenxiao-setting.html
@@ -36,6 +36,7 @@
                 </template>
             </el-col>
         </el-row>
+
         <el-row style="margin-top: 20px;">
             <el-col>
                 <template v-for="paramSettingTwo in fxms">
@@ -51,13 +52,14 @@
                 </template>
             </el-col>
         </el-row>
+
         <el-row style="margin-top: 20px;">
             <el-col>
                 <template v-for="paramSettingThree in sqfs">
                     <el-form-item>
                         <span slot="label">{{paramSettingThree.paramName}}</span>
                         <el-col>
-                            <el-radio-group v-model="paramSettingThree.paramValue">
+                            <el-radio-group v-model="paramSettingThree.paramValue" @change="sqfsChange">
                                 <div style="margin-top: 12px;"><el-radio :label="'1'">无需申请满足条件自动成为分销员</el-radio></div>
                                 <div style="margin-top: 20px;"><el-radio :label="'2'">需要客户主动申请</el-radio></div>
                             </el-radio-group>
@@ -66,22 +68,8 @@
                 </template>
             </el-col>
         </el-row>
-        <el-row style="margin-top: 20px;">
-            <el-col>
-                <template v-for="paramSettingFour in shfs">
-                    <el-form-item>
-                        <span slot="label">{{paramSettingFour.paramName}}</span>
-                        <el-col>
-                            <el-radio-group v-model="paramSettingFour.paramValue">
-                                <div style="margin-top: 12px;"><el-radio :label="'1'">系统自动审核</el-radio></div>
-                                <div style="margin-top: 20px;"><el-radio :label="'2'">人工审核</el-radio></div>
-                            </el-radio-group>
-                        </el-col>
-                    </el-form-item >
-                </template>
-            </el-col>
-        </el-row>
-        <el-row style="margin-top: 20px;">
+
+        <el-row v-show="isShow" style="margin-top: 20px;">
             <el-col>
                 <template v-for="paramSettingFive in sqtj">
                     <el-form-item>
@@ -111,6 +99,24 @@
                 </template>
             </el-col>
         </el-row>
+
+        <el-row v-show="isShow" style="margin-top: 20px;">
+            <el-col>
+                <template v-for="paramSettingFour in shfs">
+                    <el-form-item>
+                        <span slot="label">{{paramSettingFour.paramName}}</span>
+                        <el-col>
+                            <el-radio-group v-model="paramSettingFour.paramValue">
+                                <div style="margin-top: 12px;"><el-radio :label="'1'">系统自动审核</el-radio></div>
+                                <div style="margin-top: 20px;"><el-radio :label="'2'">人工审核</el-radio></div>
+                            </el-radio-group>
+                        </el-col>
+                    </el-form-item >
+                </template>
+            </el-col>
+        </el-row>
+
+
         <el-drawer
                 title="业绩设置"
                 :visible.sync="drawer"
@@ -274,6 +280,8 @@
             //表格加载效果
             loading: false,
             /******搜索表格数据END********/
+            val:'',
+            isShow:true,
             fxkg:[],
             fxms:[],
             sqfs:[],
@@ -292,6 +300,10 @@
                 let _this = this;
                 _this.loadParamSetting();
             },
+            sqfsChange(val){
+                let _this = this;
+                _this.isShow=(val==2)?true:false;
+            },
             loadParamSetting() {
                 let _this = this;
                 //加载配置
@@ -303,6 +315,14 @@
                         _this.fxkg = data.mapInfo.fxkg;
                         _this.fxms = data.mapInfo.fxms;
                         _this.sqfs = data.mapInfo.sqfs;
+                        if(_this.sqfs.length > 0){
+                            let paramssqfs = _this.sqfs[0].paramValue;
+                            if(paramssqfs == 2){
+                                _this.isShow = true;
+                            }else{
+                                _this.isShow = false;
+                            }
+                        }
                         _this.shfs = data.mapInfo.shfs;
                         _this.sqtj = data.mapInfo.sqtj;
                         //_this.order.items = data.mapInfo.order;

--
Gitblit v1.9.1