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
27cc125c
authored
May 19, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加字段
parent
b93fbf2d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
app/Model/QuoteModel.php
app/map/InquiryMap.php
app/map/QuoteMap.php
app/Model/QuoteModel.php
View file @
27cc125c
...
@@ -86,6 +86,7 @@ class QuoteModel extends Model
...
@@ -86,6 +86,7 @@ class QuoteModel extends Model
if
(
$v
[
"raw_goods_packing"
]
!=
""
)
{
if
(
$v
[
"raw_goods_packing"
]
!=
""
)
{
$v
[
"create_name"
]
=
$v
[
"create_name"
]
.
"(包装:"
.
$v
[
"raw_goods_packing"
]
.
")"
;
$v
[
"create_name"
]
=
$v
[
"create_name"
]
.
"(包装:"
.
$v
[
"raw_goods_packing"
]
.
")"
;
}
}
$v
[
'source_val'
]
=
array_get
(
Config
(
'quote.quote_source'
),
$v
[
'source'
],
''
);
}
}
return
[
0
,
'成功'
,
$list
[
'data'
],
$list
[
'total'
]];
return
[
0
,
'成功'
,
$list
[
'data'
],
$list
[
'total'
]];
}
}
...
@@ -313,6 +314,7 @@ class QuoteModel extends Model
...
@@ -313,6 +314,7 @@ class QuoteModel extends Model
$v
[
"effect_days"
]
=
$v
[
"effect_days"
]
.
"天"
;
$v
[
"effect_days"
]
=
$v
[
"effect_days"
]
.
"天"
;
$v
[
'price_rmb'
]
=
$v
[
'currency'
]
==
1
?
$v
[
'price_rmb'
]
:
''
;
$v
[
'price_rmb'
]
=
$v
[
'currency'
]
==
1
?
$v
[
'price_rmb'
]
:
''
;
$v
[
"digikey"
]
=
"包装:"
.
$v
[
"raw_goods_packing"
];
$v
[
"digikey"
]
=
"包装:"
.
$v
[
"raw_goods_packing"
];
$v
[
'source_val'
]
=
array_get
(
Config
(
'quote.quote_source'
),
$v
[
'source'
],
''
);
}
}
return
[
0
,
'获取成功'
,
$list
[
'data'
],
$list
[
'total'
]];
return
[
0
,
'获取成功'
,
$list
[
'data'
],
$list
[
'total'
]];
...
...
app/map/InquiryMap.php
View file @
27cc125c
...
@@ -3,13 +3,14 @@ namespace App\map;
...
@@ -3,13 +3,14 @@ namespace App\map;
//询价枚举
//询价枚举
class
InquiryMap
{
class
InquiryMap
{
//状态 -1:已关闭 1:待报价 2:已报价 3:已选中 4:已领取 5:已确认
//状态 -1:已关闭 1:待报价 2:已报价 3:已选中 4:已领取 5:已确认
10:已成单
const
status_close
=
-
1
;
const
status_close
=
-
1
;
const
status_ready
=
1
;
const
status_ready
=
1
;
const
status_replay
=
2
;
const
status_replay
=
2
;
const
status_check
=
3
;
const
status_check
=
3
;
const
status_fix
=
4
;
const
status_fix
=
4
;
const
status_sure
=
5
;
const
status_sure
=
5
;
const
status_order
=
10
;
static
$status
=
[
static
$status
=
[
self
::
status_close
=>
"已关闭"
,
self
::
status_close
=>
"已关闭"
,
self
::
status_ready
=>
"待报价"
,
self
::
status_ready
=>
"待报价"
,
...
@@ -17,6 +18,7 @@ class InquiryMap{
...
@@ -17,6 +18,7 @@ class InquiryMap{
self
::
status_check
=>
"已选中"
,
self
::
status_check
=>
"已选中"
,
self
::
status_fix
=>
"已领取"
,
self
::
status_fix
=>
"已领取"
,
self
::
status_sure
=>
"已确认"
,
self
::
status_sure
=>
"已确认"
,
self
::
status_order
=>
"已成单"
,
];
];
//币种 1:CNY 2:USD 3: 港币 4:欧元 5:英磅
//币种 1:CNY 2:USD 3: 港币 4:欧元 5:英磅
...
...
app/map/QuoteMap.php
View file @
27cc125c
...
@@ -4,17 +4,23 @@ namespace App\map;
...
@@ -4,17 +4,23 @@ namespace App\map;
//报价枚举
//报价枚举
class
QuoteMap
{
class
QuoteMap
{
//状态 -1:已撤销 0:草稿 1:已报价 2:已选中 3:已确认
//状态 -1:已撤销 0:草稿 1:已报价 2:已选中 3:已确认
const
status_c
lose
=
-
1
;
const
status_c
ancel
=
-
1
;
const
status_cao
=
0
;
const
status_cao
=
0
;
const
status_ready
=
1
;
const
status_ready
=
1
;
const
status_fix
=
2
;
const
status_fix
=
2
;
const
status_sure
=
3
;
const
status_sure
=
3
;
const
status_order
=
4
;
const
status_close
=
5
;
const
status_delete
=
9
;
static
$status
=
[
static
$status
=
[
self
::
status_c
lose
=>
"已撤销"
,
self
::
status_c
ancel
=>
"已撤销"
,
self
::
status_cao
=>
"草稿"
,
self
::
status_cao
=>
"草稿"
,
self
::
status_ready
=>
"已报价"
,
self
::
status_ready
=>
"已报价"
,
self
::
status_fix
=>
"已选中"
,
self
::
status_fix
=>
"已选中"
,
self
::
status_sure
=>
"已确认"
,
self
::
status_sure
=>
"已确认"
,
self
::
status_order
=>
"已成单"
,
self
::
status_close
=>
"已关闭"
,
self
::
status_delete
=>
"已删除"
,
];
];
//可用报价状态
//可用报价状态
...
...
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