df
This commit is contained in:
parent
9946239502
commit
fe1e183499
@ -92,4 +92,9 @@ export const commit_village_task_5API = (data) => oahttp.post('/task/commit_vill
|
|||||||
* 入股甲方公司
|
* 入股甲方公司
|
||||||
*/
|
*/
|
||||||
export const commit_town_service_manager_task_6API = (data) => oahttp.post('/task/commit_town_service_manager_task_6',
|
export const commit_town_service_manager_task_6API = (data) => oahttp.post('/task/commit_town_service_manager_task_6',
|
||||||
|
data)
|
||||||
|
/**
|
||||||
|
* 促成村联络人员入股
|
||||||
|
*/
|
||||||
|
export const commit_town_master_task_6API = (data) => oahttp.post('/task/commit_town_master_task_6',
|
||||||
data)
|
data)
|
@ -117,12 +117,6 @@
|
|||||||
default: function() {
|
default: function() {
|
||||||
return {}
|
return {}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
taskValueList: {
|
|
||||||
type: Array,
|
|
||||||
default: function() {
|
|
||||||
return []
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -150,7 +144,10 @@
|
|||||||
navToVillageList: ["village_task_type_1", "village_task_type_2", "village_task_type_3",
|
navToVillageList: ["village_task_type_1", "village_task_type_2", "village_task_type_3",
|
||||||
"village_task_type_7",
|
"village_task_type_7",
|
||||||
], // 村管理跳转/subpkg/townTask/townTask的任务 1
|
], // 村管理跳转/subpkg/townTask/townTask的任务 1
|
||||||
navToVillageListA: ["town_task_type_master_2", "town_task_type_master_4", "town_task_type_master_5",
|
navToVillageListA: [
|
||||||
|
"town_task_type_master_2",
|
||||||
|
"town_task_type_master_4",
|
||||||
|
"town_task_type_master_5",
|
||||||
"town_task_type_master_6",
|
"town_task_type_master_6",
|
||||||
"town_task_type_master_7",
|
"town_task_type_master_7",
|
||||||
"town_task_type_master_8"
|
"town_task_type_master_8"
|
||||||
@ -184,41 +181,35 @@
|
|||||||
} else Toast('暂未开放')
|
} else Toast('暂未开放')
|
||||||
},
|
},
|
||||||
clickTask() {
|
clickTask() {
|
||||||
this.$props.taskValueList.forEach(item => {
|
|
||||||
// console.log(item)
|
|
||||||
if (this.$props.datas.type == item.id) {
|
|
||||||
this.$props.datas.type_value = item.value
|
|
||||||
}
|
|
||||||
})
|
|
||||||
console.log(this.$props.datas.type_value)
|
|
||||||
// console.log(this.navToVillageList.includes(this.$props.datas.type_value))
|
// console.log(this.navToVillageList.includes(this.$props.datas.type_value))
|
||||||
// return
|
// return
|
||||||
if (this.isTimeInRange()) return Toast('任务正在结算中');
|
if (this.isTimeInRange()) return Toast('任务正在结算中');
|
||||||
// if ((this.$props.datas.type != 31) && this.$props.datas.status !== 2 && this.$props.datas.status !== 1) {
|
// if ((this.$props.datas.type != 31) && this.$props.datas.status !== 2 && this.$props.datas.status !== 1) {
|
||||||
// return this.$props.datas.status == 3 ? Toast('任务已完成!') : Toast('任务已结束!');
|
// return this.$props.datas.status == 3 ? Toast('任务已完成!') : Toast('任务已结束!');
|
||||||
// }
|
// }
|
||||||
if (this.navToTownServiceList.includes(this.$props.datas.type_value))
|
if (this.navToTownServiceList.includes(this.$props.datas.task_type_value))
|
||||||
return this.navTo(
|
return this.navTo(
|
||||||
`/subpkg/townTask/townTask?task_id=${this.$props.datas?.id}&type_value=${this.taskRoleTypeList[0]}`
|
`/subpkg/townTask/townTask?task_id=${this.$props.datas?.id}&type_value=${this.taskRoleTypeList[0]}`
|
||||||
);
|
);
|
||||||
if (this.navToTownMarketList.includes(this.$props.datas.type_value))
|
if (this.navToTownMarketList.includes(this.$props.datas.task_type_value))
|
||||||
return this.navTo(
|
return this.navTo(
|
||||||
`/subpkg/townTask/townTask?task_id=${this.$props.datas?.id}&type_value=${this.taskRoleTypeList[1]}`
|
`/subpkg/townTask/townTask?task_id=${this.$props.datas?.id}&type_value=${this.taskRoleTypeList[1]}`
|
||||||
);
|
);
|
||||||
if (this.navToVillageList.includes(this.$props.datas.type_value))
|
if (this.navToVillageList.includes(this.$props.datas.task_type_value))
|
||||||
return this.navTo(
|
return this.navTo(
|
||||||
`/subpkg/townTask/townTask?task_id=${this.$props.datas?.id}&type_value=${this.taskRoleTypeList[1]}`
|
`/subpkg/townTask/townTask?task_id=${this.$props.datas?.id}&type_value=${this.taskRoleTypeList[1]}`
|
||||||
);
|
);
|
||||||
if (this.navToVillageListA.includes(this.$props.datas.type_value))
|
if (this.navToVillageListA.includes(this.$props.datas.task_type_value))
|
||||||
return this.navTo(
|
return this.navTo(
|
||||||
`/subpkg/townTask/villageTask4?task_id=${this.$props.datas?.id}&type_value=${this.taskRoleTypeList[2]}`
|
`/subpkg/townTask/villageTask4?task_id=${this.$props.datas?.id}&type_value=${this.taskRoleTypeList[2]}`
|
||||||
);
|
);
|
||||||
if (this.navToList.includes(this.$props.datas.type_value))
|
if (this.navToList.includes(this.$props.datas.task_type_value))
|
||||||
|
|
||||||
return this.navTo(
|
return this.navTo(
|
||||||
`/subpkg/townTask/villageTask4?task_id=${this.$props.datas?.id}&type_value=${this.taskRoleTypeList[2]}`
|
`/subpkg/townTask/villageTask4?task_id=${this.$props.datas?.id}&type_value=${this.taskRoleTypeList[2]}`
|
||||||
);
|
);
|
||||||
switch (this.$props.datas.type_value) {
|
switch (this.$props.datas.task_type_value) {
|
||||||
case "1":
|
case "1":
|
||||||
if (this.$store.state.app.userInfo.admin_id) this.navTo(
|
if (this.$store.state.app.userInfo.admin_id) this.navTo(
|
||||||
`/subpkg/captain/captain?task_id=${this.$props.datas?.id}`);
|
`/subpkg/captain/captain?task_id=${this.$props.datas?.id}`);
|
||||||
|
@ -70,24 +70,7 @@
|
|||||||
},
|
},
|
||||||
list: [],
|
list: [],
|
||||||
taskValueList: [],
|
taskValueList: [],
|
||||||
roleList: [{
|
|
||||||
id: 17,
|
|
||||||
type_vale: "village_task_type"
|
|
||||||
}, {
|
|
||||||
id: 16,
|
|
||||||
type_vale: "town_task_type_marketing_director"
|
|
||||||
}, {
|
|
||||||
id: 15,
|
|
||||||
type_vale: "town_task_type_master"
|
|
||||||
}, {
|
|
||||||
id: 14,
|
|
||||||
type_vale: "town_task_type"
|
|
||||||
}, {
|
|
||||||
id: 5,
|
|
||||||
type_vale: "task_type"
|
|
||||||
}
|
|
||||||
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@ -96,20 +79,20 @@
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.loadList();
|
this.loadList();
|
||||||
this.getTaskValue()
|
// this.getTaskValue()
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
uni.$on('initOaTask', this.loadList);
|
uni.$on('initOaTask', this.loadList);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getTaskValue() {
|
// async getTaskValue() {
|
||||||
const desiredElement = this.roleList.find(element => element.id == this.$store.state.app.userInfo
|
// const desiredElement = this.roleList.find(element => element.id == this.$store.state.app.userInfo
|
||||||
.group_id);
|
// .group_id);
|
||||||
let res = await dictDataListsTypeValue({
|
// let res = await dictDataListsTypeValue({
|
||||||
type_value: desiredElement.type_vale
|
// type_value: desiredElement.type_vale
|
||||||
})
|
// })
|
||||||
this.taskValueList = res.data
|
// this.taskValueList = res.data
|
||||||
},
|
// },
|
||||||
changeTypeCurrent(e) {
|
changeTypeCurrent(e) {
|
||||||
this.baseList = []
|
this.baseList = []
|
||||||
this.status = e.id
|
this.status = e.id
|
||||||
|
@ -104,7 +104,8 @@
|
|||||||
taskShareholder,
|
taskShareholder,
|
||||||
commit_village_task_4API,
|
commit_village_task_4API,
|
||||||
commit_village_task_5API,
|
commit_village_task_5API,
|
||||||
commit_town_service_manager_task_6API
|
commit_town_service_manager_task_6API,
|
||||||
|
commit_town_master_task_6API
|
||||||
} from "@/api/task.js"
|
} from "@/api/task.js"
|
||||||
import lsjUpload from '@/uni_modules/lsj-upload/components/lsj-upload/lsj-upload.vue'
|
import lsjUpload from '@/uni_modules/lsj-upload/components/lsj-upload/lsj-upload.vue'
|
||||||
import {
|
import {
|
||||||
@ -185,7 +186,12 @@
|
|||||||
...data
|
...data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
if (this.task.type == 79) {
|
||||||
|
let res = await commit_town_master_task_6API({
|
||||||
|
...data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return
|
||||||
Toast("操作成功!")
|
Toast("操作成功!")
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user