| | |
| | | // 导入场景数据 |
| | | const defaultServices = [ |
| | | { |
| | | title: '插单2.0', |
| | | description: '智能评估需求插单对产能,原材料和交付服务的影响,提升客户满意度', |
| | | imageUrl: '/images/xuqiu.jpg', |
| | | chatbotId: 'zO9YQDEHdIApG9zC', |
| | | background: '在生产计划执行过程中,常常会遇到紧急订单需要插单的情况。AI系统可以快速评估插单对现有生产计划的影响,并提供最优的插单方案。', |
| | | instructions: '请提供需要插单的订单信息,包括产品类型、数量和期望交付时间,AI助手将为您分析可行性并给出具体的插单建议。' |
| | | title: '库存管理知识库问答', |
| | | description: '库存知识,提供专业的供应链库存知识问答', |
| | | imageUrl: '/images/know.jpg', |
| | | chatbotId: 'pDDfkU9HyBl2gzXx', |
| | | }, |
| | | { |
| | | title: '扫地机器人销售推荐小助手', |
| | | description: '智能化产品推荐提升导购效率', |
| | | imageUrl: '/images/robot.jpg', |
| | | chatbotId: 'sUAviPXvcEIw3oQC', |
| | | }, |
| | | { |
| | | title: '补料', |
| | |
| | | instructions: '请提供需要插单的订单信息,包括产品类型、数量和期望交付时间,AI助手将为您分析可行性并给出具体的插单建议。' |
| | | }, |
| | | { |
| | | title: '科沃斯销售推荐小助手', |
| | | description: '智能化产品推荐提升导购效率', |
| | | imageUrl: '/images/robot.jpg', |
| | | chatbotId: 'sUAviPXvcEIw3oQC', |
| | | }, |
| | | { |
| | | title: '库存管理知识库问答', |
| | | description: '库存知识,提供专业的供应链库存知识问答', |
| | | imageUrl: '/images/know.jpg', |
| | | chatbotId: 'pDDfkU9HyBl2gzXx', |
| | | title: '插单2.0', |
| | | description: '智能评估需求插单对产能,原材料和交付服务的影响,提升客户满意度', |
| | | imageUrl: '/images/xuqiu.jpg', |
| | | chatbotId: 'zO9YQDEHdIApG9zC', |
| | | background: '在生产计划执行过程中,常常会遇到紧急订单需要插单的情况。AI系统可以快速评估插单对现有生产计划的影响,并提供最优的插单方案。', |
| | | instructions: '请提供需要插单的订单信息,包括产品类型、数量和期望交付时间,AI助手将为您分析可行性并给出具体的插单建议。' |
| | | }, |
| | | ]; |
| | | |
| | |
| | | {/* 左侧场景选项卡 */} |
| | | <div className="w-64 bg-white border-r flex flex-col"> |
| | | {/* 固定头部 */} |
| | | <div className="p-4 pt-20 bg-white"> |
| | | <div className="flex flex-col space-y-4"> |
| | | <button |
| | | onClick={() => router.push('/ai-scene')} |
| | | className="group flex items-center text-sm text-gray-500 hover:text-red-500 transition-all duration-300" |
| | | > |
| | | <svg |
| | | xmlns="http://www.w3.org/2000/svg" |
| | | className="h-4 w-4 mr-1.5 transition-transform duration-300 group-hover:-translate-x-0.5" |
| | | fill="none" |
| | | viewBox="0 0 24 24" |
| | | stroke="currentColor" |
| | | <div className="pt-[65px] bg-white"> |
| | | <div className="h-12 px-6 flex items-center border-b"> |
| | | <div className="flex items-center"> |
| | | <button |
| | | onClick={() => router.push('/ai-scene')} |
| | | className="group inline-flex items-center text-sm text-gray-500 hover:text-red-500 transition-all duration-300 cursor-pointer" |
| | | > |
| | | <path |
| | | strokeLinecap="round" |
| | | strokeLinejoin="round" |
| | | strokeWidth={2} |
| | | d="M10 19l-7-7m0 0l7-7m-7 7h18" |
| | | /> |
| | | </svg> |
| | | <span>返回</span> |
| | | </button> |
| | | <h2 className="text-xl font-bold flex items-center"> |
| | | <span className="text-gray-900"> |
| | | <svg |
| | | xmlns="http://www.w3.org/2000/svg" |
| | | className="h-4 w-4 transition-transform duration-300 group-hover:-translate-x-0.5" |
| | | fill="none" |
| | | viewBox="0 0 24 24" |
| | | stroke="currentColor" |
| | | > |
| | | <path |
| | | strokeLinecap="round" |
| | | strokeLinejoin="round" |
| | | strokeWidth={2} |
| | | d="M10 19l-7-7m0 0l7-7m-7 7h18" |
| | | /> |
| | | </svg> |
| | | <span className="ml-1.5">返回</span> |
| | | </button> |
| | | <div className="mx-3 h-4 w-px bg-gray-200"></div> |
| | | <h2 className="text-base font-medium text-gray-900 flex items-center"> |
| | | AI场景 |
| | | </span> |
| | | <motion.span |
| | | className="ml-2 inline-block w-2 h-2 rounded-full bg-[#6ADBFF]" |
| | | animate={{ |
| | | scale: [1, 1.5, 1], |
| | | opacity: [0.7, 1, 0.7] |
| | | }} |
| | | transition={{ |
| | | duration: 2, |
| | | repeat: Infinity, |
| | | ease: "easeInOut" |
| | | }} |
| | | /> |
| | | </h2> |
| | | <motion.span |
| | | className="ml-2 inline-block w-1.5 h-1.5 rounded-full bg-[#6ADBFF]" |
| | | animate={{ |
| | | scale: [1, 1.5, 1], |
| | | opacity: [0.7, 1, 0.7] |
| | | }} |
| | | transition={{ |
| | | duration: 2, |
| | | repeat: Infinity, |
| | | ease: "easeInOut" |
| | | }} |
| | | /> |
| | | </h2> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |