referral.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. new Vue({
  2. el: '#app',
  3. data: {
  4. DRUG_ADVERSE_MARK:"",
  5. ADR_REMARK:"",
  6. REFUSE_REFERRAL:"",
  7. REFUSE_REFERRAL_WHY:"",
  8. TRANSFER_RESON:"",
  9. TRANSFER_ORG_DEPT:"",
  10. readonly:false,
  11. objData:''
  12. },
  13. mounted: function() {
  14. var vm = this
  15. var Request = GetRequest();
  16. recordAPI.getFollowupProjectData({id:Request["id"],followupProject:9}).then(function(res){
  17. if(res.status==200){
  18. var data = res.data;
  19. vm.objData = res.data;
  20. // delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
  21. for(var key in data){
  22. vm[key] = data[key]
  23. }
  24. }
  25. })
  26. },
  27. methods:{
  28. saveButton:function(){
  29. var vm = this;
  30. params = {id: vm.objData.followup_id, followupProject:vm.objData.followup_project}
  31. var checkID = {};
  32. checkID['DRUG_ADVERSE_MARK'] =vm.DRUG_ADVERSE_MARK
  33. checkID['ADR_REMARK'] =vm.ADR_REMARK
  34. checkID['REFUSE_REFERRAL'] =vm.REFUSE_REFERRAL
  35. checkID['REFUSE_REFERRAL_WHY'] =vm.REFUSE_REFERRAL_WHY
  36. checkID['TRANSFER_RESON'] =vm.TRANSFER_RESON
  37. checkID['TRANSFER_ORG_DEPT'] =vm.TRANSFER_ORG_DEPT
  38. console.log(checkID)
  39. params.followupProjectData = JSON.stringify(checkID);
  40. console.log(params.followupProjectData)
  41. console.log(params)
  42. recordAPI.ModifyFollowupResult(params).then(function(res){
  43. if(res.status==200){
  44. toastr.error("保存成功")
  45. }else{
  46. toastr.error(res.msg)
  47. }
  48. })
  49. }
  50. }
  51. })