This commit is contained in:
@@ -385,6 +385,36 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
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:
|
||||
//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
|
||||
@@ -398,10 +428,18 @@ export default {
|
||||
wiki: null,
|
||||
customFields: "{}",
|
||||
tags: [],
|
||||
dateStarted: window.$gz.locale.nowUTC8601String(),
|
||||
dateCompleted: null,
|
||||
partOverseerId: null,
|
||||
accountNumber: null
|
||||
partNumber: null,
|
||||
manufacturerId: null,
|
||||
manufacturerNumber: null,
|
||||
wholeSalerId: null,
|
||||
wholeSalerNumber: null,
|
||||
alternativeWholeSalerId: null,
|
||||
alternativeWholeSalerNumber: null,
|
||||
cost: 0,
|
||||
retail: 0,
|
||||
unitOfMeasure: null,
|
||||
upc: null,
|
||||
trackSerialNumber: false
|
||||
},
|
||||
formState: {
|
||||
ready: false,
|
||||
@@ -728,9 +766,9 @@ function generateMenu(vm) {
|
||||
let menuOptions = {
|
||||
isMain: false,
|
||||
readOnly: vm.formState.readOnly,
|
||||
icon: "$ayiPartDiagram",
|
||||
icon: "$ayiBoxes",
|
||||
title: "Part",
|
||||
helpUrl: "form-svc-parts",
|
||||
helpUrl: "form-inv-parts",
|
||||
formData: {
|
||||
ayaType: window.$gz.type.Part,
|
||||
recordId: vm.$route.params.recordid,
|
||||
|
||||
Reference in New Issue
Block a user