diff --git a/src/types/CustomerAddressType.vue b/src/types/CustomerAddressType.vue
new file mode 100644
index 0000000..82b676f
--- /dev/null
+++ b/src/types/CustomerAddressType.vue
@@ -0,0 +1,19 @@
+
diff --git a/src/types/CustomerType.vue b/src/types/CustomerType.vue
new file mode 100644
index 0000000..b67a153
--- /dev/null
+++ b/src/types/CustomerType.vue
@@ -0,0 +1,12 @@
+
diff --git a/src/types/MedFeedType.vue b/src/types/MedFeedType.vue
new file mode 100644
index 0000000..ac8b5e2
--- /dev/null
+++ b/src/types/MedFeedType.vue
@@ -0,0 +1,23 @@
+
diff --git a/src/types/MedicationType.vue b/src/types/MedicationType.vue
new file mode 100644
index 0000000..197f85b
--- /dev/null
+++ b/src/types/MedicationType.vue
@@ -0,0 +1,9 @@
+
diff --git a/src/types/ProductType.vue b/src/types/ProductType.vue
new file mode 100644
index 0000000..f3a1fca
--- /dev/null
+++ b/src/types/ProductType.vue
@@ -0,0 +1,7 @@
+
diff --git a/src/types/VetType.vue b/src/types/VetType.vue
new file mode 100644
index 0000000..109fd57
--- /dev/null
+++ b/src/types/VetType.vue
@@ -0,0 +1,7 @@
+
diff --git a/src/views/contracts/ContractEdit.vue b/src/views/contracts/ContractEdit.vue
index 0c6d3b3..e680a7e 100644
--- a/src/views/contracts/ContractEdit.vue
+++ b/src/views/contracts/ContractEdit.vue
@@ -1,6 +1,5 @@
- {{ contract }}
diff --git a/src/views/medfeeds/MedFeedsEdit.vue b/src/views/medfeeds/MedFeedsEdit.vue
index 68d0ec9..798d277 100644
--- a/src/views/medfeeds/MedFeedsEdit.vue
+++ b/src/views/medfeeds/MedFeedsEdit.vue
@@ -1,3 +1,55 @@
- Not Implemented, yet :-)
+
+
+ Medicated Feed :
+ New
+ {{ mf.id }}
+
+
+
+
+
+ {{ mf }}
+
+
+
+
+
+ Save
+ Add
+
+ Close
+
+
+
diff --git a/src/views/medfeeds/MedFeedsList.vue b/src/views/medfeeds/MedFeedsList.vue
index b257e33..1b112da 100644
--- a/src/views/medfeeds/MedFeedsList.vue
+++ b/src/views/medfeeds/MedFeedsList.vue
@@ -18,7 +18,7 @@
append-inner-icon="mdi-magnify">
- + Add
+ + Add
@@ -30,7 +30,7 @@
>
- Medicated Feed : {{ item.id }},
+ Medicated Feed : {{ item.id }}
{{ item.customer.acc_no }} - {{ item.customer.name }}
@@ -57,8 +57,8 @@
-
- Edit
+
+ Edit
@@ -66,7 +66,7 @@
-
+
@@ -82,6 +82,7 @@ import MedFeedsEdit from './MedFeedsEdit.vue'
import ScriptReq from './MedFeedsScriptReq.vue'
import OrderForm from './MedFeedsOrderForm.vue'
import methods from '@/CommonMethods.vue'
+import MedFeedType from '@/types/MedFeedType.vue';
export default {
props: {
site_info: {},
@@ -162,9 +163,14 @@ export default {
})
},
async editMedFeed(mf) {
+ console.log(mf)
+ if ( mf != undefined ) {
+ this.selected_mf = mf
+ } else {
+ this.selected_mf = new MedFeedType()
+ }
this.edit = true
this.tab = "edit"
- this.selected_mf = mf
}
}
}