优化
This commit is contained in:
@@ -165,8 +165,8 @@
|
||||
<el-table-column prop="material_code" label="物料编码" min-width="150"/>
|
||||
<el-table-column :formatter="seriesFormat" min-width="80" prop="product_series" label="系列" />
|
||||
<el-table-column prop="product_type_name" label="生产方式" />
|
||||
<el-table-column prop="fact_weight" label="生产重量(t)" :formatter="pcsn_num_format2" min-width="90" />
|
||||
<el-table-column prop="standard_weight" label="每批重量kg" width="90" :formatter="crud.formatNum3"/>
|
||||
<el-table-column prop="fact_weight" label="生产重量Kg" :formatter="crud.formatNum0" min-width="95" />
|
||||
<el-table-column prop="standard_weight" label="每批重量Kg" width="95" :formatter="crud.formatNum0"/>
|
||||
<el-table-column prop="pcsn_num" label="批数" :formatter="pcsn_num_format"/>
|
||||
<el-table-column :formatter="stateFormat" min-width="80" prop="is_proc" label="状态" />
|
||||
<el-table-column prop="update_time" label="提交时间" width="140px" />
|
||||
@@ -268,9 +268,6 @@ export default {
|
||||
pcsn_num_format(row) {
|
||||
return Math.ceil(row.fact_weight / row.standard_weight)
|
||||
},
|
||||
pcsn_num_format2(row) {
|
||||
return parseFloat(row.fact_weight / 1000.0).toFixed(3)
|
||||
},
|
||||
onInput() {
|
||||
this.$forceUpdate()
|
||||
},
|
||||
|
||||
@@ -176,14 +176,14 @@
|
||||
<el-table-column prop="material_code" label="物料编码" min-width="150"/>
|
||||
<el-table-column prop="old_mark" min-width="100" label="牌号" />
|
||||
<el-table-column prop="product_type_name" label="生产方式" />
|
||||
<el-table-column prop="product_weight" label="需求重量" :formatter="crud.formatNum3"/>
|
||||
<el-table-column prop="fact_weight" label="生产重量" :formatter="crud.formatNum3" width="150" align="center">
|
||||
<el-table-column prop="product_weight" label="需求重量" :formatter="crud.formatNum0"/>
|
||||
<el-table-column prop="fact_weight" label="生产重量" :formatter="crud.formatNum0" 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" :disabled="scope.row.is_proc > 0" />
|
||||
<el-input-number size="mini" v-model="scope.row.fact_weight" :precision="0" :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="单位"/>
|
||||
<el-table-column prop="standard_weight" label="每批重量kg" width="90" :formatter="crud.formatNum3"/>
|
||||
<el-table-column prop="standard_weight" label="每批重量kg" width="90" :formatter="crud.formatNum0"/>
|
||||
<el-table-column prop="pcsn_num" label="批数" :formatter="pcsn_num_format"/>
|
||||
<el-table-column :formatter="stateFormat" min-width="80" prop="is_proc" label="状态" />
|
||||
<el-table-column prop="input_time" label="生成时间" width="140px" />
|
||||
|
||||
Reference in New Issue
Block a user