This commit is contained in:
@@ -385,6 +385,36 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
||||||
|
/*
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"id": 16,
|
||||||
|
"concurrency": 4659549,
|
||||||
|
"name": null,
|
||||||
|
"active": true,
|
||||||
|
"notes": "Culpa voluptas ut et.",
|
||||||
|
"wiki": null,
|
||||||
|
"customFields": null,
|
||||||
|
"tags": [
|
||||||
|
"quince",
|
||||||
|
"yellow",
|
||||||
|
"zone5"
|
||||||
|
],
|
||||||
|
"partNumber": "015587",
|
||||||
|
"manufacturerId": 8,
|
||||||
|
"manufacturerNumber": "man-015587",
|
||||||
|
"wholeSalerId": 17,
|
||||||
|
"wholeSalerNumber": "ws-015587",
|
||||||
|
"alternativeWholeSalerId": null,
|
||||||
|
"alternativeWholeSalerNumber": null,
|
||||||
|
"cost": 15.9554,
|
||||||
|
"retail": 19.1465,
|
||||||
|
"unitOfMeasure": "each",
|
||||||
|
"upc": "7997628113263",
|
||||||
|
"trackSerialNumber": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*/
|
||||||
obj:
|
obj:
|
||||||
//IMPORTANT NOTE: Fields that are NON NULLABLE in the schema for the table but *are* hideable **MUST** have a default value set here or else there will be no way to save the record
|
//IMPORTANT NOTE: Fields that are NON NULLABLE in the schema for the table but *are* hideable **MUST** have a default value set here or else there will be no way to save the record
|
||||||
//I.E. Serial, usertype fields, ACTIVE
|
//I.E. Serial, usertype fields, ACTIVE
|
||||||
@@ -398,10 +428,18 @@ export default {
|
|||||||
wiki: null,
|
wiki: null,
|
||||||
customFields: "{}",
|
customFields: "{}",
|
||||||
tags: [],
|
tags: [],
|
||||||
dateStarted: window.$gz.locale.nowUTC8601String(),
|
partNumber: null,
|
||||||
dateCompleted: null,
|
manufacturerId: null,
|
||||||
partOverseerId: null,
|
manufacturerNumber: null,
|
||||||
accountNumber: null
|
wholeSalerId: null,
|
||||||
|
wholeSalerNumber: null,
|
||||||
|
alternativeWholeSalerId: null,
|
||||||
|
alternativeWholeSalerNumber: null,
|
||||||
|
cost: 0,
|
||||||
|
retail: 0,
|
||||||
|
unitOfMeasure: null,
|
||||||
|
upc: null,
|
||||||
|
trackSerialNumber: false
|
||||||
},
|
},
|
||||||
formState: {
|
formState: {
|
||||||
ready: false,
|
ready: false,
|
||||||
@@ -728,9 +766,9 @@ function generateMenu(vm) {
|
|||||||
let menuOptions = {
|
let menuOptions = {
|
||||||
isMain: false,
|
isMain: false,
|
||||||
readOnly: vm.formState.readOnly,
|
readOnly: vm.formState.readOnly,
|
||||||
icon: "$ayiPartDiagram",
|
icon: "$ayiBoxes",
|
||||||
title: "Part",
|
title: "Part",
|
||||||
helpUrl: "form-svc-parts",
|
helpUrl: "form-inv-parts",
|
||||||
formData: {
|
formData: {
|
||||||
ayaType: window.$gz.type.Part,
|
ayaType: window.$gz.type.Part,
|
||||||
recordId: vm.$route.params.recordid,
|
recordId: vm.$route.params.recordid,
|
||||||
|
|||||||
Reference in New Issue
Block a user