优化
This commit is contained in:
@@ -435,9 +435,12 @@ public class AcceptFormulaServiceImpl implements AcceptFormulaService {
|
||||
oneMap.put("ball_speed", NumberUtil.round(jsonMark.getString("ball_speed"),0).toString());
|
||||
|
||||
// 原料总碳
|
||||
oneMap.put("c_balance", jsonMark.getString("c_balance"));
|
||||
oneMap.put("c_balance", NumberUtil.round(jsonMark.getString("c_balance"), 3).toString());
|
||||
}
|
||||
|
||||
// 实验序号
|
||||
oneMap.put("formula_code", jsonFormMst.getString("formula_code"));
|
||||
|
||||
// 实验批号
|
||||
oneMap.put("accept_pcsn", jsonFormMst.getString("accept_pcsn"));
|
||||
|
||||
@@ -445,7 +448,7 @@ public class AcceptFormulaServiceImpl implements AcceptFormulaService {
|
||||
String inspection_item_id = "1510155749437870083"; // ct项点标识
|
||||
JSONObject jsonFactDtl = factDtlTab.query("inspection_id = '" + jsonFactMst.getString("inspection_id") + "' and inspection_item_id = '" + inspection_item_id + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isNotEmpty(jsonFactDtl)) {
|
||||
oneMap.put("ct_value", NumberUtil.round(jsonFactDtl.getString("value"), 2).toString());
|
||||
oneMap.put("ct_value", NumberUtil.round(jsonFactDtl.getString("value"), 3).toString());
|
||||
}
|
||||
|
||||
// 开单日期
|
||||
|
||||
@@ -135,6 +135,7 @@
|
||||
SELECT
|
||||
FactoryWarrantyMst.inspection_id AS id ,
|
||||
FactoryWarrantyMst.pcsn AS code ,
|
||||
FactoryWarrantyMst.biz_date ,
|
||||
FactoryWarrantyMst.inspection_code AS name
|
||||
FROM
|
||||
QL_TEST_FactoryWarrantyMst FactoryWarrantyMst
|
||||
@@ -145,6 +146,7 @@
|
||||
OPTION 输入.material_id <> ""
|
||||
FactoryWarrantyMst.material_id = 输入.material_id
|
||||
ENDOPTION
|
||||
order by FactoryWarrantyMst.biz_date desc
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -446,6 +446,7 @@ export default {
|
||||
}
|
||||
},
|
||||
open() {
|
||||
this.tableData = []
|
||||
if (this.form.formula_id) {
|
||||
// 编辑之后获取明细
|
||||
crudacceptformula.getDtl({ 'formula_id': this.form.formula_id }).then(res => {
|
||||
|
||||
@@ -208,6 +208,7 @@ export default {
|
||||
this.viewShow = true
|
||||
},
|
||||
typeChange() {
|
||||
this.mstrow = { }
|
||||
this.newShow = true
|
||||
},
|
||||
mytoEdit(row) {
|
||||
|
||||
Reference in New Issue
Block a user