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
d5506a79
authored
Mar 30, 2021
by
hcy001
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
0e63f1a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
app/Model/InquiryItemsModel.php
app/Model/InquiryItemsModel.php
View file @
d5506a79
...
...
@@ -325,20 +325,6 @@ class InquiryItemsModel extends Model
}
}
#修改询价日志
\App\Model\OpLogModel
::
log
([
'types'
=>
1
,
'relation_id'
=>
$inquiry_items_id
,
#明细id
'relation_sn'
=>
0
,
'content'
=>
'修改询价,型号:'
.
$updateArr
[
"goods_name"
]
.
" 品牌名称:"
.
$updateArr
[
"brand_name"
]
.
" 货期:"
.
$updateArr
[
"delivery_time"
]
.
" 询价数量:"
.
$updateArr
[
"inquiry_number"
]
.
" 批次:"
.
$updateArr
[
"batch"
]
.
" 目标价:"
.
$updateArr
[
"target_price"
],
'create_uid'
=>
$b
[
'user_id'
],
'create_name'
=>
$b
[
"user_name"
],
]);
$con
->
commit
();
#发送消息
$itemArr
=
$this
->
where
(
"id"
,
$inquiry_items_id
)
->
first
()
->
toArray
();
#明细
$mainArr
=
(
new
InquiryModel
())
->
where
(
"id"
,
$itemArr
[
"inquiry_id"
])
->
first
()
->
toArray
();
#主单状态
...
...
@@ -356,6 +342,19 @@ class InquiryItemsModel extends Model
}
}
#修改询价日志
\App\Model\OpLogModel
::
log
([
'types'
=>
1
,
'relation_id'
=>
$inquiry_items_id
,
#明细id
'relation_sn'
=>
$mainArr
[
"inquiry_sn"
],
'content'
=>
'修改询价,型号:'
.
$updateArr
[
"goods_name"
]
.
" 品牌名称:"
.
$updateArr
[
"brand_name"
]
.
" 货期:"
.
$updateArr
[
"delivery_time"
]
.
" 询价数量:"
.
$updateArr
[
"inquiry_number"
]
.
" 批次:"
.
$updateArr
[
"batch"
]
.
" 目标价:"
.
$updateArr
[
"target_price"
],
'create_uid'
=>
$b
[
'user_id'
],
'create_name'
=>
$b
[
"user_name"
],
]);
$con
->
commit
();
return
[
0
,
"修改成功"
];
}
catch
(
\Exception
$e
)
{
...
...
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