|
@@ -364,6 +364,8 @@ class OrderViewSet(CustomModelViewSet):
|
|
|
if request.user.type != User.EMPLOYEE:
|
|
|
raise CustomError('当前用户无权限,禁止操作')
|
|
|
instance = self.get_object()
|
|
|
+ if instance.category == order.ZERO:
|
|
|
+ raise CustomError('草稿件,禁止操作')
|
|
|
if instance.status == order.ONE:
|
|
|
raise CustomError('该客户信息已审核通过,禁止操作')
|
|
|
if instance.status == order.THREE:
|
|
@@ -485,7 +487,7 @@ class OrderViewSet(CustomModelViewSet):
|
|
|
'bstaddress',
|
|
|
'cname', 'ctel', 'relation_text', 'caddress', 'ctname', 'cttel', 'thesame_text', 'tsname', 'tsbdate',
|
|
|
'tsitype_text', 'tsinumber', 'tstel', 'tsrelation_text', 'tsnaddress', 'tsmaddress_text', 'tsemail', 'tswx',
|
|
|
- 'tswname', 'tswphone', 'tswaddress', 'tsmincome',
|
|
|
+ 'tswname', 'tswphone', 'tswaddress', 'tsmincome', 'notes',
|
|
|
]
|
|
|
result = []
|
|
|
for s in show:
|