| | |
| | | <div style="padding: 10px; "> |
| | | <!--<button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Bzjjl" id="Bzjjl">æ å件嫿</button>--> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Ptjl" id="Ptjl">é
å¥å«æ</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Zxbzjl" id="Zxbzjl">æå°å
è£
嫿</button> |
| | | <!--<button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Zxbzjl" id="Zxbzjl">æå°å
è£
嫿</button>--> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Yce" id="Yce">å¼åºExcel</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Xc" id="Xc">䏿¥</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Cx" id="Cx">æ¥è¯¢</button> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">éå®è®¢åå·</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HSeOrderBillNo" lay-verify="HSeOrderBillNo" id="HSeOrderBillNo"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç产订å</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HICMOBillNo" lay-verify="HICMOBillNo" id="HICMOBillNo" style="width: 60%;display: inline-block;" > |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnICMOBill" id="btnICMOBill" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç产订å</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HICMOBillNo" lay-verify="HICMOBillNo" id="HICMOBillNo" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnICMOBill" id="btnICMOBill" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <label class="layui-form-label" style="width: 85px;">éå®è®¢åå·</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HSeOrderBillNo" lay-verify="HSeOrderBillNo" id="HSeOrderBillNo"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div style="padding-left: 50px;"> |
| | | <input type="checkbox" name="checkZXBZ" id="checkZXBZ" lay-skin="primary" lay-filter="checkZXBZ" title="æå°å
è£
"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | var HICMOBillNo = $("#HICMOBillNo").val(); |
| | | if (HICMOBillNo == "") { |
| | | $("#Ptjl").hide(); |
| | | $("#Zxbzjl").hide(); |
| | | //$("#Zxbzjl").hide(); |
| | | $("#Jl").hide(); |
| | | $("#Scjld").hide(); |
| | | $("#Yltl").hide(); |
| | |
| | | $("#Sctld").hide(); |
| | | } else { |
| | | $("#Ptjl").show(); |
| | | $("#Zxbzjl").show(); |
| | | //$("#Zxbzjl").show(); |
| | | $("#Jl").show(); |
| | | $("#Scjld").show(); |
| | | $("#Yltl").show(); |
| | |
| | | get_HideColumn(); |
| | | }) |
| | | |
| | | //æå°å
è£
|
| | | form.on('checkbox(checkZXBZ)', function (data) { |
| | | var checkZXBZ = $("input[name='checkZXBZ']").prop("checked");//å¤éæ¡ |
| | | |
| | | if (checkZXBZ) { |
| | | for (var i = 0; i < option.cols[0].length; i++) { |
| | | if (option.cols[0][i]["field"] == "å
æ°") { |
| | | option.cols[0][i]["edit"] = "text"; |
| | | } |
| | | if (option.cols[0][i]["field"] == "嫿æ°é") { |
| | | option.cols[0][i]["edit"] = ""; |
| | | } |
| | | } |
| | | } else { |
| | | for (var i = 0; i < option.cols[0].length; i++) { |
| | | if (option.cols[0][i]["field"] == "å
æ°") { |
| | | option.cols[0][i]["edit"] = ""; |
| | | } |
| | | if (option.cols[0][i]["field"] == "嫿æ°é") { |
| | | option.cols[0][i]["edit"] = "text"; |
| | | } |
| | | } |
| | | } |
| | | table.render(option); |
| | | }) |
| | | |
| | | //è¡å
é¼ æ 离å¼äºä»¶ |
| | | table.on('edit(mainTable)', function (obj) { |
| | | var HQty = 0.0; |
| | | |
| | | if (obj.field == "å
æ°") { |
| | | HQty = parseFloat(obj.data["å
æ°"]) * parseFloat(obj.data["æå°å
è£
"]) |
| | | //ä¿®æ¹æ°æ® |
| | | obj.update({ |
| | | "嫿æ°é": HQty |
| | | }); |
| | | } |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | |
| | | function set_ClearBill() |
| | | { |
| | | NotGeneratedMaterial(); |
| | | set_InitGrid(); |
| | | get_Display(sWhere); |
| | | Organ(); |
| | | DisPlay_HideColumn(); |
| | | //读åè¿æ»¤æ¡ä»¶ |
| | | get_ReadConfigFile(); |
| | | set_InitGrid(); |
| | | get_Display(sWhere); |
| | | DisPlay_HideColumn(); |
| | | } |
| | | |
| | | //è·åç»ç» |
| | | function Organ() { |
| | | //è·åç»å½é¡µç»ç»å |
| | |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Web/GetOrganizations", |
| | | async: false, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data; |
| | |
| | | if (dataG != null) { |
| | | var data2 = JSON.parse(dataG); |
| | | $("#Organization").val(data2["Organization"]); |
| | | } |
| | | } else { |
| | | $("#Organization").val(sessionStorage["OrganizationID"]); |
| | | } |
| | | form.render('select'); |
| | | |
| | | } |
| | |
| | | elem: '#mainTable' |
| | | //, toolbar: '#toolbarDemo' |
| | | , height: 'full-150' |
| | | , totalRow: true |
| | | , cellMinWidth: 90 |
| | | , limit: 500 |
| | | , cols: [[ |
| | |
| | | , { 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: 'åä½ç¨é', totalRow: true, width: 160} |
| | | , { field: '计ååææ°é', title: '计ååææ°é', totalRow: true, width: 160 } |
| | | , { field: 'æå°å
è£
', title: 'æå°å
è£
', width: 160} |
| | | , { field: 'å
æ°', title: 'å
æ°', totalRow: true,width: 160} |
| | | , { field: '嫿æ°é', title: '嫿æ°é', totalRow: true, width: 160, edit: 'text'} |
| | | , { field: 'éææ°é', title: 'éææ°é', totalRow: true,width: 160, edit: 'text'} |
| | | , { field: 'éæåå ', title: 'éæåå ', width: 160, edit: 'text'} |
| | | , { field: '已嫿æ°é', title: '已嫿æ°é', width: 160} |
| | | , { field: 'å·²é
éæ°é', title: 'å·²é
éæ°é', width: 160 } |
| | | , { field: '已嫿æ°é', title: '已嫿æ°é', totalRow: true, width: 160} |
| | | , { field: 'å·²é
éæ°é', title: 'å·²é
éæ°é', totalRow: true,width: 160 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', width: 160, edit: 'text', event: 'OutWarehouse' } |
| | | , { field: 'è°åºä»åºid', title: 'è°åºä»åºid', width: 160, hide: true } |
| | | , { field: 'è°å
¥ä»åº', title: 'è°å
¥ä»åº', width: 160, edit: 'text', event: 'InWarehouse' } |
| | | , { field: 'è°å
¥ä»åºid', title: 'è°å
¥ä»åºid', width: 160, hide: true } |
| | | , { field: 'åºåæ°é', title: 'åºåæ°é', width: 160 } |
| | | , { field: 'è°åºä»åºåºåæ°é', title: 'è°åºä»åºåºåæ°é', width: 160 } |
| | | , { field: 'è°åºä»åºå¯ç¨åºåæ°é', title: 'è°åºä»åºå¯ç¨åºåæ°é', width: 160 } |
| | | , { field: 'åºåæ°é', title: 'åºåæ°é', totalRow: true, width: 160 } |
| | | , { field: 'è°åºä»åºåºåæ°é', title: 'è°åºä»åºåºåæ°é', totalRow: true, width: 160 } |
| | | , { field: 'è°åºä»åºå¯ç¨åºåæ°é', title: 'è°åºä»åºå¯ç¨åºåæ°é', totalRow: true, width: 160 } |
| | | , { field: 'å¯ç¨åºå', title: 'å¯ç¨åºå', width: 160 } |
| | | , { field: 'è°åºç»ç»', title: 'è°åºç»ç»', width: 160} |
| | | , { field: 'HICMOBillNo', title: 'HICMOBillNo', width: 160 } |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ComplementGoodBill/ComplementGoodBillList', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | |
| | | else { |
| | | layer.confirm('ç¡®å®è¦çææ£æåï¼', { |
| | | btn: ['ç¡®å®', 'åæ¶'] //æé® |
| | | , btn1: function () { |
| | | , btn1: function (index) { |
| | | layer.close(index); |
| | | |
| | | var sMainStr = JSON.stringify(table.cache['mainTable']) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];//sessionStorage["HUserName"] |
| | | |
| | | $.ajax( |
| | |
| | | else { |
| | | layer.confirm('ç¡®å®è¦çæéæåï¼', { |
| | | btn: ['ç¡®å®', 'åæ¶'] //æé® |
| | | , btn1: function () { |
| | | , btn1: function (index) { |
| | | layer.close(index); |
| | | |
| | | var sMainStr = JSON.stringify(table.cache['mainTable']) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];//sessionStorage["HUserName"] |
| | | |
| | | $.ajax( |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ComplementGoodBill/NotGeneratedMaterialList', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sWhere": sessionStorage["OrganizationID"], "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç产订åå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../ç产管ç/ç产任å¡å/Sc_ICMOBillList.html', 'yes'] |
| | | , content: ['../../ç产管ç/ç产任å¡å/Sc_ICMOBillList.html?HDeptID='+ $("#DepartmentID").val(), 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |