代码更新
This commit is contained in:
@@ -67,22 +67,22 @@
|
||||
<el-table-column prop="material_name" label="物料名称" min-width="200" show-overflow-tooltip/>
|
||||
<el-table-column prop="unit_name" label="单位"/>
|
||||
<el-table-column prop="class_name" label="物料类别" width="140px"/>
|
||||
<el-table-column prop="is_need_plan_name" label="是否参与需求计划计算" width="150px"/>
|
||||
<el-table-column prop="is_need_plan" label="是否参与需求计划计算" width="150px" :formatter="formatIsNeedPlan"/>
|
||||
<el-table-column prop="stock_is_need_move" label="原料是否配粉移库" width="150px" :formatter="stockIsNeedMove"/>
|
||||
<el-table-column prop="is_pure" label="是否纯粉" width="150px" :formatter="stockIsPure"/>
|
||||
<el-table-column prop="stock_standard_weight" label="原料标准桶重" width="100px" :formatter="crud.formatNum3"/>
|
||||
<el-table-column prop="stock_is_report_name" label="原料是否生成理化报告" width="150px"/>
|
||||
<el-table-column prop="stock_is_report" label="原料是否生成理化报告" width="150px" :formatter="stockIsReport"/>
|
||||
<el-table-column prop="wc_seqno" label="原料碳化钨顺序号" width="120px"/>
|
||||
<el-table-column prop="old_mark" label="原牌号"/>
|
||||
<el-table-column prop="product_mode_name" label="生产方式"/>
|
||||
<el-table-column prop="is_auto_open_name" label="是否允许自动开单" width="120px"/>
|
||||
<el-table-column prop="product_mode" label="生产方式" :formatter="formatProductMode"/>
|
||||
<el-table-column prop="is_auto_open" label="是否允许自动开单" width="120px" :formatter="isAutoOpen"/>
|
||||
<el-table-column prop="waste_limit_down" label="软废添加比列下限" width="120px"/>
|
||||
<el-table-column prop="waste_limit_up" label="软废添加比列上限" width="120px"/>
|
||||
<el-table-column prop="standard_weight_pft" label="工令标准桶重" width="100px" :formatter="crud.formatNum3"/>
|
||||
<el-table-column prop="report_time" label="产品理化时间" width="100px"/>
|
||||
<el-table-column prop="produc_is_report_name" label="产品是否生成理化报告" width="150px"/>
|
||||
<el-table-column prop="produc_is_report" label="产品是否生成理化报告" width="150px" :formatter="producIsReport"/>
|
||||
<el-table-column prop="product_is_need_move" label="产品是否配粉移库" width="150px" :formatter="productIsNeedMove"/>
|
||||
<el-table-column prop="is_again_put_name" label="是否二次投料" width="100px"/>
|
||||
<el-table-column prop="is_again_put" label="是否二次投料" width="100px" :formatter="isAgainPut"/>
|
||||
<el-table-column prop="produc_standard_weight" label="产品标准桶重" width="100px" :formatter="crud.formatNum3"/>
|
||||
<el-table-column prop="product_series" label="产品系列" :formatter="formatterName"/>
|
||||
<el-table-column prop="c_balance" label="碳平衡"/>
|
||||
@@ -140,6 +140,7 @@ import crudMaterialbase from '@/api/wms/basedata/master/materialbase'
|
||||
|
||||
export default {
|
||||
name: 'MaterialParameters',
|
||||
dicts: ['product_mode', 'IS_OR_NOT', 'product_series'],
|
||||
components: {pagination, crudOperation, rrOperation, udOperation, YflDialog, CpDialog, Treeselect},
|
||||
mixins: [presenter(), header(), crud()],
|
||||
cruds() {
|
||||
@@ -290,7 +291,25 @@ export default {
|
||||
return item.class_name
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
formatProductMode(row) {
|
||||
return this.dict.label.product_mode[row.product_mode]
|
||||
},
|
||||
formatIsNeedPlan(row) {
|
||||
return this.dict.label.IS_OR_NOT[row.is_need_plan]
|
||||
},
|
||||
stockIsReport(row) {
|
||||
return this.dict.label.IS_OR_NOT[row.stock_is_report]
|
||||
},
|
||||
producIsReport(row) {
|
||||
return this.dict.label.IS_OR_NOT[row.produc_is_report]
|
||||
},
|
||||
isAutoOpen(row) {
|
||||
return this.dict.label.IS_OR_NOT[row.is_auto_open]
|
||||
},
|
||||
isAgainPut(row) {
|
||||
return this.dict.label.IS_OR_NOT[row.is_again_put]
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user