NewProjectProblem.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. @{
  2. ViewBag.Title = "NewProjectProblem";
  3. Layout = "~/Views/Shared/Comfirm&CLose_Window.cshtml";
  4. }
  5. <link href="~/Content/Scripts/plugins/umeditor-1.2.3/themes/default/_css/umeditor.css?v=1.1" rel="stylesheet" />
  6. <script src="~/Content/Scripts/plugins/umeditor-1.2.3/umeditor.min.js"></script>
  7. <script src="~/Content/Scripts/plugins/umeditor-1.2.3/umeditor.config.js?v=1.41"></script>
  8. <script src="~/Content/Scripts/plugins/umeditor-1.2.3/lang/zh-cn/zh-cn.js"></script>
  9. <script src="~/Content/Scripts/plugins/easyui/easyui-lang-zh_CN.js"></script>
  10. <script src="~/ViewModels/Register.Problem.js?t=1.2"></script>
  11. <script src="~/Content/Scripts/vue.js"></script>
  12. <style>
  13. table {
  14. width: 97%;
  15. }
  16. table td {
  17. padding: 3px;
  18. border-bottom: solid 1px #EEE;
  19. }
  20. .CheckImg:hover {
  21. transform: scale(3);
  22. z-index: 999;
  23. width: auto;
  24. height: 40px;
  25. }
  26. .CheckImg {
  27. cursor: pointer;
  28. transition: all 0.6s;
  29. }
  30. .btn-cc {
  31. margin-left: 20px;
  32. }
  33. .tabs .tabs-last {
  34. display: none;
  35. }
  36. .combobox-item {
  37. width: 1000px;
  38. }
  39. .mxid {
  40. width: 1000px;
  41. }
  42. #tbJJFA .edui-body-container {
  43. height: 310px !important;
  44. }
  45. .tabs-header {
  46. border: 0px
  47. }
  48. .hide-tips {
  49. white-space-collapse: collapse;
  50. text-wrap: nowrap;
  51. text-overflow: ellipsis;
  52. overflow: hidden;
  53. color: #0084ff;
  54. text-decoration: underline !important; /* 文字底部线 */
  55. }
  56. .title-color {
  57. color: #0070c0; /* 问题描述内容颜色 */
  58. }
  59. </style>
  60. <form class="easyui-tabs" fit="true" lay-filter="insert_problem" id="insert_problem">
  61. <div title="<i class='fa fa-sticky-note-o'></i> 问题信息" style="padding:5px;display:none;">
  62. <input type="hidden" id="BH" name="BH" value="@ViewBag.id" />
  63. <input type="hidden" id="Type" name="Type" />
  64. <input type="hidden" id="RegisterType" name="RegisterType" value="0" />
  65. @*<input type="hidden" id="MKID" name="MKID" />*@
  66. <input type="hidden" id="BBH" name="BBH" />
  67. <table>
  68. <tr>
  69. <td style="width:80px;">
  70. 问题标题:
  71. </td>
  72. <td>
  73. <input id="WTBT" name="WTBT" missingMessage="请输入标题" autofocus class="easyui-textbox" style="width:445px" />
  74. <input class="easyui-combobox" required id="WTXZ" name="WTXZ" editable="false"
  75. data-options="label:'问题性质:',prompt:'请选择',limitToList:true,panelHeight:150,tipPosition:'top',labelAlign:'right'"
  76. style="width:250px;" />
  77. </td>
  78. </tr>
  79. <tr>
  80. <td>项目:</td>
  81. <td>
  82. <input id="XMID" name="XMID" required panelheight="200px" class="easyui-combobox xmid"
  83. data-options="labelAlign:'right',prompt:'请选择(默认项目)',limitToList:true,tipPosition:'top'" style="width:200px;" />
  84. <input id="JGID" name="JGID" editable panelheight="200px" class="easyui-combobox"
  85. data-options="label:'机构:',labelAlign:'right',limitToList:true, required:true" style="width:240px;" />
  86. <input class="easyui-combobox" id="LYDM" name="LYDM" editable="false"
  87. data-options="label:'登记来源:',prompt:'请选择',limitToList:true,panelHeight:150,tipPosition:'top',labelAlign:'right', required:true"
  88. style="width: 250px;" />
  89. </td>
  90. </tr>
  91. <tr>
  92. <td>所属产品:</td>
  93. <td>
  94. <input required editable="false" panelheight="200px" class="easyui-combobox" id="CPID" name="CPID"
  95. data-options="required:true,prompt:'指定一个产品',limitToList:true,tipPosition:'top'" style="width:200px;" />
  96. <input panelheight="200px" editable="true" class="easyui-combotree" id="MK" name="MKID"
  97. data-options="label:'所属模块:',labelAlign:'right',prompt:'请选择所属模块',tipPosition:'top', required:true" style="width:240px;" />
  98. <input id="FKR" name="FKR" class="easyui-combobox" data-options="label:'反馈人:',labelAlign:'right'"
  99. style="width:250px;" />
  100. </td>
  101. </tr>
  102. <tr>
  103. <td>
  104. 问题描述: <br/><br /><br />
  105. <a href="#" onclick="selectModuleParam()" class="hide-tips">
  106. <span>查看产品问<br />题登记规范</span>
  107. </a>
  108. </td>
  109. <td colspan="2">
  110. <textarea id="WTMS" name="WTMS" style="width:698px;height:140px;"></textarea>
  111. </td>
  112. </tr>
  113. <tr>
  114. <td style="border-bottom:0px">问题附件:</td>
  115. <td colspan="2" id="demoList" style="border-bottom:0px">
  116. <a id="ChooseFile" href="#" class="easyui-linkbutton c8" data-options="plain:true">
  117. <i class="fa fa-plus-square-o"></i> 添加附件
  118. </a>
  119. </td>
  120. </tr>
  121. </table>
  122. <div id="attchment" style="height: 50px;background-color: #F5F5F5">
  123. <p>&nbsp;</p>
  124. <p>说明:为减少不必要的沟通成本,请仔细阅读问题登记规范,对于登记不合格的问题将退回登记人,并定期按渠道通报问题登记质量情况</p>
  125. </div>
  126. </div>
  127. <div title="<i class='fa fa-server'></i> 相关信息" style="padding:5px;display:none;">
  128. <table>
  129. <tr>
  130. <td>
  131. <input id="DJRJ" name="DJRJ" required class="easyui-datetimebox" editable="false"
  132. data-options="label:'反馈日期:',tipPosition:'top'" value="${notices.release_time}" style="width:260px">
  133. </td>
  134. <td>
  135. <input id="YQSJ" name="YQSJ" class="easyui-datebox" editable="false"
  136. data-options="label:'要求时间:',tipPosition:'top'" style="width:260px">
  137. </td>
  138. </tr>
  139. <tr>
  140. <td>
  141. <input class="easyui-combobox" required id="JJDM" name="JJDM" editable="false"
  142. data-options="label:'紧急程度:',prompt:'请选择',limitToList:true,panelHeight:150,tipPosition:'top'"
  143. style="width:260px;" />
  144. </td>
  145. <td>
  146. </td>
  147. </tr>
  148. @*<tr>
  149. <td>
  150. <input class="easyui-combobox" id="CFWTID" name="CFWTID"
  151. data-options="label:'是否重复:',prompt:'请选择',limitToList:true,panelHeight:400,panelWidth:400,tipPosition:'top'"
  152. style="width:260px;" />
  153. </td>
  154. </tr>*@
  155. <tr>
  156. <td colspan="3">
  157. <input id="JJMS" name="JJMS" class="easyui-textbox"
  158. data-options="label:'紧急事由:',prompt:'紧急描述',tipPosition:'top',multiline:true" style="width:750px;height:300px;">
  159. </td>
  160. </tr>
  161. </table>
  162. </div>
  163. <div title="<i class='fa fa-pencil'></i> 解决方案" style="padding:5px;">
  164. <table>
  165. <tr>
  166. <td>
  167. <input name="TYID" class="easyui-combotree" id="TYID" />
  168. </td>
  169. </tr>
  170. <tr>
  171. <td id="tbJJFA">
  172. <textarea id="JJFA" name="JJFA" style="width:830px;height:700px;"></textarea>
  173. </td>
  174. </tr>
  175. </table>
  176. </div>
  177. </form>
  178. <script type="text/javascript">
  179. $(function () {
  180. //人员性质
  181. var RYXZ = "@ViewBag.RYXZ";
  182. var models = new ProblemModel();
  183. if ("@ViewBag.type"!= '2') {
  184. models.NewProjectProblemInit();
  185. }
  186. else {
  187. $("#SubmitProblem").hide()
  188. models.EditProjectProblemInit("@ViewBag.id");
  189. }
  190. //附件上传
  191. layui.use('upload', function () {
  192. var upload = layui.upload;
  193. var demoListView = $('#demoList');
  194. var uploadInst = upload.render({
  195. elem: '#ChooseFile' //文件选择按钮
  196. ,
  197. url: '/Problem/FileUpload',
  198. method: "post",
  199. accept: 'file' //普通文件(文件类型)
  200. ,
  201. multiple: true //多文件上传
  202. ,
  203. auto: false //自动上传
  204. ,
  205. size: 5120,
  206. bindAction: "#btn_upload",
  207. number: 3 //最大允许上传文件数量
  208. ,
  209. choose: function (obj) {
  210. problemObj.Choose = 1;
  211. var files = this.files = obj.pushFile(); //将每次选择的文件追加到文件队列
  212. //读取本地文件
  213. obj.preview(function (index, file, result) {
  214. var display = "none";
  215. if (file.type == "image/jpeg" || file.type == "image/png") {
  216. display = "";
  217. }
  218. var tr = $(['<tr id="upload-' + index + '">', '<td class="uplad-filename">' + file.name + '</td>', '<td>' +
  219. (file.size / 1014).toFixed(1) + 'kb</td>', '<td>等待上传</td>', '<td>',
  220. '<button class="layui-btn layui-btn-mini demo-reload layui-hide">重传</button>',
  221. '<button class="layui-btn layui-btn-mini layui-btn-danger demo-delete" style="height:25px;line-height:25px">删除</button>',
  222. '<img src="' + result + '" class="CheckImg" width="auto" height="40" style="margin-left:10px;display:' +
  223. display + '"/>', '</td>', '</tr>'
  224. ].join(''));
  225. //单个重传
  226. tr.find('.demo-reload').on('click', function () {
  227. obj.upload(index, file);
  228. });
  229. //删除
  230. tr.find('.demo-delete').on('click', function () {
  231. delete files[index]; //删除对应的文件
  232. tr.remove();
  233. uploadInst.config.elem.next()[0].value = ''; //清空 input file 值,以免删除后出现同名文件不可选
  234. });
  235. demoListView.append(tr);
  236. });
  237. },
  238. allDone: function (obj) {
  239. top.ZLPMS.Msg("总共上传" + obj.total + ",成功" + obj.successful + "个,失败" + obj.aborted + "个")
  240. if ($('#Constantly').prop("checked")) {
  241. ZLPMS.UnLoading(problemObj.index)
  242. top.ZLPMS.UnLoading(problemObj.index2);
  243. //根据Type选择不同的登记弹窗
  244. ProjectProblem_Window(); //项目问题
  245. ZLPMS.CloseTopWindow(true);
  246. return;
  247. }
  248. ZLPMS.UnLoading(problemObj.index)
  249. top.ZLPMS.UnLoading(problemObj.index2);
  250. ZLPMS.CloseTopWindow(true);
  251. }
  252. });
  253. });
  254. })
  255. </script>