This commit is contained in:
zds
2022-08-21 10:07:19 +08:00
parent 78b0ea63e5
commit 6b054b04c2
2 changed files with 11 additions and 3 deletions

View File

@@ -73,7 +73,11 @@ public class DailyplanServiceImpl implements DailyplanService {
String plan_finish_date = jo.getString("plan_finish_date");
Date date2 = DateUtil.parse(plan_finish_date);
long days = (int) DateUtil.between(date2,date, DateUnit.DAY);
jo.put("day_num",days);
if(date2.getTime() >= date.getTime()){
jo.put("day_num",days);
}else{
jo.put("day_num",-days);
}
ja.add(jo);
}
jret.put("content",ja);
@@ -108,7 +112,11 @@ public class DailyplanServiceImpl implements DailyplanService {
String plan_finish_date = jo.getString("plan_finish_date");
Date date2 = DateUtil.parse(plan_finish_date);
long days = (int) DateUtil.between(date2,date, DateUnit.DAY);
jo.put("day_num",days);
if(date2.getTime() >= date.getTime()){
jo.put("day_num",days);
}else{
jo.put("day_num",-days);
}
ja.add(jo);
}
return ja;

View File

@@ -179,7 +179,7 @@
<el-table-column prop="product_weight" label="需求重量" :formatter="crud.formatNum3"/>
<el-table-column prop="fact_weight" label="生产重量" :formatter="crud.formatNum3" width="150" align="center">
<template scope="scope">
<el-input-number size="mini" v-model="scope.row.fact_weight" :precision="3" :controls="false" :min="1" style="width: 120px" />
<el-input-number size="mini" v-model="scope.row.fact_weight" :precision="3" :controls="false" :min="1" style="width: 120px" :disabled="scope.row.is_proc > 0" />
</template>
</el-table-column>
<el-table-column prop="weight_unit_name" label="单位"/>