|
@@ -315,6 +315,15 @@ function adjustFieldsForEditMode(option) {
|
|
|
if (orderCodeField) {
|
|
|
orderCodeField.disabled = true
|
|
|
}
|
|
|
+
|
|
|
+ // 编辑模式下,禁用组织名称和客户名称字段
|
|
|
+ const fieldsToDisable = ['orgName', 'customerName']
|
|
|
+ fieldsToDisable.forEach(fieldProp => {
|
|
|
+ const field = basicGroup?.column?.find(column => column.prop === fieldProp)
|
|
|
+ if (field) {
|
|
|
+ field.disabled = true
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
// 编辑模式下显示订单状态字段
|