|
@@ -2,7 +2,7 @@
|
|
|
<div class="distribution">
|
|
|
<van-nav-bar title="报工" left-text="返回" @click-left="back" fixed left-arrow />
|
|
|
<div class="distribution_header">
|
|
|
- <div>{{ reportForm.product_name }}</div>
|
|
|
+ <div>{{ reportForm.product_name }}<span style="float:right;color:#20a0ff;">{{reportDate }}</span> </div>
|
|
|
<div>{{ reportForm.plan_type == 0 ? reportForm.product_scheduling_num : reportForm.task_change_notice_num }}</div>
|
|
|
<div>{{ reportForm.start_date }}至{{ reportForm.end_date }}</div>
|
|
|
</div>
|
|
@@ -16,8 +16,8 @@
|
|
|
<template>
|
|
|
<div style="float:right;" v-if="reportForm.planSteelStampNumberList&&reportForm.planSteelStampNumberList.length>0">
|
|
|
<van-checkbox-group v-model="reportForm.checkedSteelNum" direction="horizontal">
|
|
|
- <van-checkbox style="padding:5px;" :name="item" @click="onCheckChange"
|
|
|
- v-for="(item, index) in reportForm.planSteelStampNumberList" :key="index">{{ item }}</van-checkbox>
|
|
|
+ <van-checkbox style="padding:5px;" :name="item.number" @click="onCheckChange" :disabled="item.disabled"
|
|
|
+ v-for="(item, index) in reportForm.planSteelStampNumberList" :key="index">{{ item.number }}</van-checkbox>
|
|
|
</van-checkbox-group>
|
|
|
</div>
|
|
|
<div v-else>无</div>
|
|
@@ -25,7 +25,7 @@
|
|
|
</van-cell>
|
|
|
<van-cell title="当日完成件数">
|
|
|
<template>
|
|
|
- <van-stepper v-model="reportForm.finishNum" step="0.1" :min="0" :max="1000" />
|
|
|
+ <van-stepper v-model="reportForm.finishNum" step="0.1" :min="0" :max="reportForm.num" @change="onFinishNumChange"/>
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
<van-cell title="完成全部工作" >
|
|
@@ -77,6 +77,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ reportDate: null,
|
|
|
checkerOptionList: [],
|
|
|
checkerShow: false,
|
|
|
user: JSON.parse(localStorage.userInfo),
|
|
@@ -93,9 +94,16 @@ export default {
|
|
|
watch: {},
|
|
|
created() { },
|
|
|
mounted() {
|
|
|
+ this.reportDate = this.$route.query.date;
|
|
|
this.getMyPlanProcedureList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ onFinishNumChange() {
|
|
|
+ //件数发生改变时,检测如果和计划总件数一样,则算完成
|
|
|
+ if (this.reportForm.finishNum == this.reportForm.num) {
|
|
|
+ this.$set(this.reportForm, 'isFinish',true);
|
|
|
+ }
|
|
|
+ },
|
|
|
back() {
|
|
|
this.$router.go(-1);
|
|
|
},
|
|
@@ -171,6 +179,9 @@ export default {
|
|
|
if(reportBoolean == 'true') {
|
|
|
params.createDate = date
|
|
|
}
|
|
|
+ if (this.reportDate) {
|
|
|
+ params.createDate = this.reportDate;
|
|
|
+ }
|
|
|
this.$axios.post("/plan-procedure-total/getFillProcedureDetail", params)
|
|
|
.then(res => {
|
|
|
if (res.code == "ok") {
|