| | |
| | | , laydate = layui.laydate |
| | | , util = layui.util |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = "k.HCorrespondentTypeID!=3 and m.HNowSupTypeID!=3 and k.HCorrespondentTypeID=m.HNowSupTypeID and k.HCorrespondentID=m.HNowSupID"; |
| | | var sWhere = " å®é
ä½ç½®ç±»å=è´¦é¢ä½ç½®ç±»å and å®é
ä½ç½®=è´¦é¢ä½ç½®"; |
| | | var option1 = []; |
| | | var option2 = []; |
| | | var option3 = []; |
| | |
| | | var option7 = []; |
| | | var col = [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'HItemID', title: 'HItemID', width: 200,hide: true} |
| | | , { field: 'æ¡ç ', title: 'å¨å
·æ¡ç ', width: 200 } |
| | | , { field: 'å¨å
·ç¼å·', title: 'å¨å
·ç¼å·', width: 200 } |
| | | , { field: 'çç¹æ¹æ¡', title: 'çç¹æ¹æ¡', width: 200 } |
| | |
| | | } |
| | | //è°æ¨æ¥è¯¢ |
| | | function db_Display() { |
| | | var sWhere = "k.HCorrespondentTypeID!=3 and m.HNowSupTypeID!=3 and k.HCorrespondentTypeID=m.HNowSupTypeID and k.HCorrespondentTypeID=4 and k.HCorrespondentID!=m.HNowSupID"; |
| | | var sWhere = " å®é
ä½ç½®ç±»å=è´¦é¢ä½ç½®ç±»å and å®é
ä½ç½®ç±»å='ä»åº' and å®é
ä½ç½®!=è´¦é¢ä½ç½®"; |
| | | var HItemID = $("#HItemID").val();//çç¹ |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | |
| | | } |
| | | //åºåºæ¥è¯¢ |
| | | function ck_Display() { |
| | | var sWhere = "k.HCorrespondentTypeID!=3 and m.HNowSupTypeID!=3 and m.HNowSupTypeID=4 and isnull(m.HNowSupID,'')!='' and (k.HCorrespondentTypeID=1 or k.HCorrespondentTypeID=2) and isnull(k.HCorrespondentID,'')!=''"; |
| | | var sWhere = " è´¦é¢ä½ç½®ç±»å='ä»åº' and isnull(è´¦é¢ä½ç½®,'')!='' and (å®é
ä½ç½®ç±»å='ä¾åºå' or å®é
ä½ç½®ç±»å='客æ·') and isnull(å®é
ä½ç½®,'')!=''"; |
| | | var HItemID = $("#HItemID").val();//åæ®ç±»å |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | |
| | | } |
| | | //å
¥åºæ¥è¯¢ |
| | | function rk_Display() { |
| | | var sWhere = "k.HCorrespondentTypeID!=3 and m.HNowSupTypeID!=3 and (k.HCorrespondentTypeID=1 or k.HCorrespondentTypeID=2) and (m.HNowSupTypeID=1 or m.HNowSupTypeID=2) and k.HCorrespondentID!=m.HNowSupID"; |
| | | var sWhere = " (å®é
ä½ç½®ç±»å='ä¾åºå' or å®é
ä½ç½®ç±»å='客æ·') and (è´¦é¢ä½ç½®ç±»å='ä¾åºå' or è´¦é¢ä½ç½®ç±»å='客æ·') and å®é
ä½ç½®!=è´¦é¢ä½ç½®"; |
| | | var HItemID = $("#HItemID").val();//åæ®ç±»å |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | |
| | | } |
| | | //ççæ¥è¯¢ |
| | | function py_Display() { |
| | | var sWhere = "isnull(m.HNowSupID,'')='' and isnull(k.HCorrespondentID,'')!='' and k.HCorrespondentTypeID!=3 and m.HNowSupTypeID!=3"; |
| | | var sWhere = "isnull(è´¦é¢ä½ç½®,'')='' and isnull(å®é
ä½ç½®,'')!=''"; |
| | | var HItemID = $("#HItemID").val();//åæ®ç±»å |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | |
| | | } |
| | | //çäºæ¥è¯¢ |
| | | function pk_Display() { |
| | | var sWhere = "isnull(m.HNowSupID,'')!='' and isnull(k.HCorrespondentID,'')='' and k.HCorrespondentTypeID!=3 and m.HNowSupTypeID!=3"; |
| | | var sWhere = "isnull(è´¦é¢ä½ç½®,'')!='' and isnull(å®é
ä½ç½®,'')=''"; |
| | | var HItemID = $("#HItemID").val();//åæ®ç±»å |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | |
| | | } |
| | | //éåºæ¥è¯¢ |
| | | function tk_Display() { |
| | | var sWhere = "k.HCorrespondentTypeID!=3 and m.HNowSupTypeID!=3 and k.HCorrespondentTypeID=4 and isnull(k.HCorrespondentID,'')!='' and (m.HNowSupTypeID=1 or m.HNowSupTypeID=2)"; |
| | | var sWhere = " å®é
ä½ç½®ç±»å='ä»åº' and isnull(å®é
ä½ç½®,'')!='' and (è´¦é¢ä½ç½®ç±»å='ä¾åºå' or è´¦é¢ä½ç½®ç±»å='客æ·')"; |
| | | var HItemID = $("#HItemID").val();//åæ®ç±»å |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].æ¡ç .toString(); |
| | | var HItemID = data[0].HItemID.toString(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeProdMove", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"] }, |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID}, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeProdOut", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"] }, |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID}, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeProdOutBack", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"] }, |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeOtherIn", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"] }, |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeScrapOut", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"] }, |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeProdBack", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"] }, |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID}, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |