Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
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
7233a439
authored
Jan 09, 2019
by
PRY5YKGJ82EZEPX\Administrator
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'hcy_pcb_20181221-r' into development
parents
8ad40c26
d84ffee7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
68 additions
and
9 deletions
app/Http/Controllers/ApiController.php
app/Model/Pcb/PcbServerModel.php
public/js/PcbPurchaseList.js
resources/views/Pcb/PcbOrderDetail.blade.php
resources/views/Pcb/PcbPurchaseDetail.blade.php
resources/views/Pcb/PcbPurchaseList.blade.php
app/Http/Controllers/ApiController.php
View file @
7233a439
...
@@ -86,4 +86,8 @@ class ApiController extends Controller
...
@@ -86,4 +86,8 @@ class ApiController extends Controller
private
function
ApiOfflinePay
(
$request
){
private
function
ApiOfflinePay
(
$request
){
echo
(
new
PcbServerModel
())
->
offlinePay
(
$request
->
user
->
userId
,
$request
->
input
(
"order_id"
),
$request
->
input
(
"pay_money"
));
echo
(
new
PcbServerModel
())
->
offlinePay
(
$request
->
user
->
userId
,
$request
->
input
(
"order_id"
),
$request
->
input
(
"pay_money"
));
}
}
//pcb后台点击采购确认
private
function
ApiSetOrderProduct
(
$request
){
echo
(
new
PcbServerModel
())
->
setOrdserProduct
(
$request
->
user
->
userId
,
$request
->
input
(
"purchase_id"
));
}
}
}
app/Model/Pcb/PcbServerModel.php
View file @
7233a439
...
@@ -44,7 +44,7 @@ class PcbServerModel
...
@@ -44,7 +44,7 @@ class PcbServerModel
return
$res
;
return
$res
;
}
}
/*
/*
*
*
线下支付
* @param int $order_id 订单id
* @param int $order_id 订单id
* @param int $status 状态
* @param int $status 状态
*/
*/
...
@@ -60,4 +60,19 @@ class PcbServerModel
...
@@ -60,4 +60,19 @@ class PcbServerModel
}
}
return
$res
;
return
$res
;
}
}
/*
* 确定货已入库
* @param int $purchase_id 采购ID
*/
public
function
setOrdserProduct
(
$admin_id
,
$purchase_id
){
$param
=
[
'purchase_id'
=>
$purchase_id
,
];
$res
=
curlApi
(
$this
->
PcbUrl
.
'/pcb/adminapi/setOrderProduct'
,
$param
,
'POST'
);
$json
=
json_decode
(
$res
,
true
);
if
(
$json
[
'err_code'
]
==
0
){
PcbActionLogModel
::
log
(
1
,
'setOrderProduct'
,
"确定货已入库"
,
$purchase_id
,
$admin_id
);
}
return
$res
;
}
}
}
\ No newline at end of file
public/js/PcbPurchaseList.js
View file @
7233a439
...
@@ -101,6 +101,7 @@ function confirmOrder(purchase_id) {
...
@@ -101,6 +101,7 @@ function confirmOrder(purchase_id) {
confirmOrder2
(
purchase_id
,
-
1
);
//不通过
confirmOrder2
(
purchase_id
,
-
1
);
//不通过
});
});
}
}
//采购确认
function
confirmOrder2
(
purchase_id
,
status
)
{
function
confirmOrder2
(
purchase_id
,
status
)
{
$
.
ajax
({
$
.
ajax
({
url
:
'/api/ApiConfirmOrder'
,
url
:
'/api/ApiConfirmOrder'
,
...
@@ -120,3 +121,25 @@ function confirmOrder2(purchase_id,status) {
...
@@ -120,3 +121,25 @@ function confirmOrder2(purchase_id,status) {
}
}
})
})
}
}
//货已到猎芯
function
setOrderProduct
(
purchase_id
)
{
alert_confirm
(
"确认货已入库?"
,
function
()
{
$
.
ajax
({
url
:
'/api/ApiSetOrderProduct '
,
type
:
'post'
,
data
:{
"purchase_id"
:
purchase_id
},
async
:
false
,
dataType
:
'json'
,
timeout
:
10000
,
success
:
function
(
res
)
{
if
(
res
.
err_code
==
0
){
alert_succ
(
res
.
err_msg
,
function
()
{
window
.
location
.
reload
()
})
}
else
{
alert_err
(
res
.
err_msg
)
}
}
})
})
}
\ No newline at end of file
resources/views/Pcb/PcbOrderDetail.blade.php
View file @
7233a439
...
@@ -219,15 +219,21 @@
...
@@ -219,15 +219,21 @@
<th>
内层铜厚
</th>
<th>
内层铜厚
</th>
<th>
生产周期
</th>
<th>
生产周期
</th>
<th>
交货日期
</th>
<th>
交货日期
</th>
<th></th>
<th>
板材
</th>
</tr>
</tr>
<tr>
<tr>
<td>
<?=
@
$orderInfo
[
'surface'
]
?>
</td>
<td>
<?=
@
$orderInfo
[
'surface'
]
?>
</td>
<td>
<?=
$orderInfo
[
'via_process'
]
?>
</td>
<td>
<?=
$orderInfo
[
'via_process'
]
?>
</td>
<td>
<?=
$orderInfo
[
'copper_thickness'
]
?>
</td>
<td>
<?=
$orderInfo
[
'
inside_
copper_thickness'
]
?>
</td>
<td>
<?=
@
$orderAuditDetail
[
'text'
]
?>
</td>
<td>
<?=
@
$orderAuditDetail
[
'text'
]
?>
</td>
<td>
<?=
$purchase
[
'finish_time'
]
?>
</td>
<td>
<?=
$purchase
[
'finish_time'
]
?>
</td>
<td></td>
<td>
<?=
$purchase
[
'material'
]
?>
</td>
</tr>
<tr
class=
"c2"
>
<th>
过孔
</th>
</tr>
<tr>
<td>
<?=
$orderInfo
[
'min_hole_size'
]
.
'mm'
?>
</td>
</tr>
</tr>
<tr>
<tr>
<th
class=
"c2"
>
其他要求
</th>
<th
class=
"c2"
>
其他要求
</th>
...
...
resources/views/Pcb/PcbPurchaseDetail.blade.php
View file @
7233a439
...
@@ -169,15 +169,21 @@
...
@@ -169,15 +169,21 @@
<th
class=
"c2"
>
内层铜厚
</th>
<th
class=
"c2"
>
内层铜厚
</th>
<th
class=
"c2"
>
生产周期
</th>
<th
class=
"c2"
>
生产周期
</th>
<th
class=
"c2"
>
交货日期
</th>
<th
class=
"c2"
>
交货日期
</th>
<th></th>
<th>
板材
</th>
</tr>
</tr>
<tr>
<tr>
<td>
<?=
@
$orderInfo
[
'surface'
]
?>
</td>
<td>
<?=
@
$orderInfo
[
'surface'
]
?>
</td>
<td>
<?=
$orderInfo
[
'via_process'
]
?>
</td>
<td>
<?=
$orderInfo
[
'via_process'
]
?>
</td>
<td>
<?=
$orderInfo
[
'copper_thickness'
]
?>
</td>
<td>
<?=
$orderInfo
[
'inside_copper_thickness'
]
?>
</td>
<td>
<?=
@
$orderAuditDetail
[
'text'
]
?>
</td>
<td>
<?=
@
$purchaseAuditDetail
[
'text'
]
?>
</td>
<td>
<?=
$purchase
[
'finish_time'
]
?>
</td>
<td>
<?=
$purchase
[
'finish_time'
]
>
0
?
date
(
"Y-m-d H:i:s"
,
$purchase
[
'finish_time'
])
:
""
?>
</td>
<td></td>
<td>
<?=
$orderInfo
[
'material'
]
?>
</td>
</tr>
<tr
class=
"c2"
>
<th>
过孔
</th>
</tr>
<tr>
<td>
<?=
$orderInfo
[
'min_hole_size'
]
.
'mm'
?>
</td>
</tr>
</tr>
<tr>
<tr>
<th
class=
"c2"
>
其他要求
</th>
<th
class=
"c2"
>
其他要求
</th>
...
...
resources/views/Pcb/PcbPurchaseList.blade.php
View file @
7233a439
...
@@ -104,6 +104,9 @@
...
@@ -104,6 +104,9 @@
<?php
if
(
$v
[
'status'
]
==
3
)
{
?>
<?php
if
(
$v
[
'status'
]
==
3
)
{
?>
<button
class=
"btn btn-xs btn-outline btn-danger"
lay-submit=
""
order_id=
"{{ $v['purchase_id'] }}"
order_sn=
"{{ $v['purchase_sn'] }}"
onclick=
"confirmOrder({{ $v['purchase_id'] }})"
>
采购确认
</button>
<button
class=
"btn btn-xs btn-outline btn-danger"
lay-submit=
""
order_id=
"{{ $v['purchase_id'] }}"
order_sn=
"{{ $v['purchase_sn'] }}"
onclick=
"confirmOrder({{ $v['purchase_id'] }})"
>
采购确认
</button>
<?php
}
?>
<?php
}
?>
<?php
if
(
$v
[
'status'
]
==
13
)
{
?>
<button
class=
"btn btn-xs btn-outline btn-danger"
lay-submit=
""
order_id=
"{{ $v['purchase_id'] }}"
order_sn=
"{{ $v['purchase_sn'] }}"
onclick=
"setOrderProduct({{ $v['purchase_id'] }})"
>
确认入库
</button>
<?php
}
?>
</div>
</div>
</td>
</td>
</tr>
</tr>
...
...
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