|
@ -161,15 +161,27 @@ export default { |
|
|
{ type: "filterSelect", label: "车间代码", prop: "workshopCode", optionsLabel: "name", optionsValue: "code", |
|
|
{ type: "filterSelect", label: "车间代码", prop: "workshopCode", optionsLabel: "name", optionsValue: "code", |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/workshop")}, |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/workshop")}, |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/workshop', 'Workshop', '车间选择', this.CreateFormData) }, colSpan: 12 }, |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/workshop', 'Workshop', '车间选择', this.CreateFormData) }, colSpan: 12 }, |
|
|
{ type: "filterSelect", label: "原料库位", prop: "rawLocationCode", optionsLabel: "name", optionsValue: "code", |
|
|
|
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")}, |
|
|
{ type: "filterSelect", label: "原料库位", prop: "rawLocationCode", optionsLabel: "name", optionsValue: "code", |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData) }, colSpan: 12 }, |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location",[ |
|
|
|
|
|
{logic:"And",column:"type",action:"==",value:"2"}, |
|
|
|
|
|
])}, |
|
|
|
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData,[ |
|
|
|
|
|
{logic:"And",column:"type",action:"==",value:"2"}, |
|
|
|
|
|
]) }, colSpan: 12 }, |
|
|
|
|
|
|
|
|
{ type: "filterSelect", label: "原料库位组", prop: "rawLocationGroupCode", optionsLabel: "name", optionsValue: "code", |
|
|
{ type: "filterSelect", label: "原料库位组", prop: "rawLocationGroupCode", optionsLabel: "name", optionsValue: "code", |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location-group")}, |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location-group")}, |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location-group', 'LocationGroup', '库位组选择', this.CreateFormData) }, colSpan: 12 }, |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location-group', 'LocationGroup', '库位组选择', this.CreateFormData) }, colSpan: 12 }, |
|
|
|
|
|
|
|
|
{ type: "filterSelect", label: "成品库位", prop: "productLocationCode", optionsLabel: "name", optionsValue: "code", |
|
|
{ type: "filterSelect", label: "成品库位", prop: "productLocationCode", optionsLabel: "name", optionsValue: "code", |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")}, |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location",[ |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData) }, colSpan: 12 }, |
|
|
{logic:"And",column:"type",action:"==",value:"4"}, |
|
|
|
|
|
])}, |
|
|
|
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData,[ |
|
|
|
|
|
{logic:"And",column:"type",action:"==",value:"4"}, |
|
|
|
|
|
]) }, colSpan: 12 }, |
|
|
|
|
|
|
|
|
{ type: "input", label: "描述", prop: "description", colSpan: 12 }, |
|
|
{ type: "input", label: "描述", prop: "description", colSpan: 12 }, |
|
|
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 }, |
|
|
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 }, |
|
|
], |
|
|
], |
|
@ -177,32 +189,45 @@ export default { |
|
|
{ type: "input", label: "生产线代码", disabled:"true", prop: "code", validType:'numberLetter', colSpan: 12 }, |
|
|
{ type: "input", label: "生产线代码", disabled:"true", prop: "code", validType:'numberLetter', colSpan: 12 }, |
|
|
{ type: "input", label: "生产线名称", prop: 'name', colSpan: 12 }, |
|
|
{ type: "input", label: "生产线名称", prop: 'name', colSpan: 12 }, |
|
|
{ type: "select", label: "类型", prop: "type", options: "productionLineType", colSpan: 12 }, |
|
|
{ type: "select", label: "类型", prop: "type", options: "productionLineType", colSpan: 12 }, |
|
|
|
|
|
|
|
|
{ type: "filterSelect", label: "车间代码", prop: "workshopCode", optionsLabel: "name", optionsValue: "code", |
|
|
{ type: "filterSelect", label: "车间代码", prop: "workshopCode", optionsLabel: "name", optionsValue: "code", |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/workshop")}, |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/workshop")}, |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/workshop', 'Workshop', '车间选择', this.editFormData) }, colSpan: 12 }, |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/workshop', 'Workshop', '车间选择', this.editFormData) }, colSpan: 12 }, |
|
|
|
|
|
|
|
|
{ type: "filterSelect", label: "原料库位", prop: "rawLocationCode", optionsLabel: "name", optionsValue: "code", |
|
|
{ type: "filterSelect", label: "原料库位", prop: "rawLocationCode", optionsLabel: "name", optionsValue: "code", |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")}, |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location",[ |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData) }, colSpan: 12 }, |
|
|
{logic:"And",column:"type",action:"==",value:"2"}, |
|
|
|
|
|
])}, |
|
|
|
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData,[ |
|
|
|
|
|
{logic:"And",column:"type",action:"==",value:"2"}, |
|
|
|
|
|
]) }, colSpan: 12 }, |
|
|
|
|
|
|
|
|
{ type: "filterSelect", label: "原料库位组", prop: "rawLocationGroupCode", optionsLabel: "name", optionsValue: "code", |
|
|
{ type: "filterSelect", label: "原料库位组", prop: "rawLocationGroupCode", optionsLabel: "name", optionsValue: "code", |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location-group")}, |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location-group")}, |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location-group', 'LocationGroup', '库位组选择', this.editFormData) }, colSpan: 12 }, |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location-group', 'LocationGroup', '库位组选择', this.editFormData) }, colSpan: 12 }, |
|
|
|
|
|
|
|
|
{ type: "filterSelect", label: "成品库位", prop: "productLocationCode", optionsLabel: "name", optionsValue: "code", |
|
|
{ type: "filterSelect", label: "成品库位", prop: "productLocationCode", optionsLabel: "name", optionsValue: "code", |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")}, |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location",[ |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData) }, colSpan: 12 }, |
|
|
{logic:"And",column:"type",action:"==",value:"4"}, |
|
|
|
|
|
])}, |
|
|
|
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData,[ |
|
|
|
|
|
{logic:"And",column:"type",action:"==",value:"4"}, |
|
|
|
|
|
]) }, colSpan: 12 }, |
|
|
|
|
|
|
|
|
{ type: "input", label: "描述", prop: "description", colSpan: 12 }, |
|
|
{ type: "input", label: "描述", prop: "description", colSpan: 12 }, |
|
|
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 }, |
|
|
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 }, |
|
|
], |
|
|
], |
|
|
editRules: { |
|
|
editRules: { |
|
|
cerateRule: { |
|
|
cerateRule: { |
|
|
code: [{ required: true, trigger: "blur", message: "不可为空" }], |
|
|
code: [{ required: true, trigger: "blur", message: "不可为空" }], |
|
|
rawLocation: [{ required: true, trigger: "change", message: "不可为空" }], |
|
|
|
|
|
workshopCode: [{ required: true, trigger: "change", message: "不可为空" }], |
|
|
workshopCode: [{ required: true, trigger: "change", message: "不可为空" }], |
|
|
productLocation: [{ required: true, trigger: "change", message: "不可为空" }], |
|
|
rawLocationCode: [{ required: true, trigger: "change", message: "不可为空" }], |
|
|
|
|
|
productLocationCode: [{ required: true, trigger: "change", message: "不可为空" }], |
|
|
}, |
|
|
}, |
|
|
editRule: { |
|
|
editRule: { |
|
|
rawLocation: [{ required: true, trigger: "change", message: "不可为空" }], |
|
|
|
|
|
workshopCode: [{ required: true, trigger: "change", message: "不可为空" }], |
|
|
workshopCode: [{ required: true, trigger: "change", message: "不可为空" }], |
|
|
productLocation: [{ required: true, trigger: "change", message: "不可为空" }], |
|
|
rawLocationCode: [{ required: true, trigger: "change", message: "不可为空" }], |
|
|
|
|
|
productLocationCode: [{ required: true, trigger: "change", message: "不可为空" }], |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|