ItdmRunFlowPathShenhel1.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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="flowPathId">
  15. <j-search-select-tag placeholder="选择之前节点" v-model="model.runFlowPathSept" :dictOptions="yrunList"/>
  16. </a-form-model-item>
  17. </a-col>
  18. <a-col :span="24">
  19. <a-form-model-item label="拒绝原因" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="yuanyin">
  20. <a-input v-model="model.yuanyin" placeholder="请输入拒绝原因" ></a-input>
  21. </a-form-model-item>
  22. </a-col>
  23. </a-row>
  24. </a-form-model>
  25. </a-modal>
  26. </template>
  27. <script>
  28. import { runFlowPathRejectDQ, runFlowPathrejectzd, runFlowPathyrunList } from '@api/api'
  29. export default {
  30. name: 'ItdmRunFlowPathShenhel1',
  31. components: {
  32. },
  33. data () {
  34. return {
  35. yrunList:[],
  36. model:{},
  37. title:'驳回指定节点',
  38. width:800,
  39. visible: false,
  40. disableSubmit: false,
  41. labelCol: {
  42. xs: { span: 24 },
  43. sm: { span: 5 },
  44. },
  45. wrapperCol: {
  46. xs: { span: 24 },
  47. sm: { span: 16 },
  48. },
  49. }
  50. },
  51. methods: {
  52. bohui (record) {
  53. this.visible=true
  54. this.model = record
  55. var data = { 'runFlowPath': this.model.id }
  56. runFlowPathyrunList(data).then(response => {
  57. this.yrunList= response.result
  58. console.log(this.yrunList)
  59. })
  60. },
  61. handleOk () {
  62. var data = { 'runFlowPath': this.model.id,"yuanyin":this.model.yuanyin,"runFlowPathSept":this.model.runFlowPathSept }
  63. console.log(data)
  64. runFlowPathrejectzd(data).then(response => {
  65. this.visible = false;
  66. this.$emit('ok');
  67. })
  68. },
  69. handleCancel () {
  70. this.visible = false;
  71. }
  72. }
  73. }
  74. </script>