|
|
@@ -83,18 +83,21 @@ |
|
|
|
// }, |
|
|
|
], |
|
|
|
[ |
|
|
|
// 此方案必须,工段(含listen)字段必须在产线字段(含onChange)之前 |
|
|
|
{ |
|
|
|
select: true, |
|
|
|
label: '产线', |
|
|
|
url: '/base/production-line/listAll', |
|
|
|
prop: 'productionLineId', |
|
|
|
label: '工段', |
|
|
|
url: '/base/workshop-section/listAll', |
|
|
|
prop: 'sectionId', |
|
|
|
listen: 'productionLineChange', // 对应上面 emit |
|
|
|
rules: [{ required: true, message: '不能为空', trigger: 'blur' }], |
|
|
|
}, |
|
|
|
{ |
|
|
|
select: true, |
|
|
|
label: '工段', |
|
|
|
url: '/base/workshop-section/listAll', |
|
|
|
prop: 'sectionId', |
|
|
|
label: '产线', |
|
|
|
url: '/base/production-line/listAll', |
|
|
|
prop: 'productionLineId', |
|
|
|
onChange: { emit: 'productionLineChange' }, |
|
|
|
rules: [{ required: true, message: '不能为空', trigger: 'blur' }], |
|
|
|
}, |
|
|
|
], |
|
|
|