fix: 取消更新后登录页不再自动弹框,等级改为非必填并升至1.1.17

This commit is contained in:
2026-11-01 17:54:32 +08:00
parent 7adec1b960
commit 61bb43f759
6 changed files with 26 additions and 13 deletions
@@ -376,10 +376,6 @@ export default {
return;
}
const levelIds = normalizeLevelIds(this.detail.grey_fabric_level_id);
if (!levelIds.length) {
this.$u.toast('请选择等级');
return;
}
if (this.submitting) return;
this.submitting = true;
try {
@@ -387,8 +383,10 @@ export default {
fabric_piece_code: fabricPieceCode,
actual_weight: actualWeight,
electronic_scale_weight: actualWeight,
grey_fabric_level_id: levelIds,
};
if (levelIds.length) {
payload.grey_fabric_level_id = levelIds;
}
const inspectorName = String(this.detail.inspector_name || '').trim();
if (inspectorName) {
payload.inspector_name = inspectorName;