feat: 补齐后排大仓和七座浅圆仓的编号及后台绑定

这个提交包含在:
wikiboss
2026-10-28 18:12:48 +08:00
父节点 87edf36b5b
当前提交 a06d23a632
共有 5 个文件被更改,包括 66 次插入 和 10 次删除

查看文件

@@ -290,11 +290,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
let num = parseInt(e, 10);
if (isNaN(num)) return;
this.formData.num = num;
if (this.title === '添加') {
if (this.title === '添加' && this.formData.granary_type !== 3) {
this.formData.granary_type = num > 18 ? 2 : 1;
this.changeGranaryType(this.formData.granary_type);
}
},
changeScreenPosition(position) {
if (!position) return;
this.changeGranaryType(position.indexOf('center_silo_') === 0 ? 3 : 2);
},
// 自由切换仓型(1: 圆型油罐,2: 房型平房仓)
changeGranaryType(type) {
this.formData.granary_type = type;
@@ -334,11 +338,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
this.varietiesType = 'one';
} else if (e === '小麦' || e === '玉米') {
this.contentType = 'three';
this.formData.granary_type = 2;
this.formData.granary_type = this.formData.granary_type === 3 ? 3 : 2;
this.varietiesType = 'two';
} else {
this.contentType = 'two';
this.formData.granary_type = 2;
this.formData.granary_type = this.formData.granary_type === 3 ? 3 : 2;
this.varietiesType = 'two';
}
}
@@ -352,7 +356,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
this.formData.granary_type = 1;
this.varietiesType = 'one';
} else {
this.formData.granary_type = 2;
this.formData.granary_type = this.formData.granary_type === 3 ? 3 : 2;
this.varietiesType = 'two';
}
this.contentFields[this.contentType]['varieties'] = val;