|
|
@ -155,29 +155,29 @@ export default { |
|
|
|
}, |
|
|
|
editOptions: {}, |
|
|
|
CreateForm: [ |
|
|
|
{ type: "input", label: "包装代码", prop: 'packCode', colSpan: 12 }, |
|
|
|
{ type: "input", label: "包装代码", prop: 'packCode', colSpan: 12, validType:'numberLetter' }, |
|
|
|
{ type: "input", label: "包装名称", prop: "packName", colSpan: 12 }, |
|
|
|
{ type: "select", label: "包装类型", prop: "packType", options: "qtyUomType", clearable: true, filterable: true, allowCreate: true, colSpan: 12 }, |
|
|
|
{ type: "filterSelect", label: "物料代码", prop: "itemCode", optionsLabel: "name", optionsValue: "code", |
|
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/Item-Basic")}, |
|
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/Item-Basic', 'ItemBasic', '物料选择', this.CreateFormData) }, colSpan: 12 }, |
|
|
|
{ type: "input", label: "包装数量", valueType: Number, prop: "packQty", colSpan: 12 }, |
|
|
|
{ type: "input", label: "物料单位", prop: "packUom", colSpan: 12 }, |
|
|
|
{ type: "input", label: "包装数量", prop: "packQty", colSpan: 12, validType:'number' }, |
|
|
|
{ type: "input", label: "物料单位", prop: "packUom", colSpan: 12, validType:'numberLetter' }, |
|
|
|
{ type: "select", label: "是否标准包装", prop: "isStdPack", options: "whetherOrNot", colSpan: 12 }, |
|
|
|
{ type: "input", label: "标包编号", prop: "stdPackCode", colSpan: 12 }, |
|
|
|
{ type: "input", label: "转换率", valueType: Number, prop: "conversionRate", colSpan: 12 }, |
|
|
|
{ type: "input", label: "标包编号", prop: "stdPackCode", colSpan: 12, validType:'numberLetter' }, |
|
|
|
{ type: "input", label: "转换率", prop: "conversionRate", colSpan: 12, validType:'number' }, |
|
|
|
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 }, |
|
|
|
], |
|
|
|
editForm: [ |
|
|
|
{ type: "input", label: "包装代码", prop: 'packCode', colSpan: 12 }, |
|
|
|
{ type: "input", label: "包装代码", prop: 'packCode', colSpan: 12, validType:'numberLetter' }, |
|
|
|
{ type: "input", label: "包装名称", prop: "packName", colSpan: 12 }, |
|
|
|
{ type: "select", label: "包装类型", prop: "packType", options: "qtyUomType", clearable: true, filterable: true, allowCreate: true, colSpan: 12 }, |
|
|
|
{ type: "input", label: "物料代码", prop: "itemCode", disabled:true, colSpan: 12 }, |
|
|
|
{ type: "input", label: "包装数量", valueType: Number, prop: "packQty", colSpan: 12 }, |
|
|
|
{ type: "input", label: "物料单位", prop: "packUom", colSpan: 12 }, |
|
|
|
{ type: "input", label: "包装数量", prop: "packQty", colSpan: 12, validType:'number' }, |
|
|
|
{ type: "input", label: "物料单位", prop: "packUom", colSpan: 12, validType:'numberLetter' }, |
|
|
|
{ type: "select", label: "是否标准包装", prop: "isStdPack", options: "whetherOrNot", colSpan: 12 }, |
|
|
|
{ type: "input", label: "标包编号", prop: "stdPackCode", colSpan: 12 }, |
|
|
|
{ type: "input", label: "转换率", valueType: Number, prop: "conversionRate", colSpan: 12 }, |
|
|
|
{ type: "input", label: "标包编号", prop: "stdPackCode", colSpan: 12, validType:'numberLetter' }, |
|
|
|
{ type: "input", label: "转换率", prop: "conversionRate", colSpan: 12, validType:'number' }, |
|
|
|
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 }, |
|
|
|
], |
|
|
|
editRules: { |
|
|
|