|
|
@@ -82,6 +82,34 @@ class SignContractController extends AdminController
|
|
|
]);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取签署列表
|
|
|
+ * @return \Illuminate\Http\JsonResponse
|
|
|
+ */
|
|
|
+ function getSignContractList()
|
|
|
+ {
|
|
|
+ $search=request()->input('search');
|
|
|
+
|
|
|
+ $where = [['is_del',0]];
|
|
|
+ if(!empty($search)){
|
|
|
+ $where[] = ['contracts_no','like','%'.$search.'%'];
|
|
|
+ }
|
|
|
+
|
|
|
+ $list = SignContract::where($where)
|
|
|
+ ->select(['id','contracts_no','status','contracts_id','created_at'])
|
|
|
+ ->paginate(10);
|
|
|
+
|
|
|
+ foreach ($list as $key => $value) {
|
|
|
+ $value->{'contracts_name'} = Contract::where('id',$value->contracts_id)->value('name');
|
|
|
+ }
|
|
|
+
|
|
|
+ return $this->apiResponseSuccess('获取列表成功', [
|
|
|
+ 'items' => $list->items(),
|
|
|
+ 'total' => $list->total(),
|
|
|
+ 'limit' => 10,
|
|
|
+ ]);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 创建合同签署
|
|
|
* @return \Illuminate\Http\JsonResponse
|