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
e8329df9
authored
May 17, 2021
by
duwenjun
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
返回字段
parent
ec08dd6a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
app/Model/QuoteModel.php
app/Model/QuoteModel.php
View file @
e8329df9
...
...
@@ -169,9 +169,12 @@ class QuoteModel extends Model
'q.delivery_time'
,
'q.batch'
,
'q.create_time'
,
"q.tax_rate"
,
"q.mpq"
,
"q.moq"
,
'it.goods_name'
,
'it.brand_name'
,
'it.inquiry_number'
'it.inquiry_number'
,
];
if
(
$map
)
{
$list
=
$this
->
commonQuery
(
$map
,
$input
);
...
...
@@ -714,7 +717,6 @@ class QuoteModel extends Model
$quote_info
[
'create_name'
]
=
$input
[
'user_name'
];
$quote_info
[
'delivery_time'
]
=
$quote_info
[
'delivery_time_unit'
]
==
'天'
?
$quote_info
[
'delivery_time'
]
:
$quote_info
[
'delivery_time'
]
*
7
;
unset
(
$quote_info
[
'delivery_time_unit'
]);
$res
=
$this
->
create
(
$quote_info
);
if
(
$res
===
false
)
{
return
[
2
,
'新增报价失败'
];
...
...
@@ -1169,12 +1171,12 @@ class QuoteModel extends Model
'¥'
)
.
$quote_info
[
'price_origin'
];
}
$content
=
'修改报价,报价单号:'
.
$in
put
[
'quote_sn'
]
.
',型号:'
.
$quote_info
[
'goods_name'
]
.
','
.
$price_log
.
',批次:'
.
$quote_info
[
'batch'
]
.
',货期:'
.
$delivery_time
;
$content
=
'修改报价,报价单号:'
.
$in
fo
[
'quote_sn'
]
.
',型号:'
.
$quote_info
[
'goods_name'
]
.
','
.
$price_log
.
',批次:'
.
$quote_info
[
'batch'
]
.
',货期:'
.
$delivery_time
;
$data
=
[];
$data
[
'types'
]
=
2
;
$data
[
'relation_id'
]
=
$input
[
'quote_id'
];
$data
[
'relation_sn'
]
=
$in
put
[
'quote_sn'
];
$data
[
'relation_sn'
]
=
$in
fo
[
'quote_sn'
];
$data
[
'content'
]
=
$content
;
$data
[
'create_uid'
]
=
$input
[
'user_id'
];
$data
[
'create_name'
]
=
$input
[
'user_name'
];
...
...
@@ -1183,7 +1185,7 @@ class QuoteModel extends Model
// 推送消息
$InquiryModel
=
new
InquiryModel
;
$inquiry_uid
=
$InquiryModel
->
where
(
'id'
,
$in
put
[
'inquiry_id'
])
->
value
(
'create_uid'
);
// 询价人
$inquiry_uid
=
$InquiryModel
->
where
(
'id'
,
$in
fo
[
'inquiry_id'
])
->
value
(
'create_uid'
);
// 询价人
$contents
=
$input
[
'user_name'
]
.
$content
;
$CommonModel
->
send_msg
(
$inquiry_uid
,
$contents
);
...
...
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