|
@@ -116,24 +116,24 @@ class Approveinfo extends Base
|
|
|
// {"way":"create","id":"","module":"1","apply_user_id":"","reason":"测试","type":"1","desc":"","start_time":"","end_time":"","document":"","images":"","remark":"","total_amount":"1000","pay_type":"1","word_size":"","apply_id":"0","number":"","is_who":"","start_am":"","end_am":"","time":"","reach_address":"","end_address":"","scope":"","legal_opinion":"","founder":"","serial_number":"","apply_date":"","degree":"","department":"","department_sign":"","approve_user":"1925696723824730358","copy_user":"","apply_goods":[{"goods_id":"1","goods_category_first":"1","goods_category_id":"3","goods_no":"100001","goods_name":"医疗口罩一次性","goods_brand":"一次性口罩","goods_stock":[{"id":"1","name":"均码,白色","price":"1","stock":"110"},{"id":"2","name":"均码,蓝色","price":"1","stock":"100"},{"id":"19","name":"均码,红色","price":"1","stock":"120"}]},{"goods_id":"2","goods_category_first":"1","goods_category_id":"3","goods_no":"100002","goods_name":"84消毒液","goods_brand":"安其生","goods_stock":[{"id":"3","name":"380ml,低浓度","price":"1","stock":"110"},{"id":"4","name":"380ml,高浓度","price":"1","stock":"100"}]},{"goods_id":"","goods_category_first":"1","goods_category_id":"3","goods_no":"100003","goods_name":"一次性手套丁腈橡胶","goods_brand":"万力","goods_stock":[{"name":"白色","price":"0.2","stock":"110"},{"name":"蓝色","price":"0.2","stock":"100"}]}],"peer_user":[{"is_who":"","user_id":"","name":"","desc":""}]}
|
|
|
|
|
|
// {"way":"create","id":"","module":"3","apply_user_id":"","reason":"测试","type":"","desc":"","start_time":"","end_time":"","document":"","images":"","remark":"入库备注","total_amount":"","pay_type":"","word_size":"","apply_id":"0","number":"","is_who":"","start_am":"","end_am":"","time":"","reach_address":"","end_address":"","scope":"","legal_opinion":"","founder":"","serial_number":"","apply_date":"","degree":"","department":"","department_sign":"","approve_user":"1925696723824730358","copy_user":"","stock_goods":[{"goods_id":"1","goods_category_first":"1","goods_category_id":"3","goods_no":"100001","goods_name":"医疗口罩一次性","goods_brand":"一次性口罩","goods_stock":[{"id":"1","name":"均码,白色","price":"1","stock":"110"},{"id":"2","name":"均码,蓝色","price":"1","stock":"100"},{"id":"19","name":"均码,红色","price":"1","stock":"120"}]},{"goods_id":"2","goods_category_first":"1","goods_category_id":"3","goods_no":"100002","goods_name":"84消毒液","goods_brand":"安其生","goods_stock":[{"id":"3","name":"380ml,低浓度","price":"1","stock":"110"},{"id":"4","name":"380ml,高浓度","price":"1","stock":"100"}]},{"goods_id":"","goods_category_first":"1","goods_category_id":"3","goods_no":"100003","goods_name":"一次性手套丁腈橡胶","goods_brand":"万力","goods_stock":[{"name":"白色","price":"0.2","stock":"110"},{"name":"蓝色","price":"0.2","stock":"100"}]}],"peer_user":[{"is_who":"","user_id":"","name":"","desc":""}]}
|
|
|
- $way = input('way');
|
|
|
- $id = input('id', 0);
|
|
|
- $module = input('module');
|
|
|
- $apply_user_id = input('apply_user_id', '');
|
|
|
- $reason = input('reason');
|
|
|
- $type = input('type', 0);
|
|
|
- $desc = input('desc');
|
|
|
+ $way = input('way') ?: '';
|
|
|
+ $id = input('id') ?: 0;
|
|
|
+ $module = input('module') ?: 0;
|
|
|
+ $apply_user_id = input('apply_user_id')?: '';
|
|
|
+ $reason = input('reason') ?: '';
|
|
|
+ $type = input('type') ?: 0;
|
|
|
+ $desc = input('desc') ?: '';
|
|
|
$start_time = input('start_time');
|
|
|
$end_time = input('end_time');
|
|
|
- $document = input('document');
|
|
|
- $images = input('images');
|
|
|
- $remark = input('remark');
|
|
|
- $total_amount = input('total_amount', 0);
|
|
|
- $pay_type = input('pay_type', 0);
|
|
|
+ $document = input('document')?: '';
|
|
|
+ $images = input('images')?: '';
|
|
|
+ $remark = input('remark')?: '';
|
|
|
+ $total_amount = input('total_amount')?: 0;
|
|
|
+ $pay_type = input('pay_type')?: 0;
|
|
|
$word_size = input('word_size');
|
|
|
- $apply_id = input('apply_id', 0);
|
|
|
- $number = input('number', 0);
|
|
|
- $is_who = input('is_who', 0);
|
|
|
+ $apply_id = input('apply_id')?: 0;
|
|
|
+ $number = input('number')?: 0;
|
|
|
+ $is_who = input('is_who')?: 0;
|
|
|
$start_am = input('start_am');
|
|
|
$end_am = input('end_am');
|
|
|
$time = input('time');
|
|
@@ -217,10 +217,10 @@ class Approveinfo extends Base
|
|
|
*/
|
|
|
public function get_list()
|
|
|
{
|
|
|
- $group = input('group', 'list');
|
|
|
- $module = input('module', 0);
|
|
|
- $status = input('status', 0);
|
|
|
- $search = input('search', '');
|
|
|
+ $group = input('group') ?: 'list';
|
|
|
+ $module = input('module') ?: 0;
|
|
|
+ $status = input('status') ?: 0;
|
|
|
+ $search = input('search') ?: '';
|
|
|
$offset = $this->off_set;
|
|
|
$length = $this->page_num;
|
|
|
$user = $this->user;
|
|
@@ -326,9 +326,9 @@ class Approveinfo extends Base
|
|
|
*/
|
|
|
public function get_detail()
|
|
|
{
|
|
|
- $id = input('id');
|
|
|
+ $id = input('id') ?: 0;
|
|
|
$user = $this->user;
|
|
|
- $info = ApproveInfoService::get_detail($id, $user, CommonConstant::IS_WHO_1,'detail');
|
|
|
+ $info = ApproveInfoService::get_detail($id, $user, CommonConstant::IS_WHO_1, 'detail');
|
|
|
$this->success('详情', $info);
|
|
|
}
|
|
|
|
|
@@ -390,9 +390,9 @@ class Approveinfo extends Base
|
|
|
**/
|
|
|
public function get_info()
|
|
|
{
|
|
|
- $id = input('id');
|
|
|
+ $id = input('id') ?: 0;
|
|
|
$user = $this->user;
|
|
|
- $info = ApproveInfoService::get_detail($id, $user, CommonConstant::IS_WHO_1,'info');
|
|
|
+ $info = ApproveInfoService::get_detail($id, $user, CommonConstant::IS_WHO_1, 'info');
|
|
|
$this->success('信息', $info);
|
|
|
}
|
|
|
|
|
@@ -404,7 +404,7 @@ class Approveinfo extends Base
|
|
|
*/
|
|
|
public function urging()
|
|
|
{
|
|
|
- $id = input('id');
|
|
|
+ $id = input('id') ?: 0;
|
|
|
$user = $this->user;
|
|
|
Db::startTrans();
|
|
|
try {
|
|
@@ -425,7 +425,7 @@ class Approveinfo extends Base
|
|
|
*/
|
|
|
public function cancel()
|
|
|
{
|
|
|
- $id = input('id');
|
|
|
+ $id = input('id') ?: 0;
|
|
|
$user = $this->user;
|
|
|
Db::startTrans();
|
|
|
try {
|