Няма описание

WorkOrderTransfer.html 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="../../Script/Common/huayi.load.js"></script>
  6. <script src="../../Script/Common/huayi.config.js"></script>
  7. <link rel="stylesheet" href="../../js/webuploader/webuploader.css" />
  8. <link href="../../js/zTree/zTreeStyle.css" rel="stylesheet" />
  9. <link href="../../css/init.css" rel="stylesheet" />
  10. <link href="../css/Search.css" rel="stylesheet">
  11. <style>
  12. .my-skin .layui-layer-btn a {
  13. background-color: #00A4FF;
  14. border: 1px solid #00A4FF;
  15. color: #FFF;
  16. </style>
  17. <title>分配</title>
  18. <style type="text/css">
  19. #tsgl,
  20. #tszl,
  21. #cjgl,
  22. #cjzl {
  23. display: none;
  24. }
  25. zxcl input {
  26. width: 15%;
  27. }
  28. .addTree {
  29. height: 300px;
  30. }
  31. .cpkp input {
  32. width: 13%;
  33. height: 30px;
  34. }
  35. .cpkt {
  36. font-size: 18px;
  37. color: #000000;
  38. }
  39. #abc,
  40. #abcd,
  41. #abcde,
  42. #abcdef {
  43. display: none;
  44. }
  45. #btyyj {
  46. display: none;
  47. }
  48. .inpBox {
  49. border: 1px solid #cccccc;
  50. height: 26px;
  51. width: 99%;
  52. display: inline-block;
  53. position: relative;
  54. vertical-align: middle;
  55. position: absolute;
  56. left: 0px;
  57. top: 0px;
  58. z-index: 111;
  59. background: #FFFFFF;
  60. }
  61. .selDpart1 {
  62. position: absolute;
  63. left: 0px;
  64. top: 30px;
  65. z-index: 11111;
  66. width: 220px;
  67. line-height: 30px;
  68. background: #FFFFFF;
  69. display: none;
  70. }
  71. #sponsor {
  72. width: 218px;
  73. border: 1px solid #00a1cb;
  74. margin: 0;
  75. padding: 0;
  76. list-style: none;
  77. max-height: 212px;
  78. overflow-x: hidden;
  79. overflow-y: scroll;
  80. }
  81. #sponsor li {
  82. margin: 0;
  83. padding-left: 10px;
  84. width: 220px;
  85. height: 30px;
  86. line-height: 30px;
  87. list-style: none;
  88. }
  89. #sponsor li:hover {
  90. background: #00a1cb;
  91. }
  92. .addTree {
  93. background: #fff;
  94. position: absolute;
  95. width: 100%;
  96. border: 1px solid darkgrey;
  97. right: 0;
  98. top: 20px;
  99. display: none;
  100. z-index: 222;
  101. }
  102. .xl {
  103. display: inline-block;
  104. background: url(../../img/dropDown.png) no-repeat;
  105. height: 100%;
  106. background-position: center center;
  107. width: 20px;
  108. position: absolute;
  109. right: 0;
  110. top: 0px;
  111. cursor: pointer;
  112. }
  113. .ztree li {
  114. float: none;
  115. }
  116. .ztree li span {
  117. border: none;
  118. padding: 0;
  119. }
  120. .inps {
  121. width: 240px;
  122. height: 24px;
  123. outline: none;
  124. border: 0;
  125. border-image-width: 0;
  126. padding: 0;
  127. padding-left: 3px;
  128. }
  129. .Cleans {
  130. display: inline-block;
  131. width: 20px;
  132. position: absolute;
  133. right: 21px;
  134. top: 8px;
  135. display: none;
  136. }
  137. .Min-width {
  138. width: 150px;
  139. }
  140. .btn-default {
  141. background: #FFFFFF;
  142. color: #000000;
  143. }
  144. .shino {
  145. display: none;
  146. }
  147. .gcSelDiv,
  148. .isSelDiv {
  149. display: none;
  150. }
  151. #deal_table tr td {
  152. width: 32%;
  153. }
  154. </style>
  155. </head>
  156. <body>
  157. <div class="shade_content">
  158. <div class="dgxx_table size-13">
  159. <table id="deal_table" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
  160. <tr>
  161. <th>工单编号:</th>
  162. <td>
  163. <span style="display: none;" id="wid"></span>
  164. <a href="#" onclick="goSee()"><span id="cl_gdbh"></span></a>
  165. </td>
  166. <th>工单类型:</th>
  167. <td data-formatter="order" id="cl_gdlx">
  168. <!-- <span ></span> -->
  169. </td>
  170. </tr>
  171. <tr>
  172. <th>工单来源:</th>
  173. <td>
  174. <span id="xq_source" data-formatter="formatter"></span>
  175. </td>
  176. <th>部门:</th>
  177. <td colspan="3">
  178. <span id="cl_gdn"></span>
  179. </td>
  180. </tr>
  181. <tr>
  182. <th>客户姓名:</th>
  183. <td>
  184. <span id="cl_khxm"></span>
  185. </td>
  186. <th>客户电话:</th>
  187. <td>
  188. <span id="cl_khdh"></span>
  189. </td>
  190. </tr>
  191. <tr>
  192. <th>超时时限:</th>
  193. <td>
  194. <div class="chaishi noSampling">
  195. <input type="radio" name="yanq" disabled="disabled" value="12" checked="checked">12小时
  196. <input type="radio" name="yanq" value="24">24小时
  197. <input type="radio" name="yanq" value="36">36小时
  198. <input type="radio" name="yanq" value="48">48小时
  199. <input type="radio" name="yanq" value="72">72小时
  200. <input type="radio" name="yanq" value="120">5天
  201. <input type="radio" name="yanq" value="168">7天
  202. <input type="radio" name="yanq" value="192">8天
  203. <input type="radio" name="yanq" value="240">10天
  204. <input type="radio" name="yanq" value="264">11天
  205. <input type="radio" name="yanq" value="384">16天
  206. </div>
  207. <div class="chaishi Sampling">
  208. <input type="radio" name="yanq" value="720">1个月
  209. <input type="radio" name="yanq" value="2160">3个月
  210. </div>
  211. </td>
  212. <th class="residue" style="display: none;">剩余时间:</th>
  213. <td class="residueTime residue" style="display: none;"></td>
  214. <th style="display: none;" id="penli">其他时限:</th>
  215. <td style="display: none;" id="liset">
  216. <div id="" class="tex">
  217. <input type="number" class="form-control input-sm" id="shijian" placeholder="请输入其他时限">
  218. </div>
  219. </td>
  220. </tr>
  221. <tr>
  222. <th>是否短信提醒:</th>
  223. <td>
  224. <div id="duanxin">
  225. <input type="radio" name="sms" id="" value="0" />否
  226. <input type="radio" name="sms" id="" value="1" checked/>是
  227. </div>
  228. </td>
  229. </tr>
  230. <tr class="js">
  231. <th class="zy">外线指派部门:</th>
  232. <th class="pt" style="display: none;">指派部门:</th>
  233. <td style="position: relative;">
  234. <div class="inpBox">
  235. <input type="text" class="inps tree" autocomplete="off" id="clbmname" placeholder="请选择指派部门" onkeyup="darptSearch()" />
  236. <input type="hidden" class="inps " id="clbm" />
  237. <i class="Cleans fa fa-close"></i>
  238. <i class="xl"></i>
  239. <div class="addTree xlAdd">
  240. <ul id="zrbmtree" class="ztree"></ul>
  241. </div>
  242. </div>
  243. <div class="selDpart1">
  244. <ul id="sponsor">
  245. </ul>
  246. </div>
  247. </td>
  248. <th class="zy">外线接收人:</th>
  249. <th class="pt" style="display: none;">接收人:</th>
  250. <td style="position: relative;">
  251. <div class="inpBox" style="width: 99%;">
  252. <input type="text" class="inps select" readonly="readonly" id="clidname" placeholder="请选择接收人" />
  253. <input type="hidden" class="inps " id="clid" />
  254. <i class="xl"></i>
  255. <div class="xl_common">
  256. <ul class="xl_box clid"></ul>
  257. </div>
  258. </div>
  259. </td>
  260. </tr>
  261. <tr class="js commonjs">
  262. <th>内线指派部门:</th>
  263. <td style="position: relative;">
  264. <div class="inpBox" style="z-index: 100;">
  265. <input type="text" class="inps tree" autocomplete="off" id="clbmname2" placeholder="请选择指派部门" onkeyup="darptSearch()" />
  266. <input type="hidden" class="inps " id="clbm2" />
  267. <i class="Cleans fa fa-close"></i>
  268. <i class="xl"></i>
  269. <div class="addTree xlAdd">
  270. <ul id="zrbmtree2" class="ztree"></ul>
  271. </div>
  272. </div>
  273. <div class="selDpart1" style="z-index: 10000;">
  274. <ul id="sponsor">
  275. </ul>
  276. </div>
  277. </td>
  278. <th>内线接收人:</th>
  279. <td style="position: relative;">
  280. <div class="inpBox" style="width: 99%;z-index: 100;">
  281. <input type="text" class="inps select" readonly="readonly" id="clidname2" placeholder="请选择接收人" />
  282. <input type="hidden" class="inps " id="clid2" />
  283. <i class="xl"></i>
  284. <div class="xl_common">
  285. <ul class="xl_box clid2"></ul>
  286. </div>
  287. </div>
  288. </td>
  289. </tr>
  290. <tr>
  291. <!--<th class="isSelDiv">是否高层办理:</th>
  292. <td class="isSelDiv">
  293. <div id="gcDuanxin">
  294. <input type="radio" name="gcBanli" id="" value="0" checked="checked" />否
  295. <input type="radio" name="gcBanli" id="" value="1" />是
  296. </div>
  297. </td>-->
  298. <th class="gcSelDiv">接收人:</th>
  299. <td class="gcSelDiv">
  300. <select class="form-control" id="gcRevice" data-live-search="true">
  301. <option value="">请选择工单类型</option>
  302. </select>
  303. </td>
  304. </tr>
  305. <!--<tr>
  306. <th style="display: none;" class="fzmoney">返账金额</th>
  307. <td style="display: none;" class="fzmoney">
  308. <input class="form-control" id="fzje" type="text" placeholder="请输入返账金额" />
  309. </td>
  310. </tr>-->
  311. <tr>
  312. <th>处理结果:</th>
  313. <td colspan="3">
  314. <div>
  315. <textarea id="contres" class="form-control fiveVal" rows="2" style="width:100%; resize: none;"></textarea>
  316. </div>
  317. </td>
  318. </tr>
  319. <tr>
  320. <th>问题原因:</th>
  321. <td colspan="3">
  322. <div>
  323. <textarea id="cont1" class="form-control fiveVal" rows="2" style="width:100%; resize: none;"></textarea>
  324. </div>
  325. </td>
  326. </tr>
  327. <tr>
  328. <th>责任单位:</th>
  329. <td colspan="3">
  330. <div>
  331. <textarea id="cont2" class="form-control fiveVal" rows="2" style="width:100%; resize: none;"></textarea>
  332. </div>
  333. </td>
  334. </tr>
  335. <tr>
  336. <th>整改计划:</th>
  337. <td colspan="3">
  338. <div>
  339. <textarea id="cont3" class="form-control fiveVal" rows="2" style="width:100%; resize: none;"></textarea>
  340. </div>
  341. </td>
  342. </tr>
  343. <tr>
  344. <th>重要级别:</th>
  345. <td>
  346. <select class="form-control input-sm" id="level" style="height: 45px;">
  347. <option value="0">请选择重要级别</option>
  348. </select>
  349. </td>
  350. </tr>
  351. <tr>
  352. <th>指派说明:</th>
  353. <td colspan="3">
  354. <div>
  355. <textarea id="cont" class="form-control" name="" rows="3" style="width:100%; resize: none;"></textarea>
  356. </div>
  357. </td>
  358. </tr>
  359. <tr>
  360. <th>附件:</th>
  361. <td colspan="3">
  362. <div id="imgPicker" class="apply_forms_file">+</div>
  363. <p class="help-block text-warning" style="display:inline-block;">
  364. <!--<span id="fileNum">0</span>/6 每个文件大小不超过30M-->
  365. <span id="fileNum1"></span> 每个文件大小不超过30M
  366. </p>
  367. <ul id="fileList" class="file_imgs clearfix">
  368. </ul>
  369. </td>
  370. </tr>
  371. <tr>
  372. <th style="display: none;" class="fzmoney">返账金额</th>
  373. <td style="display: none;" class="fzmoney">
  374. <input class="form-control" id="fzje" type="text" placeholder="请输入返账金额" />
  375. </td>
  376. </tr>
  377. <tr>
  378. <th class="cph" style="display: none;">返厂车牌号:</th>
  379. <td class="cph" style="display: none;">
  380. <input id="fcnum" class="form-control" type="text" placeholder="请输入" />
  381. </td>
  382. <th class="cph" style="display: none;">返料费(元):</th>
  383. <td class="cph" style="display: none;">
  384. <input id="flfee" class="form-control" type="text" placeholder="请输入" />
  385. </td>
  386. </tr>
  387. <tr>
  388. <th class="cph" style="display: none;">装车费(元):</th>
  389. <td class="cph" style="display: none;">
  390. <input id="zcfee" class="form-control" type="text" placeholder="请输入" />
  391. </td>
  392. <th class="cph" style="display: none;">卸车费(元):</th>
  393. <td class="cph" style="display: none;">
  394. <input id="xcfee" class="form-control" type="text" placeholder="请输入" />
  395. </td>
  396. </tr>
  397. <tr>
  398. <th class="cph" style="display: none;">电话号码:</th>
  399. <td class="cph" style="display: none;">
  400. <input id="zxphone" class="form-control" type="text" placeholder="请输入" />
  401. </td>
  402. </tr>
  403. <table id="nnn" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%;display: none; ">
  404. <tr>
  405. <th colspan="4">复合肥质量管理科</th>
  406. </tr>
  407. <tr>
  408. <th>确认实收吨数:</th>
  409. <td>
  410. <div id="huifang">
  411. <input type="text" class="form-control" id="fanzha" placeholder="请输入实收吨数" />
  412. </div>
  413. </td>
  414. </tr>
  415. </table>
  416. <table id="hhh" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%;display: none; ">
  417. <tr>
  418. <th colspan="4">咨询销售内勤</th>
  419. </tr>
  420. <tr>
  421. <th>返账金额:</th>
  422. <td>
  423. <div id="huifdu">
  424. <!--<span id="fanzhaje"></span>-->
  425. <input type="text" class="form-control" id="fanzhaje" readonly="readonly" />
  426. </div>
  427. </td>
  428. </tr>
  429. <tr>
  430. <th>确认返账金额:</th>
  431. <td>
  432. <div id="huifdu">
  433. <input type="text" class="form-control" id="qrfanzha" placeholder="请输入金额" />
  434. </div>
  435. </td>
  436. </tr>
  437. </table>
  438. <table id="abc" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none;">
  439. <tr>
  440. <th colspan="4" id="bazaar">投诉、业务协办类市场管理科</th>
  441. </tr>
  442. <tr>
  443. <th>处理意见:</th>
  444. <td>
  445. <select class="form-control selectpicker" id="zhibao">
  446. <option value="">请选择</option>
  447. </select>
  448. </td>
  449. <th>索赔金额:</th>
  450. <td>
  451. <div id="">
  452. <input type="text" name="" id="suopeijin" value="" class="form-control selectpicker" placeholder="请输入金额/单位元" onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')" />
  453. </div>
  454. </td>
  455. </tr>
  456. </table>
  457. <table id="abcd" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none;">
  458. <tr>
  459. <th class="huayan" style="display: none;">化验是否合格:</th>
  460. <td class="huayan" style="display: none;">
  461. <div id="hua_yan">
  462. <input type="radio" name="radio" id="" value="0" checked="checked" />合格
  463. <input type="radio" name="radio" id="" value="1" />不合格
  464. </div>
  465. </td>
  466. </tr>
  467. </table>
  468. <table id="abcde" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none;">
  469. <tr>
  470. <th colspan="4" id="bazaar2">抽检类市场管理科</th>
  471. </tr>
  472. <tr>
  473. <th>抽检结果:</th>
  474. <td>
  475. <div id="choujian">
  476. <select class="form-control selectpicker" id="chou"></select>
  477. </div>
  478. </td>
  479. <th>自检结果:</th>
  480. <td>
  481. <input type="text" class="form-control" id="zijian" placeholder="请输入自检结果" />
  482. </td>
  483. </tr>
  484. <tr>
  485. <th>对应办理工作流单号:</th>
  486. <td>
  487. <input type="text" class="form-control" id="duiying" placeholder="请输入工作流单号" />
  488. </td>
  489. <th>确认返账金额:</th>
  490. <td>
  491. <input type="text" class="form-control" id="shenpi" placeholder="请输入返账金额" onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')" />
  492. </td>
  493. </tr>
  494. </table>
  495. <table id="abcdef" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; ">
  496. <tr>
  497. <th colspan="4" id="bazaar3">抽检类质量管理部</th>
  498. </tr>
  499. <tr>
  500. <th>是否备案:</th>
  501. <td>
  502. <div id="bianin">
  503. <input type="radio" name="beian" value="已备案" />已备案
  504. <input type="radio" name="beian" value="未备案" />未备案
  505. </div>
  506. </td>
  507. </tr>
  508. </table>
  509. </table>
  510. </div>
  511. <div class="cpk" style="display: none;text-align: center;">
  512. <p class="cpkt">成品库</p>
  513. <p class="cpkp">
  514. <span>物料编码</span>
  515. <input type="text" class="code" />
  516. <span>产品名称</span>
  517. <input type="text" class="name1" />
  518. <span>配方</span>
  519. <input type="text" class="pf" />
  520. <span>规格</span>
  521. <input type="text" class="guige" />
  522. <span>实收返厂数量(吨)</span>
  523. <input type="number" class="num" />
  524. <button class="btn btn-primary btn-sm" id="onadd">增加</button>
  525. </p>
  526. </div>
  527. <!--<div id="zxcl" class="cph" style="margin: 0 1%;display: none;">
  528. </div>-->
  529. <div class="clearfix wh_btn">
  530. <input type="button" value="提交工单" class="btn btn-primary btn-sm" id="clgd" />
  531. <input type="button" value="暂存工单" class="btn btn-primary btn-sm" id="zcgd" />
  532. </div>
  533. </div>
  534. <script src="../../js/autosize/autosize.js"></script>
  535. <script src="../../js/zTree/jquery.ztree.core.js"></script>
  536. <script src="../../js/webuploader/webuploader.min.js"></script>
  537. <script src="./js/WorkOrderTransfer.js?v=0.1"></script>
  538. <script>
  539. $("#onadd").click(function() {
  540. $(".cpk").append('<p class="cpkp"><span>物料编码</span><input style="margin:0 3px" type="text" class="code"/><span>产品名称</span><input style="margin:0 3px" type="text" class="name1"/><span>配方</span><input style="margin:0 3px" type="text" class="pf"/><span>规格</span><input style="margin:0 3px" type="text" class="guige"/><span>实收返厂数量(吨)</span><input style="margin:0 3px" type="number" class="num"/><button class="btn btn-primary btn-sm" onclick="ondel(this)">移除</button></p>')
  541. })
  542. function ondel(obj) {
  543. $(obj).parent().remove()
  544. }
  545. function goSee() {
  546. var tourl = 'orderDetails.html?oid=' + $("#wid").text();
  547. window.open(tourl)
  548. }
  549. $('.fiveVal').on('focus',function(){
  550. var this_ = $(this);
  551. this_.val('')
  552. })
  553. $(document).on('blur', '.code', function() {
  554. console.log($(this).val())
  555. var this_ = $(this);
  556. $.getJSON(huayi.config.callcenter_url + "MaterialManage/GetCodeModel", {
  557. code: $(this).val(),
  558. token: $.cookie("token")
  559. }, function(data) {
  560. if(data.state.toLowerCase() == "success") {
  561. data = data.data;
  562. if(data) {
  563. this_.parent().find(".name1").val(data.model.F_MaterialName); //物料名称
  564. this_.parent().find(".pf").val(data.model.F_Model); //型号
  565. this_.parent().find(".guige").val(data.model.F_Specs); //规格
  566. } else {
  567. this_.parent().find(".name1").val(''); //物料名称
  568. this_.parent().find(".pf").val(''); //型号
  569. this_.parent().find(".guige").val(''); //规格
  570. }
  571. }
  572. });
  573. });
  574. </script>
  575. </body>
  576. </html>