|
|
@@ -15,7 +15,6 @@ Page({
|
|
|
sa_agentsid: options.id,
|
|
|
appAuth
|
|
|
})
|
|
|
- console.log("appAuth", appAuth)
|
|
|
this.getDetail();
|
|
|
getApp().globalData.Language.getLanguagePackage(this, '经销商详情');
|
|
|
},
|
|
|
@@ -253,54 +252,6 @@ Page({
|
|
|
break;
|
|
|
}
|
|
|
},
|
|
|
- /* 更换负责人 */
|
|
|
- handelSubmit(arr) {
|
|
|
- const that = this;
|
|
|
- wx.showModal({
|
|
|
- title: getApp().globalData.Language.getMapText('提示'),
|
|
|
- content: getApp().globalData.Language.getMapText('是否确认更换负责人'),
|
|
|
- complete: ({
|
|
|
- confirm
|
|
|
- }) => {
|
|
|
- if (confirm) wx.showModal({
|
|
|
- title: getApp().globalData.Language.getMapText('提示'),
|
|
|
- content: getApp().globalData.Language.getMapText('是否参与该数据的后续工作'),
|
|
|
- cancelText: getApp().globalData.Language.getMapText('不参与'),
|
|
|
- confirmText: getApp().globalData.Language.getMapText('参与'),
|
|
|
- complete: (s) => {
|
|
|
- _Http.basic({
|
|
|
- "id": 20220930103701,
|
|
|
- "content": {
|
|
|
- ownertable: "sa_agents",
|
|
|
- ownerid: that.data.sa_agentsid,
|
|
|
- userid: arr[0],
|
|
|
- isaddoldleader: s.confirm ? 1 : 0
|
|
|
- }
|
|
|
- }).then(res => {
|
|
|
- console.log("更换负责人", res)
|
|
|
- if (res.code != '1') return wx.showToast({
|
|
|
- title: res.data,
|
|
|
- icon: "none"
|
|
|
- });
|
|
|
- wx.showToast({
|
|
|
- title: getApp().globalData.Language.getMapText('更换成功'),
|
|
|
- icon: "none",
|
|
|
- mask: true
|
|
|
- });
|
|
|
- getCurrentPages().forEach(v => {
|
|
|
- if (['packageA/setclient/index'].includes(v.__route__)) v.getList(true)
|
|
|
- })
|
|
|
- setTimeout(() => {
|
|
|
- wx.navigateBack({
|
|
|
- delta: 2
|
|
|
- });
|
|
|
- }, 300)
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
/* 底部功能 */
|
|
|
async setTabbar() {
|
|
|
let detail = this.data.detail,
|
|
|
@@ -312,6 +263,10 @@ Page({
|
|
|
tabsList = [{
|
|
|
label: "详细信息",
|
|
|
icon: "icon-tabxiangxixinxi1"
|
|
|
+ }, {
|
|
|
+ label: "合同",
|
|
|
+ icon: "icon-tabhetong",
|
|
|
+ model: "#Contract"
|
|
|
}];
|
|
|
if (!isLeader) {
|
|
|
let res = await getApp().agentOrNot("sa_agents", this.data.sa_agentsid),
|