| | |
| | | return; |
| | | } |
| | | else if (result.data.hBarTypeField == 'æºåæ¡ç ') { |
| | | //$("#HSupName").val(result.data.hSupName); |
| | | //$("#HSupID").val(result.data.hSupID); |
| | | //$("#HDeptName").val(result.data.hDeptName); |
| | | //$("#HDeptID").val(result.data.hDeptID); |
| | | if (result.data.hDeptIDField != 0) { |
| | | $("#HDeptID").val(result.data.hDeptIDField); |
| | | $("#HDeptName").val(result.data.hDeptNameField); |
| | | } |
| | | $("#HSourceBillNo").val(result.data.hSourceBillNoField); |
| | | HSourceFlag = true; |
| | | $("#HBillType").val(result.data.hSourceBillTypeField == null ? "3714" : result.data.hSourceBillTypeField); |
| | | //è·åæºåç±»åãæºååå· |
| | | //if (result.data.HSourceBillType == "3711") { |
| | | // $("#HBillType").val("3711"); |
| | | //} |
| | | //else { |
| | | // $("#HBillType").val("-1"); |
| | | //} |
| | | if (result.data.hSourceBillTypeField == "3711") { |
| | | $("#HBillType").empty(); |
| | | $("#HBillType").val("3711"); |
| | | var optionHtml = ''; |
| | | optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + 'çäº§æ±æ¥å' + "</option>"; |
| | | $("#HBillType").append(optionHtml); |
| | | layui.form.render('select'); |
| | | $("#HBillType").attr("readonly", "readonly"); |
| | | } |
| | | else if (result.data.hSourceBillTypeField == "3710") { |
| | | $("#HBillType").empty(); |
| | | $("#HBillType").val("3710"); |
| | | var optionHtml = ''; |
| | | optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + 'ç产订å' + "</option>"; |
| | | $("#HBillType").append(optionHtml); |
| | | layui.form.render('select'); |
| | | $("#HBillType").attr("readonly", "readonly"); |
| | | } |
| | | else if (result.data.hSourceBillTypeField == "3714") { |
| | | $("#HBillType").empty(); |
| | | $("#HBillType").val("3714"); |
| | | var optionHtml = ''; |
| | | optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + 'å·¥åºæ±æ¥å' + "</option>"; |
| | | $("#HBillType").append(optionHtml); |
| | | layui.form.render('select'); |
| | | $("#HBillType").attr("readonly", "readonly"); |
| | | } |
| | | else { |
| | | //$("#HBillType").val("-1"); |
| | | } |
| | | $("#HSourceBillNo").attr("readonly", "readonly"); |
| | | $("#HNote").val(";ä¸é®æ«ç æºåæ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '3'); |
| | | } |