|
|
@@ -208,7 +208,13 @@ Page({
|
|
|
"id": "20230208140003",
|
|
|
"content": this.data.billData
|
|
|
}) */
|
|
|
+ let teams = this.data.billData.team;
|
|
|
+ console.log(this.data.billData.team.filter(v => v.isleader != 1))
|
|
|
+ console.log(this.data.actLeader)
|
|
|
+ if (!teams.some(v => v.userid == this.data.actLeader.userid)) {
|
|
|
|
|
|
+ }
|
|
|
+
|
|
|
const res = await api._post({
|
|
|
"id": "20220930103703",
|
|
|
"content": {
|
|
|
@@ -217,6 +223,17 @@ Page({
|
|
|
"userid": this.data.actLeader.userid
|
|
|
}
|
|
|
})
|
|
|
+ await api._post({
|
|
|
+ "id": 20220930103603,
|
|
|
+ "content": {
|
|
|
+ ownertable: 'sa_workorder',
|
|
|
+ ownerid: this.data.billData.sa_workorderid,
|
|
|
+ "userids": [this.data.actLeader.userid].concat(this.data.billData.team.filter(v => v.isleader != 1).map(v => v.userid)),
|
|
|
+ "justuserids": 1
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log("添加成员", res)
|
|
|
+ })
|
|
|
|
|
|
this.setData({
|
|
|
workLeaderDialog: false
|