|
@@ -128,6 +128,10 @@
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
|
|
|
+ <el-form-item v-if="!isModifyMode && task.resource==0 && showBD" label="任务接收码" prop="agencyName" style="width: 700px;">
|
|
|
+ <span>{{task.acceptedPassword}}</span>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
<el-form-item label="任务截止时间" prop="datetime">
|
|
|
<div class="block" v-if="isModifyMode">
|
|
|
<el-date-picker
|
|
@@ -376,6 +380,7 @@ export default {
|
|
|
task: {
|
|
|
agencyId: '',
|
|
|
agencyName: '',
|
|
|
+ acceptedPassword: '',
|
|
|
status: '',
|
|
|
name: '',
|
|
|
desc: '',
|
|
@@ -492,13 +497,16 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
handleTaskCodeValid(){
|
|
|
- let str1 = this.task.code;
|
|
|
- let str2 = this.projectId;
|
|
|
+ let str1 = this.projectId;
|
|
|
+ let str2 = this.task.code;
|
|
|
let str = str1.substring(str1.length-2) + str2.substring(str2.length-2);
|
|
|
if(str === this.taskValidCode){
|
|
|
//接收码正确,可以正确接收任务
|
|
|
this.receiveTask();
|
|
|
this.showTaskCodeModal = false;
|
|
|
+ }else{
|
|
|
+ // 提示接收码错误
|
|
|
+ notify('error', '接收码错误')
|
|
|
}
|
|
|
},
|
|
|
handleForkTask(){
|
|
@@ -657,6 +665,7 @@ export default {
|
|
|
this.task.datetime = new Date(res.crowdTaskVO.datetime)
|
|
|
this.task.quotePrice = res.crowdTaskVO.quotePrice
|
|
|
this.task.agencyName = res.crowdTaskVO.agencyName
|
|
|
+ this.task.acceptedPassword = res.crowdTaskVO.acceptedPassword
|
|
|
this.task.acceptedCount = res.crowdTaskVO.acceptedCount
|
|
|
this.task.participantCount = res.crowdTaskVO.participantCount
|
|
|
this.task.fixedPrice = res.crowdTaskVO.fixedPrice
|