no message

cyl/master-0804
jscyl13849007907 3 months ago
parent 415cf43c50
commit 3ad1d07510

@ -5,6 +5,10 @@ let personInfo = {// 用户信息模块
person_getMargeRecord: "/yishoudan/agency/merge/get",// 获取合并记录 person_getMargeRecord: "/yishoudan/agency/merge/get",// 获取合并记录
person_getGroup:'/yishoudan/agency/getAgencyByAdminTel',// 根据管理员手机号查团队 person_getGroup:'/yishoudan/agency/getAgencyByAdminTel',// 根据管理员手机号查团队
person_addApply:'/yishoudan/agency/merge/add',// 申请合并
person_applyTrue:'/yishoudan/agency/merge/agree',// 通过
person_applyFalse:'/yishoudan/agency/reject',// 驳回
person_applyNum:'/yishoudan/agency/merge/countApply',// 查询待处理数量
} }
export default personInfo; export default personInfo;

@ -53,6 +53,21 @@
</view> </view>
</view> </view>
</view> </view>
<view class="result-obj" style="padding: 12px 0 0 16px;" v-if="modalApplyData.resultList && modalApplyData.resultList.length > 0">
<u-radio-group v-model="modalApplyData.selectResult"
@change="radioGroupChange"
:wrap='true'
:active-color='themeColor'
>
<u-radio
@change="handleSelect"
v-for="(item, index) in modalApplyData.resultList" :key="index"
:name="item.agencyId"
>
{{item.agencyName || '-'}}
</u-radio>
</u-radio-group>
</view>
<view> <view>
<view class="g_pt_12 g_pb_8 g_pl_20 g_c_6">备注</view> <view class="g_pt_12 g_pb_8 g_pl_20 g_c_6">备注</view>
<textarea class="weui-input g_flex_1 g_fs_16" <textarea class="weui-input g_flex_1 g_fs_16"
@ -68,7 +83,7 @@
<g-button type='default' class="g_w_all" size='small' btnText='取消' @clickBtn='modalApplyData.isShow = false'></g-button> <g-button type='default' class="g_w_all" size='small' btnText='取消' @clickBtn='modalApplyData.isShow = false'></g-button>
</view> </view>
<view class="g_flex_row_center" style="width: 50%;"> <view class="g_flex_row_center" style="width: 50%;">
<g-button type='primary' size='small' btnText='提交'></g-button> <g-button type='primary' size='small' btnText='提交' @clickBtn='submitApply'></g-button>
</view> </view>
</view> </view>
<view class="g_h_20"></view> <view class="g_h_20"></view>
@ -89,6 +104,7 @@ export default {
}, },
data() { data() {
return { return {
themeColor: getApp().globalData.themeColor,
globalData: getApp().globalData, globalData: getApp().globalData,
cdnBaseImg: this.G.store().cdnBaseImg, cdnBaseImg: this.G.store().cdnBaseImg,
localBaseImg: this.G.store().localBaseImg, localBaseImg: this.G.store().localBaseImg,
@ -109,7 +125,8 @@ export default {
isShow:false, isShow:false,
tel:'', tel:'',
desp:'', desp:'',
result:[] resultList:[],
selectResult:''
} }
}; };
}, },
@ -138,7 +155,8 @@ export default {
isShow:true, isShow:true,
tel:'', tel:'',
desp:'', desp:'',
result:[], resultList:[],
selectResult:''
} }
}, },
handleSearch(){ handleSearch(){
@ -154,6 +172,41 @@ export default {
tel:that.modalApplyData.tel tel:that.modalApplyData.tel
},(res)=>{ },(res)=>{
console.log('团队res',res) console.log('团队res',res)
that.modalApplyData.resultList = res;
that.modalApplyData.selectResult = '';
})
},
handleSelect(e){
console.log('选择团队',e)
this.modalApplyData.selectResult = e;
},
submitApply(){
let that = this;
if(!that.modalApplyData.selectResult){
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,
desp:that.modalApplyData.desp
},(res)=>{
uni.showToast({
icon:'success',
title:'申请成功'
})
that.modalApplyData.isShow = false;
uni.navigateBack();
}) })
} }
}, },

Loading…
Cancel
Save