revoke.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view class="flow-popup-content">
  3. <u-form ref="dataForm" :model="dataForm" :label-width="150" :errorType="['toast']">
  4. <view class="content">
  5. <u-form-item label="撤销原因">
  6. <HandleOpinion v-model="dataForm.handleOpinion" :showCommon="false"></HandleOpinion>
  7. </u-form-item>
  8. </view>
  9. </u-form>
  10. <view class="flowBefore-actions">
  11. <view class="u-flex-col buttom-btn-left-inner" @click.stop="jnpf.goBack()">
  12. <u-icon name="icon-ym" size="24" custom-prefix="icon-ym icon-ym-add-cancel"></u-icon>
  13. <text>取消</text>
  14. </view>
  15. <u-button class="buttom-btn" type="primary" @click="confirm('confirm')">确定
  16. </u-button>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. import HandleOpinion from './components/HandleOpinion.vue'
  22. import {
  23. getSelector,
  24. Create
  25. } from '@/api/commonWords'
  26. export default {
  27. components: {
  28. HandleOpinion
  29. },
  30. data() {
  31. return {
  32. dataForm: {
  33. handleOpinion: ""
  34. },
  35. config: {}
  36. };
  37. },
  38. onLoad(data) {
  39. try {
  40. this.config = JSON.parse(decodeURIComponent(data.config));
  41. } catch {
  42. this.config = JSON.parse(data.config);
  43. }
  44. },
  45. methods: {
  46. confirm() {
  47. let data = {
  48. ...this.dataForm,
  49. eventType: this.config.type
  50. }
  51. uni.$emit('operate', data)
  52. setTimeout(() => {
  53. uni.navigateBack()
  54. }, 500)
  55. }
  56. }
  57. }
  58. </script>
  59. <style lang="scss">
  60. page {
  61. height: 100%;
  62. background-color: #fff !important;
  63. }
  64. ::v-deep .u-form-item--left {
  65. align-items: flex-start !important;
  66. }
  67. .buttom-btn-left-inner {
  68. width: 50%;
  69. }
  70. .flow-popup-content {
  71. .signature-box {
  72. border-top: none;
  73. }
  74. .content {
  75. padding: 0 20rpx;
  76. }
  77. }
  78. </style>