代码更新
This commit is contained in:
@@ -714,7 +714,8 @@ public class FormulaServiceImpl implements FormulaService {
|
||||
|
||||
HashMap<String, Object> oneMap = new HashMap<>();
|
||||
// 工令相关
|
||||
oneMap.put("workorder_code", jsonWork.getString("workorder_code"));
|
||||
String workorder_code = jsonWork.getString("workorder_code");
|
||||
oneMap.put("workorder_code", workorder_code.substring(workorder_code.length() - 7));
|
||||
oneMap.put("material_code", jsonMater.getString("material_code"));
|
||||
if (ObjectUtil.isNotEmpty(jsonDept)) oneMap.put("dept_name", jsonDept.getString("name"));
|
||||
if (ObjectUtil.isNotEmpty(jsonMaterExt)) oneMap.put("old_mark", jsonMaterExt.getString("old_mark"));
|
||||
|
||||
@@ -296,8 +296,9 @@ public class PhysicalMstServiceImpl implements PhysicalMstService {
|
||||
json.put("remark", jsonDtl.getString("remark"));
|
||||
json.put("is_ok", jsonDtl.getString("is_ok"));
|
||||
} else {
|
||||
String down_limit = json.getString("down_limit");
|
||||
if (ObjectUtil.isNotEmpty(down_limit)) json.put("value",down_limit);
|
||||
// 获取默认检测值 默认为下限检测值
|
||||
// String down_limit = json.getString("down_limit");
|
||||
// if (ObjectUtil.isNotEmpty(down_limit)) json.put("value",down_limit);
|
||||
}
|
||||
}
|
||||
form.put("tableData", arr);
|
||||
|
||||
@@ -470,6 +470,37 @@ export default {
|
||||
},
|
||||
|
||||
onSubmit() {
|
||||
const msg = '是否继续!'
|
||||
|
||||
const data = this.form1.tableData
|
||||
var flag = 0
|
||||
for (var row of data) {
|
||||
if (!row.value) {
|
||||
flag = flag + 1
|
||||
}
|
||||
}
|
||||
// 如果检测值一项都没填则提示是否继续
|
||||
if (flag === data.length) {
|
||||
this.$confirm(msg, '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
crudPhysicalMst.saveResult(this.form1).then(res => {
|
||||
this.close()
|
||||
this.crud.toQuery()
|
||||
this.notify('操作成功', 'success')
|
||||
})
|
||||
})
|
||||
} else {
|
||||
crudPhysicalMst.saveResult(this.form1).then(res => {
|
||||
this.close()
|
||||
this.crud.toQuery()
|
||||
this.notify('操作成功', 'success')
|
||||
})
|
||||
}
|
||||
},
|
||||
onSubmit2() {
|
||||
const data = this.form1.tableData
|
||||
var flag = 0
|
||||
for (var row of data) {
|
||||
|
||||
@@ -475,8 +475,38 @@ export default {
|
||||
format_inspection_item_type(row, column) {
|
||||
return this.dict.label.QL_TEST_POINTTYPE[row.inspection_item_type]
|
||||
},
|
||||
|
||||
onSubmit() {
|
||||
const msg = '是否继续!'
|
||||
|
||||
const data = this.form1.tableData
|
||||
var flag = 0
|
||||
for (var row of data) {
|
||||
if (!row.value) {
|
||||
flag = flag + 1
|
||||
}
|
||||
}
|
||||
// 如果检测值一项都没填则提示是否继续
|
||||
if (flag === data.length) {
|
||||
this.$confirm(msg, '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
crudPhysicalMst.saveResult(this.form1).then(res => {
|
||||
this.close()
|
||||
this.crud.toQuery()
|
||||
this.notify('操作成功', 'success')
|
||||
})
|
||||
})
|
||||
} else {
|
||||
crudPhysicalMst.saveResult(this.form1).then(res => {
|
||||
this.close()
|
||||
this.crud.toQuery()
|
||||
this.notify('操作成功', 'success')
|
||||
})
|
||||
}
|
||||
},
|
||||
onSubmit2() {
|
||||
const data = this.form1.tableData
|
||||
var flag = 0
|
||||
for (var row of data) {
|
||||
|
||||
Reference in New Issue
Block a user