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
68214dc8
authored
Dec 27, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
temp
parent
ae7f58db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
111 additions
and
0 deletions
public/js/goods.js
resources/views/detail/addGoodsNoSkuid.blade.php
resources/views/detail/changeOrder.blade.php
public/js/goods.js
View file @
68214dc8
...
...
@@ -80,6 +80,47 @@
})
})
$
(
'.order-change-main'
).
on
(
'click'
,
'.add_goods_no_skuid'
,
function
()
{
layer
.
open
({
area
:
[
'600px'
],
type
:
1
,
title
:
'新增商品'
,
content
:
$
(
'#addGoodsNoSkuid'
),
btn
:
[
'新增'
,
'取消'
],
btn1
:
function
()
{
var
datax
=
{
order_id
:
order_id
,
goods_id
:
goods_id
,
goods_num
:
goods_min_num
,
};
$
.
ajax
({
type
:
"POST"
,
url
:
'/ajax/addGoods'
,
data
:
datax
,
dataType
:
"json"
,
success
:
function
(
resp
){
if
(
resp
.
errcode
==
0
){
layer
.
msg
(
resp
.
errmsg
||
'操作成功'
);
setTimeout
(
function
(){
location
.
reload
();
},
1000
);
return
false
;
}
else
{
layer
.
alert
(
resp
.
errmsg
||
'网络异常'
);
}
},
})
},
btn2
:
function
(
index
)
{
layer
.
close
(
index
)
}
})
})
// 获取SKU信息
$
(
'.get-sku'
).
click
(
function
()
{
var
sku_id
=
$
(
this
).
siblings
(
'.search-sku'
).
val
();
...
...
resources/views/detail/addGoodsNoSkuid.blade.php
0 → 100644
View file @
68214dc8
<style>
#addGoodsNoSkuid
{
display
:
none
;
}
#addGoodsNoSkuid
input
{
width
:
280px
;
height
:
35px
;
}
#addGoodsNoSkuid
textarea
{
width
:
280px
;
}
</style>
<div
id=
"addGoodsNoSkuid"
>
<div
class=
"ibox-content form-horizontal"
>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
><i
class=
"error"
>
*
</i>
商品名称
</label>
<div
class=
"col-sm-8"
>
<input
class=
"form-control"
type=
"text"
name=
"add_goods_name"
value=
""
placeholder=
"请输入商品名称"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
><i
class=
"error"
>
*
</i>
制造商
</label>
<div
class=
"col-sm-8"
>
<input
class=
"form-control"
type=
"text"
name=
"add_brand_name"
value=
""
placeholder=
"请输入制造商"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
><i
class=
"error"
>
*
</i>
供应商
</label>
<div
class=
"col-sm-8"
>
<input
class=
"form-control"
type=
"text"
name=
"add_supplier_name"
value=
""
placeholder=
"请输入供应商"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
><i
class=
"error"
>
*
</i>
采购数量
</label>
<div
class=
"col-sm-8"
>
<input
class=
"form-control"
type=
"text"
name=
"add_goods_number"
value=
""
placeholder=
"请输入采购数量"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
><i
class=
"error"
>
*
</i>
采购单价
</label>
<div
class=
"col-sm-8"
>
<input
class=
"form-control"
type=
"text"
name=
"add_goods_price"
value=
""
placeholder=
"请输入采购单价"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
><i
class=
"error"
>
*
</i>
货期
</label>
<div
class=
"col-sm-8"
>
<input
class=
"form-control"
type=
"text"
name=
"add_delivery_time"
value=
""
placeholder=
"请输入货期"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
采购员
</label>
<div
class=
"col-sm-8"
>
<input
class=
"form-control"
type=
"text"
name=
"add_buyer_id"
value=
""
placeholder=
"请输入采购员"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
批次
</label>
<div
class=
"col-sm-8"
>
<input
class=
"form-control"
type=
"text"
name=
"add_batch"
value=
""
placeholder=
"请输入批次"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
备注
</label>
<div
class=
"col-sm-8"
>
<textarea
class=
"form-control"
name=
"add_remarks"
rows=
"3"
placeholder=
"请输入备注"
></textarea>
</div>
</div>
</div>
</div>
\ No newline at end of file
resources/views/detail/changeOrder.blade.php
View file @
68214dc8
...
...
@@ -91,6 +91,10 @@
<div>
<p
style=
"float: left;"
>
调价
</p>
<a
class=
"btn btn-info add_goods"
style=
"float: right; margin-bottom: 5px;"
>
新增商品
</a>
@if ($order_info['order_goods_type'] == 1)
<a
class=
"btn btn-primary add_goods_no_skuid"
style=
"float: right; margin-bottom: 5px; margin-right: 5px;"
>
新增无SKUID
</a>
@endif
</div>
<table
class=
"table table-bordered table-hover order-change-table"
>
...
...
@@ -496,6 +500,7 @@
@endif
@include('detail.addGoods')
@include('detail.addGoodsNoSkuid')
<script>
var
is_manager
=
"{{ in_array($role, Config('perm_args.is_manager_perm')) ? true : false }}"
;
...
...
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