| | |
| | | <div id = "addAuditUserModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" > |
| | | <div id="addAuditUserModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" |
| | | aria-hidden="true"> |
| | | <div class="modal-dialog modal-lg"> |
| | | <div class="modal-content"> |
| | | <div class="modal-body"> |
| | |
| | | </div>--> |
| | | |
| | | <div class="form-group row"> |
| | | <label class="col-sm-2 col-form-label">用户ID</label> |
| | | <div class="col-sm-10"> |
| | | <input v-model="addAuditUserInfo.userId" type="text" placeholder="必填,请填写用户ID" class="form-control"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row"> |
| | | <label class="col-sm-2 col-form-label">用户名称</label> |
| | | <div class="col-sm-10"> |
| | | <input v-model="addAuditUserInfo.userName" type="text" placeholder="必填,请填写用户名称" class="form-control"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row"> |
| | | <label class="col-sm-2 col-form-label">审核环节</label> |
| | | <div class="col-sm-10"> |
| | | <select class="custom-select" v-model="addAuditUserInfo.auditLink"> |
| | | <option selected disabled value="">必填,请选择审核环节</option> |
| | | <option value="809001">部门主管</option> |
| | | <option value="809002">财务主管</option> |
| | | <option value="809003">采购人员</option> |
| | | </select> </div> |
| | | </div> |
| | | <div class="form-group row"> |
| | | <label class="col-sm-2 col-form-label">流程对象</label> |
| | | <div class="col-sm-10"> |
| | | <input v-model="addAuditUserInfo.objCode" type="text" placeholder="必填,请填写流程对象" class="form-control"> |
| | | </div> |
| | | </div> |
| | | <label class="col-sm-2 col-form-label">用户ID</label> |
| | | <div class="col-sm-10"> |
| | | <input v-model="addAuditUserInfo.userId" type="text" placeholder="必填,请填写用户ID" |
| | | class="form-control"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row"> |
| | | <label class="col-sm-2 col-form-label">用户名称</label> |
| | | <div class="col-sm-10"> |
| | | <input v-model="addAuditUserInfo.userName" type="text" placeholder="必填,请填写用户名称" |
| | | class="form-control"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row"> |
| | | <label class="col-sm-2 col-form-label">审核环节</label> |
| | | <div class="col-sm-10"> |
| | | <select class="custom-select" v-model="addAuditUserInfo.auditLink"> |
| | | <option selected disabled value="">必填,请选择审核环节</option> |
| | | <option value="809001">部门主管</option> |
| | | <option value="809002">财务主管</option> |
| | | <option value="809003">采购人员</option> |
| | | </select></div> |
| | | </div> |
| | | <div class="form-group row"> |
| | | <label class="col-sm-2 col-form-label">流程对象</label> |
| | | <div class="col-sm-10"> |
| | | <input v-model="addAuditUserInfo.objCode" type="text" placeholder="必填,请填写流程对象" |
| | | class="form-control"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="ibox-content"> |
| | | <button class="btn btn-primary float-right" type="button" v-on:click="saveAuditUserInfo()" ><i class="fa fa-check"></i> 保存</button> |
| | | <button type="button" class="btn btn-warning float-right" style="margin-right:20px;" data-dismiss="modal">取消</button> |
| | | <button class="btn btn-primary float-right" type="button" |
| | | v-on:click="saveAuditUserInfo()"><i class="fa fa-check"></i> 保存 |
| | | </button> |
| | | <button type="button" class="btn btn-warning float-right" style="margin-right:20px;" |
| | | data-dismiss="modal">取消 |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | (function(vc){ |
| | | (function (vc) { |
| | | |
| | | vc.extends({ |
| | | propTypes: { |
| | | callBackListener:vc.propTypes.string, //父组件名称 |
| | | callBackFunction:vc.propTypes.string //父组件监听方法 |
| | | callBackListener: vc.propTypes.string, //父组件名称 |
| | | callBackFunction: vc.propTypes.string //父组件监听方法 |
| | | }, |
| | | data:{ |
| | | addAuditUserInfo:{ |
| | | auditUserId:'', |
| | | userId:'', |
| | | userName:'', |
| | | auditLink:'', |
| | | objCode:'', |
| | | data: { |
| | | addAuditUserInfo: { |
| | | auditUserId: '', |
| | | userId: '', |
| | | userName: '', |
| | | auditLink: '', |
| | | objCode: '', |
| | | |
| | | } |
| | | }, |
| | | _initMethod:function(){ |
| | | _initMethod: function () { |
| | | |
| | | }, |
| | | _initEvent:function(){ |
| | | vc.on('addAuditUser','openAddAuditUserModal',function(){ |
| | | }, |
| | | _initEvent: function () { |
| | | vc.on('addAuditUser', 'openAddAuditUserModal', function () { |
| | | $('#addAuditUserModel').modal('show'); |
| | | }); |
| | | }, |
| | | methods:{ |
| | | addAuditUserValidate(){ |
| | | methods: { |
| | | addAuditUserValidate() { |
| | | return vc.validate.validate({ |
| | | addAuditUserInfo:vc.component.addAuditUserInfo |
| | | },{ |
| | | 'addAuditUserInfo.userId':[ |
| | | { |
| | | limit:"required", |
| | | param:"", |
| | | errInfo:"用户ID不能为空" |
| | | addAuditUserInfo: vc.component.addAuditUserInfo |
| | | }, { |
| | | 'addAuditUserInfo.userId': [ |
| | | { |
| | | limit: "required", |
| | | param: "", |
| | | errInfo: "用户ID不能为空" |
| | | }, |
| | | { |
| | | limit:"num", |
| | | param:"", |
| | | errInfo:"用户ID必须为数字" |
| | | { |
| | | limit: "num", |
| | | param: "", |
| | | errInfo: "用户ID必须为数字" |
| | | }, |
| | | ], |
| | | 'addAuditUserInfo.userName':[ |
| | | { |
| | | limit:"required", |
| | | param:"", |
| | | errInfo:"用户名称不能为空" |
| | | 'addAuditUserInfo.userName': [ |
| | | { |
| | | limit: "required", |
| | | param: "", |
| | | errInfo: "用户名称不能为空" |
| | | }, |
| | | { |
| | | limit:"maxin", |
| | | param:"2,50", |
| | | errInfo:"用户名称必须在2至50字符之间" |
| | | { |
| | | limit: "maxin", |
| | | param: "2,50", |
| | | errInfo: "用户名称必须在2至50字符之间" |
| | | }, |
| | | ], |
| | | 'addAuditUserInfo.auditLink':[ |
| | | { |
| | | limit:"required", |
| | | param:"", |
| | | errInfo:"审核环节不能为空" |
| | | 'addAuditUserInfo.auditLink': [ |
| | | { |
| | | limit: "required", |
| | | param: "", |
| | | errInfo: "审核环节不能为空" |
| | | }, |
| | | { |
| | | limit:"num", |
| | | param:"", |
| | | errInfo:"审核环节格式错误" |
| | | { |
| | | limit: "num", |
| | | param: "", |
| | | errInfo: "审核环节格式错误" |
| | | }, |
| | | ], |
| | | 'addAuditUserInfo.objCode':[ |
| | | { |
| | | limit:"required", |
| | | param:"", |
| | | errInfo:"流程对象不能为空" |
| | | 'addAuditUserInfo.objCode': [ |
| | | { |
| | | limit: "required", |
| | | param: "", |
| | | errInfo: "流程对象不能为空" |
| | | }, |
| | | { |
| | | limit:"maxLength", |
| | | param:"64", |
| | | errInfo:"物品库存不能大于64位" |
| | | { |
| | | limit: "maxLength", |
| | | param: "64", |
| | | errInfo: "物品库存不能大于64位" |
| | | }, |
| | | ], |
| | | |
| | | |
| | | |
| | | |
| | | }); |
| | | }, |
| | | saveAuditUserInfo:function(){ |
| | | if(!vc.component.addAuditUserValidate()){ |
| | | saveAuditUserInfo: function () { |
| | | if (!vc.component.addAuditUserValidate()) { |
| | | vc.message(vc.validate.errInfo); |
| | | |
| | | return ; |
| | | return; |
| | | } |
| | | |
| | | vc.component.addAuditUserInfo.communityId = vc.getCurrentCommunity().communityId; |
| | | //不提交数据将数据 回调给侦听处理 |
| | | if(vc.notNull($props.callBackListener)){ |
| | | vc.emit($props.callBackListener,$props.callBackFunction,vc.component.addAuditUserInfo); |
| | | if (vc.notNull($props.callBackListener)) { |
| | | vc.emit($props.callBackListener, $props.callBackFunction, vc.component.addAuditUserInfo); |
| | | $('#addAuditUserModel').modal('hide'); |
| | | return ; |
| | | return; |
| | | } |
| | | |
| | | vc.http.post( |
| | |
| | | 'save', |
| | | JSON.stringify(vc.component.addAuditUserInfo), |
| | | { |
| | | emulateJSON:true |
| | | }, |
| | | function(json,res){ |
| | | emulateJSON: true |
| | | }, |
| | | function (json, res) { |
| | | //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); |
| | | if(res.status == 200){ |
| | | if (res.status == 200) { |
| | | //关闭model |
| | | $('#addAuditUserModel').modal('hide'); |
| | | vc.component.clearAddAuditUserInfo(); |
| | | vc.emit('auditUserManage','listAuditUser',{}); |
| | | vc.emit('auditUserManage', 'listAuditUser', {}); |
| | | |
| | | return ; |
| | | return; |
| | | } |
| | | vc.message(json); |
| | | |
| | | }, |
| | | function(errInfo,error){ |
| | | }, |
| | | function (errInfo, error) { |
| | | console.log('请求失败处理'); |
| | | |
| | | vc.message(errInfo); |
| | | |
| | | }); |
| | | }); |
| | | }, |
| | | clearAddAuditUserInfo:function(){ |
| | | clearAddAuditUserInfo: function () { |
| | | vc.component.addAuditUserInfo = { |
| | | userId:'', |
| | | userName:'', |
| | | auditLink:'', |
| | | objCode:'', |
| | | userId: '', |
| | | userName: '', |
| | | auditLink: '', |
| | | objCode: '', |
| | | |
| | | }; |
| | | }; |
| | | } |
| | | } |
| | | }); |
| | |
| | | <div class="ibox-title"> |
| | | <h5>查询条件</h5> |
| | | <div class="ibox-tools" style="top:10px;"> |
| | | |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="ibox-content"> |
| | | <div class="row"> |
| | | <div class="col-sm-4" > |
| | | <div class="form-group"> |
| | | <input type="text" placeholder="请输入审核ID" v-model="auditUserManageInfo.conditions.auditUserId" class=" form-control"> |
| | | </div> </div><div class="col-sm-4" > |
| | | <div class="form-group"> |
| | | <input type="text" placeholder="请输入审核人员" v-model="auditUserManageInfo.conditions.userName" class=" form-control"> |
| | | </div> </div><div class="col-sm-3" > |
| | | <select class="custom-select" v-model="auditUserManageInfo.conditions.auditLink"> |
| | | <option selected value="">请选择审核环节</option> |
| | | <option value="809001">部门主管</option> |
| | | <option value="809002">财务主管</option> |
| | | <option value="809003">采购人员</option> |
| | | </select> </div><div class="col-sm-1"> |
| | | <div class="col-sm-4"> |
| | | <div class="form-group"> |
| | | <input type="text" placeholder="请输入审核ID" |
| | | v-model="auditUserManageInfo.conditions.auditUserId" class=" form-control"> |
| | | </div> |
| | | </div> |
| | | <div class="col-sm-4"> |
| | | <div class="form-group"> |
| | | <input type="text" placeholder="请输入审核人员" |
| | | v-model="auditUserManageInfo.conditions.userName" class=" form-control"> |
| | | </div> |
| | | </div> |
| | | <div class="col-sm-3"> |
| | | <select class="custom-select" v-model="auditUserManageInfo.conditions.auditLink"> |
| | | <option selected value="">请选择审核环节</option> |
| | | <option value="809001">部门主管</option> |
| | | <option value="809002">财务主管</option> |
| | | <option value="809003">采购人员</option> |
| | | </select></div> |
| | | <div class="col-sm-1"> |
| | | <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryAuditUserMethod()"> |
| | | <i class="glyphicon glyphicon-search"></i> 查询 |
| | | <i class="glyphicon glyphicon-search"></i> 查询 |
| | | </button> |
| | | </div></div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | |
| | | > |
| | | <thead> |
| | | <tr> |
| | | <th class="text-center">审核ID</th> |
| | | <th class="text-center">审核ID</th> |
| | | <th class="text-center">用户ID</th> |
| | | <th class="text-center">用户名称</th> |
| | | <th class="text-center">审核环节</th> |
| | |
| | | </thead> |
| | | <tbody> |
| | | <tr v-for="auditUser in auditUserManageInfo.auditUsers"> |
| | | <td class="text-center">{{auditUser.auditUserId}}</td> |
| | | <td class="text-center">{{auditUser.auditUserId}}</td> |
| | | <td class="text-center">{{auditUser.userId}}</td> |
| | | <td class="text-center">{{auditUser.userName}}</td> |
| | | <td class="text-center">{{auditUser.auditLink}}</td> |
| | | <td class="text-center"><div class="btn-group"> |
| | | <button class="btn-white btn btn-xs" v-on:click="_openEditAuditUserModel(auditUser)">修改</button> |
| | | </div> |
| | | <td class="text-center"> |
| | | <div class="btn-group"> |
| | | <button class="btn-white btn btn-xs" v-on:click="_openDeleteAuditUserModel(auditUser)">删除</button> |
| | | </div></td> |
| | | <button class="btn-white btn btn-xs" |
| | | v-on:click="_openDeleteAuditUserModel(auditUser)">删除 |
| | | </button> |
| | | </div> |
| | | </td> |
| | | |
| | | </tr> |
| | | </tbody> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | |
| | | <vc:create name="addAuditUser" |
| | | callBackListener="" |
| | | callBackFunction="" |
| | | ></vc:create> |
| | | <vc:create name="editAuditUser"></vc:create> |
| | | <vc:create name="deleteAuditUser"></vc:create> |
| | | |
| | | </div> |
| | |
| | | <div id = "chooseAuditUserModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="chooseAuditUserModelLabel" aria-hidden="true" > |
| | | <div id="chooseAuditUserModel" class="modal fade" tabindex="-1" role="dialog" |
| | | aria-labelledby="chooseAuditUserModelLabel" aria-hidden="true"> |
| | | <div class="modal-dialog modal-lg"> |
| | | <div class="modal-content"> |
| | | <div class="modal-header"> |
| | |
| | | </div> |
| | | <div class="col-sm-5"> |
| | | <div class="input-group"> |
| | | <input placeholder="输入审核人员名称" type="text" v-model="chooseAuditUserInfo._currentAuditUserName" class="form-control form-control-sm"> |
| | | <input placeholder="输入审核人员名称" type="text" |
| | | v-model="chooseAuditUserInfo._currentAuditUserName" |
| | | class="form-control form-control-sm"> |
| | | <span class="input-group-append"> |
| | | <button type="button" class="btn btn-sm btn-primary" v-on:click="queryAuditUsers()">查询</button> |
| | | <button type="button" class="btn btn-sm btn-primary" |
| | | v-on:click="queryAuditUsers()">查询</button> |
| | | </span> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="table-responsive" style="margin-top:15px"> |
| | | <table class="table table-striped"> |
| | | <thead> |
| | | <tr> |
| | | <th class="text-center">审核ID</th> |
| | | <th class="text-center">用户ID</th> |
| | | <th class="text-center">用户名称</th> |
| | | <th class="text-center">审核环节</th> |
| | | <th class="text-center">流程对象</th> |
| | | <th class="text-center">操作</th> |
| | | <tr> |
| | | <th class="text-center">审核ID</th> |
| | | <th class="text-center">用户ID</th> |
| | | <th class="text-center">用户名称</th> |
| | | <th class="text-center">审核环节</th> |
| | | <th class="text-center">流程对象</th> |
| | | <th class="text-center">操作</th> |
| | | |
| | | </tr> |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | | <tr v-for="auditUser in chooseAuditUserInfo.auditUsers"> |
| | | <td class="text-center">{{auditUser.auditUserId}}</td> |
| | | <td class="text-center">{{auditUser.userId}}</td> |
| | | <td class="text-center">{{auditUser.userName}}</td> |
| | | <td class="text-center">{{auditUser.auditLink}}</td> |
| | | <td class="text-center">{{auditUser.objCode}}</td> |
| | | <tr v-for="auditUser in chooseAuditUserInfo.auditUsers"> |
| | | <td class="text-center">{{auditUser.auditUserId}}</td> |
| | | <td class="text-center">{{auditUser.userId}}</td> |
| | | <td class="text-center">{{auditUser.userName}}</td> |
| | | <td class="text-center">{{auditUser.auditLink}}</td> |
| | | <td class="text-center">{{auditUser.objCode}}</td> |
| | | |
| | | <td> |
| | | <button class="btn btn-primary btn-xs" v-on:click="chooseAuditUser(auditUser)">选择</button> |
| | | </td> |
| | | </tr> |
| | | <td> |
| | | <button class="btn btn-primary btn-xs" |
| | | v-on:click="chooseAuditUser(auditUser)">选择 |
| | | </button> |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | |
| | | (function(vc){ |
| | | (function (vc) { |
| | | vc.extends({ |
| | | propTypes: { |
| | | emitChooseAuditUser:vc.propTypes.string, |
| | | emitLoadData:vc.propTypes.string |
| | | emitChooseAuditUser: vc.propTypes.string, |
| | | emitLoadData: vc.propTypes.string |
| | | }, |
| | | data:{ |
| | | chooseAuditUserInfo:{ |
| | | auditUsers:[], |
| | | _currentAuditUserName:'', |
| | | data: { |
| | | chooseAuditUserInfo: { |
| | | auditUsers: [], |
| | | _currentAuditUserName: '', |
| | | } |
| | | }, |
| | | _initMethod:function(){ |
| | | _initMethod: function () { |
| | | }, |
| | | _initEvent:function(){ |
| | | vc.on('chooseAuditUser','openChooseAuditUserModel',function(_param){ |
| | | _initEvent: function () { |
| | | vc.on('chooseAuditUser', 'openChooseAuditUserModel', function (_param) { |
| | | $('#chooseAuditUserModel').modal('show'); |
| | | vc.component._refreshChooseAuditUserInfo(); |
| | | vc.component._loadAllAuditUserInfo(1,10,''); |
| | | vc.component._loadAllAuditUserInfo(1, 10, ''); |
| | | }); |
| | | }, |
| | | methods:{ |
| | | _loadAllAuditUserInfo:function(_page,_row,_name){ |
| | | methods: { |
| | | _loadAllAuditUserInfo: function (_page, _row, _name) { |
| | | var param = { |
| | | params:{ |
| | | page:_page, |
| | | row:_row, |
| | | communityId:vc.getCurrentCommunity().communityId, |
| | | name:_name |
| | | params: { |
| | | page: _page, |
| | | row: _row, |
| | | communityId: vc.getCurrentCommunity().communityId, |
| | | name: _name |
| | | } |
| | | }; |
| | | |
| | | //发送get请求 |
| | | vc.http.get('chooseAuditUser', |
| | | 'list', |
| | | param, |
| | | function(json){ |
| | | var _auditUserInfo = JSON.parse(json); |
| | | vc.component.chooseAuditUserInfo.auditUsers = _auditUserInfo.auditUsers; |
| | | },function(){ |
| | | console.log('请求失败处理'); |
| | | } |
| | | ); |
| | | vc.http.get('chooseAuditUser', |
| | | 'list', |
| | | param, |
| | | function (json) { |
| | | var _auditUserInfo = JSON.parse(json); |
| | | vc.component.chooseAuditUserInfo.auditUsers = _auditUserInfo.auditUsers; |
| | | }, function () { |
| | | console.log('请求失败处理'); |
| | | } |
| | | ); |
| | | }, |
| | | chooseAuditUser:function(_auditUser){ |
| | | if(_auditUser.hasOwnProperty('name')){ |
| | | _auditUser.auditUserName = _auditUser.name; |
| | | chooseAuditUser: function (_auditUser) { |
| | | if (_auditUser.hasOwnProperty('name')) { |
| | | _auditUser.auditUserName = _auditUser.name; |
| | | } |
| | | vc.emit($props.emitChooseAuditUser,'chooseAuditUser',_auditUser); |
| | | vc.emit($props.emitLoadData,'listAuditUserData',{ |
| | | auditUserId:_auditUser.auditUserId |
| | | vc.emit($props.emitChooseAuditUser, 'chooseAuditUser', _auditUser); |
| | | vc.emit($props.emitLoadData, 'listAuditUserData', { |
| | | auditUserId: _auditUser.auditUserId |
| | | }); |
| | | $('#chooseAuditUserModel').modal('hide'); |
| | | }, |
| | | queryAuditUsers:function(){ |
| | | vc.component._loadAllAuditUserInfo(1,10,vc.component.chooseAuditUserInfo._currentAuditUserName); |
| | | queryAuditUsers: function () { |
| | | vc.component._loadAllAuditUserInfo(1, 10, vc.component.chooseAuditUserInfo._currentAuditUserName); |
| | | }, |
| | | _refreshChooseAuditUserInfo:function(){ |
| | | _refreshChooseAuditUserInfo: function () { |
| | | vc.component.chooseAuditUserInfo._currentAuditUserName = ""; |
| | | } |
| | | } |
| | |
| | | (function(vc,vm){ |
| | | (function (vc, vm) { |
| | | |
| | | vc.extends({ |
| | | data:{ |
| | | deleteAuditUserInfo:{ |
| | | |
| | | } |
| | | data: { |
| | | deleteAuditUserInfo: {} |
| | | }, |
| | | _initMethod:function(){ |
| | | _initMethod: function () { |
| | | |
| | | }, |
| | | _initEvent:function(){ |
| | | vc.on('deleteAuditUser','openDeleteAuditUserModal',function(_params){ |
| | | }, |
| | | _initEvent: function () { |
| | | vc.on('deleteAuditUser', 'openDeleteAuditUserModal', function (_params) { |
| | | |
| | | vc.component.deleteAuditUserInfo = _params; |
| | | $('#deleteAuditUserModel').modal('show'); |
| | | |
| | | }); |
| | | }, |
| | | methods:{ |
| | | deleteAuditUser:function(){ |
| | | vc.component.deleteAuditUserInfo.communityId=vc.getCurrentCommunity().communityId; |
| | | methods: { |
| | | deleteAuditUser: function () { |
| | | vc.component.deleteAuditUserInfo.communityId = vc.getCurrentCommunity().communityId; |
| | | vc.http.post( |
| | | 'deleteAuditUser', |
| | | 'delete', |
| | | JSON.stringify(vc.component.deleteAuditUserInfo), |
| | | { |
| | | emulateJSON:true |
| | | }, |
| | | function(json,res){ |
| | | emulateJSON: true |
| | | }, |
| | | function (json, res) { |
| | | //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); |
| | | if(res.status == 200){ |
| | | if (res.status == 200) { |
| | | //关闭model |
| | | $('#deleteAuditUserModel').modal('hide'); |
| | | vc.emit('auditUserManage','listAuditUser',{}); |
| | | return ; |
| | | vc.emit('auditUserManage', 'listAuditUser', {}); |
| | | return; |
| | | } |
| | | vc.message(json); |
| | | }, |
| | | function(errInfo,error){ |
| | | }, |
| | | function (errInfo, error) { |
| | | console.log('请求失败处理'); |
| | | vc.message(json); |
| | | |
| | | }); |
| | | }); |
| | | }, |
| | | closeDeleteAuditUserModel:function(){ |
| | | closeDeleteAuditUserModel: function () { |
| | | $('#deleteAuditUserModel').modal('hide'); |
| | | } |
| | | } |
| | | }); |
| | | |
| | | })(window.vc,window.vc.component); |
| | | })(window.vc, window.vc.component); |
| | |
| | | <div class="ibox-title"> |
| | | <h5>审核人员信息</h5> |
| | | <div class="ibox-tools" style="top:10px;"> |
| | | <button type="button" v-if="viewAuditUserInfo.index != 2" class="btn btn-primary btn-sm" style="margin-right:10px;" v-on:click="_openSelectAuditUserInfoModel()"> |
| | | <i class="glyphicon glyphicon-search"></i> 选择审核人员</button> |
| | | <button type="button" v-if="viewAuditUserInfo.index != 2" class="btn btn-primary btn-sm" |
| | | style="margin-right:10px;" v-on:click="_openSelectAuditUserInfoModel()"> |
| | | <i class="glyphicon glyphicon-search"></i> 选择审核人员 |
| | | </button> |
| | | |
| | | <button type="button" v-if="viewAuditUserInfo.index != 2" class="btn btn-primary btn-sm" v-on:click="_openAddAuditUserInfoModel()"> |
| | | <i class="glyphicon glyphicon-plus"></i> 添加审核人员</button> |
| | | <button type="button" v-if="viewAuditUserInfo.index != 2" class="btn btn-primary btn-sm" |
| | | v-on:click="_openAddAuditUserInfoModel()"> |
| | | <i class="glyphicon glyphicon-plus"></i> 添加审核人员 |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="ibox-content"> |
| | | <div class="row"> |
| | | <div class="col-sm-4"> |
| | | <div class="col-sm-4"> |
| | | <div class="form-group"> |
| | | <label class="col-form-label" >用户ID:</label> |
| | | <label class="col-form-label">用户ID:</label> |
| | | <label class="">{{viewAuditUserInfo.userId}}</label> |
| | | </div> |
| | | </div> |
| | | <div class="col-sm-4"> |
| | | </div> |
| | | <div class="col-sm-4"> |
| | | <div class="form-group"> |
| | | <label class="col-form-label" >用户名称:</label> |
| | | <label class="col-form-label">用户名称:</label> |
| | | <label class="">{{viewAuditUserInfo.userName}}</label> |
| | | </div> |
| | | </div> |
| | | <div class="col-sm-4"> |
| | | </div> |
| | | <div class="col-sm-4"> |
| | | <div class="form-group"> |
| | | <label class="col-form-label" >审核环节:</label> |
| | | <label class="col-form-label">审核环节:</label> |
| | | <label class="">{{viewAuditUserInfo.auditLink}}</label> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="row"> |
| | | <div class="col-sm-4"> |
| | | </div> |
| | | </div> |
| | | <div class="row"> |
| | | <div class="col-sm-4"> |
| | | <div class="form-group"> |
| | | <label class="col-form-label" >流程对象:</label> |
| | | <label class="col-form-label">流程对象:</label> |
| | | <label class="">{{viewAuditUserInfo.objCode}}</label> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | |
| | | /** |
| | | 审核人员 组件 |
| | | **/ |
| | | (function(vc){ |
| | | 审核人员 组件 |
| | | **/ |
| | | (function (vc) { |
| | | |
| | | vc.extends({ |
| | | propTypes: { |
| | | callBackListener:vc.propTypes.string, //父组件名称 |
| | | callBackFunction:vc.propTypes.string //父组件监听方法 |
| | | callBackListener: vc.propTypes.string, //父组件名称 |
| | | callBackFunction: vc.propTypes.string //父组件监听方法 |
| | | }, |
| | | data:{ |
| | | viewAuditUserInfo:{ |
| | | index:0, |
| | | flowComponent:'viewAuditUserInfo', |
| | | userId:'', |
| | | userName:'', |
| | | auditLink:'', |
| | | objCode:'', |
| | | data: { |
| | | viewAuditUserInfo: { |
| | | index: 0, |
| | | flowComponent: 'viewAuditUserInfo', |
| | | userId: '', |
| | | userName: '', |
| | | auditLink: '', |
| | | objCode: '', |
| | | |
| | | } |
| | | }, |
| | | _initMethod:function(){ |
| | | _initMethod: function () { |
| | | //根据请求参数查询 查询 业主信息 |
| | | vc.component._loadAuditUserInfoData(); |
| | | }, |
| | | _initEvent:function(){ |
| | | vc.on('viewAuditUserInfo','chooseAuditUser',function(_app){ |
| | | _initEvent: function () { |
| | | vc.on('viewAuditUserInfo', 'chooseAuditUser', function (_app) { |
| | | vc.copyObject(_app, vc.component.viewAuditUserInfo); |
| | | vc.emit($props.callBackListener,$props.callBackFunction,vc.component.viewAuditUserInfo); |
| | | vc.emit($props.callBackListener, $props.callBackFunction, vc.component.viewAuditUserInfo); |
| | | }); |
| | | |
| | | vc.on('viewAuditUserInfo', 'onIndex', function(_index){ |
| | | vc.on('viewAuditUserInfo', 'onIndex', function (_index) { |
| | | vc.component.viewAuditUserInfo.index = _index; |
| | | }); |
| | | |
| | | }, |
| | | methods:{ |
| | | methods: { |
| | | |
| | | _openSelectAuditUserInfoModel(){ |
| | | vc.emit('chooseAuditUser','openChooseAuditUserModel',{}); |
| | | _openSelectAuditUserInfoModel() { |
| | | vc.emit('chooseAuditUser', 'openChooseAuditUserModel', {}); |
| | | }, |
| | | _openAddAuditUserInfoModel(){ |
| | | vc.emit('addAuditUser','openAddAuditUserModal',{}); |
| | | _openAddAuditUserInfoModel() { |
| | | vc.emit('addAuditUser', 'openAddAuditUserModal', {}); |
| | | }, |
| | | _loadAuditUserInfoData:function(){ |
| | | _loadAuditUserInfoData: function () { |
| | | |
| | | } |
| | | } |