Merge branch 'master' of http://101.37.171.70:10101/r/MESWMS-LayUI
| | |
| | | <Content Include="views\Baseset\åºç¡èµæ\Gy_ClassTimePrjGroupEdit.html" /> |
| | | <Content Include="views\Baseset\åºç¡èµæ\Gy_ClassTimePrjList.html" /> |
| | | <Content Include="views\Baseset\åºç¡èµæ\Gy_LineCenter.html" /> |
| | | <Content Include="views\Baseset\åºç¡èµæ\Gy_OrganizationtList.html" /> |
| | | <Content Include="views\Baseset\åºç¡èµæ\Gy_QCCheckProjectListView.html" /> |
| | | <Content Include="views\Baseset\åºç¡èµæ\Gy_RoutingGroup.html" /> |
| | | <Content Include="views\Baseset\åºç¡èµæ\Gy_WarehouseListNew.html" /> |
| | | <Content Include="views\Baseset\åºç¡èµæ\Sc_ICMOBillListView2.html" /> |
| | | <Content Include="views\Baseset\åºç¡èµæ\Sc_ProcessExchangeBillListView.html" /> |
| | | <Content Include="views\Baseset\åºç¡èµæ\Gy_QCCheckItemListView.html" /> |
| | |
| | | </a> |
| | | <dl class="layui-nav-child" style="width:230px;"> |
| | | <dd> |
| | | <a href="" target="_blank"> |
| | | <a href="http://47.96.97.237/kanbanUi/KBNT/KBNT_CGSH.html" target="_blank"> |
| | | <i class="layui-icon layui-icon-layer"></i>éè´æ¶æçæ¿ |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a href="http://47.96.97.237/kanbanUi/KBNT/KBNT_BLPS.html" target="_blank"> |
| | | <i class="layui-icon layui-icon-layer"></i>夿é
é |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a href="http://47.96.97.237/kanbanUi/KBNT/KBNT_SCZX.html" target="_blank"> |
| | | <i class="layui-icon layui-icon-layer"></i>ç产计åçæ¿ |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a href="http://47.96.97.237/kanbanUi/KBNT/KBNT_JYJD.html" target="_blank"> |
| | | <i class="layui-icon layui-icon-layer"></i>æ£éªè¿åº¦çæ¿ |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a href="" target="_blank"> |
| | | <i class="layui-icon layui-icon-layer"></i>éå®åè´§çæ¿ |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a href="" target="_blank"> |
| | | <i class="layui-icon layui-icon-layer"></i>ç产计åçæ¿ |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | |
| | | var HSourceFlag = sessionStorage["SourceFlag"]; |
| | | |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | if (sessionStorage.login != "login") { |
| | | layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | }, function () { window.location.href = "../../user/login.html"; }); |
| | | } |
| | | //if (sessionStorage.login != "login") { |
| | | // layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | // icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | // }, function () { window.location.href = "../../user/login.html"; }); |
| | | //} |
| | | |
| | | //è·ååæ° |
| | | function getUrlVars() { |
| | |
| | | |
| | | |
| | | //æ«æ¡ç |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | var sQty = $("#HQty").val(); |
| | | if (sSourceBillNo == null) |
| | | { |
| | | sSourceBillNo = ""; |
| | |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | }); |
| | | |
| | | //çå¬åå
æ ¼ç¼è¾ åå
æ ¼ç¼è¾å åæ´ |
| | | table.on('edit(mainTable)', function (obj) { |
| | | // åå
æ ¼ç¼è¾ä¹åçå¼ |
| | | var oldText = $(this).prev().text(); |
| | | var value = obj.value //å¾å°ä¿®æ¹åçå¼ |
| | | , data = obj.data //å¾å°æå¨è¡ææé®å¼ |
| | | , field = obj.field; //å¾å°å段 |
| | | //layer.msg('[ID: ' + data.id + '] ' + field + ' åæ®µæ´æ¹ä¸ºï¼' + value); |
| | | |
| | | switch (field) { |
| | | case "HQty": //æ°é |
| | | value = isNaN(value) ? 0 : value; |
| | | var HMinQty = isNaN(data.HMinQty) ? 0 : data.HMinQty; |
| | | if (HMinQty == 0) { |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HQty: value, //æ°é |
| | | HBQty: 0, //ç®±æ°=æ°é/æå°å
è£
æ°é |
| | | }); |
| | | } |
| | | else |
| | | { |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HQty: value, //æ°é |
| | | HBQty: Math.ceil(value / HMinQty), //ç®±æ°=æ°é/æå°å
è£
æ°é |
| | | }); |
| | | } |
| | | break; |
| | | case "HMinQty": //æå°å
è£
æ°é |
| | | value = isNaN(value) ? 0 : value; |
| | | var HQty = isNaN(data.HQty) ? 0 : data.HQty; |
| | | if (HQty == 0) //餿°ä¸º0 |
| | | { |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HMinQty: value, //æå°å
è£
æ°é |
| | | HBQty: 0, //ç®±æ°=æ°é/æå°å
è£
æ°é |
| | | }); |
| | | } |
| | | else { |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HMinQty: value, //æå°å
è£
æ°é |
| | | HBQty: Math.ceil(HQty / value), //ç®±æ°=æ°é/æå°å
è£
æ°é |
| | | }); |
| | | } |
| | | |
| | | break; |
| | | default: |
| | | } |
| | | }); |
| | | |
| | | //䏿æ¡äºä»¶éæ©è§¦å |
| | | form.on('select(HSourceBillType)', function (data) { |
| | | $("#HSourceBillNo").val(""); |
| | |
| | | .layui-card .layui-tab-brief .layui-tab-content { |
| | | padding: 10px; |
| | | } |
| | | /*表åå
ç´ å±
ä¸å¤å°åç´ */ |
| | | .layui-form-item { |
| | | margin-bottom: 0px; |
| | | } |
| | | /* è¡¨åæ¡é«åº¦*/ |
| | | .layui-input, .layui-select, .layui-textarea { |
| | | height: 32px; |
| | | } |
| | | /*表åæé®é«åº¦ãè¡é«*/ |
| | | .layui-btn { |
| | | height: 31px; |
| | | line-height: 31px; |
| | | } |
| | | /*è¡¨åæ ç¾åå
é´è·(ä¸ä¸é´è·ãå·¦å³é´è·)*/ |
| | | .layui-form-label { |
| | | padding: 6px 15px; |
| | | } |
| | | /*æ´ä¸ªé¡µé¢ææè¾å
¥æ¡ã颿¿çè¾¹æ¡é¢è²*/ |
| | | .layui-badge-rim, .layui-border, .layui-colla-content, .layui-colla-item, .layui-collapse, .layui-elem-field, .layui-form-pane .layui-form-item[pane], .layui-form-pane .layui-form-label, .layui-input, .layui-layedit, .layui-layedit-tool, .layui-panel, .layui-quote-nm, .layui-select, .layui-tab-bar, .layui-tab-card, .layui-tab-title, .layui-tab-title .layui-this:after, .layui-textarea { |
| | | border-color: #c4c2c2; |
| | | border-color: #dbd8d8; |
| | | } |
| | | </style> |
| | | </head> |
| | |
| | | </div> |
| | | |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <h1 style="text-align:center;"><b>å¨å
·æ¹å¶å
¥åºå</b></h1> |
| | | <h1 style="text-align:center;"><b>å¨å
·æ¹å¶åºåºå</b></h1> |
| | | |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li lay-id="1" style="padding:1px;" class="layui-this">åºæ¬ä¿¡æ¯</li> |
| | |
| | | |
| | | //æ«æ¡ç -ç´æ¥è°webservice |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | if (sQty == "") { |
| | | sQty = 0; |
| | | } |
| | | if (event.keyCode == 13) { |
| | | GetMeesageByBarCode(); |
| | | } |
| | |
| | | if (result.count == 1) { |
| | | ZHOption.data = result.data; |
| | | table.render(ZHOption); |
| | | // layer.close(index); |
| | | element.tabChange('tab-SellOutBill', '5'); |
| | | } |
| | | else { |
| | |
| | | var sHWHID = $("#HWHID").val();//ä»åºID |
| | | var sHSPID = $("#HStockPlaceID").val();//ä»ä½ID |
| | | var sQty = $("#HQty").val()//æ°é |
| | | if (sQty == "") { |
| | | sQty = 0; |
| | | } |
| | | //var SourceFlag = sessionStorage["SourceFlag"]; |
| | | var sSourceBillNo = $("#HSourceBillNo").val();//æºåå· |
| | | var sHBillType = $("#HBillType").val() //æºåç±»å-åè´§éç¥åï¼1402ï¼éå®è®¢å1401 |
| | |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | playSound1(); |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | // , url: 'http://61.130.49.162:9090/WMSAPI///OtherInStockBill/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HInterID', title: '忮ID', width: 150, hide: true } |
| | | , { field: 'HBilltype', title: 'åæ®ç±»å', width: 150, hide: true } |
| | | , { field: 'Hbarcode', title: 'æ¡ç ç¼å·', width: 150, hide: true } |
| | | , { field: 'HSCWHID', title: 'è°åºä»åºID', width: 150, hide: true } |
| | | , { field: 'HSCSPID', title: 'è°åºä»ä½ID', width: 150, hide: true } |
| | | , { field: 'HAuxPropID', title: 'è¾
å©å±æ§ID', width: 150, hide: true } |
| | | , { field: 'HMTONo', title: 'MTOå·', width: 150, hide: true } |
| | | , { field: 'HMaterID', title: 'ç©æID', width: 150, hide: true } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | //, height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | table.reload('wl-table', { |
| | | where: { HBillID: sInterID, HBillType: '1205', sWhere: '' } |
| | | }); |
| | | } |
| | | else { |
| | | playSound(); |
| | |
| | | //$("#HSupName").val(result.data.HSupName); |
| | | //$("#HDeptID").val(result.data.HDeptID); |
| | | //$("#HDeptName").val(result.data.HDeptName); |
| | | layer.load(3) |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | // , url: 'http://61.130.49.162:9090/WMSAPI///OtherInStockBill/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HInterID', title: '忮ID', width: 150, hide: true } |
| | | , { field: 'HBilltype', title: 'åæ®ç±»å', width: 150, hide: true } |
| | | , { field: 'Hbarcode', title: 'æ¡ç ç¼å·', width: 150, hide: true } |
| | | , { field: 'HSCWHID', title: 'è°åºä»åºID', width: 150, hide: true } |
| | | , { field: 'HSCSPID', title: 'è°åºä»ä½ID', width: 150, hide: true } |
| | | , { field: 'HAuxPropID', title: 'è¾
å©å±æ§ID', width: 150, hide: true } |
| | | , { field: 'HMTONo', title: 'MTOå·', width: 150, hide: true } |
| | | , { field: 'HMaterID', title: 'ç©æID', width: 150, hide: true } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | //, height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | table.reload('wl-table', { |
| | | where: { HBillID: sInterID, HBillType: '1205', sWhere: '' } |
| | | }); |
| | | } |
| | | else { |
| | |
| | | var sBillNo = $("#HBillNo").val() |
| | | var HSourceBillType = $("#HBillType").val() |
| | | if (HSourceBillNo == "" || sInterID <= 0) { |
| | | layer.close(index); |
| | | layer.msg("æºåå·ä¸ºç©ºï¼æè
å
ç ä¸åå¨ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | |
| | | //$("#HDeptName").val(result.data[0].HDeptName); |
| | | HSourceFlag = true; |
| | | element.tabChange('tab-SellOutBill', '3'); |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | //, height: 500 |
| | | , done: function () { |
| | | layer.close(index); |
| | | } |
| | | table.reload('wl-table', { |
| | | where: { HBillID: sInterID, HBillType: '1205', sWhere: '' } |
| | | }); |
| | | $("#HSourceBillNo").attr("disabled", "true"); |
| | | layer.close(index); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | |
| | | |
| | | //æ¡å½¢ç åè½¦æ¹æ³ |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | var sQty = $("#HQty").val(); |
| | | if (sQty == "") { |
| | | sQty = 0; |
| | | } |
| | | if (event.keyCode == 13) { |
| | | GetMeesageByBarCode(); |
| | | } |
| | |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillNo = $("#HBillNo").val() |
| | | var sQty = $("#HQty").val() |
| | | if (sQty == "") { |
| | | sQty = 0; |
| | | } |
| | | var sHBillType = $("#HBillType").val() |
| | | var sHWHID = $("#HWHID").val() |
| | | var sHSPID = $("#HStockPlaceID").val() |
| | |
| | | }); |
| | | } |
| | | else {//å¦æä¿®æ¹åèµ°ä¸é¢ new |
| | | RoadBillMain(hID); |
| | | RoadBillMain(linterid); |
| | | /* RoadBillSub(linterid);*/ |
| | | } |
| | | //#region ä¿åæ¹æ³ |