fix:检验设备默认上一次的设备

This commit is contained in:
shijing 2025-10-13 16:19:39 +08:00
parent f7ab449054
commit f968b951f4
1 changed files with 3 additions and 5 deletions

View File

@ -503,8 +503,10 @@ export default {
},
getEquipments(){
let that = this;
let eqId = localStorage.getItem("bxerpChenckEquipmentId");
that.$API.em.equipment.list.req({page:0,cate__code:"6"}).then((res) => {
that.equipmentOptions = res;
that.form.equipment = eqId;
})
},
getdefects(){
@ -751,11 +753,6 @@ export default {
if(item.rule_expression!==''&&item.rule_expression!==undefined&&item.rule_expression!==null){
let str = item.rule_expression.replace(/`/g, '');
str = str.replace(/\${(.*?)}/g, 'row.\$1');
// if(str.indexOf('row.18mm')>-1){
// if(row.18mm==null||row.18mm==''||row.18mm==undefined){
// str = str.split('||')[0];
// }
// }
let judge = false;
try {
judge = eval(str);
@ -809,6 +806,7 @@ export default {
},
equipmentChange(){
let that = this;
localStorage.setItem("bxerpChenckEquipmentId",that.form.equipment);
that.equipmentOptions.forEach(item => {
if(item.id == that.form.equipment){
that.form.equipment_name = item.name;