|
@@ -85,6 +85,8 @@
|
|
|
:min-date="minDate"
|
|
|
:max-date="maxDate"/>
|
|
|
</van-popup>
|
|
|
+ <van-field v-if="user.timeType.taskPlanCost" v-model="taskform.planCost" label="预估研发费用" placeholder="请填写预估研发费用,单位:元" :rules="[{ required: true, message: '请填写' }]"
|
|
|
+ type="number" required :disabled="!canEdit"></van-field>
|
|
|
<!-- 完成时间 -->
|
|
|
<van-field v-if="taskform.type == 1" v-model="taskform.finishDate" label="完成时间" placeholder="请选择完成时间" @click="finishDateShow = true" readonly clickable></van-field>
|
|
|
<van-popup v-model="finishDateShow" position="bottom" v-if="canEdit">
|
|
@@ -561,6 +563,10 @@ export default {
|
|
|
this.$toast.fail("请选择所属任务列表");
|
|
|
return
|
|
|
}
|
|
|
+ if(this.user.timeType.taskPlanCost && (this.taskform.planCost == '' || this.taskform.planCost == null)) {
|
|
|
+ this.$toast.fail("请填写预估研发费用");
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
// 去除未选择执行人的执行人列表
|
|
|
this.taskform.executorList = this.taskform.executorList.filter(item => item.executorId)
|