更新
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2022-08-24 11:19:43
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2023-09-05 15:10:13
|
||||
* @LastEditTime: 2023-10-08 10:44:25
|
||||
* @Description:
|
||||
*/
|
||||
export default {
|
||||
@@ -39,7 +39,7 @@ export default {
|
||||
if(bPage){
|
||||
this.dataForm.warehouseId = this.bId;
|
||||
}else{
|
||||
this.dataForm.warehouseId = this.bId;
|
||||
this.dataForm.warehouseId = this.aId;
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.$refs["dataForm"].resetFields();
|
||||
@@ -90,17 +90,25 @@ export default {
|
||||
// 修改的提交
|
||||
if (this.dataForm.id) {
|
||||
this.urlOptions.updateURL(this.dataForm).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.visible = false;
|
||||
this.$emit("refreshDataList");
|
||||
if(response.data){
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.visible = false;
|
||||
this.$emit("refreshDataList");
|
||||
}else{
|
||||
this.$modal.msgWarning('名称或编码不能重复');;
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
// 添加的提交
|
||||
this.urlOptions.createURL(this.dataForm).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.visible = false;
|
||||
this.$emit("refreshDataList");
|
||||
if(response.data){
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.visible = false;
|
||||
this.$emit("refreshDataList");
|
||||
}else{
|
||||
this.$modal.msgWarning('名称或编码不能重复');;
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user