user-edit.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. <!-- MAIN CONTENT -->
  2. <style>
  3. .error{
  4. color: red;
  5. }
  6. </style>
  7. <div id="content">
  8. <!-- widget grid -->
  9. <section id="widget-grid" widget-grid>
  10. <!-- START ROW -->
  11. <div class="row">
  12. <!-- NEW COL START -->
  13. <article class="col-sm-12 col-md-12 col-lg-12">
  14. <!-- Widget ID (each widget will need unique ID)-->
  15. <div jarvis-widget id="form-grid-widget"
  16. data-widget-colorbutton="false" data-widget-editbutton="false"
  17. data-widget-custombutton="false">
  18. <!-- widget div-->
  19. <div>
  20. <!-- widget content -->
  21. <div class="widget-body no-padding">
  22. <form id="user-form" class="smart-form ng-pristine ng-valid" data-validator-option="validateOptions" novalidate="novalidate">
  23. <header>
  24. <a href-void class="btn btn-default btn-xs" ng-click="back()">
  25. <i class="fa fa-angle-left"></i>&nbsp;返回&nbsp;
  26. </a>
  27. &nbsp;用户基本信息
  28. <span class="pull-right font-xs">带*的部分必须填写</span>
  29. </header>
  30. <fieldset>
  31. <div class="row">
  32. <section class="col col-4">
  33. <label class="label txt-bg-red">登录账号<span style="color: red;">*</span></label>
  34. <label class="input">
  35. <i class="icon-prepend fa fa-user"></i>
  36. <input type="text" name="username" ng-model="user.username"
  37. minlength="2" maxlength="20" required validUsername="true" />
  38. <b class="tooltip tooltip-bottom-right">2-20位字母、数字和下划线</b>
  39. </label>
  40. </section>
  41. <section class="col col-4">
  42. <label class="label">用户姓名<span style="color: red;">*</span></label>
  43. <label class="input">
  44. <i class="icon-prepend fa fa-user"></i>
  45. <input type="text" name="realName" ng-model="user.realName" maxlength="20" required>
  46. </label>
  47. </section>
  48. <section class="col col-4">
  49. <label class="label">用户别名<span style="color: red;">*</span></label>
  50. <label class="input">
  51. <i class="icon-prepend fa fa-user"></i>
  52. <input type="text" ng-model="user.userAlias" name="userAlias" maxlength="20" required>
  53. </label>
  54. </section>
  55. </div>
  56. <div class="row">
  57. <section class="col col-4">
  58. <label class="label">部门名称<span style="color: red;">*</span></label>
  59. <label class="input">
  60. <input id="verificationInput" type="text" ng-model="user.bmmc" name="bmmc" maxlength="100" required ng-blur="bmmcBlur()"/>
  61. </label>
  62. <div style="color:#D56161;display:none;font-size:11px" id="verificationContainer">不能填写“无”、“暂无”、“空”</div>
  63. </section>
  64. <section class="col col-4">
  65. <label class="label">身份证号码<span style="color: red;">*</span></label>
  66. <label class="input">
  67. <input type="text" ng-model="user.sfzhm" name="sfzhm" maxlength="18" validSfzhm="true" required validCard=true/>
  68. </label>
  69. </section>
  70. <section class="col col-4">
  71. <label class="label">入职日期<span style="color: red;">*</span></label>
  72. <label class="input">
  73. <input type="text" ng-model="user.rzrq" name="rzrq" id="rzrq" class="form-control" onClick="WdatePicker({lang:'zh-cn'})"
  74. required ng-blur="rzrqChange()" />
  75. </label>
  76. </section>
  77. </div>
  78. <div class="row">
  79. <section class="col col-4">
  80. <label class="label">性别<span style="color: red;">*</span></label>
  81. <label class="select">
  82. <select ng-model="user.sex" name="sex" ng-options="enum.enumid as enum.enumname for enum in dicDataList[5287]"
  83. class="form-control" required>
  84. <option value="">--请选择--</option>
  85. </select>
  86. <i></i>
  87. </label>
  88. </section>
  89. <section class="col col-4">
  90. <label class="label">岗位性质<span style="color: red;">*</span></label>
  91. <label class="select">
  92. <select ng-model="user.gwxz" name="gwxz" class="form-control" required>
  93. <option value="">--请选择--</option>
  94. <option value="11">在岗职工(长期)</option>
  95. <option value="12">在岗职工(临时)</option>
  96. <option value="20">其它从业人员</option>
  97. </select>
  98. <i></i>
  99. </label>
  100. </section>
  101. <section class="col col-4">
  102. <label class="label">在岗状态<span style="color: red;">*</span></label>
  103. <label class="select">
  104. <select ng-model="user.zgzt" name="zgzt" class="form-control" required>
  105. <option value="">--请选择--</option>
  106. <option value="01">在岗</option>
  107. <option value="02">已离职</option>
  108. </select>
  109. <i></i>
  110. </label>
  111. </section>
  112. </div>
  113. <div class="row">
  114. <section class="col col-4">
  115. <label class="label">所属组织<span style="color: red;">*</span></label>
  116. <multi-select-tree data-input-model="data2" data-default-label="请选择"
  117. multi-select="false" data-output-model="user.orgId"
  118. data-callback="selectOnly(item, selectedItems)">
  119. </multi-select-tree>
  120. </section>
  121. <section class="col col-4">
  122. <label class="label">库级角色(可多选)</label>
  123. <multi-select-tree data-input-model="data4" data-default-label="请选择"
  124. select-only-leafs="true"
  125. multi-select="true" data-output-model="userRole.roleIds"
  126. data-callback="selectOnly1Or2(item, selectedItems)">
  127. </multi-select-tree>
  128. </section>
  129. <section class="col col-4">
  130. <label class="label">出入库角色(可多选)</label>
  131. <multi-select-tree data-input-model="crkData4" data-default-label="请选择"
  132. select-only-leafs="true"
  133. multi-select="true" data-output-model="crkRole.crkRoleIds"
  134. data-callback="selectOnly1Or2(item, selectedItems)">
  135. </multi-select-tree>
  136. </section>
  137. </div>
  138. <div class="row">
  139. <section class="col col-4">
  140. <label class="label">离职日期</label>
  141. <label class="input">
  142. <input type="text" ng-model="user.lzrq" name="lzrq" class="form-control"
  143. onClick="WdatePicker({lang:'zh-cn',minDate:'#F{$dp.$D(\'rzrq\')}'})"/>
  144. </label>
  145. </section>
  146. <section class="col col-4">
  147. <label class="label">固定电话</label>
  148. <label class="input">
  149. <i class="icon-prepend fa fa-phone"></i>
  150. <input type="tel" ng-model="user.telphone" name="telphone" maxlength="30" validZjh=true />
  151. </label>
  152. </section>
  153. <section class="col col-4">
  154. <label class="label">手机号<span style="color: red;">*</span></label>
  155. <label class="input">
  156. <i class="icon-prepend fa fa-mobile-phone"></i>
  157. <input type="text" ng-model="user.mobile" name="mobile" validSjh=true required />
  158. </label>
  159. </section>
  160. </div>
  161. <div class="row" id="userPwd">
  162. <section class="col col-6">
  163. <label class="label">密码<span style="color: red;">*</span></label>
  164. <label class="input">
  165. <i class="icon-prepend fa fa-key"></i>
  166. <input type="password" id="newPassword" name="newPassword"
  167. ng-model="user.password" minlength="8" maxlength="20" required validUsePwd="true" />
  168. </label>
  169. </section>
  170. <section class="col col-6">
  171. <label class="label">确认密码<span style="color: red;">*</span></label>
  172. <label class="input">
  173. <i class="icon-prepend fa fa-key"></i>
  174. <input type="password" name="newPassword1" ng-model="newPassword1"
  175. minlength="8" maxlength="20" required />
  176. </label>
  177. </section>
  178. </div>
  179. <div class="row">
  180. <section class="col col-4">
  181. <label class="label">QQ号码</label>
  182. <label class="input">
  183. <i class="icon-prepend fa fa-qq"></i>
  184. <input type="text" ng-model="user.qqNumber" name="qqNumber" minlength="4" maxlength="12">
  185. </label>
  186. </section>
  187. <section class="col col-4">
  188. <label class="label">地址</label>
  189. <label class="input">
  190. <i class="icon-prepend fa fa-map-marker"></i>
  191. <input type="text" ng-model="user.address" name="address" maxlength="100" />
  192. </label>
  193. </section>
  194. <section class="col col-4">
  195. <label class="label">电子邮箱</label>
  196. <label class="input">
  197. <i class="icon-prepend fa fa-envelope-o"></i>
  198. <input type="input" ng-model="user.email" name="email" maxlength="60" validEmail=true />
  199. </label>
  200. </section>
  201. </div>
  202. <div class="row">
  203. <section class="col col-4">
  204. <label class="label">民族<span style="color: red;">*</span></label>
  205. <label class="select">
  206. <select ng-model="user.mz" name="mz" ng-options="enum.enumid as enum.enumname for enum in dicDataList[7176]"
  207. class="form-control" required>
  208. <option value="">--请选择--</option>
  209. </select>
  210. <i></i>
  211. </label>
  212. </section>
  213. <section class="col col-4">
  214. <label class="label">政治面貌<span style="color: red;">*</span></label>
  215. <label class="select">
  216. <select ng-model="user.zzmm" name="zzmm" ng-options="enum.enumid as enum.enumname for enum in dicDataList[1043]"
  217. class="form-control" required>
  218. <option value="">--请选择--</option>
  219. </select>
  220. <i></i>
  221. </label>
  222. </section>
  223. <section class="col col-4">
  224. <label class="label">人员类别<span style="color: red;">*</span></label>
  225. <label class="select">
  226. <select ng-model="user.rylb" name="rylb" ng-options="enum.enumid as enum.enumname for enum in dicDataList[6888]"
  227. class="form-control" required>
  228. <option value="">--请选择--</option>
  229. </select>
  230. <i></i>
  231. </label>
  232. </section>
  233. </div>
  234. <div class="row">
  235. <section class="col col-4">
  236. <label class="label">学历<span style="color: red;">*</span></label>
  237. <label class="select">
  238. <select ng-model="user.xl" name="xl" ng-options="enum.enumid as enum.enumname for enum in dicDataList[5294]"
  239. class="form-control" required>
  240. <option value="">--请选择--</option>
  241. </select>
  242. <i></i>
  243. </label>
  244. </section>
  245. <section class="col col-4">
  246. <label class="label">职务<span style="color: red;">*</span></label>
  247. <label class="input">
  248. <input type="text" ng-model="user.zw" name="zw" maxlength="30" required />
  249. <i></i>
  250. </label>
  251. </section>
  252. <section class="col col-4">
  253. <label class="label">职称<span style="color: red;">*</span></label>
  254. <label class="input">
  255. <input type="text" ng-model="user.zc" name="zc" maxlength="30" required />
  256. <i></i>
  257. </label>
  258. </section>
  259. </div>
  260. <div class="row">
  261. <section class="col col-6">
  262. <label class="label">用户头像</label>
  263. <div class="input input-file">
  264. <span class="button">
  265. <input type="file" nv-file-select="" uploader="uploader" accept="image/*">
  266. 浏览
  267. </span><input type="text" name="imgUrl" ng-model="user.imgUrl" placeholder="" readonly="">
  268. </div>
  269. </section>
  270. <section class="col col-6">
  271. <label class="label">电子签名</label>
  272. <div class="input input-file">
  273. <span class="button">
  274. <input type="file" nv-file-select="" uploader="uploader" accept="image/*">
  275. 浏览
  276. </span><input type="text" name="sigature" ng-model="user.sigature" placeholder="" readonly="">
  277. </div>
  278. </section>
  279. </div>
  280. <div class="row">
  281. <section class="col col-4">
  282. <label class="label">人员类型</label>
  283. <label class="select">
  284. <select ng-model="user.status" class="form-control">
  285. <option value="">--请选择--</option>
  286. <option value="1">库级领导</option>
  287. <option value="2">经营人员</option>
  288. <option value="3">仓储人员</option>
  289. <option value="4">质检人员</option>
  290. <option value="5">保卫人员</option>
  291. <option value="6">中转人员</option>
  292. </select>
  293. <i></i>
  294. </label>
  295. </section>
  296. <section class="col col-4">
  297. <label class="label">取得最高职称或职业资格时间</label>
  298. <label class="input">
  299. <input type="text" ng-model="user.qdzgzchzyzgsj" name="qdzgzchzyzgsj" class="form-control" onClick="WdatePicker({lang:'zh-cn'})" />
  300. </label>
  301. </section>
  302. <section class="col col-4">
  303. <label class="label">专业</label>
  304. <label class="input">
  305. <input type="text" ng-model="user.zy" name="zy" maxlength="30" />
  306. </label>
  307. </section>
  308. </div>
  309. </fieldset>
  310. <footer class="text-align-center">
  311. <button type="button" class="btn btn-primary" ng-click="save()">提交</button>
  312. <button type="button" class="btn btn-default" ng-click="back()">取消</button>
  313. </footer>
  314. </form>
  315. </div>
  316. </div>
  317. </article>
  318. </div>
  319. </section>
  320. </div>