ItdmRunFlowPathShenhel.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <a-modal
  3. :title="title"
  4. :width="width"
  5. :visible="visible"
  6. switchFullscreen
  7. @ok="handleOk"
  8. :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
  9. @cancel="handleCancel"
  10. cancelText="关闭">
  11. <a-form-model ref="form" :model="model">
  12. <a-row>
  13. <a-col :span="24">
  14. <a-form-model-item label="拒绝原因" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="yuanyin">
  15. <a-input v-model="model.yuanyin" placeholder="请输入拒绝原因" ></a-input>
  16. </a-form-model-item>
  17. </a-col>
  18. </a-row>
  19. </a-form-model>
  20. </a-modal>
  21. </template>
  22. <script>
  23. import { runFlowPathRejectDQ } from '@api/api'
  24. export default {
  25. name: 'ItdmRunFlowPathShenhel',
  26. components: {
  27. },
  28. data () {
  29. return {
  30. model:{},
  31. title:'',
  32. width:800,
  33. visible: false,
  34. disableSubmit: false,
  35. labelCol: {
  36. xs: { span: 24 },
  37. sm: { span: 5 },
  38. },
  39. wrapperCol: {
  40. xs: { span: 24 },
  41. sm: { span: 16 },
  42. },
  43. }
  44. },
  45. methods: {
  46. bohui (record) {
  47. this.visible=true
  48. this.model = record
  49. },
  50. handleOk () {
  51. var data = { 'runFlowPath': this.model.id,"yuanyin":this.model.yuanyin }
  52. console.log(data)
  53. runFlowPathRejectDQ(data).then(response => {
  54. this.visible = false;
  55. this.$emit('ok');
  56. })
  57. },
  58. handleCancel () {
  59. this.visible = false;
  60. }
  61. }
  62. }
  63. </script>