CompanyCheckTask.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <a-card :bordered="false" title="稽核业务" style="margin-top: 10px;">
  3. <a-form-model
  4. ref="ruleForm"
  5. :label-col="labelCol"
  6. :wrapper-col="wrapperCol"
  7. >
  8. <a-card :bordered="false" >
  9. <a-descriptions bordered>
  10. <a-descriptions-item label="业务名称"><a @click="showCheckCheck">{{taskCheckInfo.taskName}}</a></a-descriptions-item>
  11. <a-descriptions-item label="开始时间">{{taskCheckInfo.taskStartTime}}</a-descriptions-item>
  12. <a-descriptions-item label="结束时间">{{taskCheckInfo.taskEndTime}}</a-descriptions-item>
  13. <a-descriptions-item label="业务状态">{{taskCheckInfo.taskStateText}}</a-descriptions-item>
  14. <a-descriptions-item label="业务描述" :span="2">{{taskCheckInfo.description}}</a-descriptions-item>
  15. </a-descriptions>
  16. </a-card>
  17. </a-form-model>
  18. </a-card>
  19. </template>
  20. <script>
  21. import {JeecgListMixin} from "@/mixins/JeecgListMixin";
  22. import {getAction} from "@api/manage";
  23. export default {
  24. name: 'CompanyCheckList',
  25. props: {
  26. taskInfo: {
  27. type: Object,
  28. require: true
  29. }
  30. },
  31. data(){
  32. return{
  33. description: '稽核业务列表',
  34. labelCol: { span: 1 },
  35. wrapperCol: { span: 23 },
  36. url: {
  37. list: "/smsCheck/task/list",
  38. },
  39. taskCheckInfo:{},
  40. showType:'checktask'
  41. }
  42. },
  43. created() {
  44. this.init();
  45. },
  46. methods:{
  47. showTaskList(){
  48. let taskInfo = Object.assign({}, this.task);
  49. this.$emit("goCompany",taskInfo)
  50. },
  51. showCheckCheck(){
  52. this.taskInfo.checkinfo=this.taskCheckInfo
  53. this.$emit("goCheckCheck", this.taskInfo)
  54. },
  55. init(){
  56. let queryParam={
  57. id:this.taskInfo.info.taskId
  58. }
  59. getAction("/smsCheck/task/queryById",queryParam).then(resp=>{
  60. if(resp.success){
  61. this.taskCheckInfo=resp.result;
  62. this.taskCheckInfo.taskStateText=this.taskState_Text(this.taskCheckInfo.taskState)
  63. }
  64. })
  65. },
  66. taskState_Text(taskState){
  67. if (taskState===0){
  68. return "未开始"
  69. }else if (taskState===1){
  70. return "进行中"
  71. }else if (taskState===2){
  72. return "已结束"
  73. }
  74. }
  75. }
  76. }
  77. </script>