GeneralESignBillEdit.js 896 B

1234567891011121314151617181920212223242526272829303132333435
  1. shr.defineClass("shr.custom.GeneralESignBillEntry",shr.framework.Edit, {
  2. initalizeDOM: function () {
  3. shr.custom.GeneralESignBillEntry.superClass.initalizeDOM.call(this);
  4. this.personChange()
  5. },
  6. personChange:function(){
  7. var _this = this
  8. $("#person").shrPromptBox("option", {
  9. onchange : function(e, value) {
  10. var personF7Id = value.current.id;
  11. if(personF7Id!=null&&personF7Id!=""&&personF7Id!=undefined){
  12. shr.callService({
  13. serviceName : "getPersonPosOrgInfo",
  14. param :{
  15. personID: personF7Id,
  16. uiClass : _this._uiClass
  17. },
  18. async : true,
  19. success : function (data) {
  20. console.log(data)
  21. if(data.length>0){
  22. var d = data[0]
  23. $('#adminOrg').shrPromptBox("setValue",d.adminOrg);
  24. $('#position').shrPromptBox("setValue",d.position);
  25. }
  26. }
  27. })
  28. }
  29. }
  30. })
  31. }
  32. })