|
@@ -129,6 +129,18 @@
|
|
</div>
|
|
</div>
|
|
</el-form>
|
|
</el-form>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
+ <el-tab-pane label="配置销售会员审核" name="companyUserConfig">
|
|
|
|
+ <el-form ref="companyUserConfig" label-width="140px">
|
|
|
|
+ <el-form-item label="会员是否默认黑名单">
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-switch v-model="userIsDefaultBlack"></el-switch>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <div style="float:right;margin-right:20px">
|
|
|
|
+ <el-button type="primary" @click="onSubmit5">提交</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-form>
|
|
|
|
+ </el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
|
|
|
<el-dialog :title="customerExt.title" :visible.sync="customerExt.open" width="500px" append-to-body>
|
|
<el-dialog :title="customerExt.title" :visible.sync="customerExt.open" width="500px" append-to-body>
|
|
@@ -156,7 +168,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { getCompanyInfo } from "@/api/company/company";
|
|
import { getCompanyInfo } from "@/api/company/company";
|
|
-import { getConfigKey,updateConfig } from "@/api/company/companyConfig";
|
|
|
|
|
|
+import { getConfigKey,updateConfig, configUserCheck } from "@/api/company/companyConfig";
|
|
import { listCustomerExt, getCustomerExt, delCustomerExt, addCustomerExt, updateCustomerExt } from "@/api/crm/customerExt";
|
|
import { listCustomerExt, getCustomerExt, delCustomerExt, addCustomerExt, updateCustomerExt } from "@/api/crm/customerExt";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -204,6 +216,8 @@ export default {
|
|
|
|
|
|
qwConfigForm:{},
|
|
qwConfigForm:{},
|
|
qwkfConfigForm:{},
|
|
qwkfConfigForm:{},
|
|
|
|
+ companyUserConfig: {},
|
|
|
|
+ userIsDefaultBlack: false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -212,6 +226,7 @@ export default {
|
|
this.getConfigKey("qw:config");
|
|
this.getConfigKey("qw:config");
|
|
this.getConfigKey("customer:config");
|
|
this.getConfigKey("customer:config");
|
|
this.getConfigKey("redPacket:config");
|
|
this.getConfigKey("redPacket:config");
|
|
|
|
+ this.getConfigKey("companyUser:config");
|
|
this.getDicts("sys_company_status").then((response) => {
|
|
this.getDicts("sys_company_status").then((response) => {
|
|
this.statusOptions = response.data;
|
|
this.statusOptions = response.data;
|
|
});
|
|
});
|
|
@@ -315,6 +330,12 @@ export default {
|
|
if(response.data.configValue!=null){
|
|
if(response.data.configValue!=null){
|
|
this.redPacketConfig=JSON.parse(response.data.configValue);
|
|
this.redPacketConfig=JSON.parse(response.data.configValue);
|
|
}
|
|
}
|
|
|
|
+ }else if (key=="companyUser:config"){
|
|
|
|
+ console.log(response.data)
|
|
|
|
+ this.companyUserConfig=response.data;
|
|
|
|
+ if(response.data.configValue != null){
|
|
|
|
+ this.userIsDefaultBlack = JSON.parse(response.data.configValue);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
});
|
|
});
|
|
@@ -355,6 +376,17 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ onSubmit5() {
|
|
|
|
+ this.companyUserConfig.configValue=JSON.stringify(this.userIsDefaultBlack);
|
|
|
|
+ console.log(this.companyUserConfig)
|
|
|
|
+ console.log(this.userIsDefaultBlack)
|
|
|
|
+ configUserCheck({userIsDefaultBlack: this.userIsDefaultBlack}).then(response => {
|
|
|
|
+ if (response.code === 200) {
|
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
|
+ this.getConfigKey("companyUser:config");
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|