筛查入选排除标准JSON数据.js 12.9 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
formJson = {
  column: [],
  labelPosition: "left",
  labelSuffix: "",
  labelWidth: 100,
  gutter: 0,
  menuBtn: true,
  submitBtn: true,
  submitText: "下一步",
  emptyBtn: false,
  emptyText: "清空",
  nextTabBtn: true,
  nextTabText: "下一页",
  menuPosition: "center",
  group: [
    {
      label: "筛查点信息",
      prop: "1669195600018_27976",
      arrow: true,
      collapse: true,
      display: true,
      labelWidth: 8,
      column: [
        {
          type: "input",
          display: true,
          importantField: false,
          styles: {},
          autoRequired: 0,
          personalRequired: 0,
          label: "医联体编号",
          prop: "union_id",
          fieldType: "varchar",
          fieldLength: "127",
          tableName: "入排选标准",
          tableCode: "gas_exclusion_criteria",
          tableId: "1595341111042252802",
          notFilter: false,
          cType: "",
          subfield: false,
          span: 24,
          width: 12,
          required: true,
          rules: [{ required: true, message: "医联体编号必须填写" }],
          xs: 24,
          sm: 24,
          md: 24,
        },
        {
          type: "input",
          display: true,
          importantField: false,
          styles: {},
          prop: "screen_point_number",
          label: "筛查点编号",
          fieldType: "varchar",
          fieldLength: "20",
          tableName: "入排选标准",
          tableCode: "gas_exclusion_criteria",
          tableId: "1595341111042252802",
          notFilter: false,
          cType: "",
          subfield: false,
          span: 24,
          width: 12,
          rules: [{ required: true, message: "筛查点编号必须填写" }],
          required: true,
          xs: 24,
          sm: 24,
          md: 24,
        },
      ],
    },
    {
      label: "一、入选标准",
      prop: "1669195610048_55035",
      arrow: true,
      collapse: true,
      display: true,
      labelWidth: 8,
      column: [
        {
          type: "date",
          display: true,
          importantField: false,
          styles: {},
          prop: "birthday",
          label: "出生日期",
          fieldType: "date",
          fieldLength: "",
          format: "yyyy-MM-dd",
          valueFormat: "yyyy-MM-dd",
          dicType: "",
          tableName: "患者信息",
          tableCode: "gas_patient_info",
          tableId: "1595347991491833857",
          notFilter: false,
          cType: "",
          subfield: false,
          autoRequired: 0,
          personalRequired: 1,
          span: 24,
          width: 12,
          required: true,
          rules: [
            { required: true, message: "出生日期必须填写" },
            {
              validator: function checkAge(rule, value, callback) {
                if (!value) {
                  return callback(new Error("请选择出生日期"))
                }
                var birthday = new Date(value.replace(/-/g))
                var d = new Date()
                var age =
                  d.getFullYear() -
                  birthday.getFullYear() -
                  (d.getMonth() < birthday.getMonth() ||
                  (d.getMonth() == birthday.getMonth() &&
                    d.getDate() < birthday.getDate())
                    ? 1
                    : 0)
                console.log(age)
                if (age < 40 || age > 80) {
                  callback(new Error("年龄不符合筛查条件"))
                } else {
                  callback()
                }
              },
              trigger: "change",
            },
          ],
          disabled: false,
          pattern: "checkAge",
          xs: 24,
          sm: 24,
          md: 24,
        },
        {
          type: "radio",
          display: true,
          importantField: false,
          styles: {},
          autoRequired: 0,
          personalRequired: 0,
          dicData: [
            {
              label: "",
              value: "1",
              id: "1595347527757000705",
              parentId: "",
            },
            {
              label: "",
              value: "0",
              id: "1595347502595371010",
              parentId: "",
            },
          ],
          dynamicshSet: [],
          dicType: "d-sf",
          props: { label: "label", value: "value" },
          prop: "is_know",
          label: "知情同意",
          fieldType: "tinyint",
          fieldLength: "2",
          tableName: "入排选标准",
          tableCode: "gas_exclusion_criteria",
          tableId: "1595341111042252802",
          notFilter: false,
          cType: "",
          subfield: false,
          span: 24,
          width: 12,
          required: true,
          rules: [{ required: true, message: "请选择知情同意" }],
        },
      ],
    },
    {
      label: "二、排除标准",
      prop: "1669707112356_13663",
      arrow: true,
      collapse: true,
      display: true,
      labelWidth: 8,
      column: [
        {
          type: "radio",
          display: true,
          importantField: false,
          styles: {},
          autoRequired: 0,
          personalRequired: 0,
          label: "距上次胃镜检查间隔时间一年内",
          prop: "is_one_year",
          dicData: [
            {
              label: "",
              value: "1",
              id: "1595347527757000705",
              parentId: "",
            },
            {
              label: "",
              value: "0",
              id: "1595347502595371010",
              parentId: "",
            },
          ],
          dynamicshSet: [],
          dicType: "d-sf",
          props: { label: "label", value: "value" },
          fieldType: "tinyint",
          fieldLength: "2",
          tableName: "入排选标准",
          tableCode: "gas_exclusion_criteria",
          tableId: "1595341111042252802",
          notFilter: false,
          cType: "",
          subfield: false,
          span: 24,
          labelWidth: 850,
          width: 24,
          xs: 24,
          sm: 24,
          md: 24,
        },
        {
          type: "radio",
          display: true,
          importantField: false,
          styles: {},
          label: "胃大部切除术手术史",
          prop: "is_subtotal_history",
          fieldType: "tinyint",
          fieldLength: "2",
          dicData: [
            {
              label: "",
              value: "1",
              id: "1595347527757000705",
              parentId: "",
            },
            {
              label: "",
              value: "0",
              id: "1595347502595371010",
              parentId: "",
            },
          ],
          dynamicshSet: [],
          dicType: "d-sf",
          props: { label: "label", value: "value" },
          tableName: "入排选标准",
          tableCode: "gas_exclusion_criteria",
          tableId: "1595341111042252802",
          notFilter: false,
          cType: "",
          subfield: false,
          span: 24,
          labelWidth: 850,
          width: 24,
          xs: 24,
          sm: 24,
          md: 24,
          lg: 24,
          autoRequired: 0,
          personalRequired: 0,
        },
        {
          type: "radio",
          display: true,
          importantField: false,
          styles: {},
          prop: "is_ppi",
          label:
            "两周内服用PPI(埃索美拉唑、泮托拉唑、雷贝拉唑、兰索拉唑等)或H2受体拮抗剂(法莫替丁等)",
          dicData: [
            {
              label: "",
              value: "1",
              id: "1595347527757000705",
              parentId: "",
            },
            {
              label: "",
              value: "0",
              id: "1595347502595371010",
              parentId: "",
            },
          ],
          dynamicshSet: [],
          dicType: "d-sf",
          props: { label: "label", value: "value" },
          fieldType: "tinyint",
          fieldLength: "2",
          tableName: "入排选标准",
          tableCode: "gas_exclusion_criteria",
          tableId: "1595341111042252802",
          notFilter: false,
          cType: "",
          subfield: false,
          span: 24,
          labelWidth: 850,
          width: 24,
          xs: 24,
          sm: 24,
          md: 24,
          lg: 24,
        },
        {
          type: "radio",
          display: true,
          importantField: false,
          styles: {},
          dicData: [
            {
              label: "",
              value: "1",
              id: "1595347527757000705",
              parentId: "",
            },
            {
              label: "",
              value: "0",
              id: "1595347502595371010",
              parentId: "",
            },
          ],
          dynamicshSet: [],
          dicType: "d-sf",
          props: { label: "label", value: "value" },
          prop: "is_symptom",
          label:
            "有下列一种或多种症状: 6个月内缺铁性贫血;12个月内消化道出血(黑便、血便等);体重减轻(非减肥原因6个月内体重减轻≥4.5Kg);经常性腹泻;吞咽困难或哽噎感;腹部肿块",
          fieldType: "tinyint",
          fieldLength: "2",
          tableName: "入排选标准",
          tableCode: "gas_exclusion_criteria",
          tableId: "1595341111042252802",
          notFilter: false,
          cType: "",
          subfield: false,
          span: 24,
          labelWidth: 850,
          width: 24,
          xs: 24,
          sm: 24,
          md: 24,
          lg: 24,
        },
        {
          type: "radio",
          display: true,
          importantField: false,
          styles: {},
          dicData: [
            {
              label: "",
              value: "1",
              id: "1595347527757000705",
              parentId: "",
            },
            {
              label: "",
              value: "0",
              id: "1595347502595371010",
              parentId: "",
            },
          ],
          dynamicshSet: [],
          dicType: "d-sf",
          props: { label: "label", value: "value" },
          prop: "is_disease",
          label:
            "有以下任何一种疾病史 食管癌、胃癌、结直肠肿瘤、炎症性肠病、其它器官恶性肿瘤(乳腺、卵巢、子宫及泌尿系统等)",
          fieldType: "tinyint",
          fieldLength: "2",
          tableName: "入排选标准",
          tableCode: "gas_exclusion_criteria",
          tableId: "1595341111042252802",
          notFilter: false,
          cType: "",
          subfield: false,
          span: 24,
          labelWidth: 850,
          width: 24,
          xs: 24,
          sm: 24,
          md: 24,
          lg: 24,
        },
        {
          type: "radio",
          display: true,
          importantField: false,
          styles: {},
          dicData: [
            {
              label: "",
              value: "1",
              id: "1595347527757000705",
              parentId: "",
            },
            {
              label: "",
              value: "0",
              id: "1595347502595371010",
              parentId: "",
            },
          ],
          dynamicshSet: [],
          dicType: "d-sf",
          props: { label: "label", value: "value" },
          prop: "is_tumour",
          label: "影像、肿瘤标志物等检查高度怀疑罹患肿瘤可能",
          fieldType: "tinyint",
          fieldLength: "2",
          tableName: "入排选标准",
          tableCode: "gas_exclusion_criteria",
          tableId: "1595341111042252802",
          notFilter: false,
          cType: "",
          subfield: false,
          span: 24,
          labelWidth: 850,
          width: 24,
          xs: 24,
          sm: 24,
          md: 24,
          lg: 24,
        },
        {
          type: "radio",
          display: true,
          importantField: false,
          styles: {},
          dicData: [
            {
              label: "",
              value: "1",
              id: "1595347527757000705",
              parentId: "",
            },
            {
              label: "",
              value: "0",
              id: "1595347502595371010",
              parentId: "",
            },
          ],
          dynamicshSet: [],
          dicType: "d-sf",
          props: { label: "label", value: "value" },
          prop: "is_Incomplete",
          label: "严重心、肺、肝、肾功能不全,或严重精神疾患",
          fieldType: "tinyint",
          fieldLength: "2",
          tableName: "入排选标准",
          tableCode: "gas_exclusion_criteria",
          tableId: "1595341111042252802",
          notFilter: false,
          cType: "",
          subfield: false,
          span: 24,
          labelWidth: 850,
          width: 24,
          xs: 24,
          sm: 24,
          md: 24,
          lg: 24,
        },
      ],
    },
  ],
}