feat(wms): 添加备注列并优化产品信息显示

refactor(表单控件): 将输入框替换为下拉选择框优化用户体验
This commit is contained in:
砂糖
2026-01-10 09:57:44 +08:00
parent 50add1e8b5
commit d4e5f7fbc7
11 changed files with 198 additions and 142 deletions

View File

@@ -321,11 +321,7 @@ export default {
this.buttonLoading = true;
if (this.form.productId != null) {
updateProduct({
...this.form,
productCode: this.form.material + this.form.zincLayer + new Date().getTime(),
}).then(response => {
updateProduct(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
@@ -334,7 +330,10 @@ export default {
this.buttonLoading = false;
});
} else {
addProductWithBom(this.form).then(response => {
addProductWithBom({
...this.form,
productCode: this.form.material + this.form.zincLayer + new Date().getTime(),
}).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();