finish-followup-btn.js 902 B

1234567891011121314151617181920212223242526272829
  1. Vue.component('finish-followup-btn', {
  2. template: '<button class="button" id="isfinish" :class="{\'finish\':finishedbtn}" @click="finished()" :disabled="finishedbtn">完成随访</button>',
  3. props: ['followupid', 'finishedbtn'],
  4. data: function () {
  5. return {
  6. sfStatus: '', //当前的随访状态}
  7. }
  8. },
  9. watch: {
  10. },
  11. mounted: function () {
  12. },
  13. methods: {
  14. //点击完成随访时 Request['id']||'1'
  15. finished: function () {
  16. var vm = this
  17. fangshiAPI.updateFollowStatus({ followupId: this.followupid || '1888107' }).then(function (res) {
  18. if (res.status == 200) {
  19. vm.$emit('getfinish', true)
  20. top.toastr.info("完成随访")
  21. } else {
  22. top.toastr.error(res.msg);
  23. }
  24. })
  25. },
  26. },
  27. })