@simitgroup/simpleapp-generator 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/basic/nuxt/pages.new.vue.eta +1 -1
- package/templates/nuxt/pages/index.vue._eta +1 -1
- package/templates/nuxt/plugins/10.simpleapp-event.ts.eta +4 -0
- package/templates/project/jsonschemas/category.json._eta +3 -3
- package/templates/project/jsonschemas/customer.json._eta +15 -2
- package/templates/project/jsonschemas/invoice.json._eta +2 -1
- package/templates/project/jsonschemas/product.json._eta +1 -1
package/package.json
CHANGED
|
@@ -141,7 +141,7 @@ if (id.value) {
|
|
|
141
141
|
<% } else if(obj['oneOf']){ %>
|
|
142
142
|
<% for(let f = 0; f < obj['oneOf'].length; f++){ %>
|
|
143
143
|
<%if(obj['oneOf'][f]['format']){ %>
|
|
144
|
-
<%~ getBasicElement('text',`#/properties/${key}`,`data.${key}`,obj['
|
|
144
|
+
<%~ getBasicElement('text',`#/properties/${key}`,`data.${key}`,obj['oneOf'][f]['format']) %>
|
|
145
145
|
<%}%>
|
|
146
146
|
<%}%>
|
|
147
147
|
|
|
@@ -24,7 +24,7 @@ const orgList = ref();
|
|
|
24
24
|
const alltenants = ref()
|
|
25
25
|
|
|
26
26
|
const loadTenants = async () => {
|
|
27
|
-
const profileapi =
|
|
27
|
+
const profileapi = getAllApi().PROFILEApi;
|
|
28
28
|
const axiosreturn = await new profileapi(
|
|
29
29
|
undefined,
|
|
30
30
|
useRuntimeConfig().public.API_URL,
|
|
@@ -14,6 +14,10 @@ import mitt from 'mitt'
|
|
|
14
14
|
// import Tooltip from 'primevue/tooltip';
|
|
15
15
|
const emitter = mitt<EventType>()
|
|
16
16
|
export default defineNuxtPlugin( async(nuxtApp) => {
|
|
17
|
+
//hide __NUXT__ at client side.
|
|
18
|
+
onNuxtReady(()=>{
|
|
19
|
+
window.__NUXT__ = undefined;
|
|
20
|
+
})
|
|
17
21
|
//const { csrf } = useCsrf()
|
|
18
22
|
//axios.defaults.headers.common = {"CSRF-TOKEN": csrf};
|
|
19
23
|
const myaxios = axios.create({timeout:5000})
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"tenantId": { "type": "integer", "default": 1},
|
|
18
18
|
"orgId": { "type": "integer", "default": 1},
|
|
19
19
|
"branchId": { "type": "integer", "default": 1},
|
|
20
|
-
"categoryCode": { "type": "string", "examples": ["TUITION"] },
|
|
21
|
-
"categoryName": { "type": "string", "examples": ["Tuition Service"] },
|
|
20
|
+
"categoryCode": { "type": "string", "examples": ["TUITION"], "minLength":2 },
|
|
21
|
+
"categoryName": { "type": "string", "examples": ["Tuition Service"],"minLength":3 },
|
|
22
22
|
"active": { "type": "boolean", "default": true, "examples": [true] },
|
|
23
23
|
"categoryType": {
|
|
24
24
|
"type": "string",
|
|
25
|
-
"enum": ["class", "charge"],
|
|
25
|
+
"enum": ["class", "charge","stock"],
|
|
26
26
|
"examples": ["class"]
|
|
27
27
|
},
|
|
28
28
|
"description": {
|
|
@@ -16,14 +16,27 @@
|
|
|
16
16
|
"createdBy": { "type": "string" },
|
|
17
17
|
"updatedBy": { "type": "string" },
|
|
18
18
|
"tenantId": { "type": "integer", "default": 1},
|
|
19
|
-
"orgId": { "type": "integer", "default": 1},
|
|
19
|
+
"orgId": { "type": "integer", "default": 1 },
|
|
20
20
|
"branchId": { "type": "integer", "default": 1},
|
|
21
21
|
"customerNo": {
|
|
22
22
|
"type": "string",
|
|
23
23
|
"format": "documentno",
|
|
24
24
|
"examples": ["S0001"]
|
|
25
25
|
},
|
|
26
|
-
"customerName": { "type": "string", "examples": ["Customer 1"] },
|
|
26
|
+
"customerName": { "type": "string", "examples": ["Customer 1"],"minLength":3 },
|
|
27
|
+
"customerStatus": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": ["unknown", "potential","suspended","existing"],
|
|
30
|
+
"examples": ["unknown"]
|
|
31
|
+
},
|
|
32
|
+
"email": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"oneOf":[{"format":"email"}, { "enum": [ "" ] }]
|
|
35
|
+
},
|
|
36
|
+
"tel": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"oneOf":[{"format":"tel"}, { "enum": [ "" ] }]
|
|
39
|
+
},
|
|
27
40
|
"active": { "type": "boolean", "default": true, "examples": [true] },
|
|
28
41
|
"description": { "type": "string", "format": "text" },
|
|
29
42
|
"docNoFormat": {
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"examples": ["SI1111"],
|
|
40
40
|
"format": "documentno"
|
|
41
41
|
},
|
|
42
|
-
"
|
|
42
|
+
"invoiceDate": { "type": "string", "format":"date"},
|
|
43
|
+
"invoiceTitle": { "type": "string", "examples": ["Sales to XYZ"] ,"minLength":3},
|
|
43
44
|
"invoiceTotal": { "type": "number", "default": 0 },
|
|
44
45
|
"details": {
|
|
45
46
|
"type": "array",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"updated": { "type": "string" },
|
|
16
16
|
"createdBy": { "type": "string" },
|
|
17
17
|
"updatedBy": { "type": "string" },
|
|
18
|
-
"tenantId": { "type": "integer", "default": 1},
|
|
18
|
+
"tenantId": { "type": "integer", "default": 1 },
|
|
19
19
|
"orgId": { "type": "integer", "default": 1},
|
|
20
20
|
"branchId": { "type": "integer", "default": 1},
|
|
21
21
|
"productCode": { "type": "string", "examples": ["BK-MTHP1"] },
|