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
49326f8d
authored
Mar 29, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整交期
parent
75ac0cd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
app/Model/QuoteModel.php
app/Model/QuoteModel.php
View file @
49326f8d
...
...
@@ -377,9 +377,11 @@ class QuoteModel extends Model
$quote_info
[
'class_id2_name'
]
=
$classInfo
[
'class_id2_name'
];
}
$quote_info
[
'status'
]
=
1
;
// 已报价
$quote_info
[
'create_uid'
]
=
$input
[
'user_id'
];
$quote_info
[
'create_name'
]
=
$input
[
'user_name'
];
$quote_info
[
'status'
]
=
1
;
// 已报价
$quote_info
[
'create_uid'
]
=
$input
[
'user_id'
];
$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
,
'新增报价失败'
];
...
...
@@ -733,6 +735,9 @@ class QuoteModel extends Model
$quote_info
[
'class_id2_name'
]
=
$classInfo
[
'class_id2_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'
]);
$this
->
where
(
'id'
,
$input
[
'quote_id'
])
->
update
(
$quote_info
);
if
(
$quote_info
[
'currency'
]
==
1
)
{
...
...
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