otherform.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. <div class="layui-fluid">
  2. <div class="layui-row layui-col-space15">
  3. <div class="layui-col-md12">
  4. <div class="layui-card">
  5. <div class="layui-card-header">招聘信息</div>
  6. <div class="layui-card-body" pad15>
  7. <div class="layui-form layui-form-pane" lay-filter="LAY-demand-demandform-edit">
  8. <input type="hidden" name="id" value="{$demand.id}">
  9. <div class="layui-form-item">
  10. <label class="layui-form-label"><span style="color:#f90c05;">*</span>劳务公司</label>
  11. <div class="layui-input-block">
  12. <select name="workerid" lay-search lay-verify="required">
  13. <option value="">请选择劳务公司(可搜索)...</option>
  14. {volist name="workerlist" id="vo"}
  15. <option value="{$vo.id}" {$demand.workerid==$vo.id ? 'selected' : '' }>{$vo.title}</option>
  16. {/volist}
  17. </select>
  18. </div>
  19. </div>
  20. <div class="layui-form-item">
  21. <label class="layui-form-label"><span style="color:#f90c05;">*</span>订单标题</label>
  22. <div class="layui-input-block">
  23. <input type="text" name="title" value="{$demand.title}" lay-verify="required" placeholder="请输入..."
  24. autocomplete="off" class="layui-input">
  25. </div>
  26. </div>
  27. <div class="layui-form-item">
  28. <label class="layui-form-label"><span style="color:#f90c05;">*</span>公司名称</label>
  29. <div class="layui-input-block">
  30. <input type="text" name="company_name" value="{$demand.company_name}" lay-verify="required" placeholder="请输入..."
  31. autocomplete="off" class="layui-input">
  32. </div>
  33. </div>
  34. <div class="layui-form-item">
  35. <label class="layui-form-label"><span style="color:#f90c05;">*</span>公司联系人</label>
  36. <div class="layui-input-block">
  37. <input type="text" name="company_contact" value="{$demand.company_contact}" lay-verify="required" placeholder="请输入..."
  38. autocomplete="off" class="layui-input">
  39. </div>
  40. </div>
  41. <div class="layui-form-item">
  42. <label class="layui-form-label"><span style="color:#f90c05;">*</span>公司电话</label>
  43. <div class="layui-input-block">
  44. <input type="text" name="company_mobile" value="{$demand.company_mobile}" lay-verify="required" placeholder="请输入..."
  45. autocomplete="off" class="layui-input">
  46. </div>
  47. </div>
  48. <div class="layui-form-item" id="video-box">
  49. <input type="hidden" id="old_video" value="{$demand.video}" name="old_video"/>
  50. <input type="hidden" id="new_video" value="" name="new_video"/>
  51. <label class="layui-form-label">小视频</label>
  52. <div class="layui-input-inline">
  53. <button type="submit" class="layui-btn" id="add_video" ><i class="layui-icon"></i>选择视频</button>
  54. </div>
  55. <video id="videoid" width="320" height="240" controls="controls" >
  56. <source id="show_video" src="{$demand.video}" type="video/mp4" />
  57. </video>
  58. </div>
  59. <div class="layui-form-item">
  60. <label class="layui-form-label"><span style="color:#f90c05;">*</span>岗位类型</label>
  61. <div class="layui-input-block">
  62. <select name="cateid" lay-search lay-verify="required">
  63. <option value="">请选择岗位类型(可搜索)...</option>
  64. {volist name="catelist" id="vo"}
  65. <option value="{$vo.id}" {$demand.cateid==$vo.id ? 'selected' : '' }>{$vo.title}</option>
  66. {/volist}
  67. </select>
  68. </div>
  69. </div>
  70. <div class="layui-form-item" pane>
  71. <label class="layui-form-label">类型</label>
  72. <div class="layui-input-block">
  73. <input type="radio" name="type" value="1" title="代招" {eq name="demand.type|default=1" value="1"}checked{/eq}>
  74. <input type="radio" name="type" value="2" title="劳务派遣" {eq name="demand.type" value="2"}checked{/eq}>
  75. </div>
  76. </div>
  77. <div class="layui-form-item" id="LAY-demand-demandform-edit-areapicker">
  78. <label class="layui-form-label"><span style="color:#f90c05;">*</span>省市区</label>
  79. <div class="layui-input-inline">
  80. <select name="province" class="province-selector" data-value="{$demand.province}" lay-filter="province-2"
  81. lay-verify="required">
  82. <option value="">请选择省</option>
  83. </select>
  84. </div>
  85. <div class="layui-input-inline">
  86. <select name="city" class="city-selector" data-value="{$demand.city}" lay-filter="city-2" lay-verify="required">
  87. <option value="">请选择市</option>
  88. </select>
  89. </div>
  90. <div class="layui-input-inline">
  91. <select name="district" class="district-selector" data-value="{$demand.district}" lay-filter="district-2"
  92. lay-verify="required">
  93. <option value="">请选择区</option>
  94. </select>
  95. </div>
  96. </div>
  97. <div class="layui-form-item">
  98. <label class="layui-form-label"><span style="color:#f90c05;">*</span>招工年龄</label>
  99. <div class="layui-input-block">
  100. <input type="text" name="agegroup" value="{$demand.agegroup}" lay-verify="required" placeholder="请输入..."
  101. autocomplete="off" class="layui-input">
  102. </div>
  103. </div>
  104. <div class="layui-form-item">
  105. <label class="layui-form-label">招聘标签</label>
  106. <div class="layui-input-block">
  107. <div class="tags" id="tags">
  108. <input type="text" name="" id="inputTags" placeholder="回车生成标签" autocomplete="off">
  109. </div>
  110. </div>
  111. </div>
  112. <div class="layui-form-item">
  113. <label class="layui-form-label"><span style="color:#f90c05;">*</span>截止日期</label>
  114. <div class="layui-input-block">
  115. <input type="text" name="enddate" id="enddate" value="{$demand.enddate}" lay-verify="required" placeholder="请选择..."
  116. autocomplete="off" class="layui-input">
  117. </div>
  118. </div>
  119. <div class="layui-form-item">
  120. <label class="layui-form-label">岗位要求</label>
  121. <div class="layui-input-block">
  122. <textarea name="requirement" placeholder="请输入..." rows="6" class="layui-textarea">{$demand.requirement}</textarea>
  123. </div>
  124. </div>
  125. <div class="layui-form-item">
  126. <label class="layui-form-label">企业简介</label>
  127. <div class="layui-input-block">
  128. <textarea name="comdetails" placeholder="请输入..." rows="6" class="layui-textarea">{$demand.comdetails}</textarea>
  129. </div>
  130. </div>
  131. <div class="layui-form-item" pane>
  132. <label class="layui-form-label">薪资类型</label>
  133. <div class="layui-input-block">
  134. <input type="radio" name="wtype" value="1" title="按月" {eq name="demand.wtype|default=1" value="1"}checked{/eq}>
  135. <input type="radio" name="wtype" value="2" title="按时" {eq name="demand.wtype" value="2"}checked{/eq}>
  136. <input type="radio" name="wtype" value="3" title="按件" {eq name="demand.wtype" value="3"}checked{/eq}>
  137. <input type="radio" name="wtype" value="4" title="按项目" {eq name="demand.wtype" value="4"}checked{/eq}>
  138. <input type="radio" name="wtype" value="5" title="其他" {eq name="demand.wtype" value="5"}checked{/eq}>
  139. </div>
  140. </div>
  141. <div class="layui-form-item">
  142. <label class="layui-form-label">基本工资</label>
  143. <div class="layui-input-block">
  144. <input type="text" name="bwagall" value="{$demand.bwagall}" placeholder="请输入...."
  145. autocomplete="off" class="layui-input">
  146. </div>
  147. </div>
  148. <div class="layui-form-item">
  149. <label class="layui-form-label">综合月薪</label>
  150. <div class="layui-input-block">
  151. <input type="text" name="zwagall" value="{$demand.zwagall}" placeholder="请输入...."
  152. autocomplete="off" class="layui-input">
  153. </div>
  154. </div>
  155. <div class="layui-form-item" pane>
  156. <label class="layui-form-label">返费类型</label>
  157. <div class="layui-input-block">
  158. <input type="radio" name="ftype" value="1" title="一次性" {eq name="demand.ftype|default=1" value="1"}checked{/eq}>
  159. <input type="radio" name="ftype" value="2" title="小时工" {eq name="demand.ftype" value="2"}checked{/eq}>
  160. <input type="radio" name="ftype" value="3" title="管理费" {eq name="demand.ftype" value="3"}checked{/eq}>
  161. <input type="radio" name="ftype" value="4" title="其他" {eq name="demand.ftype" value="4"}checked{/eq}>
  162. </div>
  163. </div>
  164. <div class="layui-form-item">
  165. <label class="layui-form-label"><span style="color:#f90c05;">*</span>供人方利润</label>
  166. <div class="layui-input-block">
  167. <input type="text" name="fwagall" value="{$demand.fwagall}" lay-verify="required" placeholder="请输入...."
  168. autocomplete="off" class="layui-input">
  169. </div>
  170. </div>
  171. <div class="layui-form-item">
  172. <label class="layui-form-label"><span style="color:#f90c05;">*</span>咨询电话</label>
  173. <div class="layui-input-block">
  174. <input type="text" name="telephone" value="{$demand.telephone}" lay-verify="required" placeholder="请输入..." autocomplete="off" class="layui-input">
  175. </div>
  176. </div>
  177. <div class="layui-form-item">
  178. <label class="layui-form-label">补充说明</label>
  179. <div class="layui-input-block">
  180. <textarea name="remark" placeholder="请输入..." class="layui-textarea">{$demand.remark}</textarea>
  181. </div>
  182. </div>
  183. <div class="layui-form-item" pane>
  184. <label class="layui-form-label">状态</label>
  185. <div class="layui-input-block">
  186. <input type="radio" name="status" value="1" title="待交接" {eq name="demand.status|default=1" value="1"}checked{/eq}>
  187. <input type="radio" name="status" value="2" title="部分交接" {eq name="demand.status" value="2"}checked{/eq}>
  188. <input type="radio" name="status" value="3" title="已完成" {eq name="demand.status" value="3"}checked{/eq}>
  189. <input type="radio" name="status" value="4" title="异常" {eq name="demand.status" value="4"}checked{/eq}>
  190. </div>
  191. </div>
  192. <div class="layui-form-item">
  193. <label class="layui-form-label">推荐</label>
  194. <div class="layui-input-block">
  195. <select name="priority">
  196. <option value="0" {$demand.priority===0 ? 'selected' : '' }>不推荐</option>
  197. <option value="1" {$demand.priority===1 ? 'selected' : '' }>推荐一</option>
  198. <option value="2" {$demand.priority===2 ? 'selected' : '' }>推荐二</option>
  199. <option value="3" {$demand.priority===3 ? 'selected' : '' }>推荐三</option>
  200. <option value="4" {$demand.priority===4 ? 'selected' : '' }>推荐四</option>
  201. <option value="5" {$demand.priority===5 ? 'selected' : '' }>推荐五</option>
  202. <option value="6" {$demand.priority===6 ? 'selected' : '' }>推荐六</option>
  203. <option value="7" {$demand.priority===7 ? 'selected' : '' }>推荐七</option>
  204. <option value="8" {$demand.priority===8 ? 'selected' : '' }>推荐八</option>
  205. <option value="9" {$demand.priority===9 ? 'selected' : '' }>推荐九</option>
  206. </select>
  207. <div class="layui-form-mid layui-word-aux">推荐值值越大越靠前</div>
  208. </div>
  209. </div>
  210. <div class="layui-form-item">
  211. <label class="layui-form-label"><span style="color:#f90c05;">*</span>更新时间</label>
  212. <div class="layui-input-block">
  213. <input type="text" name="updatetime" id="updatetime" value="{$demand.updatetime}" lay-verify="required"
  214. placeholder="请选择..." autocomplete="off" class="layui-input">
  215. </div>
  216. </div>
  217. <div class="layui-form-item">
  218. <label class="layui-form-label"><span style="color:#f90c05;">*</span>创建时间</label>
  219. <div class="layui-input-block">
  220. <input type="text" name="createtime" id="createtime" value="{$demand.createtime}" lay-verify="required"
  221. placeholder="请选择..." autocomplete="off" class="layui-input">
  222. </div>
  223. </div>
  224. <div class="layui-form-item">
  225. <div class="layui-input-block">
  226. <input type="button" lay-submit lay-filter="LAY-demand-demandform-edit-submit" value="确认提交" class="layui-btn">
  227. </div>
  228. </div>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. <script>
  236. layui.config({
  237. base: '/static/echoui/' //静态资源所在路径
  238. }).extend({
  239. index: 'lib/index' //主入口模块
  240. }).use(['index', 'form', 'set', 'layedit', 'laydate', 'upload', 'inputTags', 'layarea'], function() {
  241. var $ = layui.$,
  242. setter = layui.setter,
  243. admin = layui.admin,
  244. layedit = layui.layedit,
  245. laydate = layui.laydate,
  246. form = layui.form,
  247. inputTags = layui.inputTags,
  248. upload = layui.upload,
  249. layarea = layui.layarea;
  250. var video_time;
  251. form.render();
  252. inputTags.render({
  253. elem: '#inputTags',
  254. content: {:json_encode($demand.tags)} == null ? [] : {:json_encode($demand.tags)},
  255. aldaBtn: true,
  256. count: 6,
  257. done: function(value) {}
  258. });
  259. layarea.render({
  260. elem: '#LAY-demand-demandform-edit-areapicker',
  261. data: {
  262. province: '福建省',
  263. city: '福州市',
  264. district: '马尾区',
  265. }
  266. });
  267. laydate.render({
  268. elem: '#enddate',
  269. type: 'date',
  270. format: 'yyyy-MM-dd'
  271. });
  272. laydate.render({
  273. elem: '#updatetime',
  274. type: 'datetime'
  275. });
  276. laydate.render({
  277. elem: '#createtime',
  278. type: 'datetime'
  279. });
  280. upload.render({
  281. elem: '#add_video'
  282. ,url: setter.baseWorkerUrl + 'comjobs/upload_video' //改成您自己的上传接口
  283. ,accept: 'video' //视频
  284. ,done: function(res){
  285. var src = res.data.src;
  286. sourceDom = $("<source src=\""+ src +"\">");
  287. // $("#video-box video").append(sourceDom);
  288. document.getElementById("videoid").src=src ;
  289. document.getElementById("videoid").play();
  290. var timer = setTimeout(function(){
  291. video_time = document.getElementById("videoid").duration;//视频时长
  292. if(Math.ceil(video_time) > 15){
  293. layer.msg('上传视频不能超过15秒', {icon: 2});
  294. $("#add_video").css('cssText','background-color:#e81313');
  295. }else{
  296. layer.msg('上传成功');
  297. $("#add_video").css('cssText','background-color:#009688');
  298. $("#new_video").val(src);
  299. }
  300. clearTimeout(timer);
  301. },1000);
  302. }
  303. });
  304. form.on('submit(LAY-demand-demandform-edit-submit)', function(obj) {
  305. var index = parent.layer.getFrameIndex(window.name);
  306. admin.req({
  307. url: setter.baseWorkerUrl + 'demand/editother',
  308. data: obj.field,
  309. type: 'post',
  310. done: function(res) {
  311. layer.msg("提交成功", {
  312. icon: 1
  313. });
  314. parent.layui.table.reload('LAY-demand-demandlist-table'); //重载表格
  315. parent.layer.close(index);
  316. }
  317. });
  318. });
  319. });
  320. </script>