_process_logs.blade.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <div>
  2. @can('订单管理-工单处理-承运商编辑')
  3. <div class="add-btn"
  4. style="position: absolute;display: none;margin-top: -35px;z-index: 51"
  5. :id="'AddProcessLogBtn'+item.pending_detail.id">
  6. <button type="button" class="btn btn-primary"
  7. @click="showAddDiv('addWorkOrderProcessLogForm'+item.pending_detail.id)">新
  8. </button>
  9. </div>
  10. <div class="addLogDiv row m-0 p-0 form-group" style="display: none;"
  11. :id="'addWorkOrderProcessLogForm'+item.pending_detail.id">
  12. <input type="hidden" name="id" :value="item.pending_detail.id">
  13. <div style="width: 45px"></div>
  14. <div class="form-inline m-2">
  15. <input type="text" name="content" :id="'addWorkOrderProcessLogFormInput_'+item.pending_detail.id"
  16. class="form-control m-0 p-0"
  17. style="width: 275px"
  18. required>
  19. <button type="button"
  20. class="btn btn-primary ml-2 m-0 p-0"
  21. style="width: 50px"
  22. @click="formStoreProcessLog(item.pending_detail.id,item.id)">添加
  23. </button>
  24. </div>
  25. </div>
  26. @endcan
  27. <template class="p-0 m-0" v-if="item.process_logs.length > 0">
  28. <table class="table table-sm p-0 m-0 " :id="'logs'+item.pending_detail.id">
  29. <tr class="align-center position-static"
  30. v-for="(log,logIndex) in item.process_logs"
  31. @click="removeFocusing($event)" v-on:mouseover="showDelBtn($event)"
  32. v-on:mouseleave="hideDelBtn($event)">
  33. <template v-if="logIndex < 2|| item.log_is_show === true">
  34. <td style="max-width: 175px;min-width: 175px;">
  35. <span v-text="log.content"></span>
  36. </td>
  37. <td class="text-muted" style="max-width: 55px;min-width: 55px;">
  38. <span v-if="log.user" v-text="log.user.name"></span>
  39. </td>
  40. <td class="text-muted" style="max-width: 95px;min-width: 95px;">
  41. <span v-text="log.created_at"></span>
  42. </td>
  43. @can('订单管理-工单处理-承运商编辑')
  44. <td style="max-width: 35px;min-width: 35px;" class="m-0 p-0 border-0">
  45. <button type="button"
  46. class="btn btn-sm btn-outline-danger m-0 del-btn invisible"
  47. @click="orderIssueVue.destroyLog(log,item.process_logs,logIndex)">
  48. </button>
  49. </td>
  50. @endcan
  51. </template>
  52. </tr>
  53. </table>
  54. <div class="d-flex justify-content-center">
  55. <button type="button" class="btn btn-sm btn-outline-primary align-middle mt-1 center-block"
  56. v-if="item.process_logs.length > 2"
  57. @click="toggleWorkOrderLogs(item,$event)"
  58. v-text="'记录共'+item.process_logs.length +'条,点击展开'"></button>
  59. </div>
  60. </template>
  61. <div v-else class="" style="height:50px">
  62. </div>
  63. </div>