|
@ -156,7 +156,7 @@ export default { |
|
|
configuration: null, |
|
|
configuration: null, |
|
|
basicUom: null, |
|
|
basicUom: null, |
|
|
abcClass: "C", |
|
|
abcClass: "C", |
|
|
productLine: null, |
|
|
// productLine: null, |
|
|
project: null, |
|
|
project: null, |
|
|
version: null, |
|
|
version: null, |
|
|
eco: null, |
|
|
eco: null, |
|
@ -166,7 +166,8 @@ export default { |
|
|
elevel: null, |
|
|
elevel: null, |
|
|
code: null, |
|
|
code: null, |
|
|
company: null, |
|
|
company: null, |
|
|
isPhantom: false |
|
|
isPhantom: false, |
|
|
|
|
|
stdPackQty: null, |
|
|
}, |
|
|
}, |
|
|
//编辑 |
|
|
//编辑 |
|
|
editFormData: { |
|
|
editFormData: { |
|
@ -187,7 +188,7 @@ export default { |
|
|
configuration: null, |
|
|
configuration: null, |
|
|
basicUom: null, |
|
|
basicUom: null, |
|
|
abcClass: null, |
|
|
abcClass: null, |
|
|
productLine: null, |
|
|
// productLine: null, |
|
|
project: null, |
|
|
project: null, |
|
|
version: null, |
|
|
version: null, |
|
|
eco: null, |
|
|
eco: null, |
|
@ -196,13 +197,15 @@ export default { |
|
|
manageType: 1, |
|
|
manageType: 1, |
|
|
elevel: null, |
|
|
elevel: null, |
|
|
concurrencyStamp: null, |
|
|
concurrencyStamp: null, |
|
|
isPhantom: null |
|
|
isPhantom: null, |
|
|
|
|
|
stdPackQty: null, |
|
|
}, |
|
|
}, |
|
|
editOptions: {}, |
|
|
editOptions: {}, |
|
|
CreateForm: [ |
|
|
CreateForm: [ |
|
|
{ type: "input", label: "物料代码", prop: 'code', colSpan: 12, validType:'numberLetter' }, |
|
|
{ type: "input", label: "物料代码", prop: 'code', colSpan: 12, validType:'numberLetter' }, |
|
|
{ type: "input", label: "物料名称", prop: "name", colSpan: 12 }, |
|
|
{ type: "input", label: "物料名称", prop: "name", colSpan: 12 }, |
|
|
{ type: "input", label: "物料描述", prop: "desc1", colSpan: 12 }, |
|
|
{ type: "input", label: "物料描述1", prop: "desc1", colSpan: 12 }, |
|
|
|
|
|
{ type: "input", label: "物料描述2", prop: "desc2", colSpan: 12 }, |
|
|
{ type: "select", label: "状态", prop: "status", options: "itemStatus", colSpan: 12 }, |
|
|
{ type: "select", label: "状态", prop: "status", options: "itemStatus", colSpan: 12 }, |
|
|
{ type: "filterSelect", label: "计量单位", prop: "basicUom", optionsLabel: "description", optionsValue: "name", |
|
|
{ type: "filterSelect", label: "计量单位", prop: "basicUom", optionsLabel: "description", optionsValue: "name", |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/uom")}, |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/uom")}, |
|
@ -212,7 +215,7 @@ export default { |
|
|
{ type: "select", label: "采购件", prop: "canBuy", options: "whetherOrNot", colSpan: 12 }, |
|
|
{ type: "select", label: "采购件", prop: "canBuy", options: "whetherOrNot", colSpan: 12 }, |
|
|
{ type: "select", label: "外包件", prop: "canOutsourcing", options: "whetherOrNot", colSpan: 12 }, |
|
|
{ type: "select", label: "外包件", prop: "canOutsourcing", options: "whetherOrNot", colSpan: 12 }, |
|
|
{ type: "select", label: "回收件", prop: "isRecycled", options: "whetherOrNot", colSpan: 12 }, |
|
|
{ type: "select", label: "回收件", prop: "isRecycled", options: "whetherOrNot", colSpan: 12 }, |
|
|
{ type: "input", label: "产品类", prop: "productLine", colSpan: 12 }, |
|
|
// { type: "input", label: "产品类", prop: "productLine", colSpan: 12 }, |
|
|
{ type: "input", label: "有效值", prop: "validity", colSpan: 12 }, |
|
|
{ type: "input", label: "有效值", prop: "validity", colSpan: 12 }, |
|
|
{ type: "select", label: "有效期", prop: "validityUnit", options: "validityUnit", colSpan: 12 }, |
|
|
{ type: "select", label: "有效期", prop: "validityUnit", options: "validityUnit", colSpan: 12 }, |
|
|
{ type: "select", label: "管理类型", prop: "manageType", options: "manageType", colSpan: 12 }, |
|
|
{ type: "select", label: "管理类型", prop: "manageType", options: "manageType", colSpan: 12 }, |
|
@ -227,12 +230,14 @@ export default { |
|
|
{ type: "input", label: "版本", prop: 'version', colSpan: 12 }, |
|
|
{ type: "input", label: "版本", prop: 'version', colSpan: 12 }, |
|
|
{ type: "input", label: "工程变更", prop: 'eco', colSpan: 12 }, |
|
|
{ type: "input", label: "工程变更", prop: 'eco', colSpan: 12 }, |
|
|
{ type: "select", label: "是否虚拟物料", prop: "isPhantom", options: "whetherOrNot", colSpan: 12 }, |
|
|
{ type: "select", label: "是否虚拟物料", prop: "isPhantom", options: "whetherOrNot", colSpan: 12 }, |
|
|
|
|
|
{ type: "input", label: "标包数", prop: 'stdPackQty', validType:'number', colSpan: 12 }, |
|
|
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 }, |
|
|
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 }, |
|
|
], |
|
|
], |
|
|
editForm: [ |
|
|
editForm: [ |
|
|
{ type: "input", label: "物料代码", prop: 'code', disabled: true, colSpan: 12, validType:'numberLetter' }, |
|
|
{ type: "input", label: "物料代码", prop: 'code', disabled: true, colSpan: 12, validType:'numberLetter' }, |
|
|
{ type: "input", label: "物料名称", prop: "name", colSpan: 12 }, |
|
|
{ type: "input", label: "物料名称", prop: "name", colSpan: 12 }, |
|
|
{ type: "input", label: "物料描述", prop: "desc1", colSpan: 12 }, |
|
|
{ type: "input", label: "物料描述1", prop: "desc1", colSpan: 12 }, |
|
|
|
|
|
{ type: "input", label: "物料描述2", prop: "desc2", colSpan: 12 }, |
|
|
{ type: "select", label: "状态", prop: "status", options: "itemStatus", colSpan: 12 }, |
|
|
{ type: "select", label: "状态", prop: "status", options: "itemStatus", colSpan: 12 }, |
|
|
{ type: "filterSelect", label: "计量单位", prop: "basicUom", optionsLabel: "description", optionsValue: "name", |
|
|
{ type: "filterSelect", label: "计量单位", prop: "basicUom", optionsLabel: "description", optionsValue: "name", |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/uom")}, |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/uom")}, |
|
@ -242,7 +247,7 @@ export default { |
|
|
{ type: "select", label: "采购件", prop: "canBuy", options: "whetherOrNot", disabled: true, colSpan: 12 }, |
|
|
{ type: "select", label: "采购件", prop: "canBuy", options: "whetherOrNot", disabled: true, colSpan: 12 }, |
|
|
{ type: "select", label: "外包件", prop: "canOutsourcing", options: "whetherOrNot", disabled: true, colSpan: 12 }, |
|
|
{ type: "select", label: "外包件", prop: "canOutsourcing", options: "whetherOrNot", disabled: true, colSpan: 12 }, |
|
|
{ type: "select", label: "回收件", prop: "isRecycled", options: "whetherOrNot", disabled: true, colSpan: 12 }, |
|
|
{ type: "select", label: "回收件", prop: "isRecycled", options: "whetherOrNot", disabled: true, colSpan: 12 }, |
|
|
{ type: "input", label: "产品类", prop: "productLine", colSpan: 12 }, |
|
|
// { type: "input", label: "产品类", prop: "productLine", colSpan: 12 }, |
|
|
{ type: "input", label: "有效值", prop: "validity", colSpan: 12 }, |
|
|
{ type: "input", label: "有效值", prop: "validity", colSpan: 12 }, |
|
|
{ type: "select", label: "有效期", prop: "validityUnit", options: "validityUnit", colSpan: 12 }, |
|
|
{ type: "select", label: "有效期", prop: "validityUnit", options: "validityUnit", colSpan: 12 }, |
|
|
{ type: "select", label: "管理类型", prop: "manageType", options: "manageType", colSpan: 12 }, |
|
|
{ type: "select", label: "管理类型", prop: "manageType", options: "manageType", colSpan: 12 }, |
|
@ -257,6 +262,7 @@ export default { |
|
|
{ type: "input", label: "版本", prop: 'version', colSpan: 12 }, |
|
|
{ type: "input", label: "版本", prop: 'version', colSpan: 12 }, |
|
|
{ type: "input", label: "工程变更", prop: 'eco', colSpan: 12 }, |
|
|
{ type: "input", label: "工程变更", prop: 'eco', colSpan: 12 }, |
|
|
{ type: "select", label: "是否虚拟物料", prop: "isPhantom", options: "whetherOrNot", colSpan: 12 }, |
|
|
{ type: "select", label: "是否虚拟物料", prop: "isPhantom", options: "whetherOrNot", colSpan: 12 }, |
|
|
|
|
|
{ type: "input", label: "标包数", prop: 'stdPackQty', validType:'number', colSpan: 12 }, |
|
|
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 }, |
|
|
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 }, |
|
|
], |
|
|
], |
|
|
editRules: { |
|
|
editRules: { |
|
|