|
@@ -36,7 +36,7 @@
|
|
|
<div class="mui-media-object mui-pull-left vongi-buka"><img :src="item.faceImageUrl"></div>
|
|
|
<div class="mui-media-body">
|
|
|
{{item.name}}
|
|
|
- <p class='mui-ellipsis'>申请注册为<span class="colorfe616c" v-text="item.personRoleName"></span></p>
|
|
|
+ <p class='mui-ellipsis'>申请注册为<span class="colorfe616c" v-text="item.personRoleName+(item.structureName?' '+item.structureName:'')"></span></p>
|
|
|
<p class='mui-ellipsis'>{{showTel(item.telephone)}}</p>
|
|
|
<h5 class="vongi-bksp-time" v-text="item.createTime.substr(5)"></h5>
|
|
|
</div>
|
|
@@ -58,7 +58,7 @@
|
|
|
<div class="mui-media-object mui-pull-left vongi-buka"><img :src="item.faceImageUrl"></div>
|
|
|
<div class="mui-media-body">
|
|
|
{{item.name}}
|
|
|
- <p class='mui-ellipsis' v-text="item.personRoleName"></p>
|
|
|
+ <p class='mui-ellipsis' v-text="item.personRoleName+(item.structureName?' '+item.structureName:'')"></p>
|
|
|
<p class='mui-ellipsis'>{{showTel(item.telephone)}}</p>
|
|
|
</div>
|
|
|
<button type="button" :class="'mui-btn mui-btn-success mui-btn-outlined '+(item.status>0?(item.status==1?'status_a':'status_r'):'')"
|
|
@@ -169,7 +169,7 @@
|
|
|
this.firstRecordsTotal = response.recordsTotal;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
this.listForm.pageIndex++;
|
|
|
this.isLoading = false;
|
|
|
}).catch(error => {
|
|
@@ -235,20 +235,35 @@
|
|
|
if (e.index == 1) {
|
|
|
//同意
|
|
|
if (_this.subForm.status == 1) {
|
|
|
- _this.set_register_examine_form(_this.subForm);
|
|
|
- if (_this.hasSceneId1) {
|
|
|
- _this.$router.push({
|
|
|
- name: 'MasterCompanyRegisterSelectDepartment',
|
|
|
- })
|
|
|
- } else {
|
|
|
- _this.$router.push({
|
|
|
- name: 'MasterCompanyRegisterSelectDevice',
|
|
|
- query: {
|
|
|
- hasSceneId1: _this.hasSceneId1 ? '1' : '0',
|
|
|
- hasSceneId4: _this.hasSceneId4 ? '1' : '0',
|
|
|
- }
|
|
|
+ if(_this.hasSceneId2){//场景值2 直接同意
|
|
|
+ //同意
|
|
|
+ _this.isLoading = true;
|
|
|
+ API_Company.doApply(_this.subForm).then(response => {
|
|
|
+ _this.isLoading = false;
|
|
|
+ mui.toast('处理成功');
|
|
|
+ _this.listForm.pageIndex = 1;
|
|
|
+ _this.getList();
|
|
|
+ }).catch(error => {
|
|
|
+ _this.isLoading = false;
|
|
|
+ mui.toast(error);
|
|
|
})
|
|
|
+ }else{
|
|
|
+ _this.set_register_examine_form(_this.subForm);
|
|
|
+ if (_this.hasSceneId1) {
|
|
|
+ _this.$router.push({
|
|
|
+ name: 'MasterCompanyRegisterSelectDepartment',
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ _this.$router.push({
|
|
|
+ name: 'MasterCompanyRegisterSelectDevice',
|
|
|
+ query: {
|
|
|
+ hasSceneId1: _this.hasSceneId1 ? '1' : '0',
|
|
|
+ hasSceneId4: _this.hasSceneId4 ? '1' : '0',
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
} else {
|
|
|
//拒绝
|
|
|
_this.isLoading = true;
|
|
@@ -300,6 +315,24 @@
|
|
|
console.log(newValue)
|
|
|
}
|
|
|
},
|
|
|
+ hasSceneId2: {
|
|
|
+ // 全是场景2
|
|
|
+ get: function() {
|
|
|
+
|
|
|
+ for (var i = 0; i < this.recordList.length; i++) {
|
|
|
+ if (this.selectIdList.indexOf(this.recordList[i]['id']) > -1 && this.recordList[i]['sceneId'] == '2') {
|
|
|
+
|
|
|
+ }else{
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ },
|
|
|
+ // setter
|
|
|
+ set: function(newValue) {
|
|
|
+ console.log(newValue)
|
|
|
+ }
|
|
|
+ },
|
|
|
hasSceneId4: {
|
|
|
// getter
|
|
|
get: function() {
|