requesterIndex.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <style>
  2. .upLoadText {
  3. margin: 0;
  4. }
  5. .upLoadButton {
  6. display: inline-block;
  7. height: 26px;
  8. width: 70px;
  9. line-height: 26px;
  10. font-size: 13px;
  11. border-radius: 4px;
  12. text-align: center;
  13. margin-right: 16px;
  14. /* border: 0.2rem solid #eeeeee; */
  15. /* background: url(./assets/images/weChat/tianjia.png); */
  16. /* background-repeat: no-repeat; */
  17. /* background-size: 60%; */
  18. /* background-position-x: center; */
  19. /* background-position-y: center; */
  20. background-color: #2379BC;
  21. color: white;
  22. vertical-align: top;
  23. /* margin-bottom: 0.5rem; */
  24. position: relative;
  25. }
  26. .uploadedFile {
  27. opacity: 0;
  28. height: 26px;
  29. width: 70px;
  30. overflow: hidden;
  31. position: absolute;
  32. top: 0px;
  33. left: 0px;
  34. }
  35. .upLoadCancel {
  36. display: inline-block;
  37. color: #999999;
  38. height: 26px;
  39. width: 70px;
  40. line-height: 26px;
  41. font-size: 13px;
  42. border-radius: 4px;
  43. text-align: center;
  44. /* font-family: "Microsoft YaHei", "微软雅黑", "Microsoft JhengHei"; */
  45. /* border: #D5D5D5 1px solid; */
  46. background-color: #EA641D;
  47. color: white;
  48. }
  49. </style>
  50. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  51. <tr>
  52. <td align="center">
  53. <table width="1000" border="0" cellspacing="10">
  54. <tr>
  55. <td width="650" valign="top" class="bg1">
  56. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  57. <tr>
  58. <td class="title2">报修信息</td>
  59. </tr>
  60. </table>
  61. <TABLE width="100%" align="center" bgcolor="#c9deef" border="0" cellspacing="1" cellpadding="5">
  62. <TBODY>
  63. <TR>
  64. <TD bgcolor="#e9f2f9">联系人</TD>
  65. <TD bgcolor="#ffffff">
  66. <input name="textfield" type="text" class="input1" id="textfield" ng-model="contacts">
  67. </TD>
  68. <TD bgcolor="#e9f2f9">联系电话</TD>
  69. <TD bgcolor="#ffffff">
  70. <input name="textfield2" type="text" class="input1" id="textfield2" ng-model="contactsInformation">
  71. </TD>
  72. </TR>
  73. <!-- <TR>
  74. <TD bgcolor="#e9f2f9">区域</TD>
  75. <TD bgcolor="#ffffff" style="position: relative;">
  76. <select class="input1" style="width:160px" ng-model="areaSelected" ng-options="areaList.area for areaList in requesterArea" ng-change="getPlace(areaSelected.id)">
  77. <option value="">请选择...</option>
  78. </select>
  79. <div style="position: absolute;width: 100px;top: 8px;left: 10px;background: white;">{{areaSelected.area}}</div>
  80. </TD>
  81. <TD bgcolor="#e9f2f9">地点</TD>
  82. <TD bgcolor="#ffffff" style="position: relative;">
  83. <select class="input1" style="width:160px" ng-model="placeSelected" ng-options="placeList.place for placeList in requesterPlace">
  84. <option value="">请选择...</option>
  85. </select>
  86. <div style="position: absolute;width: 100px;top: 8px;left: 10px;background: white;">{{placeSelected.place}}</div>
  87. </TD>
  88. </TR> -->
  89. <TR>
  90. <TD bgcolor="#e9f2f9">选择区域</TD>
  91. <TD colspan="3" bgcolor="#ffffff">
  92. <div style="width:385px">
  93. <ui-select ng-model="areaSelected.areaData" reset-search-input="false" ng-change="getAreaPlace()">
  94. <ui-select-match>
  95. <span ng-bind="$select.selected.area"></span>
  96. </ui-select-match>
  97. <ui-select-choices repeat="item in requesterArea">
  98. <span ng-bind="item.area"> </span>
  99. </ui-select-choices>
  100. </ui-select>
  101. </div>
  102. </TD>
  103. </TR>
  104. <TR>
  105. <TD bgcolor="#e9f2f9">选择地点</TD>
  106. <TD colspan="3" bgcolor="#ffffff">
  107. <div style="width:385px">
  108. <ui-select ng-model="placeSelected.placeData" reset-search-input="false">
  109. <ui-select-match>
  110. <span ng-bind="$select.selected.place"></span>
  111. </ui-select-match>
  112. <ui-select-choices repeat="item in (requesterPlace | filter:$select.search) track by item.id">
  113. <span ng-bind="item.place"> </span>
  114. </ui-select-choices>
  115. </ui-select>
  116. </div>
  117. </TD>
  118. </TR>
  119. <TR>
  120. <TD bgcolor="#e9f2f9">详细地址</TD>
  121. <TD colspan="3" bgcolor="#ffffff">
  122. <input name="textfield3" type="text" class="input1" id="textfield3" size="50" ng-model="loginUser.houseNumber">
  123. </TD>
  124. </TR>
  125. <!-- <TR>
  126. <TD bgcolor="#e9f2f9">故障类型</TD>
  127. <TD colspan="3" bgcolor="#ffffff" style="position: relative;">
  128. <select class="input1" style="width:160px" ng-model="cListSelect" ng-options="cList.name for cList in classifyList">
  129. <option value="">请选择...</option>
  130. </select>
  131. <div style="position: absolute;width: 100px;top: 8px;left: 10px;background: white;">{{cListSelect.name}}</div>
  132. </TD>
  133. </TR> -->
  134. <!-- <TR>
  135. <TD bgcolor="#e9f2f9">主题</TD>
  136. <TD colspan="3" bgcolor="#ffffff">
  137. <input name="textfield4" type="text" class="input1" id="textfield4" size="50" ng-model="theme">
  138. </TD>
  139. </TR> -->
  140. <TR>
  141. <TD bgcolor="#e9f2f9">详细描述</TD>
  142. <TD colspan="3" bgcolor="#ffffff">
  143. <textarea name="textfield11" cols="50" rows="10" class="input1" id="textfield11" style="height:100px" ng-model="description"></textarea>
  144. </TD>
  145. </TR>
  146. <TR>
  147. <TD bgcolor="#e9f2f9">附件</TD>
  148. <TD colspan="3" bgcolor="#ffffff">
  149. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  150. <tr>
  151. <div ng-repeat="item in uploader.queue">
  152. <!--<span ng-repeat="item in uploader.queue"></span>-->
  153. <p ng-show="item.file.type=='image/png'" ng-thumb="{ file: item._file, height: 100 }"></p>
  154. <p ng-show="item.file.type=='image/jpeg'" ng-thumb="{ file: item._file, height: 100 }"></p>
  155. <p ng-show="item.file.type=='image/jpg'" ng-thumb="{ file: item._file, height: 100 }"></p>
  156. <p class="upLoadText" ng-show="uploader.isHTML5">文件名&nbsp;&nbsp;{{ item.file.name }}</p>
  157. <p class="upLoadText" ng-show="uploader.isHTML5" nowrap>文件大小&nbsp;&nbsp;{{ item.file.size/1024/1024|number:2 }} MB</p>
  158. </div>
  159. </tr>
  160. <tr>
  161. <!-- <div>
  162. <input type="file" nv-file-select="" uploader="uploader" multiple="">
  163. </div> -->
  164. <div class="upLoadButton" ng-if="uploader.queue.length<3">添加附件
  165. <input class="uploadedFile" name="uploadedFile" type="file" style="opacity: 0;" nv-file-select="" uploader="uploader" />
  166. </div>
  167. <div class="upLoadCancel" ng-if="uploader.getNotUploadedItems().length" ng-click="uploader.clearQueue()">清空附件
  168. <!-- <input class="uploadedFile" name="uploadedFile" type="file" style="opacity: 0;" nv-file-select="" uploader="uploader" /> -->
  169. </div>
  170. </tr>
  171. <tr>
  172. <td class="more">可以上传文档和图片,最多上传3个附件,每个附件不超过6M,支持jpg、png图片</td>
  173. </tr>
  174. <!-- <tr>
  175. <td class="more" ng-if="uploader.getNotUploadedItems().length">
  176. <input type="submit" class="bt2" style="background: #EA641D; color: black;" id="button2" value="取 消" ng-click="uploader.clearQueue()" ng-disabled="!uploader.queue.length" disabled="disabled">
  177. </td>
  178. </tr> -->
  179. </table>
  180. <!--<table class="table">
  181. <thead>
  182. <tr>
  183. <th width="50%">Name</th>
  184. <th ng-show="uploader.isHTML5">Size</th>
  185. <th ng-show="uploader.isHTML5">Progress</th>
  186. <th>Status</th>
  187. <th>Actions</th>
  188. </tr>
  189. </thead>
  190. <tbody>
  191. <tr ng-repeat="item in uploader.queue">
  192. <td>
  193. <strong>{{ item.file.name }}</strong>
  194. <div ng-show="uploader.isHTML5" ng-thumb="{ file: item._file, height: 100 }"></div>
  195. </td>
  196. <td ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>
  197. <td ng-show="uploader.isHTML5">
  198. <div class="progress" style="margin-bottom: 0;">
  199. <div class="progress-bar" role="progressbar" ng-style="{ 'width': item.progress + '%' }"></div>
  200. </div>
  201. </td>
  202. <td class="text-center">
  203. <span ng-show="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>
  204. <span ng-show="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>
  205. <span ng-show="item.isError"><i class="glyphicon glyphicon-remove"></i></span>
  206. </td>
  207. <td nowrap>
  208. <button type="button" class="btn btn-success btn-xs" ng-click="item.upload()" ng-disabled="item.isReady || item.isUploading || item.isSuccess">
  209. <span class="glyphicon glyphicon-upload"></span> Upload
  210. </button>
  211. <button type="button" class="btn btn-warning btn-xs" ng-click="item.cancel()" ng-disabled="!item.isUploading">
  212. <span class="glyphicon glyphicon-ban-circle"></span> Cancel
  213. </button>
  214. <button type="button" class="btn btn-danger btn-xs" ng-click="item.remove()">
  215. <span class="glyphicon glyphicon-trash"></span> Remove
  216. </button>
  217. </td>
  218. </tr>
  219. </tbody>
  220. </table>-->
  221. </TD>
  222. </TR>
  223. </TBODY>
  224. </TABLE>
  225. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  226. <tr>
  227. <td height="60" align="center" valign="bottom">
  228. <input type="button" class="bt1" id="button" value="提 交" ng-click="submit()">
  229. <!--<input name="button2" type="submit" class="bt2" id="button2" value="取 消">-->
  230. </td>
  231. </tr>
  232. </table>
  233. </td>
  234. </tr>
  235. </table>
  236. </td>
  237. </tr>
  238. </table>