diff --git a/src/App.tsx b/src/App.tsx index e158700..36cc238 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -93,6 +93,7 @@ const CUSTOMER_CONFIG: CustomerOptionGroup[] = [ { title: '二次工艺', options: ['绣花', '印花'], + multiple: true, required: false }, { @@ -230,6 +231,7 @@ const CUSTOMER_CONFIG: CustomerOptionGroup[] = [ { title: '二次工艺', options: ['绣花', '印花'], + multiple: true, required: false }, { @@ -310,7 +312,7 @@ const CUSTOMER_CONFIG: CustomerOptionGroup[] = [ }, { title: '打板类型(多选)', - options: ['复版', '拍照版','开货版需打版','不用打版'], + options: ['复版', '拍照版','开货版需打版','开货版不打版'], required: false, level: 3, parentOption: '首单', @@ -323,8 +325,8 @@ const CUSTOMER_CONFIG: CustomerOptionGroup[] = [ options: ['寄裤筒', '寄成衣'], required: false, level: 4, - parentOption: '不用打版', - condition: (checkedList) => checkedList.includes('首单') && checkedList.includes('不用打版'), + parentOption: '开货版不打版', + condition: (checkedList) => checkedList.includes('首单') && checkedList.includes('开货版不打版'), resetOn: ['翻单'] }, { @@ -372,6 +374,7 @@ const CUSTOMER_CONFIG: CustomerOptionGroup[] = [ condition: (checkedList) => checkedList.includes('无变动不需要修改'), resetOn: ['首单', '有变动需要修改'] }, + { title: '品类', options: ['牛仔', '时装'], @@ -385,6 +388,7 @@ const CUSTOMER_CONFIG: CustomerOptionGroup[] = [ { title: '二次工艺', options: ['绣花', '印花'], + multiple: true, required: false }, { @@ -455,19 +459,320 @@ const CUSTOMER_CONFIG: CustomerOptionGroup[] = [ // RBE 客户配置 - 简化示例 { - title: 'RBE', + title: 'BE', options: [ { - title: '特殊订单类型', - options: ['紧急订单', '常规订单'], + title: '单据类型', + options: ['首单', '翻单'], required: true, level: 2 }, { - title: '运输优先级', - options: ['标准运输', '加急运输', '特快运输'], + title: '打板类型(多选)', + options: ['复版', '拍照版','开货版需打版','开货版不打版'], + required: false, + level: 3, + parentOption: '首单', + multiple: true, + condition: (checkedList) => checkedList.includes('首单'), + resetOn: ['翻单'] + }, + { + title: '寄样方式', + options: ['寄裤筒', '寄成衣'], + required: false, + level: 4, + parentOption: '开货版不打版', + condition: (checkedList) => checkedList.includes('首单') && checkedList.includes('开货版不打版'), + resetOn: ['翻单'] + }, + { + title: '翻单变动', + options: ['无变动不需要修改', '有变动需要修改'], + required: false, + level: 3, + parentOption: '翻单', + condition: (checkedList) => checkedList.includes('翻单'), + resetOn: ['首单'] + }, + { + title: '特殊订单', + options: ['换料寄面料样', '换料重新打板', '改尺寸重新打板','改尺寸不打版'], + required: false, + level: 4, + parentOption: '有变动需要修改', + condition: (checkedList) => checkedList.includes('有变动需要修改'), + resetOn: ['首单', '无变动不需要修改'] + }, + { + title: '打版类型', + options: ['复版','拍照版'], + required: false, + level: 5, + parentOption: '换料重新打板', + condition: (checkedList) => checkedList.includes('换料重新打板'), + resetOn: ['首单', '无变动不需要修改','换料重新打板'] + }, + { + title: '打版类型', + options: ['复版','拍照版'], + required: false, + level: 5, + parentOption: '改尺寸重新打板', + condition: (checkedList) => checkedList.includes('改尺寸重新打板'), + resetOn: ['首单', '无变动不需要修改','换料重新打板'] + }, + { + title: '特殊订单', + options: ['批大货布','重新核价'], + required: false, + level: 4, + parentOption: '无变动不需要修改', + condition: (checkedList) => checkedList.includes('无变动不需要修改'), + resetOn: ['首单', '有变动需要修改'] + }, + + { + title: '品类', + options: ['牛仔', '时装'], + required: true + }, + { + title: '复杂度', + options: ['简单款', '基础款', '复杂款'], + required: true + }, + { + title: '二次工艺', + options: ['绣花', '印花'], + multiple: true, + required: false + }, + { + title: '是否需要批船样', + options: ['不需要批船样', '需要批船样'], + required: true + }, + { + title: '运输方式', + options: ['美国', '澳大利亚', '英国'], + required: false, + resetOn: ['RBE'] + }, + { + title: '英国运输方式', + options: [ + '英国-海运', + '英国-空运 (直飞)', + '英国-空运 (转机)', + '英国-铁路(中欧班列)', + '英国-卡航', + '英国-卡空', + '英国-卡车联运', + '英国-海空联运' + ], + required: false, + level: 2, + parentOption: '英国', + condition: (checkedList) => checkedList.includes('英国'), + resetOn: ['美国', '澳大利亚', 'RBE'] + }, + { + title: '美国运输方式', + options: [ + '美国-海运慢船', + '美国-海运快船', + '美国-空运(直飞)' + ], required: true, - level: 3 + level: 2, + parentOption: '美国', + condition: (checkedList) => checkedList.includes('美国'), + resetOn: ['英国', '澳大利亚', 'RBE'] + }, + { + title: '澳大利亚运输方式', + options: [ + '澳大利亚-海运', + '澳大利亚-空运(直飞)' + ], + required: true, + level: 2, + parentOption: '澳大利亚', + condition: (checkedList) => checkedList.includes('澳大利亚'), + resetOn: ['美国', '英国', 'RBE'] + }, + { + title: '面料特性', + options: [ + '普通面料(纯棉、常规化纤)', + '特殊面料(真丝、皮革、功能性面料)', + '易损面料(薄纱、蕾丝)' + ], + required: false + } + ] + }, + // RBE 客户配置 - 简化示例 + { + title: 'RIVER ISLAND', + options: [ + { + title: '单据类型', + options: ['首单', '翻单'], + required: true, + level: 2 + }, + { + title: '打板类型(多选)', + options: ['复版', '拍照版','测试版','开货版需打版','开货版不打版'], + required: false, + level: 3, + parentOption: '首单', + multiple: true, + condition: (checkedList) => checkedList.includes('首单'), + resetOn: ['翻单'] + }, + { + title: '寄样方式', + options: ['寄裤筒', '寄成衣'], + required: false, + level: 4, + parentOption: '开货版不打版', + condition: (checkedList) => checkedList.includes('首单') && checkedList.includes('开货版不打版'), + resetOn: ['翻单'] + }, + { + title: '翻单变动', + options: ['无变动不需要修改', '有变动需要修改'], + required: false, + level: 3, + parentOption: '翻单', + condition: (checkedList) => checkedList.includes('翻单'), + resetOn: ['首单'] + }, + { + title: '特殊订单', + options: ['换料寄面料样', '换料重新打板', '改尺寸重新打板','改尺寸不打版'], + required: false, + level: 4, + parentOption: '有变动需要修改', + condition: (checkedList) => checkedList.includes('有变动需要修改'), + resetOn: ['首单', '无变动不需要修改'] + }, + { + title: '打版类型', + options: ['复版','拍照版','测试版'], + required: true, + multiple: true, + level: 5, + parentOption: '换料重新打板', + condition: (checkedList) => checkedList.includes('换料重新打板'), + resetOn: ['首单', '无变动不需要修改','换料重新打板'] + }, + { + title: '打版类型', + options: ['复版','拍照版','测试版'], + required: true, + multiple: true, + level: 5, + parentOption: '改尺寸重新打板', + condition: (checkedList) => checkedList.includes('改尺寸重新打板'), + resetOn: ['首单', '无变动不需要修改','换料重新打板'] + }, + { + title: '特殊订单', + options: ['批大货布','重新核价'], + required: false, + level: 4, + parentOption: '无变动不需要修改', + condition: (checkedList) => checkedList.includes('无变动不需要修改'), + resetOn: ['首单', '有变动需要修改'] + }, + { + title: '品类', + options: ['牛仔', '时装'], + required: true + }, + { + title: '复杂度', + options: ['简单款', '基础款', '复杂款'], + required: true + }, + { + title: '工厂特殊流程', + options: ['面料寄SGS测试', '辅料寄SGS测试', '样衣寄SGS测试','无'], + required: true, + multiple: true + }, + { + title: '二次工艺', + options: ['绣花', '印花'], + required: false, + multiple: true + }, + { + title: '是否需要批船样', + options: ['不需要批船样', '需要批船样'], + required: true + }, + { + title: '运输方式', + options: ['美国', '澳大利亚', '英国'], + required: false, + resetOn: ['RBE'] + }, + { + title: '英国运输方式', + options: [ + '英国-海运', + '英国-空运 (直飞)', + '英国-空运 (转机)', + '英国-铁路(中欧班列)', + '英国-卡航', + '英国-卡空', + '英国-卡车联运', + '英国-海空联运' + ], + required: false, + level: 2, + parentOption: '英国', + condition: (checkedList) => checkedList.includes('英国'), + resetOn: ['美国', '澳大利亚', 'RBE'] + }, + { + title: '美国运输方式', + options: [ + '美国-海运慢船', + '美国-海运快船', + '美国-空运(直飞)' + ], + required: true, + level: 2, + parentOption: '美国', + condition: (checkedList) => checkedList.includes('美国'), + resetOn: ['英国', '澳大利亚', 'RBE'] + }, + { + title: '澳大利亚运输方式', + options: [ + '澳大利亚-海运', + '澳大利亚-空运(直飞)' + ], + required: true, + level: 2, + parentOption: '澳大利亚', + condition: (checkedList) => checkedList.includes('澳大利亚'), + resetOn: ['美国', '英国', 'RBE'] + }, + { + title: '面料特性', + options: [ + '普通面料(纯棉、常规化纤)', + '特殊面料(真丝、皮革、功能性面料)', + '易损面料(薄纱、蕾丝)' + ], + required: false } ] }