feat(wms): 添加备注列并优化产品信息显示
refactor(表单控件): 将输入框替换为下拉选择框优化用户体验
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user