| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">éå®é¨é¨</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HDeptName" id="HDeptName" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HDeptList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">éå®å</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HEmpName" id="HEmpName" " class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HEmpList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">éå®é¨é¨</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HDeptName" id="HDeptName" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HDeptList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | |
| | | layer.alert("ä¿å失败!æªæ¥è¯¢å°æºååæ®!", { icon: 5 }); |
| | | return; |
| | | } else if (HSourceBillData[0]["ç¶æ"] != "å·²å®¡æ ¸") { |
| | | layer.alert("ä¿å失败!æºååæ®ç¶ææªä¸º'å·²å®¡æ ¸'ç¶æ!", { icon: 5 }); |
| | | var err = "ä¿å失败!åå ï¼æºååæ®ç¶æä¸ºâ" + HSourceBillData[0]["ç¶æ"] + "âï¼ä¸å
许ä¿åï¼"; |
| | | layer.alert(err, { icon: 5 }); |
| | | return; |
| | | } |
| | | } else { |
| | |
| | | "计éåä½": "", |
| | | "HQty_Old": "0", |
| | | "HQty_New": "0", |
| | | "HTaxRate_Old": "0", |
| | | "HTaxRate_New": "0", |
| | | "HTaxPrice_Old": "0", |
| | | "HTaxPrice_New": "0", |
| | | "HDate_Old": "", |
| | |
| | | , { field: '计éåä½', title: '计éåä½', width: 100, style: "background-color:#efefef4d;" }//f7 |
| | | , { field: 'HQty_Old', title: 'åæ°é', width: 100, totalRow: true, style: "background-color:#efefef4d;"} |
| | | , { field: 'HQty_New', title: 'æ°æ°é', width: 100, totalRow: true, edit: 'text' } |
| | | , { field: 'HTaxRate_Old', title: 'åç¨ç%', width: 100, style: "background-color:#efefef4d;" } |
| | | , { field: 'HTaxRate_New', title: 'æ°ç¨ç%', width: 100, edit: 'text' } |
| | | , { field: 'HTaxPrice_Old', title: 'åå«ç¨åä»·', width: 100, style: "background-color:#efefef4d;" } |
| | | , { field: 'HTaxPrice_New', title: 'æ°å«ç¨åä»·', width: 100, edit: 'text' } |
| | | , { field: 'HDate_Old', title: 'åäº¤è´§æ¥æ', width: 120, style: "background-color:#efefef4d;" } |
| | |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | |
| | | /* , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 70 }*/ |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 70 } |
| | | ]] |
| | | } |
| | | |
| | |
| | | "计éåä½": "", |
| | | "HQty_Old": "0", |
| | | "HQty_New": "0", |
| | | "HTaxRate_Old": "0", |
| | | "HTaxRate_New": "0", |
| | | "HTaxPrice_Old": "0", |
| | | "HTaxPrice_New": "0", |
| | | "HDate_Old": "", |
| | |
| | | "计éåä½": result.data[i]["计éåä½"], |
| | | "HQty_Old": dealDoubleToFixed(result.data[i]["åæ°é"], 1), |
| | | "HQty_New": dealDoubleToFixed(result.data[i]["æ°æ°é"], 1), |
| | | "HTaxRate_Old": result.data[i]["åç¨ç"], |
| | | "HTaxRate_New": result.data[i]["æ°ç¨ç"], |
| | | "HTaxPrice_Old": dealDoubleToFixed(result.data[i]["åå«ç¨åä»·"], 3), |
| | | "HTaxPrice_New": dealDoubleToFixed(result.data[i]["æ°å«ç¨åä»·"], 3), |
| | | "HDate_Old": formatDate(result.data[i]["åäº¤è´§æ¥æ"]), |
| | |
| | | "计éåä½": result.data[i]["计éåä½"], |
| | | "HQty_Old": dealDoubleToFixed(result.data[i]["æ°é"], 1), |
| | | "HQty_New": dealDoubleToFixed(result.data[i]["æ°é"], 1), |
| | | "HTaxRate_Old": result.data[i]["ç¨ç"], |
| | | "HTaxRate_New": result.data[i]["ç¨ç"], |
| | | "HTaxPrice_Old": dealDoubleToFixed(result.data[i]["å«ç¨åä»·"], 3), |
| | | "HTaxPrice_New": dealDoubleToFixed(result.data[i]["å«ç¨åä»·"] ,3), |
| | | "HDate_Old": formatDate(result.data[i]["äº¤è´§æ¥æ"]), |
| | | "HDate_New": formatDate(result.data[i]["äº¤è´§æ¥æ"]), |
| | | "HDate_New": new Date(result.data[i]["äº¤è´§æ¥æ"]).getTime() < new Date().getTime() ? Format(new Date(),"yyyy-MM-dd"):formatDate(result.data[i]["äº¤è´§æ¥æ"]), |
| | | "HRemark": "", |
| | | "HSourceInterID": result.data[i]["hmainid"], |
| | | "HSourceEntryID": result.data[i]["hsubid"], |
| | |
| | | } |
| | | $("#HEmpName").val(checkStatus.data[0].HName); |
| | | $("#HEmpID").val(checkStatus.data[0].HItemID); |
| | | |
| | | getEmpInfoByHEmpID(checkStatus.data[0].HItemID); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | |
| | | |
| | | //#region 客æ·éæ©é¡µé¢ |
| | | function get_checkCus() { |
| | | var HEmpID = $("#HEmpID").val(); |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: '客æ·å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_CustomerList.html', 'yes'] |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_CustomerList.html?Type=1&openType=3&HEmp=' + HEmpID, 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | if (OperationType == 1 || OperationType == 2 || OperationType==4) { |
| | | refSav = "Add"; |
| | | data.field.HChangeDate = new Date(); |
| | | data.field.HSTOCKORGID = data.field.HOrgID; |
| | | } |
| | | if (OperationType == 3) { |
| | | refSav = "Update"; |
| | | data.field.HChangeDate = new Date(); |
| | | data.field.HSTOCKORGID = data.field.HOrgID; |
| | | } |
| | | |
| | | //è¥ä¸ºç¼è¾-ä¿åï¼åæ´æ°ä¿®æ¹äººåä¿®æ¹æ¶é´ |
| | |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡ä¹', function (index) { |
| | | console.log("ç´¢å¼ä¸º:" + rowIndex); |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | //if (rowIndex === '0') { |
| | | // layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | //} else { |
| | | //obj.del(); |
| | | //layer.close(index); |
| | | var oldData = table.cache["mainTable"]; |
| | |
| | | option.data = oldData; |
| | | table.render(option); |
| | | layer.close(index); |
| | | } |
| | | /*}*/ |
| | | }); |
| | | } |
| | | } |
| | |
| | | { |
| | | $("#HEmpName").val(obj[0].HName); |
| | | $("#HEmpID").val(obj[0].HItemID); |
| | | |
| | | getEmpInfoByHEmpID(obj[0].HItemID); |
| | | } |
| | | |
| | | function GetHSupValue(obj) //è¿åå®¢æ· |
| | |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æ ¹æ®èåè·åé¨é¨ |
| | | function getEmpInfoByHEmpID(HEmpID) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Xs_SeOrderBill/getEmpInfoByHEmpID", |
| | | async: false, |
| | | type: "GET", |
| | | data: { |
| | | "HEmpID": HEmpID |
| | | }, |
| | | success: function (result) { |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data[0]; |
| | | |
| | | $("#HDeptID").val(data.HDeptID); |
| | | $("#HDeptName").val(data.HDeptName); |
| | | } else { |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | </script> |
| | | </body> |
| | | </html> |