mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-13 07:53:19 +03:30
fix: items & style
This commit is contained in:
@@ -129,13 +129,13 @@ export default {
|
||||
},
|
||||
async load(id) {
|
||||
const result = await ApiService.get(urls.editLabel(id));
|
||||
if (result.status == 200) {
|
||||
if (result && result.status == 200) {
|
||||
this.formData = result.data.data;
|
||||
}
|
||||
},
|
||||
async loadItems() {
|
||||
const result = await ApiService.get(urls.listAllPackage());
|
||||
if (result.status == 200) {
|
||||
if (result && result.status == 200) {
|
||||
this.items = result.data.data;
|
||||
}
|
||||
},
|
||||
@@ -143,15 +143,9 @@ export default {
|
||||
let result;
|
||||
this.formData['lot_number'] = this.lotNumber;
|
||||
if (this.$route.params.label) {
|
||||
result = await ApiService.put(
|
||||
urls.updateLabel(this.$route.params.label),
|
||||
this.formData
|
||||
);
|
||||
result = await ApiService.put(urls.updateLabel(this.$route.params.label), this.formData);
|
||||
} else {
|
||||
result = await ApiService.post(
|
||||
urls.storeLabel,
|
||||
this.formData
|
||||
);
|
||||
result = await ApiService.post(urls.storeLabel, this.formData);
|
||||
}
|
||||
|
||||
if (result && result.status == 200) {
|
||||
|
||||
Reference in New Issue
Block a user