| | |
| | | |
| | | //选中单据事件 |
| | | form.on('select(getbar)', function (data) { |
| | | |
| | | $("#PalletNo").empty() |
| | | $("#PalletNo").append('<option value =>' + '</option>'); |
| | | form.render('select'); |
| | | if (data.value == "") { |
| | | return; |
| | | } |
| | | updateGoodList(); |
| | | |
| | | }); |
| | | |
| | | //选中单据明细事件 |
| | | form.on('select(goodSelect)', function (data) { |
| | | |
| | | $("#PalletNo").empty() |
| | | $("#PalletNo").append('<option value =>' + '</option>'); |
| | | form.render('select'); |
| | | }); |
| | | $("#selectDiv").click(function () { |
| | | var input = $('select[id="bar"]').next().find('.layui-select-title input') |
| | | var val = input.val() |
| | |
| | | $('select[id="bar"]').next().find('.layui-select-title input').val(val) |
| | | }) |
| | | }) |
| | | |
| | | $("#selectPalletNo").click(function () { |
| | | var input = $('select[id="PalletNo"]').next().find('.layui-select-title input') |
| | | var val = input.val() |
| | | //先更新一下出库单 |
| | | updatePalletNoList(function (data) { |
| | | $('select[id="PalletNo"]').next().addClass('layui-form-selected') |
| | | $('select[id="PalletNo"]').next().find('.layui-select-title input').val(val) |
| | | }) |
| | | }) |
| | | |
| | | //初始化渲染 出库单 |
| | | function updateBillList(callback) { |
| | | var input = $('select[id="bar"]').next().find('.layui-select-title input') |
| | |
| | | form.render('select'); |
| | | |
| | | var param = { |
| | | soNo:$("#bar").val() |
| | | SoNo:$("#bar").val(), |
| | | SoDetailId:$("#goodSelect").val(), |
| | | }; |
| | | sendData(IP + "/PdaCr/GetPalletNoListBySoNo", param, 'get', function (res) { |
| | | sendData(IP + "/PdaSo/GetPalletListBySo", param, 'post', function (res) { |
| | | if (res.code == 0) { //成功 |
| | | for (var i = 0; i < res.data.length; i++) { |
| | | $("#PalletNo").append('<option value =' + res.data[i] + '>' + res.data[i]+ |