更新了市场部长任务

This commit is contained in:
weipengfei 2023-10-20 10:38:43 +08:00
parent d09a14803d
commit 6ddb2b4a07
2 changed files with 16 additions and 5 deletions

View File

@ -51,6 +51,11 @@ export const townTaskDetails = (data) => oahttp.get('/task/service_task_detail',
*/ */
export const serviceTask4Commit = (data) => oahttp.post('/task/commit_town_task_type4', data) export const serviceTask4Commit = (data) => oahttp.post('/task/commit_town_task_type4', data)
/**
* 任务:数字农贸宣传加工业务建设和招商任务详情
*/
export const marketTask10Detail = (data) => oahttp.post('/task/town_task_type_marketing_director_10_detail', data)
/** /**
* 任务:数字农贸宣传加工业务建设和招商任务提交 * 任务:数字农贸宣传加工业务建设和招商任务提交
*/ */

View File

@ -30,7 +30,7 @@
</view> </view>
<view class="card" style="margin-bottom: 160rpx;"> <view class="card" style="margin-bottom: 160rpx;">
<view class="c_title">补充说明</view> <view class="c_title">补充说明</view>
<u--textarea :disabled="taskInfo.status!=2" v-model="remark" placeholder="请输入内容" <u--textarea :disabled="taskInfo.status!=2 || other.is_commit==1" v-model="remark" placeholder="请输入内容"
placeholderStyle="font-size: 22rpx;" count maxlength="500" autoHeight placeholderStyle="font-size: 22rpx;" count maxlength="500" autoHeight
style="font-size: 28rpx;background-color: #eee;min-height: 100px;padding-bottom: 50rpx;"></u--textarea> style="font-size: 28rpx;background-color: #eee;min-height: 100px;padding-bottom: 50rpx;"></u--textarea>
</view> </view>
@ -98,16 +98,22 @@
// approve_status 0,1,2,3,4 // approve_status 0,1,2,3,4
this.taskInfo = res.data; this.taskInfo = res.data;
if(!this.taskInfo.approve_status)this.taskInfo.approve_status=0; if(!this.taskInfo.approve_status)this.taskInfo.approve_status=0;
if(this.taskInfo?.extend?.file){ if(this.taskInfo?.extend?.stage){
// //
if(this.taskInfo.extend.stage4?.is_commit==1)this.other.is_commit = 1; if(this.taskInfo.extend.stage4?.is_commit==1)this.other.is_commit = 1;
else if(this.taskInfo.extend.stage3?.is_commit==1)this.other.is_commit = 1; else if(this.taskInfo.extend.stage3?.is_commit==1)this.other.is_commit = 1;
else if(this.taskInfo.extend.stage2?.is_commit==1)this.other.is_commit = 1; else if(this.taskInfo.extend.stage2?.is_commit==1)this.other.is_commit = 1;
else if(this.taskInfo.extend.stage1?.is_commit==1)this.other.is_commit = 1; else if(this.taskInfo.extend.stage1?.is_commit==1)this.other.is_commit = 1;
else this.other.is_commit = 0; else this.other.is_commit = 0;
let task = JSON.parse(JSON.stringify(this.taskInfo.extend)) let task;
this.imgList = task.file; switch(+this.taskInfo?.extend?.stage){
this.remark = task.remark; case 1: task = this.taskInfo.extend.stage1;break;
case 2: task = this.taskInfo.extend.stage2;break;
case 3: task = this.taskInfo.extend.stage3;break;
case 4: task = this.taskInfo.extend.stage4;break;
}
this.imgList = task?.file||[];
this.remark = task?.remark;
} }
// this.sign_in_table = this.taskInfo?.extend?.town_task_type_4?.sign_in_table; // this.sign_in_table = this.taskInfo?.extend?.town_task_type_4?.sign_in_table;
// this.remark = this.taskInfo?.extend?.town_task_type_4?.remark; // this.remark = this.taskInfo?.extend?.town_task_type_4?.remark;