Нет описания

WorkOrderTransfer.html 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  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="264">11天
  203. <input type="radio" name="yanq" value="384">16天
  204. </div>
  205. <div class="chaishi Sampling">
  206. <input type="radio" name="yanq" value="720">1个月
  207. <input type="radio" name="yanq" value="2160">3个月
  208. </div>
  209. </td>
  210. <th class="residue" style="display: none;">剩余时间:</th>
  211. <td class="residueTime residue" style="display: none;"></td>
  212. <th style="display: none;" id="penli">其他时限:</th>
  213. <td style="display: none;" id="liset">
  214. <div id="" class="tex">
  215. <input type="number" class="form-control input-sm" id="shijian" placeholder="请输入其他时限">
  216. </div>
  217. </td>
  218. </tr>
  219. <tr>
  220. <th>是否短信提醒:</th>
  221. <td>
  222. <div id="duanxin">
  223. <input type="radio" name="sms" id="" value="0" />否
  224. <input type="radio" name="sms" id="" value="1" checked/>是
  225. </div>
  226. </td>
  227. </tr>
  228. <tr class="js">
  229. <th class="zy">外线指派部门:</th>
  230. <th class="pt" style="display: none;">指派部门:</th>
  231. <td style="position: relative;">
  232. <div class="inpBox">
  233. <input type="text" class="inps tree" autocomplete="off" id="clbmname" placeholder="请选择指派部门" onkeyup="darptSearch()" />
  234. <input type="hidden" class="inps " id="clbm" />
  235. <i class="Cleans fa fa-close"></i>
  236. <i class="xl"></i>
  237. <div class="addTree xlAdd">
  238. <ul id="zrbmtree" class="ztree"></ul>
  239. </div>
  240. </div>
  241. <div class="selDpart1">
  242. <ul id="sponsor">
  243. </ul>
  244. </div>
  245. </td>
  246. <th class="zy">外线接收人:</th>
  247. <th class="pt" style="display: none;">接收人:</th>
  248. <td style="position: relative;">
  249. <div class="inpBox" style="width: 99%;">
  250. <input type="text" class="inps select" readonly="readonly" id="clidname" placeholder="请选择接收人" />
  251. <input type="hidden" class="inps " id="clid" />
  252. <i class="xl"></i>
  253. <div class="xl_common">
  254. <ul class="xl_box clid"></ul>
  255. </div>
  256. </div>
  257. </td>
  258. </tr>
  259. <tr class="js commonjs">
  260. <th>内线指派部门:</th>
  261. <td style="position: relative;">
  262. <div class="inpBox" style="z-index: 100;">
  263. <input type="text" class="inps tree" autocomplete="off" id="clbmname2" placeholder="请选择指派部门" onkeyup="darptSearch()" />
  264. <input type="hidden" class="inps " id="clbm2" />
  265. <i class="Cleans fa fa-close"></i>
  266. <i class="xl"></i>
  267. <div class="addTree xlAdd">
  268. <ul id="zrbmtree2" class="ztree"></ul>
  269. </div>
  270. </div>
  271. <div class="selDpart1" style="z-index: 10000;">
  272. <ul id="sponsor">
  273. </ul>
  274. </div>
  275. </td>
  276. <th>内线接收人:</th>
  277. <td style="position: relative;">
  278. <div class="inpBox" style="width: 99%;z-index: 100;">
  279. <input type="text" class="inps select" readonly="readonly" id="clidname2" placeholder="请选择接收人" />
  280. <input type="hidden" class="inps " id="clid2" />
  281. <i class="xl"></i>
  282. <div class="xl_common">
  283. <ul class="xl_box clid2"></ul>
  284. </div>
  285. </div>
  286. </td>
  287. </tr>
  288. <tr>
  289. <!--<th class="isSelDiv">是否高层办理:</th>
  290. <td class="isSelDiv">
  291. <div id="gcDuanxin">
  292. <input type="radio" name="gcBanli" id="" value="0" checked="checked" />否
  293. <input type="radio" name="gcBanli" id="" value="1" />是
  294. </div>
  295. </td>-->
  296. <th class="gcSelDiv">接收人:</th>
  297. <td class="gcSelDiv">
  298. <select class="form-control" id="gcRevice" data-live-search="true">
  299. <option value="">请选择工单类型</option>
  300. </select>
  301. </td>
  302. </tr>
  303. <!--<tr>
  304. <th style="display: none;" class="fzmoney">返账金额</th>
  305. <td style="display: none;" class="fzmoney">
  306. <input class="form-control" id="fzje" type="text" placeholder="请输入返账金额" />
  307. </td>
  308. </tr>-->
  309. <tr>
  310. <th>处理结果:</th>
  311. <td colspan="3">
  312. <div>
  313. <textarea id="contres" class="form-control" rows="2" style="width:100%; resize: none;" placeholder="请输入处理结果"></textarea>
  314. </div>
  315. </td>
  316. </tr>
  317. <tr>
  318. <th>问题原因:</th>
  319. <td colspan="3">
  320. <div>
  321. <textarea id="cont1" class="form-control" rows="2" style="width:100%; resize: none;" placeholder="请输入问题原因"></textarea>
  322. </div>
  323. </td>
  324. </tr>
  325. <tr>
  326. <th>责任单位:</th>
  327. <td colspan="3">
  328. <div>
  329. <textarea id="cont2" class="form-control" rows="2" style="width:100%; resize: none;" placeholder="请输入责任单位"></textarea>
  330. </div>
  331. </td>
  332. </tr>
  333. <tr>
  334. <th>整改计划:</th>
  335. <td colspan="3">
  336. <div>
  337. <textarea id="cont3" class="form-control" rows="2" style="width:100%; resize: none;" placeholder="请输入整改计划"></textarea>
  338. </div>
  339. </td>
  340. </tr>
  341. <tr>
  342. <th>重要级别:</th>
  343. <td>
  344. <select class="form-control input-sm " id="level" style="height: 45px;">
  345. <option value="0">请选择重要级别</option>
  346. </select>
  347. </td>
  348. </tr>
  349. <tr>
  350. <th>指派说明:</th>
  351. <td colspan="3">
  352. <div>
  353. <textarea id="cont" class="form-control" name="" rows="3" style="width:100%; resize: none;"></textarea>
  354. </div>
  355. </td>
  356. </tr>
  357. <tr>
  358. <th>附件:</th>
  359. <td colspan="3">
  360. <div id="imgPicker" class="apply_forms_file">+</div>
  361. <p class="help-block text-warning" style="display:inline-block;">
  362. <!--<span id="fileNum">0</span>/6 每个文件大小不超过30M-->
  363. <span id="fileNum1"></span> 每个文件大小不超过30M
  364. </p>
  365. <ul id="fileList" class="file_imgs clearfix">
  366. </ul>
  367. </td>
  368. </tr>
  369. <tr>
  370. <th style="display: none;" class="fzmoney">返账金额</th>
  371. <td style="display: none;" class="fzmoney">
  372. <input class="form-control" id="fzje" type="text" placeholder="请输入返账金额" />
  373. </td>
  374. </tr>
  375. <tr>
  376. <th class="cph" style="display: none;">返厂车牌号:</th>
  377. <td class="cph" style="display: none;">
  378. <input id="fcnum" class="form-control" type="text" placeholder="请输入" />
  379. </td>
  380. <th class="cph" style="display: none;">返料费(元):</th>
  381. <td class="cph" style="display: none;">
  382. <input id="flfee" class="form-control" type="text" placeholder="请输入" />
  383. </td>
  384. </tr>
  385. <tr>
  386. <th class="cph" style="display: none;">装车费(元):</th>
  387. <td class="cph" style="display: none;">
  388. <input id="zcfee" class="form-control" type="text" placeholder="请输入" />
  389. </td>
  390. <th class="cph" style="display: none;">卸车费(元):</th>
  391. <td class="cph" style="display: none;">
  392. <input id="xcfee" class="form-control" type="text" placeholder="请输入" />
  393. </td>
  394. </tr>
  395. <tr>
  396. <th class="cph" style="display: none;">电话号码:</th>
  397. <td class="cph" style="display: none;">
  398. <input id="zxphone" class="form-control" type="text" placeholder="请输入" />
  399. </td>
  400. </tr>
  401. <table id="nnn" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%;display: none; ">
  402. <tr>
  403. <th colspan="4">复合肥质量管理科</th>
  404. </tr>
  405. <tr>
  406. <th>确认实收吨数:</th>
  407. <td>
  408. <div id="huifang">
  409. <input type="text" class="form-control" id="fanzha" placeholder="请输入实收吨数" />
  410. </div>
  411. </td>
  412. </tr>
  413. </table>
  414. <table id="hhh" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%;display: none; ">
  415. <tr>
  416. <th colspan="4">咨询销售内勤</th>
  417. </tr>
  418. <tr>
  419. <th>返账金额:</th>
  420. <td>
  421. <div id="huifdu">
  422. <!--<span id="fanzhaje"></span>-->
  423. <input type="text" class="form-control" id="fanzhaje" readonly="readonly" />
  424. </div>
  425. </td>
  426. </tr>
  427. <tr>
  428. <th>确认返账金额:</th>
  429. <td>
  430. <div id="huifdu">
  431. <input type="text" class="form-control" id="qrfanzha" placeholder="请输入金额" />
  432. </div>
  433. </td>
  434. </tr>
  435. </table>
  436. <!--<table id="ddd" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none;">
  437. <tr>
  438. <th colspan="4">咨询类质量管理部</th>
  439. </tr>
  440. <tr>
  441. <th>索赔金额:</th>
  442. <td>
  443. <input type="text" class="form-control selectpicker" id="suopei" placeholder="单位:元" onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')" />
  444. </td>
  445. </tr>
  446. <tr>
  447. <th>补偿方式:</th>
  448. <td>
  449. <div id="buchang">
  450. <input type="radio" name="buchang" value="实物" checked="checked">实物
  451. <input type="radio" name="buchang" value="钱款">钱款
  452. </div>
  453. </td>
  454. <th style="display: none;" class="mmm">补偿钱款:</th>
  455. <td style="display: none;" class="mmm">
  456. <input type="text" name="" id="butong" value="" class="form-control selectpicker" onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')" placeholder="请输入补偿钱款" />
  457. </td>
  458. </tr>
  459. <tr>
  460. <th>改进要求:</th>
  461. <td>
  462. <input type="text" id="yaoqiu" value="" placeholder="请输入改进要求" class="form-control selectpicker" />
  463. </td>
  464. <th>对应办理工作流单号:</th>
  465. <td>
  466. <input type="text" id="danhao" value="" placeholder="请输入工作流单号" class="form-control selectpicker">
  467. </td>
  468. </tr>
  469. </table>-->
  470. <table id="abc" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none;">
  471. <tr>
  472. <th colspan="4" id="bazaar">投诉、业务协办类市场管理科</th>
  473. </tr>
  474. <tr>
  475. <th>处理意见:</th>
  476. <td>
  477. <select class="form-control selectpicker" id="zhibao">
  478. <option value="">请选择</option>
  479. </select>
  480. </td>
  481. <th>索赔金额:</th>
  482. <td>
  483. <div id="">
  484. <input type="text" name="" id="suopeijin" value="" class="form-control selectpicker" placeholder="请输入金额/单位元" onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')" />
  485. </div>
  486. </td>
  487. </tr>
  488. </table>
  489. <table id="abcd" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none;">
  490. <tr>
  491. <th class="huayan" style="display: none;">化验是否合格:</th>
  492. <td class="huayan" style="display: none;">
  493. <div id="hua_yan">
  494. <input type="radio" name="radio" id="" value="0" checked="checked" />合格
  495. <input type="radio" name="radio" id="" value="1" />不合格
  496. </div>
  497. </td>
  498. </tr>
  499. </table>
  500. <table id="abcde" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none;">
  501. <tr>
  502. <th colspan="4" id="bazaar2">抽检类市场管理科</th>
  503. </tr>
  504. <tr>
  505. <th>抽检结果:</th>
  506. <td>
  507. <div id="choujian">
  508. <select class="form-control selectpicker" id="chou"></select>
  509. </div>
  510. </td>
  511. <th>自检结果:</th>
  512. <td>
  513. <input type="text" class="form-control" id="zijian" placeholder="请输入自检结果" />
  514. </td>
  515. </tr>
  516. <tr>
  517. <th>对应办理工作流单号:</th>
  518. <td>
  519. <input type="text" class="form-control" id="duiying" placeholder="请输入工作流单号" />
  520. </td>
  521. <th>确认返账金额:</th>
  522. <td>
  523. <input type="text" class="form-control" id="shenpi" placeholder="请输入返账金额" onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')" />
  524. </td>
  525. </tr>
  526. </table>
  527. <table id="abcdef" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; ">
  528. <tr>
  529. <th colspan="4" id="bazaar3">抽检类质量管理部</th>
  530. </tr>
  531. <tr>
  532. <th>是否备案:</th>
  533. <td>
  534. <div id="bianin">
  535. <input type="radio" name="beian" value="已备案" />已备案
  536. <input type="radio" name="beian" value="未备案" />未备案
  537. </div>
  538. </td>
  539. </tr>
  540. </table>
  541. </table>
  542. </div>
  543. <div class="cpk" style="display: none;text-align: center;">
  544. <p class="cpkt">成品库</p>
  545. <p class="cpkp">
  546. <span>物料编码</span>
  547. <input type="text" class="code" />
  548. <span>产品名称</span>
  549. <input type="text" class="name1" />
  550. <span>配方</span>
  551. <input type="text" class="pf" />
  552. <span>规格</span>
  553. <input type="text" class="guige" />
  554. <span>实收返厂数量(吨)</span>
  555. <input type="number" class="num" />
  556. <button class="btn btn-primary btn-sm" id="onadd">增加</button>
  557. </p>
  558. </div>
  559. <!--<div id="zxcl" class="cph" style="margin: 0 1%;display: none;">
  560. </div>-->
  561. <div class="clearfix wh_btn">
  562. <input type="button" value="提交工单" class="btn btn-primary btn-sm" id="clgd" />
  563. <input type="button" value="暂存工单" class="btn btn-primary btn-sm" id="zcgd" />
  564. <!--<input type="button" value="暂存工单" class="btn btn-primary btn-sm" id="hh" />-->
  565. </div>
  566. </div>
  567. <script src="../../js/autosize/autosize.js"></script>
  568. <script src="../../js/zTree/jquery.ztree.core.js"></script>
  569. <script src="../../js/webuploader/webuploader.min.js"></script>
  570. <script src="./js/WorkOrderTransfer.js?v=0.1"></script>
  571. <script>
  572. $("#onadd").click(function() {
  573. $(".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>')
  574. })
  575. function ondel(obj) {
  576. $(obj).parent().remove()
  577. }
  578. function goSee() {
  579. var tourl = 'orderDetails.html?oid=' + $("#wid").text();
  580. window.open(tourl)
  581. }
  582. // $("#hh").click(function() {
  583. // layer.open({
  584. // shadeClose: true,
  585. // type: 2,
  586. // title: '内线处理方式',
  587. // maxmin: true, //开启最大化最小化按钮
  588. // area: ['80%', '90%'],
  589. // content: '../../WorkOrder/commonHtml/handleMethod.html'
  590. // });
  591. // })
  592. $(document).on('blur', '.code', function() {
  593. console.log($(this).val())
  594. var this_ = $(this);
  595. $.getJSON(huayi.config.callcenter_url + "MaterialManage/GetCodeModel", {
  596. code: $(this).val(),
  597. token: $.cookie("token")
  598. }, function(data) {
  599. if(data.state.toLowerCase() == "success") {
  600. data = data.data;
  601. if(data) {
  602. this_.parent().find(".name1").val(data.model.F_MaterialName); //物料名称
  603. this_.parent().find(".pf").val(data.model.F_Model); //型号
  604. this_.parent().find(".guige").val(data.model.F_Specs); //规格
  605. } else {
  606. this_.parent().find(".name1").val(''); //物料名称
  607. this_.parent().find(".pf").val(''); //型号
  608. this_.parent().find(".guige").val(''); //规格
  609. }
  610. }
  611. });
  612. });
  613. </script>
  614. </body>
  615. </html>