27 lines
851 B
Python
27 lines
851 B
Python
from django.db import models
|
|
from utils.model import BaseModel
|
|
from apps.system.models import CommonAModel, CommonBModel, Organization, User, Dict, File
|
|
# Create your models here.
|
|
|
|
class InspectItem(CommonAModel):
|
|
"""
|
|
检查条款
|
|
"""
|
|
type_choices = (
|
|
('合规', '合规'),
|
|
('体系', '体系'),
|
|
)
|
|
name = models.TextField('名称')
|
|
cate = models.ForeignKey(Dict, on_delete=models.SET_NULL, null=True, blank=True)
|
|
type = models.CharField('类型', max_length=50, choices=type_choices, default='合规')
|
|
require = models.TextField('取证要求', null=True, blank=True)
|
|
sortnum = models.IntegerField('序号', default=1)
|
|
|
|
class Meta:
|
|
verbose_name = '检查清单'
|
|
verbose_name_plural = verbose_name
|
|
|
|
# class InspectTask(CommonAModel):
|
|
# """
|
|
# 巡查任务
|
|
# """ |