create.blade.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. @extends('layouts.app')
  2. @section('title')客户管理-项目录入@endsection
  3. @section('content')
  4. @component('customer.project.menu')@endcomponent
  5. <div class="container-fluid card" id="container">
  6. <div class="card-body offset-3">
  7. <form method="GET" action="{{url('')}}" class="mt-3">
  8. <div class="row">
  9. <label for="code" class="col-2 text-info">项目代码</label>
  10. <input type="text" required id="code" class="form-control form-control-sm col-7" name="code">
  11. </div>
  12. <div class="row mt-3">
  13. <label for="name" class="col-2 text-info">项目名称</label>
  14. <input type="text" id="name" class="form-control form-control-sm col-7" name="name">
  15. </div>
  16. <div class="row mt-3">
  17. <label for="owner_id" class="col-2">客户</label>
  18. <select id="owner_id" class="form-control form-control-sm col-4" name="owner_id">
  19. <option> </option>
  20. <option v-for="customer in customers" :value="customer.id">@{{ customer.name }}</option>
  21. </select>
  22. </div>
  23. <div class="row mt-3">
  24. <label for="workgroup_id" class="col-2">项目小组</label>
  25. <select id="workgroup_id" class="form-control form-control-sm col-4" name="workgroup_id">
  26. <option> </option>
  27. <option v-for="group in groups" :value="group.id">@{{ group.name }}</option>
  28. </select>
  29. </div>
  30. <div class="row mt-3">
  31. <label class="col-2" for="type">仓储计费类型</label>
  32. <select id="type" name="type" class="selectpicker" multiple data-live-search="true" title="仓储计费类型(多选)">
  33. <option v-for="t in type" :value="t.id">@{{ t.name }}</option>
  34. </select>
  35. </div>
  36. <div class="row mt-3">
  37. <label for="tax_rate" class="col-2">税率<span class="badge badge-secondary">%</span></label>
  38. <input type="number" id="tax_rate" class="form-control form-control-sm col-3" name="tax_rate">
  39. </div>
  40. <div class="row mt-3">
  41. <label for="contract_number" class="col-2">合同号</label>
  42. <input type="text" id="contract_number" class="form-control form-control-sm col-7" name="contract_number">
  43. </div>
  44. <div class="row mt-3">
  45. <label for="salesman" class="col-2">销售名称</label>
  46. <input type="text" id="salesman" class="form-control form-control-sm col-7" name="salesman">
  47. </div>
  48. <div class="row mt-3">
  49. <label for="linkman" class="col-2">联系人</label>
  50. <input type="text" id="linkman" class="form-control form-control-sm col-7" name="linkman">
  51. </div>
  52. <div class="row mt-3">
  53. <label for="phone_number" class="col-2">联系电话</label>
  54. <input type="text" id="phone_number" class="form-control form-control-sm col-7" name="phone_number">
  55. </div>
  56. <div class="row mt-3">
  57. <label for="description" class="col-2">项目描述</label>
  58. <textarea id="description" class="form-control form-control-sm col-7" name="description"></textarea>
  59. </div>
  60. <button type="submit" class="btn btn-success mt-3 col-8 offset-1">提交</button>
  61. </form>
  62. </div>
  63. </div>
  64. @stop
  65. @section('lastScript')
  66. <script>
  67. new Vue({
  68. el:"#container",
  69. data:{
  70. type : [{name:"常温",id:"1"},{name:"恒温",id:"2"},{name:"冷藏",id:"2"},],
  71. customers : [{name:"TEST1",id:"1"},],
  72. groups : [{name:'TEST1',id:"1"}],
  73. },
  74. });
  75. </script>
  76. @stop