Commit 68214dc8 by 朱继来

temp

parent ae7f58db
......@@ -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();
......
<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
......@@ -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 }}";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment