|
|
@@ -294,32 +294,46 @@ $(".systemwindow").on('click', "#bdbbprintks", function() {
|
|
|
});
|
|
|
|
|
|
function addYcrk(id){
|
|
|
- // $.post("/transfer/ycrk", {id:id}, function(a){
|
|
|
- // if(a.success){
|
|
|
- // layx.confirm('提示',a.msg,null,{
|
|
|
- // buttons:[
|
|
|
- // {
|
|
|
- // label:'确定',
|
|
|
- // callback:function(id, button, event){
|
|
|
- // layx.destroy(id);
|
|
|
- // $(".search span").click();
|
|
|
- // }
|
|
|
- // }
|
|
|
- // ],dialogIcon:'error',shadable:0.6
|
|
|
- // })
|
|
|
- // }else{
|
|
|
- // layx.confirm('提示',a.msg,null,{
|
|
|
- // buttons:[
|
|
|
- // {
|
|
|
- // label:'确定',
|
|
|
- // callback:function(id, button, event){
|
|
|
- // layx.destroy(id);
|
|
|
- // }
|
|
|
- // }
|
|
|
- // ],dialogIcon:'error',shadable:0.6
|
|
|
- // })
|
|
|
- // }
|
|
|
- // }, "json")
|
|
|
+ $(".boundtj div p:eq(0)").html('<label>类 型:<select name="type" class="select"><option value="1">配货入库</option><option value="2">成品库入库</option><option value="3">外销单入库</option></select></label> <input type="hidden" name="id" value="'+id+'" />');
|
|
|
+ $(".boundtj div p:eq(1)").html("<font class='obaddgo' onclick='doAddYcrk()'>确 定</font><font class='esc' onclick='escDo()'>取 消</font>");
|
|
|
+ $(".boundtj").show();
|
|
|
+ }
|
|
|
+ function doAddYcrk(){
|
|
|
+ let obj = {}
|
|
|
+ obj.id = $(".boundtj input[name='id']").val();
|
|
|
+ obj.type = $(".boundtj select[name='type']").val();
|
|
|
+ $.post("/transfer/ycrk", obj, function(a){
|
|
|
+ if(a.success){
|
|
|
+ layx.confirm('提示',a.msg,null,{
|
|
|
+ buttons:[
|
|
|
+ {
|
|
|
+ label:'确定',
|
|
|
+ callback:function(id, button, event){
|
|
|
+ layx.destroy(id);
|
|
|
+ escDo();
|
|
|
+ $(".search span").click();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],dialogIcon:'error',shadable:0.6
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ layx.confirm('提示',a.msg,null,{
|
|
|
+ buttons:[
|
|
|
+ {
|
|
|
+ label:'确定',
|
|
|
+ callback:function(id, button, event){
|
|
|
+ escDo();
|
|
|
+ layx.destroy(id);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],dialogIcon:'error',shadable:0.6
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }, "json")
|
|
|
+ }
|
|
|
+ function escDo(){
|
|
|
+ $(".boundtj p").html("");
|
|
|
+ $(".boundtj").hide();
|
|
|
}
|
|
|
</script>
|
|
|
<script>
|