|
@@ -37,13 +37,13 @@
|
|
<van-stepper v-model="reportForm.finishNum" step="0.1" :min="0" :max="reportForm.num" :decimal-length="2" @change="onFinishNumChange"/>
|
|
<van-stepper v-model="reportForm.finishNum" step="0.1" :min="0" :max="reportForm.num" :decimal-length="2" @change="onFinishNumChange"/>
|
|
</template>
|
|
</template>
|
|
</van-cell>
|
|
</van-cell>
|
|
- <van-cell title="完成全部工作" >
|
|
|
|
|
|
+ <!-- <van-cell title="完成全部工作" >
|
|
<template>
|
|
<template>
|
|
<div style="float:right;">
|
|
<div style="float:right;">
|
|
<van-checkbox v-model="reportForm.isFinish" />
|
|
<van-checkbox v-model="reportForm.isFinish" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- </van-cell>
|
|
|
|
|
|
+ </van-cell> -->
|
|
<van-cell title="中止工作" v-if="!reportForm.isFinish">
|
|
<van-cell title="中止工作" v-if="!reportForm.isFinish">
|
|
<template>
|
|
<template>
|
|
<div style="float:right;">
|
|
<div style="float:right;">
|
|
@@ -156,7 +156,9 @@ export default {
|
|
//件数发生改变时,检测如果和计划总件数一样,则算完成
|
|
//件数发生改变时,检测如果和计划总件数一样,则算完成
|
|
if (this.reportForm.finishNum == this.reportForm.num) {
|
|
if (this.reportForm.finishNum == this.reportForm.num) {
|
|
this.$set(this.reportForm, 'isFinish',true);
|
|
this.$set(this.reportForm, 'isFinish',true);
|
|
- }
|
|
|
|
|
|
+ } else {
|
|
|
|
+ this.$set(this.reportForm, 'isFinish',false);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
back() {
|
|
back() {
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|