| | |
| | | <label class="layui-form-label">采购组织</label> |
| | | <div class="layui-input-block"> |
| | | <select id="HPURCHASEORGID" name="HPURCHASEORGID" lay-filter=""> |
| | | <option value="">安瑞</option> |
| | | |
| | | </select> |
| | | </div> |
| | | </div> |
| | |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | ajaxLabelData = data; |
| | | //根据选中的采购订单,重新从金蝶云同步采购订单关联数量过来。考虑采购订单删除和关闭状态,同步状态 |
| | | var ids = []; |
| | | $.each(data, function (obj) { |
| | | ids.push(data[obj].hmainid); |
| | | }) |
| | | var hasPrivileage = true; |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'TestSaverPOInStock', |
| | | type: 'Post', |
| | | async: false, |
| | | traditional: true, // 重点 |
| | | data: { |
| | | "": ids // 重点 |
| | | }, |
| | | success: function (data) { |
| | | if (data.code == "0") { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | hasPrivileage = false; |
| | | return hasPrivileage; |
| | | } |
| | | }, |
| | | error: function (e) { |
| | | layer.alert(e.Message, { icon: 5 }); |
| | | } |
| | | }); |
| | | if (!hasPrivileage) { |
| | | return; |
| | | } |
| | | var rows = ''; |
| | | var HEntry = ''; |
| | | for (var i = 0; i < data.length; i++) { |
| | |
| | | }) |
| | | } |
| | | break; |
| | | btn - barcode |
| | | |
| | | case 'btn-barcode': |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | |
| | | }; |
| | | }); |
| | | |
| | | |
| | | //渲染采购组织 |
| | | var Organization = '<option value=' + sessionStorage["OrganizationID"] + ' style="color:red;">' + sessionStorage["Organization"] + '</option>'; |
| | | $("#HPURCHASEORGID").append(Organization); |
| | | form.render('select'); |
| | | |
| | | ///加载显示数据 |
| | | function RoadHBillNo(sqlWhere) { |