|
|
|
|
@ -38,16 +38,22 @@
|
|
|
|
|
</view>
|
|
|
|
|
<view class="info-obj g_flex_1 g_flex_column_center" style="margin: 0 10px;">
|
|
|
|
|
<view class="g_ell_1 g_fs_16 g_fw_600">
|
|
|
|
|
{{item.targetAgency.agencyName}}
|
|
|
|
|
{{item.sourceAgency.agencyName}}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_ell_1 g_fs_14" style="color: #666;margin-top: 8px;">
|
|
|
|
|
<view class="g_ell_1 g_fs_14" style="color: #666;margin-top: 4px;">
|
|
|
|
|
{{item.desp || '-'}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="status-obj g_flex_none g_flex_column_center" >
|
|
|
|
|
<view class="g_flex_row_end">
|
|
|
|
|
<g-button type='primary' size='mini' btnText='通过' @clickBtn='handleSet(item,1)'></g-button>
|
|
|
|
|
<g-button type='delete' size='mini' btnText='拒绝' style="margin-left: 12px;" @clickBtn='handleSet(item,0)'></g-button>
|
|
|
|
|
<g-button type='primary' size='mini' btnText='通过' @clickBtn='handleSet(item,1)'
|
|
|
|
|
v-if="item.state == 0"
|
|
|
|
|
></g-button>
|
|
|
|
|
<g-button type='delete' size='mini' btnText='拒绝' style="margin-left: 12px;" @clickBtn='handleSet(item,0)'
|
|
|
|
|
v-if="item.state == 0"
|
|
|
|
|
></g-button>
|
|
|
|
|
<view v-if="item.state == 1" style="color: green;font-size: 16px;">已通过</view>
|
|
|
|
|
<view v-if="item.state == 2" style="color: red;font-size: 16px;">已驳回</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -84,7 +90,7 @@
|
|
|
|
|
<view class="g_ell_1 g_fs_16 g_fw_600">
|
|
|
|
|
{{item.targetAgency.agencyName}}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_ell_1 g_fs_14" style="color: #666;margin-top: 8px;">
|
|
|
|
|
<view class="g_ell_1 g_fs_14" style="color: #666;margin-top: 4px;">
|
|
|
|
|
{{item.desp || '-'}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -157,6 +163,46 @@
|
|
|
|
|
</view>
|
|
|
|
|
</u-popup>
|
|
|
|
|
|
|
|
|
|
<u-popup v-model="createData.isShow" mode="center" border-radius="14" width="80%" :closeable='true'>
|
|
|
|
|
<view style="max-height: calc(100vh - 200px);overflow-y: auto;">
|
|
|
|
|
<view class="g_flex_c g_h_60 g_fs_16">安全验证</view>
|
|
|
|
|
<view>
|
|
|
|
|
<view>
|
|
|
|
|
<view class="g_fs_14 g_mb_12" style="padding: 0 12px;">
|
|
|
|
|
<text class="g_fw_600">[申请合并]</text>属于高敏感权限,基于账户安全考虑,请验证创建人手机号:{{createData.telEncrypt}}
|
|
|
|
|
</view>
|
|
|
|
|
<g-panel-form-slot
|
|
|
|
|
:list="[
|
|
|
|
|
{
|
|
|
|
|
icon: '',
|
|
|
|
|
label: '验证码',
|
|
|
|
|
result: '',
|
|
|
|
|
path: '',
|
|
|
|
|
tip: 'slot-code',
|
|
|
|
|
value: createData.code,
|
|
|
|
|
tel: createData.tel,
|
|
|
|
|
type: 'slot',
|
|
|
|
|
placeholder: '输入验证码',
|
|
|
|
|
pColumn: 12,
|
|
|
|
|
},
|
|
|
|
|
]"
|
|
|
|
|
@changeCode="getCode"
|
|
|
|
|
>
|
|
|
|
|
</g-panel-form-slot>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_flex_row_center g_p_16" style="padding-bottom: 0;">
|
|
|
|
|
<view class="g_flex_row_center" style="width: 50%;">
|
|
|
|
|
<g-button type='default' class="g_w_all" size='small' btnText='取消' @clickBtn='createData.isShow = false'></g-button>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_flex_row_center" style="width: 50%;">
|
|
|
|
|
<g-button type='primary' size='small' btnText='确定' @clickBtn='submitValidate'></g-button>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_h_20"></view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-popup>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@ -195,6 +241,12 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
applysRecord:[],
|
|
|
|
|
recivesRecord:[],
|
|
|
|
|
createData:{
|
|
|
|
|
isShow:false,
|
|
|
|
|
code:'',
|
|
|
|
|
tel: "",
|
|
|
|
|
telEncrypt: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
@ -220,12 +272,21 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
openApply(){
|
|
|
|
|
let that = this;
|
|
|
|
|
that.modalApplyData = {
|
|
|
|
|
isShow:true,
|
|
|
|
|
tel:'',
|
|
|
|
|
desp:'',
|
|
|
|
|
resultList:[],
|
|
|
|
|
selectResult:''
|
|
|
|
|
if(that.applysRecord && that.applysRecord.length < 1){
|
|
|
|
|
that.G.Get(that.api.person_getCreatorTel,{},(createRes)=>{
|
|
|
|
|
console.log('创建人手机号:',createRes)
|
|
|
|
|
that.createData = {
|
|
|
|
|
isShow:true,
|
|
|
|
|
code:'',
|
|
|
|
|
tel: createRes.tel,
|
|
|
|
|
telEncrypt: createRes.telEncrypt
|
|
|
|
|
};
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon:'none',
|
|
|
|
|
title:'只能有一个审核中的合并申请'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleSearch(){
|
|
|
|
|
@ -258,13 +319,13 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if(!that.modalApplyData.desp){
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon:'none',
|
|
|
|
|
title:'请输入备注'
|
|
|
|
|
})
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
// if(!that.modalApplyData.desp){
|
|
|
|
|
// uni.showToast({
|
|
|
|
|
// icon:'none',
|
|
|
|
|
// title:'请输入备注'
|
|
|
|
|
// })
|
|
|
|
|
// return false;
|
|
|
|
|
// }
|
|
|
|
|
that.G.Post(that.api.person_addApply,{
|
|
|
|
|
sourceAgencyId:uni.getStorageSync("apply-userinfo").agencyId,
|
|
|
|
|
targetAgencyId:that.modalApplyData.selectResult,
|
|
|
|
|
@ -304,7 +365,7 @@ export default {
|
|
|
|
|
if(res.confirm){
|
|
|
|
|
that.G.Get(that.api.person_applyFalse + '/' + $data.id,{},()=>{
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon:'error',
|
|
|
|
|
icon:'success',
|
|
|
|
|
title:'已拒绝'
|
|
|
|
|
});
|
|
|
|
|
that.getList();
|
|
|
|
|
@ -313,6 +374,41 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getCode(e) {
|
|
|
|
|
this.createData.code = e;
|
|
|
|
|
console.log(e);
|
|
|
|
|
},
|
|
|
|
|
submitValidate(){
|
|
|
|
|
let that = this;
|
|
|
|
|
if(!that.createData.code){
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon:'none',
|
|
|
|
|
title:'请输入验证码'
|
|
|
|
|
})
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
that.G.Post(that.api.person_validateMsgCode,{
|
|
|
|
|
tel: that.createData.tel,
|
|
|
|
|
code: that.createData.code,
|
|
|
|
|
},(res)=>{
|
|
|
|
|
console.log('res',res)
|
|
|
|
|
that.createData = {
|
|
|
|
|
isShow:false,
|
|
|
|
|
code:'',
|
|
|
|
|
tel: '',
|
|
|
|
|
telEncrypt: ''
|
|
|
|
|
};
|
|
|
|
|
that.modalApplyData = {
|
|
|
|
|
isShow:true,
|
|
|
|
|
tel:'',
|
|
|
|
|
desp:'',
|
|
|
|
|
resultList:[],
|
|
|
|
|
selectResult:''
|
|
|
|
|
}
|
|
|
|
|
},(err)=>{
|
|
|
|
|
console.log('err',err)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|