diff --git a/public/pages/frame/registerProtocol/registerProtocol.html b/public/pages/frame/registerProtocol/registerProtocol.html new file mode 100644 index 000000000..3c17fb351 --- /dev/null +++ b/public/pages/frame/registerProtocol/registerProtocol.html @@ -0,0 +1,42 @@ +
+
+
+
+
+ 注册协议 +
+
+ +
+
+
+
+ +
+ +
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+
+
+ +
+
+
\ No newline at end of file diff --git a/public/pages/frame/registerProtocol/registerProtocol.js b/public/pages/frame/registerProtocol/registerProtocol.js new file mode 100644 index 000000000..acafb8a13 --- /dev/null +++ b/public/pages/frame/registerProtocol/registerProtocol.js @@ -0,0 +1,99 @@ +/** + 系统配置 组件 + **/ +(function (vc) { + vc.extends({ + data: { + registerProtocolInfo: { + userProtocol:'', + merchantProtocol:'', + protolcolId:'', + } + }, + _initMethod: function () { + //根据请求参数查询 查询 业主信息 + $that.initTextArea(); + vc.component._listRegisterProtocols(); + }, + _initEvent: function () { + + }, + methods: { + initTextArea:function(){ + $that._initSummernote('userProtocolSummernote',function(content){ + $that.registerProtocolInfo.userProtocol = content; + }); + $that._initSummernote('merchantProtocolSummernote',function(content){ + $that.registerProtocolInfo.merchantProtocol = content; + }); + }, + _initSummernote:function(_textClass,_callFunc){ + let $summernote = $('.'+_textClass).summernote({ + lang: 'zh-CN', + height: 300, + placeholder: '必填,请输入公告内容', + callbacks: { + onChange: function (contents, $editable) { + _callFunc(contents); + } + }, + toolbar: [ + ['style', ['style']], + ['font', ['bold', 'italic', 'underline', 'clear']], + ['fontname', ['fontname']], + ['color', ['color']], + ['para', ['ul', 'ol', 'paragraph']], + ['height', ['height']], + ['table', ['table']], + ['insert', ['link']], + ['help', ['help']] + ], + }); + }, + _listRegisterProtocols: function () { + let param = { + params: { + page: 1, + row: 1 + } + }; + //发送get请求 + vc.http.apiGet('/system.listRegisterProtocol', + param, + function (json, res) { + let _systemInfoManageInfo = JSON.parse(json); + vc.copyObject(_systemInfoManageInfo.data[0], $that.registerProtocolInfo); + $(".userProtocolSummernote").summernote('code', $that.registerProtocolInfo.userProtocol); + $(".merchantProtocolSummernote").summernote('code', $that.registerProtocolInfo.merchantProtocol); + + }, + function (errInfo, error) { + console.log('请求失败处理'); + } + ); + }, + _updateRegisterProtocol:function(){ + vc.http.apiPost( + '/system.updateRegisterProtocol', + JSON.stringify($that.registerProtocolInfo), { + emulateJSON: true + }, + function(json, res) { + //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); + let _json = JSON.parse(json) + if (_json.code == 0) { + //关闭model + $that._listRegisterProtocols(); + vc.toast("修改成功"); + return; + } + vc.toast(_json.msg); + }, + function(errInfo, error) { + console.log('请求失败处理'); + vc.toast(errInfo); + }); + } + } + }); +})(window.vc); \ No newline at end of file diff --git a/public/pages/property/repairSettingManage/docs/readme.md b/public/pages/property/repairSettingManage/docs/readme.md index 38bc3741b..a4f098d6d 100644 --- a/public/pages/property/repairSettingManage/docs/readme.md +++ b/public/pages/property/repairSettingManage/docs/readme.md @@ -57,3 +57,21 @@ 此功能主要为了解决维修师傅年龄大不会使用手机操作,需要客服人员确认维修完后强制回单场景 +### 微信消息推送配置流程 + +当工单提交或者派单后将会给相应员工推送微信消息,这个只有公众号才能推送,目前小程序无法推送;
+ +#### a、维修师傅消息推送 + +1、在设置-> 系统->公众号 公众号信息页面配置相应模板消息,配置文档找管理员获取
+ +2、员工登录自己的账号,进入设置->组织->员工认证 中认证 用微信扫一扫,会跳转至业主端页面
+ +#### b、工单提交给客服推送消息 + +1、在设置-> 系统->公众号 公众号信息页面配置相应模板消息,配置文档找管理员获取
+ +2、员工登录自己的账号,进入设置->组织->员工认证 中认证 用微信扫一扫,会跳转至业主端页面
+ +3、管理员登录后,进入 设置->组织->角色权限 下的功能权限,给报修登记通知权限(在组织->员工认证->报修登记通知) +