Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
php_frq_api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f2e86f74
authored
Apr 28, 2021
by
杜文军
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
撤销报价取消
parent
e0ec3925
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
app/Model/QuoteModel.php
config/quote.php
app/Model/QuoteModel.php
View file @
f2e86f74
...
...
@@ -208,7 +208,7 @@ class QuoteModel extends Model
$map
[
'create_uid'
]
=
isset
(
$input
[
'create_uid'
])
?
$input
[
'create_uid'
]
:
''
;
// 报价制单人
if
(
$type
==
1
)
{
$list
=
$list
->
where
(
'q.create_uid'
,
$input
[
'user_id'
])
->
where
(
'q.status'
,
'<>'
,
0
);
// 过滤报价草稿
$list
=
$list
->
where
(
'q.create_uid'
,
$input
[
'user_id'
])
->
where
NotIn
(
'q.status'
,
[
0
,
-
1
]);
// 过滤报价草稿
}
else
{
if
(
$type
==
2
)
{
$perm
=
new
PermController
;
...
...
@@ -219,13 +219,13 @@ class QuoteModel extends Model
$list
=
$list
->
whereIn
(
'q.create_uid'
,
$sub_sale_ids
);
}
$list
=
$list
->
where
(
'q.status'
,
'<>'
,
0
);
// 过滤报价草稿
$list
=
$list
->
where
NotIn
(
'q.status'
,
[
0
,
-
1
]
);
// 过滤报价草稿
}
elseif
(
@
$input
[
'inquiry_items_id'
]
>
0
)
{
$list
=
$list
->
where
(
'q.status'
,
0
)
->
where
(
'q.inquiry_items_id'
,
$input
[
'inquiry_items_id'
]);
$list
=
$list
->
where
NotIn
(
'q.status'
,
[
0
,
-
1
]
)
->
where
(
'q.inquiry_items_id'
,
$input
[
'inquiry_items_id'
]);
}
elseif
(
isset
(
$input
[
'inquiry_items_ids'
])
&&
$input
[
'inquiry_items_ids'
])
{
$inquiry_items_ids
=
explode
(
","
,
$input
[
'inquiry_items_ids'
]);
$inquiry_items_ids
=
array_values
(
array_filter
(
$inquiry_items_ids
));
$list
=
$list
->
where
(
'q.status'
,
0
)
->
whereIn
(
'q.inquiry_items_id'
,
$inquiry_items_ids
);
$list
=
$list
->
where
NotIn
(
'q.status'
,
[
0
,
-
1
]
)
->
whereIn
(
'q.inquiry_items_id'
,
$inquiry_items_ids
);
}
}
...
...
@@ -511,7 +511,6 @@ class QuoteModel extends Model
public
function
add
(
$input
)
{
$quote_info
=
$input
[
'quote_info'
];
if
(
!
$quote_info
)
{
return
[
1
,
'报价数据不存在'
];
}
...
...
config/quote.php
View file @
f2e86f74
<?php
return
[
'quote_status'
=>
[
// 报价状态
-
1
=>
'已撤销'
,
0
=>
'草稿'
,
1
=>
'已报价'
,
2
=>
'已选中'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment