//产品交付 export function BusinessDailyProduct() { return [ { label: '姓名', key: 'name', formType:'input', required: true, }, { label: '地区', formType:'picker', province:'', city:'', district:'', locationArr:'', multiIndex:[0,0,0], key: 'address', required: true, }, { label: '您习惯的睡眠姿势', key: 'sleepLength', formType:'check', data:[ { text: '仰睡', value: 1, }, { text: '侧睡', value: 2, }, ], imgData:[ {text:'仰睡', img:'../../../static/image/yang.jpg'}, {text:'侧睡', img:'../../../static/image/ce.jpg'}, ], }, { label: '您习惯的枕头软硬度', key: 'pillowHardness', formType:'check', required:true, data:[ { text: '偏硬', value: '1' }, { text: '适中', value: '2' }, { text: '偏软', value: '3' } ] }, { label: '您的其他需求', key: 'workcontent', formType: 'textarea', }, { label: '身高', key: 'height', formType:'input', required: true, }, { label: '手机', key: 'phone', formType:'input', required: true, validateFunction: /^1(3|4|5|6|7|8|9)\d{9}$/ }, { label: '体重', key: 'weight', formType:'input', required: true, }, { label: '肩颈宽度', key: 'neckShoulderWidth', formType:'input', }, { label: '颈长', key: 'neckLength', formType:'input', }, { label: '年龄', key: 'ageRange', formType:'check', data:[ { text: '18~30', value: '18~30' }, { text: '31~50', value: '31~50' }, { text: '51~60', value: '51~60' }, { text: '60以上', value: '60以上' } ], }, { label: '您每晚的睡眠时间', key: 'sleepLength', formType:'check', data:[ { text: '2~4小时', value: '2~4小时' }, { text: '4~6小时', value: '4~6小时' }, { text: '6~8小时', value: '6~8小时' }, { text: '8小时以上', value: '8小时以上' } ] }, { label: '您习惯的枕头类型', key: 'pillowMaterial', formType:'check', required:true, data:[ { text: '羽丝绒枕', value: '1' }, { text: '草本植物枕(荞麦、决明子等)', value: '2' }, { text: '乳胶枕', value: '3' }, { text: '慢回弹记忆枕', value: '4' }, { text: '软管枕', value: '5' }, { text: '其他', value: '6' }, ] }, { label: '您现在的颈椎出现问题了吗', key: 'cervicalVertebra', formType:'check', data:[ { text: "是", value: 1 }, { text: "否", value: 0 }, ] }, ] } //对应的受影响的远程方法----上面的event //根据项目获取对应的产品 export async function getProductByProject(searchCondition) { let res = await request({ url: '/business/product/manage/list', method: 'post', data: new SearchCondition({searchCondition,}), }) let arr = res.data.data.list.map(item => ({ text: item.productname, value: item.id, ...item })) return await arr; }