Detail.cshtml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. @{
  2. ViewBag.Title = "Detail";
  3. Layout = "~/Views/Shared/_Layout.cshtml";
  4. }
  5. @using MES.Production.Service;
  6. @using Central.Control.Domain;
  7. @using Ant.Service.Common;
  8. @using Ant.Service.Common.Enums;
  9. @using MES.Production.Entity;
  10. @using ChangFa.Machinery.WebPage.Models;
  11. @using CommonToolHelper;
  12. @model ReportRepairDetail
  13. <style>
  14. body {
  15. background-color: white;
  16. }
  17. .changeicon {
  18. float: right;
  19. margin-right: -15px;
  20. position: absolute;
  21. right: -7px;
  22. top: 0px;
  23. border: none;
  24. background-color: #18a689;
  25. color: #FFFFFF;
  26. line-height: 33px;
  27. height: 33px;
  28. }
  29. </style>
  30. @using (Ajax.BeginForm("Save", null, new AjaxOptions()
  31. {
  32. HttpMethod = "Post",
  33. OnBegin = "SubAjax.Loading",
  34. OnComplete = "SubAjax.Complate",
  35. OnFailure = "SubAjax.Failure",
  36. OnSuccess = "SubAjax.Success"
  37. }, new { @class = "form-horizontal dig-from", @role = "form" }))
  38. {
  39. <div class="wrapper-content">
  40. <div class="panel-body" style="padding-top:0px;">
  41. <div class="tab-content">
  42. <div id="tab-1" class="tab-pane active">
  43. <div class="clearfix f-hafl">
  44. <div class="col-hafl">
  45. <div class="form-group">
  46. <label class="col-lg-3 control-label">农机名称:</label>
  47. <div class="col-lg-8" style="width:45% !important">
  48. <label style="margin-top:7px;">@Model.machineName</label>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="col-hafl">
  53. <div class="form-group">
  54. <label class="col-lg-3 control-label" style="width:29% !important; padding-left:5px; padding-right:5px;">农机备注:</label>
  55. <div class="col-lg-8">
  56. <label style="margin-top:7px;">@Model.note</label>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. <div class="clearfix f-hafl">
  62. <div class="col-hafl">
  63. <div class="form-group">
  64. <label class="col-lg-3 control-label">农机IMEI号:</label>
  65. <div class="col-lg-8" style="width:45% !important">
  66. <label style="margin-top:7px;">@Model.imei</label>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="col-hafl">
  71. <div class="form-group">
  72. <label class="col-lg-3 control-label" style="width:29% !important; padding-left:5px; padding-right:5px;">报修人:</label>
  73. <div class="col-lg-8">
  74. <label style="margin-top:7px;">@Model.userName</label>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. <div class="clearfix f-hafl">
  80. <div class="col-hafl">
  81. <div class="form-group">
  82. <label class="col-lg-3 control-label">报修电话:</label>
  83. <div class="col-lg-8" style="width:45% !important">
  84. <label style="margin-top:7px;">@Model.mobile</label>
  85. </div>
  86. </div>
  87. </div>
  88. <div class="col-hafl">
  89. <div class="form-group">
  90. <label class="col-lg-3 control-label" style="width:29% !important; padding-left:5px; padding-right:5px;">所属经销商:</label>
  91. <div class="col-lg-8">
  92. <label style="margin-top:7px;">@Model.machineModel</label>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. }
  102. @section scripts{
  103. <script type="text/javascript">
  104. $(function () {
  105. $('.form-horizontal').initValidform();
  106. $('.select2').select2();
  107. //分配部门
  108. $('#changeDpt').click(function () {
  109. var vals = $('#hiddpt').val();
  110. top.dialog({
  111. url: '/Sys/Department/GetSelectDpt',
  112. title: '选择景点',
  113. width: 450,
  114. height: 500,
  115. data: vals, // 给 iframe 的数据
  116. onclose: function () {
  117. if (this.returnValue != 'no') {
  118. $('#hiddpt').val(this.returnValue.split('|')[0]);
  119. $('#dpt').html(this.returnValue.split('|')[1]);
  120. //清理岗位
  121. $('#hidpost').val('');
  122. $('#post').html('');
  123. }
  124. },
  125. oniframeload: function () {
  126. }
  127. }).showModal();
  128. return false;
  129. });
  130. //分配岗位
  131. $('#changePost').click(function () {
  132. var dptid = $('#DPTID').val() + ',' + $('#hiddpt').val();
  133. if ($('#DPTID').val() == '' && $('#hiddpt').val() == '') {
  134. dig.alertError('提示', '请选择部门后再选择岗位');
  135. return;
  136. }
  137. var vals = $('#hidpost').val();
  138. top.dialog({
  139. url: '/Sys/Post/PostUser?dptid=' + dptid,
  140. title: '分配岗位',
  141. width: 500,
  142. height: 500,
  143. data: vals, // 给 iframe 的数据
  144. onclose: function () {
  145. if (this.returnValue != 'no') {
  146. $('#hidpost').val(this.returnValue.split('|')[0]);
  147. $('#post').html(this.returnValue.split('|')[1]);
  148. }
  149. },
  150. oniframeload: function () {
  151. }
  152. }).showModal();
  153. return false;
  154. });
  155. });
  156. </script>
  157. }