This commit is contained in:
zds
2022-10-26 15:57:29 +08:00
parent 0857a63285
commit b020b34d85
4 changed files with 9 additions and 2 deletions

View File

@@ -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());
}
// 开单日期

View File

@@ -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

View File

@@ -446,6 +446,7 @@ export default {
}
},
open() {
this.tableData = []
if (this.form.formula_id) {
// 编辑之后获取明细
crudacceptformula.getDtl({ 'formula_id': this.form.formula_id }).then(res => {

View File

@@ -208,6 +208,7 @@ export default {
this.viewShow = true
},
typeChange() {
this.mstrow = { }
this.newShow = true
},
mytoEdit(row) {