<template>
      <!--退回流程-->
      <a-modal
        :title="returnTitle"
        :open="returnOpen"
        :width="'40%'"
        @cancel="returnOpen = false"
        :footer="null"
      >
        <a-form :model="taskForm" ref="taskFormRef" :label-col="{ span: 6 }">
          <a-form-item label="退回节点" name="targetKey">
            <a-radio-group v-model:value="taskForm.targetKey" button-style="solid">
              <a-radio-button
                v-for="item in returnTaskList"
                :key="item.id"
                :value="item.id"
                >{{ item.name }}</a-radio-button
              >
            </a-radio-group>
          </a-form-item>
          <a-form-item
            label="退回意见"
            name="comment"
            :rules="[{ required: true, message: '请输入意见', trigger: 'blur' }]"
          >
            <a-textarea
              v-model:value="taskForm.comment"
              placeholder="请输入意见"
              :rows="4"
            />
          </a-form-item>
        </a-form>
        <template #footer>
          <a-button @click="returnOpen = false">取 消</a-button>
          <a-button type="primary" @click="taskReturn">确 定</a-button>
        </template>
      </a-modal>
</template>