|
|
@@ -293,30 +293,37 @@ Page({
|
|
|
complete: ({
|
|
|
confirm
|
|
|
}) => {
|
|
|
- if (confirm) _Http.basic({
|
|
|
- "id": 20220930103701,
|
|
|
- "content": {
|
|
|
- ownertable: "sa_customers",
|
|
|
- ownerid: that.data.sa_customersid,
|
|
|
- userid: arr[0]
|
|
|
- }
|
|
|
- }).then(res => {
|
|
|
- console.log("更换负责人", res)
|
|
|
- if (res.msg != '成功') return wx.showToast({
|
|
|
- title: res.data,
|
|
|
- icon: "none"
|
|
|
- });
|
|
|
- wx.showToast({
|
|
|
- title: '更换成功!',
|
|
|
- icon: "none"
|
|
|
- });
|
|
|
- setTimeout(() => {
|
|
|
- that.getDetail();
|
|
|
- getCurrentPages().forEach(v => {
|
|
|
- if (['packageA/setclient/index'].includes(v.__route__)) v.getList(true)
|
|
|
+ if (confirm) wx.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '是否参与该数据的后续工作',
|
|
|
+ complete: (s) => {
|
|
|
+ _Http.basic({
|
|
|
+ "id": 20220930103701,
|
|
|
+ "content": {
|
|
|
+ ownertable: "sa_customers",
|
|
|
+ ownerid: that.data.sa_customersid,
|
|
|
+ userid: arr[0],
|
|
|
+ isaddoldleader: s.confirm ? 1 : 0
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log("更换负责人", res)
|
|
|
+ if (res.msg != '成功') return wx.showToast({
|
|
|
+ title: res.data,
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ wx.showToast({
|
|
|
+ title: '更换成功!',
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ setTimeout(() => {
|
|
|
+ that.getDetail();
|
|
|
+ getCurrentPages().forEach(v => {
|
|
|
+ if (['packageA/setclient/index'].includes(v.__route__)) v.getList(true)
|
|
|
+ })
|
|
|
+ wx.navigateBack();
|
|
|
+ }, 300)
|
|
|
})
|
|
|
- wx.navigateBack();
|
|
|
- }, 300)
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
@@ -381,10 +388,10 @@ Page({
|
|
|
icon: "icon-zhuanyi",
|
|
|
label: "更换负责人"
|
|
|
})
|
|
|
- /* if (isLeader) tabbarList.push({
|
|
|
- icon: "icon-dibu-biangengchengjiaozhuangtai",
|
|
|
- label: "更改合作状态"
|
|
|
- }) */
|
|
|
+ /* if (isLeader) tabbarList.push({
|
|
|
+ icon: "icon-dibu-biangengchengjiaozhuangtai",
|
|
|
+ label: "更改合作状态"
|
|
|
+ }) */
|
|
|
tabbarList.push({
|
|
|
icon: "icon-shanchu",
|
|
|
label: "作废"
|