| | |
| | | |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ComplementGoodBill/ComplementGoodBillList', |
| | | url: GetWEBURL() + '/Sc_ComplementGoods/ComplementGoodsBill', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": "Admin" }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ComplementGoodBill/ComplementGoodBillList', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": "Admin" }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option1.data = data1.data; |
| | |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | //{ type: 'checkbox', fixed: 'left' } |
| | | { field: 'éå®è®¢åå·', title: 'éå®è®¢åå·',width: 150 } |
| | | , { field: 'ç产订åå·', title: 'ç产订åå·', width: 170} |
| | | , { field: '产å代ç ', title: '产å代ç ', width: 170 } |
| | | , { field: '产ååç§°', title: '产ååç§°', width: 260, } |
| | | , { field: '产åè§æ ¼åå·', title: '产åè§æ ¼åå·', width: 160 } |
| | | , { field: 'ç产车é´', title: 'ç产车é´', width: 160 } |
| | | , { field: '计åå¼å·¥æ¥æ', title: '计åå¼å·¥æ¥æ', width: 160, templet: "<div>{{d.计åå¼å·¥æ¥æ ==null ?'':layui.util.toDateString(d.计åå¼å·¥æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'æ£æåæ¥æ', title: 'æ£æåæ¥æ', width: 150, templet: "<div>{{d.æ£æåæ¥æ ==null ?'':layui.util.toDateString(d.æ£æåæ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'æ£æé
éåå·', title: 'ç产订åå·', width: 170 } |
| | | , { field: 'é
é人', title: 'é
é人', width: 170 } |
| | | , { field: 'å¶å人', title: 'å¶å人', width: 260, } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 160, templet: "<div>{{d.å¶åæ¥æ ==null ?'':layui.util.toDateString(d.å¶åæ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 160 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 160 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 160 } |
| | | , { field: 'å项åä½', title: 'å项åä½', width: 160 } |
| | | , { field: 'åä½ç¨é', title: 'åä½ç¨é', width: 160} |
| | | , { field: '计ååææ°é', title: '计ååææ°é', width: 160 } |
| | | , { field: '嫿æ°é', title: '嫿æ°é', width: 160, edit: 'text'} |
| | | , { field: 'éææ°é', title: 'éææ°é', width: 160, edit: 'text'} |
| | | , { field: 'éæåå ', title: 'éæåå ', width: 160, edit: 'text'} |
| | | , { field: '已嫿æ°é', title: '已嫿æ°é', width: 160} |
| | | , { field: 'å·²é
éæ°é', title: 'å·²é
éæ°é', width: 160 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', width: 160, edit: 'text', event: 'Warehouse' } |
| | | , { field: 'è°åºä»åºid', title: 'è°åºä»åºid', width: 160, hide: true } |
| | | , { field: 'åºåæ°é', title: 'åºåæ°é', width: 160 } |
| | | , { field: 'è°åºä»åºåºåæ°é', title: 'è°åºä»åºåºåæ°é', width: 160 } |
| | | , { field: 'è°åºä»åºå¯ç¨åºåæ°é', title: 'è°åºä»åºå¯ç¨åºåæ°é', width: 160 } |
| | | , { field: 'å¯ç¨åºå', title: 'å¯ç¨åºå', width: 160 } |
| | | , { field: 'åºåç»ç»', title: 'åºåç»ç»', width: 160} |
| | | , { field: 'HICMOBillNo', title: 'HICMOBillNo', width: 160 } |
| | | , { field: 'æºå主å
ç ', title: 'æºå主å
ç ', width: 160 } |
| | | , { field: 'æºååå
ç ', title: 'æºååå
ç ', width: 160 } |
| | | , { field: 'HDeptID', title: 'HDeptID', hide: true } |
| | | , { field: 'HDeptNumber', title: 'HDeptNumber', hide: true } |
| | | , { field: 'HMaterialID', title: 'HMaterialID', hide: true } |
| | | , { field: 'HWHID', title: 'HWHID', hide: true } |
| | | , { field: 'HOutOrgID', title: 'HOutOrgID', hide: true } |
| | | , { field: 'HSouceInterID', title: 'HSouceInterID', hide: true } |
| | | , { field: 'HSourceEntryID', title: 'HSourceEntryID', hide: true } |
| | | , { field: 'HSourceBillNo', title: 'HSourceBillNo', hide: true } |
| | | , { field: 'HICMOInterID', title: 'HICMOInterID', hide: true } |
| | | , { field: 'HICMOEntryID', title: 'HICMOEntryID', hide: true } |
| | | , { field: 'HSTOCKID', title: 'HSTOCKID', hide: true } |
| | | , { field: 'æ£ææ°é', title: 'æ£ææ°é', width: 160 } |
| | | , { field: 'å·²è°æ¨æ°é', title: 'å·²è°æ¨æ°é', width: 160 } |
| | | , { field: '计éåä½', title: '计éåä½', width: 160 } |
| | | , { field: '车é´', title: '车é´', width: 160 } |
| | | , { field: '工段', title: '工段', width: 160 } |
| | | , { field: '夿³¨', title: '夿³¨', width: 160 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', width: 160 } |
| | | , { field: 'è°åºä»ä½', title: 'è°åºä»ä½', width: 160 } |
| | | ]] |
| | | }; |
| | | } |
| | |
| | | form.on('submit(Bftl)', function () { |
| | | set_AddNew_Bftl(); |
| | | }) |
| | | |
| | | |
| | | //æ°å¢æ£æå |
| | | form.on('submit(Scjld)', function () { |
| | | set_AddNew_Scjld(); |
| | | }) |
| | | |
| | | //䏿¥ |
| | | form.on('submit(Xc)', function () { |
| | |
| | | }) |
| | | } |
| | | |
| | | //è¡¨æ ¼æ°æ® |
| | | function set_InitGrid() { |
| | | option = { |
| | | elem: '#mainTable' |
| | |
| | | } |
| | | } |
| | | |
| | | //æ°å¢æ£æå |
| | | function set_AddNew_Scjld() { |
| | | if (table.cache['mainTable'].length == 0) { |
| | | return layer.msg("æ æ°æ®,æ æ³æ£æ!"); |
| | | } |
| | | else { |
| | | layer.confirm('ç¡®å®è¦çææ£æåï¼', { |
| | | btn: ['ç¡®å®', 'åæ¶'] //æé® |
| | | , btn1: function () { |
| | | var sMainStr = JSON.stringify(table.cache['mainTable']) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];//sessionStorage["HUserName"] |
| | | |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() + "Sc_ComplementGoodBill/Insert_JL_ICStockTuiBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "msg": sMainStr }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | console.log("Reason" + sMainStr + "sub:" + JSON.stringify(layui.table.cache.mainTable)); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | layer.alert("é误:" + err, { icon: 5 }); |
| | | console.log("Reason" + sMainStr); |
| | | } |
| | | }); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | //䏿¥ |
| | | function getXc() { |
| | | var CheckStatus = table.checkStatus("mainTable"); |
| | |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //éåº |
| | | form.on('submit(Cancel)', function () { |
| | | Pub_Close(1); |
| | | }) |
| | | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | |
| | | option = { |
| | | elem: '#mainTable' |
| | | //, toolbar: '#toolbarDemo' |
| | | , height: 350 |
| | | , height: 550 |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'éå®è®¢åå·', title: 'éå®è®¢åå·',width: 150 } |
| | | , { field: 'ç产订åå·', title: 'ç产订åå·', width: 170} |
| | | , { field: '产å代ç ', title: '产å代ç ', width: 170 } |
| | | , { field: '产ååç§°', title: '产ååç§°', width: 260, } |
| | | , { field: '产åè§æ ¼åå·', title: '产åè§æ ¼åå·', width: 160 } |
| | | , { field: 'ç产车é´', title: 'ç产车é´', width: 160 } |
| | | , { field: '计åå¼å·¥æ¥æ', title: '计åå¼å·¥æ¥æ', width: 160, templet: "<div>{{d.计åå¼å·¥æ¥æ ==null ?'':layui.util.toDateString(d.计åå¼å·¥æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | /* { type: 'checkbox', fixed: 'left' }*/ |
| | | { field: 'HBillType', title: 'HBillType',width: 150 } |
| | | , { field: 'æ¯å¦æ£æ', title: 'æ¯å¦æ£æ', width: 170} |
| | | , { field: '嫿ååå·', title: '嫿ååå·', width: 170 } |
| | | , { field: 'ç»ç»', title: 'ç»ç»', width: 260, } |
| | | , { field: 'è°åºç»ç»', title: 'è°åºç»ç»', width: 160 } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', width: 160, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'éå®è®¢å', title: 'éå®è®¢å', width: 160 } |
| | | , { field: 'ç产订å', title: 'ç产订å', width: 160} |
| | | , { field: 'ç¨ææ¸
åå·', title: 'ç¨ææ¸
åå·', width: 160 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 160 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 160 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 160 } |
| | | , { field: 'å项åä½', title: 'å项åä½', width: 160 } |
| | | , { field: 'åä½ç¨é', title: 'åä½ç¨é', width: 160} |
| | | , { field: '计ååææ°é', title: '计ååææ°é', width: 160 } |
| | | , { field: '嫿æ°é', title: '嫿æ°é', width: 160, edit: 'text'} |
| | | , { field: 'éææ°é', title: 'éææ°é', width: 160, edit: 'text'} |
| | | , { field: 'éæåå ', title: 'éæåå ', width: 160, edit: 'text'} |
| | | , { field: '已嫿æ°é', title: '已嫿æ°é', width: 160} |
| | | , { field: 'å·²é
éæ°é', title: 'å·²é
éæ°é', width: 160 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', width: 160, edit: 'text', event: 'Warehouse' } |
| | | , { field: 'è°åºä»åºid', title: 'è°åºä»åºid', width: 160, hide: true } |
| | | , { field: 'åºåæ°é', title: 'åºåæ°é', width: 160 } |
| | | , { field: 'è°åºä»åºåºåæ°é', title: 'è°åºä»åºåºåæ°é', width: 160 } |
| | | , { field: 'è°åºä»åºå¯ç¨åºåæ°é', title: 'è°åºä»åºå¯ç¨åºåæ°é', width: 160 } |
| | | , { field: 'å¯ç¨åºå', title: 'å¯ç¨åºå', width: 160 } |
| | | , { field: 'åºåç»ç»', title: 'åºåç»ç»', width: 160} |
| | | , { field: 'HICMOBillNo', title: 'HICMOBillNo', width: 160 } |
| | | , { field: 'æºå主å
ç ', title: 'æºå主å
ç ', width: 160 } |
| | | , { field: 'æºååå
ç ', title: 'æºååå
ç ', width: 160 } |
| | | , { field: 'HDeptID', title: 'HDeptID', hide: true } |
| | | , { field: 'HDeptNumber', title: 'HDeptNumber', hide: true } |
| | | , { field: 'HMaterialID', title: 'HMaterialID', hide: true } |
| | | , { field: 'HWHID', title: 'HWHID', hide: true } |
| | | , { field: 'HOutOrgID', title: 'HOutOrgID', hide: true } |
| | | , { field: 'HSouceInterID', title: 'HSouceInterID', hide: true } |
| | | , { field: 'HSourceEntryID', title: 'HSourceEntryID', hide: true } |
| | | , { field: 'HSourceBillNo', title: 'HSourceBillNo', hide: true } |
| | | , { field: 'HICMOInterID', title: 'HICMOInterID', hide: true } |
| | | , { field: 'HICMOEntryID', title: 'HICMOEntryID', hide: true } |
| | | , { field: 'HSTOCKID', title: 'HSTOCKID', hide: true } |
| | | , { field: '嫿æ°é', title: '嫿æ°é', width: 160 } |
| | | , { field: 'å«æäºº', title: 'å«æäºº', width: 160} |
| | | , { field: 'å«ææ¥æ', title: 'å«ææ¥æ', width: 160, templet: "<div>{{d.å«ææ¥æ ==null ?'':layui.util.toDateString(d.å«ææ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', width: 160} |
| | | , { field: 'ä»åº', title: 'ä»åº', width: 160 } |
| | | , { field: '工段', title: '工段', width: 160} |
| | | ]] |
| | | }; |
| | | } |
| | |
| | | , { field: 'å
³éç±»å', title: 'å
³éç±»å', width: 170 } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº' } |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', width: 200, templet: "<div>{{d.ä½åºæ¥æ ==null ?'':layui.util.toDateString(d.ä½åºæ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'æºåç±»å', title: 'æºåç±»å', width: 170 } |
| | | , { field: 'æºååå
ç ', title: 'æºååå
ç ', width: 170 } |
| | | , { field: 'æºåå·', title: 'æºåå·', width: 170 } |
| | | , { field: 'æå°æ¬¡æ°', title: 'æå°æ¬¡æ°', width: 170 } |
| | | , { field: 'éæäººä»£ç ', title: 'éæäººä»£ç ', width: 170 } |
| | | , { field: 'éæäºº', title: 'éæäºº', width: 170 } |
| | | , { field: 'æ¬è¿äººä»£ç ', title: 'æ¬è¿äººä»£ç ', width: 170 } |
| | | , { field: 'æ¬è¿äºº', title: 'æ¬è¿äºº', width: 170 } |
| | | , { field: 'éªæ¶äººä»£ç ', title: 'éªæ¶äººä»£ç ', width: 170 } |
| | | , { field: 'éªæ¶äºº', title: 'éªæ¶äºº', width: 170 } |
| | | , { field: 'éææ¨¡å¼', title: 'å«ææ¨¡å¼', width: 170 } |
| | | , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨', width: 170 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 170 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 170 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 170 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 170 } |
| | | , { field: '责任é¨é¨ä»£ç ', title: '责任é¨é¨ä»£ç ', width: 170 } |
| | | , { field: '责任é¨é¨åç§°', title: '责任é¨é¨åç§°', width: 170 } |
| | | , { field: 'è°å
¥ä»åº', title: 'è°å
¥ä»åº', width: 170 } |
| | | , { field: 'è°å
¥ä»ä½', title: 'è°å
¥ä»ä½', width: 215 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', width: 215 } |
| | | , { field: 'è°åºä»ä½', title: 'è°åºä»ä½', width: 215 } |
| | | , { field: 'éåæ°é', title: 'éåæ°é', width: 170 } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ', width: 170 } |
| | | , { field: 'å·¥åºåç§°', title: 'å·¥åºåç§°', width: 170 } |
| | | , { field: 'éæåå ', title: 'éæåå ', width: 170 } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 170 } |
| | | , { field: 'ä¾åºååç§°', title: 'ä¾åºååç§°', width: 170 } |
| | | , { field: 'éæäºº', title: 'éæäºº', width: 160 } |
| | | , { field: 'æ¬è¿äºº', title: 'æ¬è¿äºº', width: 160 } |
| | | , { field: 'éªæ¶äºº', title: 'éªæ¶äºº', width: 160 } |
| | | , { field: 'è°åºç»ç»', title: 'è°åºç»ç»', width: 160 } |
| | | , { field: 'è°å
¥ç»ç»', title: 'è°å
¥ç»ç»', width: 160 } |
| | | , { field: 'éææ¨¡å¼', title: 'éææ¨¡å¼', width: 160 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 160 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 160 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 160 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 160 } |
| | | , { field: 'éåæ°é', title: 'éåæ°é', width: 160 } |
| | | , { field: 'ä»åºä»£ç ', title: 'ä»åºä»£ç ', width: 160 } |
| | | , { field: 'è°å
¥ä»åº', title: 'è°å
¥ä»åº', width: 160 } |
| | | , { field: 'è°å
¥ä»ä½', title: 'è°å
¥ä»ä½', width: 160 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', width: 160 } |
| | | , { field: 'è°åºä»ä½', title: 'è°åºä»ä½', width: 160 } |
| | | , { field: '责任é¨é¨ä»£ç ', title: '责任é¨é¨ä»£ç ', width: 160 } |
| | | , { field: '责任é¨é¨åç§°', title: '责任é¨é¨åç§°', width: 160 } |
| | | ]] |
| | | }; |
| | | } |