NewSupportProblem.cshtml 15 KB

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