...
|
...
|
@@ -85,6 +85,7 @@ export default { |
|
|
this.modal_loading = true;
|
|
|
|
|
|
this.save().then(() => {
|
|
|
this.$emit('on-success');
|
|
|
this.modal_loading = false;
|
|
|
this.close();
|
|
|
});
|
...
|
...
|
@@ -96,12 +97,13 @@ export default { |
|
|
this.productSkn = null;
|
|
|
this.brandId = null;
|
|
|
this.modal_loading = false;
|
|
|
this.table.data = [];
|
|
|
},
|
|
|
getData() {
|
|
|
service.getStorageBySkn(this.productSkn, this.brandId)
|
|
|
.then((result) => {
|
|
|
if (result.code === 200) {
|
|
|
this.tableData = result.data;
|
|
|
this.table.data = result.data;
|
|
|
}
|
|
|
});
|
|
|
},
|
...
|
...
|
@@ -112,7 +114,7 @@ export default { |
|
|
return service.updateStorage(data);
|
|
|
},
|
|
|
refreshTable() {
|
|
|
this.table.data = this.$storeTable.rebuildData;
|
|
|
this.table.data = this.$refs.storeTable.rebuildData;
|
|
|
},
|
|
|
beforeSave() {
|
|
|
return this.table.data.map((item) => {
|
...
|
...
|
|