schema-store-daily-v2.3.0.prod.js 17.7 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574
// const baseSceneCode = {
//   '1.1': 100101, //精品升级
//   '1.2': 100102, //次新车升配
//   '1.3': 100103, //售后众筹
//   '2.1.1': 110101, //售前会员权益升级
//   '2.1.2': 110102, //售后会员权益升级
//   '2.3.1': 110201, //售前延保
//   '2.3.2': 110202, //售后延保
// }
// const sceneType = {
//   '延保': 0,
//   '权益': 0,
//   '轻改': 1,
// }
// const brandIdMap = {
//   '问界': 2695,
//   '享界': 2741,
//   '智界': 2698,
//   '尚界': 2797,
//   '尊界': 2740,
//   '岚图': 2188,
// }
/**
 * label 表单组件名称
 * key 编号
 * sortNum  排序
 * type 表单组件类型
 * required 必填
 * sceneType 业务大类
 * brandId 门店经营品牌限制
 * baseSceneCode 显隐条件里的场景
 * options 选项数据
 * rules 其他规则
 * */
[
    {
        label: '今日驻店人员',
        sortNum: '136',
        key: 'F2-101',
        type: 'multipleSelect',
        required: true,
        sceneType: [],
        brandId: [],
        baseSceneCode: [],
        options: [],
        optionsKey: 'storeStaffList',
        rules: {},
    },

    {
        label: '本月待邀约数',
        sortNum: '137',
        key: 'F2-102',
        type: 'numberInput',
        required: true,
        sceneType: [1],
        brandId: [],
        baseSceneCode: [100101, 100102, 100103],
        //[门店经营品牌 包含 岚图 or 其他品牌] and [场景 包含 1.1 or 1.2 or 1.3] 则 [显示]
        rules: {
            min: 0,
            integer: true
        },
        filterBrandId: [2695, 2741, 2698, 2797, 2740],
    },

    {
        label: '明日预计交付数',
        sortNum: '138',
        key: 'F2-103',
        type: 'numberInput',
        required: true,
        sceneType: [0],
        brandId: [2695, 2741, 2698, 2797, 2740, 2188],
        //[门店经营品牌 包含 问界or享界or智界or尚界or尊界or岚图] and [场景 包含 2.3.1 or 2.3.2] 则 [显示]
        baseSceneCode: [110201, 110202],
        value: 0,
        rules: {
            min: 0,
            integer: true
        },
    },

    {
        label: '明日售后预约数',
        sortNum: '139',
        key: 'F2-104',
        type: 'numberInput',
        required: true,
        sceneType: [0],
        brandId: [2188],
        //[门店经营品牌 包含 岚图] and [场景 包含 2.3.1 or 2.3.2] 则 [显示]
        baseSceneCode: [110201, 110202],
        value: 0,
        rules: {
            min: 0,
            integer: true
        },
    },

    {
        label: '明日新车销售目标数',
        sortNum: '140',
        key: 'F2-105',
        type: 'numberInput',
        required: true,
        sceneType: [0],
        brandId: [2188],
        //[门店经营品牌 包含 岚图] and [场景 包含 2.3.1 or 2.3.2] 则 [显示]
        baseSceneCode: [110201, 110202],
        value: 0,
        rules: {
            min: 0,
            integer: true
        },
    },

    {
        label: '明日非新车销售目标数',
        sortNum: '141',
        key: 'F2-106',
        type: 'numberInput',
        required: true,
        sceneType: [0],
        brandId: [2188],
        //[门店经营品牌 包含 岚图] and [场景 包含 2.3.1 or 2.3.2] 则 [显示]
        baseSceneCode: [110201, 110202],
        value: 0,
        rules: {
            min: 0,
            integer: true
        },
    },

    {
        label: '今日非成交客户',
        sortNum: '142',
        key: 'F2-107',
        type: 'subform',
        required: false,
        sceneType: [],
        brandId: [],
        baseSceneCode: [],
        rules: {},
        childrenRules: {
            'F2-107-1': {
                maxLength: 20
            },
            'F2-107-11': {
                maxLength: 100
            },
            'F2-107-14': {
                maxLength: 100
            },
            'F2-107-16': {
                maxLength: 100
            },
            'F2-107-17': {
                maxLength: 100
            },
            'F2-107-18': {
                maxLength: 100
            },
            'F2-107-2': {
                maxLength: 11
            },
            'F2-107-4': {
                maxDate: 'new Date()',
                format: 'date'
            },
            'F2-107-8': {
                level: 4
            },
            'F2-107-9': {
                maxLength: 20
            }
        },
        childrenShowRules: {
            'F2-107-4': {
                keys: ['$sceneCodes', '$brandIds', 'F2-107-3'],
                result: "val1 && Array.isArray(val1) && val2 && Array.isArray(val2) && (((val1.includes('100101') || val1.includes('100102') || val1.includes('100103')) && (val2.includes('2695') || val2.includes('2741') || val2.includes('2698') || val2.includes('2797') || val2.includes('2740')) && val3 == '3') || ((val1.includes('100101') || val1.includes('100102') || val1.includes('100103')) && !(val2.includes('2695') || val2.includes('2741') || val2.includes('2698') || val2.includes('2797') || val2.includes('2740')) && (val3 == '0' || val3 == '3')) || ((val1.includes('110101') || val1.includes('110102') || val1.includes('110201') || val1.includes('110202')) && val3 == '0'))"
            },
            'F2-107-12': {
                keys: ['F2-107-7'],
                result: "val1 && Array.isArray(val1) && (val1.includes('1') || val1.includes('3'))"
            },
            'F2-107-13': {
                keys: ['F2-107-7'],
                result: "val1 && Array.isArray(val1) && val1.includes('3')"
            },
            'F2-107-14': {
                keys: ['F2-107-13'],
                result: "val1 == '否'"
            },
            'F2-107-15': {
                keys: ['F2-107-7'],
                result: "val1 && Array.isArray(val1) && val1.includes('1')"
            },
            'F2-107-16': {
                keys: ['F2-107-15'],
                result: "val1 == '否'"
            },
            'F2-107-17': {
                keys: ['F2-107-7'],
                result: "!Array.isArray(val1) || (val1 && !val1.includes('1'))"
            },
            'F2-107-18': {
                keys: ['F2-107-7'],
                result: "val1 && Array.isArray(val1) && val1.includes('1')"
            }
        },
        validateDuplicates: ['F2-107-2'],
        children: [
            [
            {
                label: '客户姓名',
                sortNum: '143',
                key: 'F2-107-1',
                type: 'input',
                required: true,
                sceneType: [],
                brandId: [],
                baseSceneCode: [],
                rules: {
                    maxLength: 20
                },
            },

            {
                label: '客户手机号',
                sortNum: '144',
                key: 'F2-107-2',
                type: 'phoneInput',
                required: true,
                sceneType: [],
                brandId: [],
                baseSceneCode: [],
                rules: {
                    maxLength: 11
                },
            },

            {
                label: '客户来源',
                sortNum: '145',
                key: 'F2-107-3',
                type: 'select',
                required: true,
                sceneType: [],
                brandId: [],
                baseSceneCode: [],
                options: [
                    {
                        label: '销售端引流-售前',
                        value: '0',
                        baseSceneCode: [100101, 100102, 100103]
                    },
                    {
                        label: '交付端引流-售前',
                        value: '3',
                        baseSceneCode: [100101, 100102, 100103]
                    },
                    {
                        label: '门店引流-售前',
                        value: '0',
                        baseSceneCode: [110101, 110102, 110201, 110202]
                    },
                    {
                        label: '门店引流-售后',
                        value: '1'
                    }
                ],
                rules: {},
            },

            {
                label: '实际交付日期',
                sortNum: '146',
                key: 'F2-107-4',
                type: 'date',
                required: true,
                sceneType: [],
                brandId: [],
                //{[场景 包含 1.1 or 1.2 or 1.3] and [门店经营品牌 包含 问界or享界or智界or尚界or尊界] and [客户来源=交付端引流-售前]}
                //OR
                //{[场景 包含 1.1 or 1.2 or 1.3] and [门店经营品牌 不包含 问界or享界or智界or尚界or尊界] and [客户来源=销售端引流-售前 or 交付端引流-售前]}
                //OR
                //{[场景 包含 2.3.1 or 2.3.2 or 2.1.1 or 2.1.2] and [客户来源=门店引流-售前]}
                baseSceneCode: [100101, 100102, 100103, 110101, 110102, 110201, 110202],
                rules: {
                    maxDate: 'today',
                    format: 'date'
                },
            },

            {
                label: '推荐人',
                sortNum: '147',
                key: 'F2-107-5',
                type: 'select',
                required: true,
                sceneType: [],
                brandId: [],
                baseSceneCode: [],
                options: [],
                optionsKey: '4sStaffList',
                rules: {},
            },

            {
                label: '责任驻店',
                sortNum: '148',
                key: 'F2-107-6',
                type: 'select',
                required: false,
                sceneType: [],
                brandId: [],
                baseSceneCode: [],
                options: [],
                optionsKey: 'storeStaffList',
                rules: {},
            },

            {
                label: '客户标签',
                sortNum: '149',
                key: 'F2-107-7',
                type: 'multipleSelect',
                required: false,
                sceneType: [],
                brandId: [],
                baseSceneCode: [],
                options: [
                    {
                        label: '已触客',
                        value: '1'
                    },
                    {
                        label: '已拉群',
                        value: '2',
                        baseSceneCode: [100101, 100102, 100103],
                        brandId: [2695, 2741, 2698, 2797, 2740]
                    },
                    {
                        label: '已交付引荐',
                        value: '3',
                        baseSceneCode: [100101, 100102, 100103],
                        filterBrandId: [2695, 2741, 2698, 2797, 2740],
                        matchEffect: 'exclude'
                    },
                    {
                        label: '首保维保客户',
                        value: '4',
                        baseSceneCode: [100101, 100102, 100103],
                        brandId: [2695, 2741, 2698, 2797, 2740]
                    },
                    {
                        label: '事故车客户',
                        value: '5',
                        baseSceneCode: [100101, 100102, 100103],
                        brandId: [2695, 2741, 2698, 2797, 2740]
                    }
                ],
                optionsKey: 'options',
                rules: {},
            },

            {
                label: '客户车型',
                sortNum: '150',
                key: 'F2-107-8',
                type: 'carBrandSelect',
                required: true,
                sceneType: [],
                brandId: [],
                baseSceneCode: [],
                rules: {
                    level: 4
                },
            },

            {
                label: '客户车架号',
                sortNum: '151',
                key: 'F2-107-9',
                type: 'input',
                required: false,
                sceneType: [],
                brandId: [],
                baseSceneCode: [],
                prefixComponent: 'scan',
                rules: {
                    maxLength: 20
                },
            },

            {
                label: '客户新车销售渠道',
                sortNum: '152',
                key: 'F2-107-10',
                type: 'select',
                required: false,
                sceneType: [1],
                brandId: [],
                baseSceneCode: [100101, 100102, 100103],
                //[场景 包含 1.1 or 1.2 or 1.3] 则 [显示]
                options: [
                    {
                        label: '自店销售',
                        value: '自店销售'
                    },
                    {
                        label: '商超',
                        value: '商超'
                    }
                ],
                rules: {},
            },

            {
                label: '销售赠送产品',
                sortNum: '153',
                key: 'F2-107-11',
                type: 'input',
                required: false,
                sceneType: [1],
                brandId: [],
                baseSceneCode: [100101, 100102, 100103],
                //[场景 包含 1.1 or 1.2 or 1.3] 则 [显示]
                rules: {
                    maxLength: 100
                },
            },

            {
                label: '谈客商品类目',
                sortNum: '154',
                key: 'F2-107-12',
                type: 'multipleSelect',
                required: true,
                sceneType: [0, 0],
                brandId: [],
                baseSceneCode: [110101, 110102, 110201, 110202],
                //[门店经营品牌 包含 其他品牌] and [场景 包含 2.3.1 or 2.3.2 or 2.1.1 or 2.1.2] and [客户标签 包含 已触客 or 已交付引荐] 则 [显示]
                options: [
                    {
                        label: '原厂延保',
                        value: '原厂延保'
                    },
                    {
                        label: '广联延保',
                        value: '广联延保'
                    },
                    {
                        label: '原厂权益',
                        value: '原厂权益'
                    },
                    {
                        label: '广联权益',
                        value: '广联权益'
                    }
                ],
                optionsKey: 'options',
                rules: {},
                filterBrandId: [2695, 2741, 2698, 2797, 2740, 2188],
            },

            {
                label: '是否有效引荐',
                sortNum: '155',
                key: 'F2-107-13',
                type: 'radio',
                required: true,
                sceneType: [],
                brandId: [],
                baseSceneCode: [],
                options: [
                    {
                        label: '是',
                        value: '是'
                    },
                    {
                        label: '否',
                        value: '否'
                    }
                ],
                rules: {},
            },

            {
                label: '无效引荐说明',
                sortNum: '156',
                key: 'F2-107-14',
                type: 'input',
                required: true,
                sceneType: [],
                brandId: [],
                baseSceneCode: [],
                rules: {
                    maxLength: 100
                },
            },

            {
                label: '是否有效到店',
                sortNum: '157',
                key: 'F2-107-15',
                type: 'radio',
                required: true,
                sceneType: [1],
                brandId: [],
                baseSceneCode: [100101, 100102, 100103],
                //[门店经营品牌 包含 岚图 or 其他品牌] and [场景 包含 1.1 or 1.2 or 1.3] and [客户标签 包含 已触客] 则 [显示]
                options: [
                    {
                        label: '是',
                        value: '是'
                    },
                    {
                        label: '否',
                        value: '否'
                    }
                ],
                rules: {},
                filterBrandId: [2695, 2741, 2698, 2797, 2740],
            },

            {
                label: '无效到店说明',
                sortNum: '158',
                key: 'F2-107-16',
                type: 'input',
                required: true,
                sceneType: [1],
                brandId: [],
                baseSceneCode: [100101, 100102, 100103],
                //[门店经营品牌 包含 岚图 or 其他品牌] and [场景 包含 1.1 or 1.2 or 1.3] and [是否有效到店=否] 则 [显示]
                rules: {
                    maxLength: 100
                },
                filterBrandId: [2695, 2741, 2698, 2797, 2740],
            },

            {
                label: '未触客原因',
                sortNum: '159',
                key: 'F2-107-17',
                type: 'input',
                required: true,
                sceneType: [],
                brandId: [],
                baseSceneCode: [],
                rules: {
                    maxLength: 100
                },
            },

            {
                label: '未成交原因',
                sortNum: '160',
                key: 'F2-107-18',
                type: 'input',
                required: true,
                sceneType: [],
                brandId: [],
                baseSceneCode: [],
                rules: {
                    maxLength: 100
                },
            }
            ]
        ],
    }
]