whlabel_bh_edit.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688
  1. {Template header}
  2. <body>
  3. <div class="warp">
  4. <div class="title winnone">备货 - 修改</div>
  5. <ul class="setting">
  6. {if $whlabel_bh['state'] == 0}
  7. {if $whlabel_bh['features'] != ''}
  8. <div class="cp">
  9. <div class="datalist">
  10. <li class="cike">
  11. <em>类 目:</em>
  12. <select name="category" class="select">
  13. {loop typeclass(16) as $val}
  14. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  15. {/loop}
  16. </select>
  17. </li>
  18. <li class="Gift Accessories synthetic">
  19. <em>真人发类型:</em>
  20. <select name="hairtype" class="select">
  21. <option value="">未选择</option>
  22. {loop typeclass(22) as $val}
  23. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  24. {/loop}
  25. </select>
  26. </li>
  27. <li class="Gift synthetichair">
  28. <em>等 级:</em>
  29. <select name="grade" class="select">
  30. {loop typeclass(13) as $val}
  31. {if $val['id'] == 80}
  32. <option value="{$val['id']}">{$val['title']}</option>
  33. {/if}
  34. {/loop}
  35. {loop typeclass(13) as $val}
  36. {if $val['id'] != 80}
  37. <option value="{$val['id']}">{$val['title']}</option>
  38. {/if}
  39. {/loop}
  40. </select>
  41. </li>
  42. <li class="Gift synthetic Accessories ycwigs Extension">
  43. <em>头发颜色:</em>
  44. <select name="color" class="select">
  45. {loop typeclassyc(8) as $val}
  46. {if $val['id'] == 57}
  47. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  48. {/if}
  49. {/loop}
  50. {loop typeclassyc(8) as $val} <!-- 这个是不显示部分颜色 -->
  51. {if $val['id'] != 57}
  52. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  53. {/if}
  54. {/loop}
  55. </select>
  56. </li>
  57. <li class="Gift synthetic Accessories ycwigs Extension">
  58. <em>曲 度:</em>
  59. <select name="lowe" class="select">
  60. {loop typeclassyc(15) as $val} <!-- 这个是不显示部分曲度 -->
  61. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  62. {/loop}
  63. </select>
  64. </li>
  65. </div>
  66. <div class="pttab">
  67. <select class="none select"><option></option></select>
  68. <li class="1 none cikeb">
  69. <em>类 型:</em>
  70. <select name="type" class="select">
  71. {loop typeclass(27) as $val}
  72. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  73. {/loop}
  74. </select>
  75. </li>
  76. <li class="1 none">
  77. <em>头路设计:</em>
  78. <select name="headroad" class="select">
  79. {loop typeclass(12) as $val}
  80. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  81. {/loop}
  82. </select>
  83. </li>
  84. <li class="1 none">
  85. <em>密 度:</em>
  86. <select name="density" class="select">
  87. {loop typeclass(10) as $val}
  88. {if $val['id']==72}
  89. <option value="{$val['id']}" {if $weight['density'] == $val['id']}selected="selected"{/if}>{$val['title']}</option>
  90. {/if}
  91. {/loop}
  92. {loop typeclass(10) as $val}
  93. {if $val['id']!=72}
  94. <option value="{$val['id']}" {if $weight['density'] == $val['id']}selected="selected"{/if}>{$val['title']}</option>
  95. {/if}
  96. {/loop}
  97. </select>
  98. </li>
  99. <li class="1 a1 none">
  100. <em>蕾丝尺寸:</em>
  101. <select name="lacesize" class="select">
  102. {loop typeclassyc(25) as $val} <!-- 这个是不显示部分尺寸 -->
  103. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  104. {/loop}
  105. </select>
  106. </li>
  107. <li class="a2 none">
  108. <em>蕾丝尺寸:</em>
  109. <select name="lacesize" class="select">
  110. {loop typeclassyc(26) as $val}
  111. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  112. {/loop}
  113. </select>
  114. </li>
  115. <li class="a3 none">
  116. <em>蕾丝尺寸:</em>
  117. <select name="lacesize" class="select">
  118. <option value="191">13" x 4"</option>
  119. </select>
  120. </li>
  121. <li class="a4 none">
  122. <em>蕾丝尺寸:</em>
  123. <select name="lacesize" class="select">
  124. <option value="186">4" x 4"</option>
  125. </select>
  126. </li>
  127. <li class="1 none">
  128. <em>蕾丝颜色:</em>
  129. <select name="lacecolor" class="select">
  130. <option value="">未选择</option>
  131. {loop typeclassyc(9) as $val}
  132. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  133. {/loop}
  134. </select>
  135. </li>
  136. <li class="1 none">
  137. <em>蕾丝类型:</em>
  138. <select name="lacetypes" class="select">
  139. <option value="">未选择</option>
  140. {loop typeclassyc(44) as $val}
  141. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  142. {/loop}
  143. </select>
  144. </li>
  145. <!-- <li class="3 none">
  146. <em>重 量:</em>
  147. <select name="weight" class="select">
  148. {loop typeclass(7) as $val}
  149. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  150. {/loop}
  151. </select>
  152. </li>
  153. -->
  154. <li class="4 none">
  155. <em>Gift类型:</em>
  156. <select name="gifttype" class="select">
  157. {loop typeclass(34) as $val}
  158. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  159. {/loop}
  160. </select>
  161. </li>
  162. <li class="4 none">
  163. <em>Gift其它:</em>
  164. <select name="giftother" class="select">
  165. <option value="">未选择</option>
  166. {loop typeclass(49) as $val}
  167. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  168. {/loop}
  169. </select>
  170. </li>
  171. <li class="2 none">
  172. <em>人发头套编号:</em>
  173. <select name="hairnumber" class="select">
  174. <option value="">未选择</option>
  175. {loop typeclass(43) as $val}
  176. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  177. {/loop}
  178. </select>
  179. </li>
  180. <li class="3 none">
  181. <em>Extension类型:</em>
  182. <select name="extension" class="select">
  183. {loop typeclass(33) as $val}
  184. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  185. {/loop}
  186. </select>
  187. </li>
  188. <li class="6 none">
  189. <em>化纤头套编号:</em>
  190. <select name="sywignumber" class="select">
  191. <option value="">未选择</option>
  192. {loop typeclass(40) as $val}
  193. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  194. {/loop}
  195. </select>
  196. </li>
  197. <li class="5 none">
  198. <em>配件类型:</em>
  199. <select name="fittype" class="select">
  200. {loop typeclass(35) as $val}
  201. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  202. {/loop}
  203. </select>
  204. </li>
  205. <li class="5 none">
  206. <em>配件其他:</em>
  207. <select name="acother" class="select">
  208. <option value="">未选择</option>
  209. {loop typeclass(45) as $val}
  210. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  211. {/loop}
  212. </select>
  213. </li>
  214. <li class="7 none">
  215. <em>化纤发编号:</em>
  216. <select name="syhairnumber" class="select">
  217. <option value="">未选择</option>
  218. {loop typeclass(47) as $val}
  219. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  220. {/loop}
  221. </select>
  222. </li>
  223. <li class="7 none">
  224. <em>化纤其它分类:</em>
  225. <select name="syother" class="select">
  226. {loop typeclass(46) as $val}
  227. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  228. {/loop}
  229. </select>
  230. </li>
  231. <li class="2 3 5 6 7 none">
  232. <em>头发颜色:</em>
  233. <select name="color" class="select">
  234. {loop typeclassyc(8) as $val}
  235. {if $val['id'] == 57}
  236. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  237. {/if}
  238. {/loop}
  239. {loop typeclassyc(8) as $val} <!-- 这个是不显示部分颜色 -->
  240. {if $val['id'] != 57}
  241. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  242. {/if}
  243. {/loop}
  244. </select>
  245. </li>
  246. <li class="2 3 5 6 7 none">
  247. <em>曲 度:</em>
  248. <select name="lowe" class="select">
  249. {loop typeclassyc(15) as $val} <!-- 这个是不显示部分曲度 -->
  250. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  251. {/loop}
  252. </select>
  253. </li>
  254. <li class="2 none">
  255. <em>头套种类:</em>
  256. <select name="lacetype" class="select">
  257. {loop typeclassyc(18) as $val}
  258. {if $val['id']==146}
  259. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  260. {/if}
  261. {/loop}
  262. {loop typeclassyc(18) as $val}
  263. {if $val['id']!=146}
  264. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  265. {/if}
  266. {/loop}
  267. </select>
  268. </li>
  269. <li class="2 none">
  270. <em>发帽大小:</em>
  271. <select name="haircap" class="select">
  272. <option value="30">Medium - 中号</option>
  273. {loop typeclass(6) as $val}
  274. {if $val['id']!=30}
  275. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  276. {/if}
  277. {/loop}
  278. </select>
  279. </li>
  280. <li class="2 none">
  281. <em>密 度:</em>
  282. <select name="density" class="select">
  283. {loop typeclass(10) as $val}
  284. {if $val['id']==72}
  285. <option value="{$val['id']}">{$val['title']}</option>
  286. {/if}
  287. {/loop}
  288. {loop typeclass(10) as $val}
  289. {if $val['id']!=72}
  290. <option value="{$val['id']}">{$val['title']}</option>
  291. {/if}
  292. {/loop}
  293. </select>
  294. </li>
  295. <li class="2 none">
  296. <em>蕾丝颜色:</em>
  297. <select name="lacecolor" class="select">
  298. <option value="">未选择</option>
  299. {loop typeclassyc(9) as $val}
  300. {if $val['id'] != 335 && $val['id'] != 336}
  301. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  302. {/if}
  303. {/loop}
  304. </select>
  305. </li>
  306. <li class="2 none">
  307. <em>蕾丝类型:</em>
  308. <select name="lacetypes" class="select">
  309. <option value="">未选择</option>
  310. {loop typeclassyc(44) as $val}
  311. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  312. {/loop}
  313. </select>
  314. </li>
  315. <li class="2 none">
  316. <em>头套其它:</em>
  317. <select name="wigother" class="select">
  318. <option value="">未选择</option>
  319. {loop typeclassyc(39) as $val}
  320. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  321. {/loop}
  322. </select>
  323. </li>
  324. <li class="2 none">
  325. <em>头套其它2:</em>
  326. <select name="wigother2" class="select">
  327. <option value="">未选择</option>
  328. {loop typeclassyc(50) as $val}
  329. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  330. {/loop}
  331. </select>
  332. </li>
  333. <li class="6 none">
  334. <em>头套类型:</em>
  335. <select name="synthetictype" class="select">
  336. <option value="">未选择</option>
  337. {loop typeclass(41) as $val}
  338. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  339. {/loop}
  340. </select>
  341. </li>
  342. <li class="6 none">
  343. <em>化纤头套其它:</em>
  344. <select name="sywigother" class="select">
  345. <option value="">未选择</option>
  346. {loop typeclass(42) as $val}
  347. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  348. {/loop}
  349. </select>
  350. </li>
  351. <li class="3 5 7 none">
  352. <em>单包片数:</em>
  353. <select name="items" class="select">
  354. <option value="">未选择</option>
  355. {loop typeclass(38) as $val}
  356. <option value="{$val['id']}">{$val['title']}</option>
  357. {/loop}
  358. </select>
  359. </li>
  360. <li class="7 none">
  361. <em>化纤发其它:</em>
  362. <select name="syhairther" class="select">
  363. <option value="">未选择</option>
  364. {loop typeclass(48) as $val}
  365. <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
  366. {/loop}
  367. </select>
  368. </li>
  369. </div>
  370. <div class="datalist">
  371. <li>
  372. <em>长 度:</em>
  373. <select name="size" class="select">
  374. {loop typeclass(14) as $val}
  375. <option value="{$val['id']}">{$val['title']}</option>
  376. {/loop}
  377. </select>
  378. </li>
  379. </div>
  380. </div>
  381. {/if}
  382. <div class="datalist postgift">
  383. <li class="length">
  384. <em>标 题:</em>
  385. <input class="must" value="{$whlabel_bh['orderinfo']}" name="orderinfo" type="text">
  386. </li>
  387. <li>
  388. <em>类 型:</em>
  389. <select name="type" class="select">
  390. <option value="0" {if $whlabel_bh['type'] == '0'}selected="selected"{/if}>生产</option>
  391. <option value="1" {if $whlabel_bh['type'] == '1'}selected="selected"{/if}>外购</option>
  392. </select>
  393. </li>
  394. <li>
  395. <em>归 属:</em>
  396. <select name="kh" class="select">
  397. <option value="99001" {if $whlabel_bh['kh'] == '99001'}selected="selected"{/if}>成品仓</option>
  398. <option value="02031" {if $whlabel_bh['kh'] == '02031'}selected="selected"{/if}>美国仓</option>
  399. <option value="0103001" {if $whlabel_bh['kh'] == '0103001'}selected="selected"{/if}>AP</option>
  400. <option value="0103002" {if $whlabel_bh['kh'] == '0103002'}selected="selected"{/if}>WK</option>
  401. <option value="0103003" {if $whlabel_bh['kh'] == '0103003'}selected="selected"{/if}>QV</option>
  402. <option value="0103004" {if $whlabel_bh['kh'] == '0103004'}selected="selected"{/if}>AS</option>
  403. <option value="0103005" {if $whlabel_bh['kh'] == '0103005'}selected="selected"{/if}>H</option>
  404. <option value="0103006" {if $whlabel_bh['kh'] == '0103006'}selected="selected"{/if}>AP英</option>
  405. <option value="0103007" {if $whlabel_bh['kh'] == '0103007'}selected="selected"{/if}>YMS</option>
  406. <option value="0103008" {if $whlabel_bh['kh'] == '0103008'}selected="selected"{/if}>AP新</option>
  407. <option value="0103009" {if $whlabel_bh['kh'] == '0103009'}selected="selected"{/if}>WK新</option>
  408. <option value="0103010" {if $whlabel_bh['kh'] == '0103010'}selected="selected"{/if}>H新</option>
  409. <option value="0103011" {if $whlabel_bh['kh'] == '0103011'}selected="selected"{/if}>Bilisar</option>
  410. <option value="0103012" {if $whlabel_bh['kh'] == '0103012'}selected="selected"{/if}>Estilar</option>
  411. <option value="0103013" {if $whlabel_bh['kh'] == '0103013'}selected="selected"{/if}>QM</option>
  412. <option value="0103014" {if $whlabel_bh['kh'] == '0103014'}selected="selected"{/if}>Afola</option>
  413. <option value="0106002" {if $whlabel_bh['kh'] == '0106002'}selected="selected"{/if}>跨境多多-Finsa</option>
  414. <option value="0105001" {if $whlabel_bh['kh'] == '0105001'}selected="selected"{/if}>跨境多多-艾彩</option>
  415. <option value="0106001" {if $whlabel_bh['kh'] == '0106001'}selected="selected"{/if}>跨境多多-Estilar</option>
  416. <option value="0106003" {if $whlabel_bh['kh'] == '0106003'}selected="selected"{/if}>跨境多多-QM</option>
  417. </select>
  418. </li>
  419. <li>
  420. <em>供应商:</em>
  421. <select name="purchase" class="select class">
  422. <option value="">外购请选择</option>
  423. {loop $purchase as $val}
  424. <option value="{$val['yyid']}" {if $whlabel_bh['purchase'] == $val['yyid']}selected="selected"{/if}>{$val['title']}</option>
  425. {/loop}
  426. </select>
  427. </li>
  428. <li>
  429. <em>完成日期:</em>
  430. <input class="must" value="{$whlabel_bh['ztime'] > 0 ? date('Y-m-d',$whlabel_bh['ztime']).' 0:00':''}" name="ztime" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})" id="timetk">
  431. </li>
  432. <li>
  433. <em>备货数量:</em>
  434. <input class="must" value="{$whlabel_bh['bhnum']}" name="bhnum" type="text">
  435. </li>
  436. <li>
  437. <em>生产/外购:</em>
  438. <input class="must" value="{$whlabel_bh['num']}" name="num" type="text">
  439. </li>
  440. <li>
  441. <em>库存数量:</em>
  442. <input class="must" value="{$whlabel_bh['kcnum']}" name="kcnum" type="text">
  443. </li>
  444. <li>
  445. <em>调拨数量:</em>
  446. <b>{$whlabel_bh['dbnum']}</b>
  447. </li>
  448. <li class="length">
  449. <em>备注:</em>
  450. <textarea name="shipremarks" style="height:160px">{$whlabel_bh['shipremarks']}</textarea>
  451. </li>
  452. </div>
  453. <input type="hidden" name="fpdata" value="{$whlabel_bh['fpdata']}" />
  454. {else}
  455. <div class="datalist postgift">
  456. <li class="length">
  457. <em>简码:</em>
  458. <b>{$whlabel_bh['jm']}</b>
  459. </li>
  460. <li class="length">
  461. <em>英文名称:</em>
  462. <b>{$whlabel_bh['title']}</b>
  463. </li>
  464. <li class="length">
  465. <em>中文名称:</em>
  466. <b>{$whlabel_bh['pm']}</b>
  467. </li>
  468. <li class="length">
  469. <em>标 题:</em>
  470. <b>{$whlabel_bh['orderinfo']}</b>
  471. </li>
  472. <li>
  473. <em>类 型:</em>
  474. <b>
  475. {if $whlabel_bh['type'] == '0'}
  476. 生产
  477. {else if $whlabel_bh['type'] == '1'}
  478. 外购
  479. {/if}
  480. </b>
  481. </li>
  482. <li>
  483. <em>归 属:</em>
  484. <!--
  485. <select name="kh" class="select">
  486. <option value="99001" {if $whlabel_bh['kh'] == '99001'}selected="selected"{/if}>成品仓</option>
  487. <option value="02031" {if $whlabel_bh['kh'] == '02031'}selected="selected"{/if}>美国仓</option>
  488. <option value="0103001" {if $whlabel_bh['kh'] == '0103001'}selected="selected"{/if}>AP</option>
  489. <option value="0103002" {if $whlabel_bh['kh'] == '0103002'}selected="selected"{/if}>WK</option>
  490. <option value="0103003" {if $whlabel_bh['kh'] == '0103003'}selected="selected"{/if}>QV</option>
  491. <option value="0103004" {if $whlabel_bh['kh'] == '0103004'}selected="selected"{/if}>AS</option>
  492. <option value="0103005" {if $whlabel_bh['kh'] == '0103005'}selected="selected"{/if}>H</option>
  493. <option value="0103006" {if $whlabel_bh['kh'] == '0103006'}selected="selected"{/if}>AP英</option>
  494. <option value="0103007" {if $whlabel_bh['kh'] == '0103007'}selected="selected"{/if}>YMS</option>
  495. <option value="0103008" {if $whlabel_bh['kh'] == '0103008'}selected="selected"{/if}>AP新</option>
  496. <option value="0103009" {if $whlabel_bh['kh'] == '0103009'}selected="selected"{/if}>WK新</option>
  497. <option value="0103010" {if $whlabel_bh['kh'] == '0103010'}selected="selected"{/if}>H新</option>
  498. <option value="0103011" {if $whlabel_bh['kh'] == '0103011'}selected="selected"{/if}>Bilisar</option>
  499. <option value="0103012" {if $whlabel_bh['kh'] == '0103012'}selected="selected"{/if}>Estilar</option>
  500. <option value="0103013" {if $whlabel_bh['kh'] == '0103013'}selected="selected"{/if}>QM</option>
  501. <option value="0103014" {if $whlabel_bh['kh'] == '0103014'}selected="selected"{/if}>Afola</option>
  502. <option value="0106002" {if $whlabel_bh['kh'] == '0106002'}selected="selected"{/if}>跨境多多-Finsa</option>
  503. <option value="0105001" {if $whlabel_bh['kh'] == '0105001'}selected="selected"{/if}>跨境多多-艾彩</option>
  504. <option value="0106001" {if $whlabel_bh['kh'] == '0106001'}selected="selected"{/if}>跨境多多-Estilar</option>
  505. <option value="0106003" {if $whlabel_bh['kh'] == '0106003'}selected="selected"{/if}>跨境多多-QM</option>
  506. </select>
  507. -->
  508. <b>
  509. {if $whlabel_bh['kh'] == '99001'}成品仓
  510. {else if $whlabel_bh['kh'] == '02031'}美国仓
  511. {else if $whlabel_bh['kh'] == '0103001'}AP
  512. {else if $whlabel_bh['kh'] == '0103002'}WK
  513. {else if $whlabel_bh['kh'] == '0103003'}QV
  514. {else if $whlabel_bh['kh'] == '0103004'}AS
  515. {else if $whlabel_bh['kh'] == '0103005'}H
  516. {else if $whlabel_bh['kh'] == '0103006'}AP英
  517. {else if $whlabel_bh['kh'] == '0103007'}YMS
  518. {else if $whlabel_bh['kh'] == '0103008'}AP新
  519. {else if $whlabel_bh['kh'] == '0103009'}WK新
  520. {else if $whlabel_bh['kh'] == '0103010'}H新
  521. {else if $whlabel_bh['kh'] == '0103011'}Bilisar
  522. {else if $whlabel_bh['kh'] == '0103012'}Estilar
  523. {else if $whlabel_bh['kh'] == '0103013'}QM
  524. {else if $whlabel_bh['kh'] == '0103014'}Afola
  525. {else if $whlabel_bh['kh'] == '0106002'}跨境多多-Finsa
  526. {else if $whlabel_bh['kh'] == '0105001'}跨境多多-艾彩
  527. {else if $whlabel_bh['kh'] == '0106001'}跨境多多-Estilar
  528. {else if $whlabel_bh['kh'] == '0106003'}跨境多多-QM
  529. {/if}
  530. </b>
  531. </li>
  532. <li>
  533. <em>供应商:</em>
  534. <select name="purchase" class="select class">
  535. <option value="">外购请选择</option>
  536. {loop $purchase as $val}
  537. <option value="{$val['yyid']}" {if $whlabel_bh['purchase'] == $val['yyid']}selected="selected"{/if}>{$val['title']}</option>
  538. {/loop}
  539. </select>
  540. </li>
  541. <li>
  542. <em>完成日期:</em>
  543. <b>{$whlabel_bh['ztime'] > 0 ? date('Y-m-d',$whlabel_bh['ztime']).' 0:00':''}</b>
  544. </li>
  545. <li>
  546. <em>备货数量:</em>
  547. <b>{$whlabel_bh['bhnum']}</b>
  548. </li>
  549. <li>
  550. <em>生产/外购:</em>
  551. <b>{$whlabel_bh['num']}</b>
  552. </li>
  553. <li>
  554. <em>库存数量:</em>
  555. <b>{$whlabel_bh['kcnum']}</b>
  556. </li>
  557. <li>
  558. <em>调拨数量:</em>
  559. <b>{$whlabel_bh['dbnum']}</b>
  560. </li>
  561. <li class="length">
  562. <em>备注:</em>
  563. <b>{$whlabel_bh['shipremarks']}</b>
  564. </li>
  565. </div>
  566. {/if}
  567. <div style="clear:both;"></div>
  568. </ul>
  569. <div class="hidden">
  570. <input type="hidden" name="id" value="{$whlabel_bh['id']}" />
  571. </div>
  572. <div class="button">{if $whlabel_bh['state'] == 0} <font class="gxkcnum">获取库存</font>{/if} {if $whlabel_bh['features'] != ''}<font class="fzdata">复 制</font>{/if}<font class="produtdata">提 交</font> <font class="fh">关 闭</font></div>
  573. </div>
  574. <script>
  575. $(document).ready(function() {
  576. var list = "{$whlabel_bh['features']}";
  577. list = list.substring(0,list.length-1);
  578. var data = list.split("-");
  579. for(i=1;i<data.length+1;i++)
  580. {
  581. $(".setting .cp .select").each(function() {
  582. $(this).find("option[value='"+data[i]+"']").prop("selected","selected");
  583. });
  584. }
  585. cpxz();
  586. });
  587. var addedit="/whlabel_bh/edit/";
  588. $(".fzdata").click(function() {
  589. window.location.href = '/whlabel_bh/add?data={$whlabel_bh["features"]}';
  590. });
  591. $(".gxkcnum").click(function() {
  592. $(".ts p").html("<i class='fa fa-2x fa-cog fa-spin'></i> &nbsp; 获取中,请稍后...");
  593. $(".ts").show();
  594. $.ajax({
  595. url: "/whlabel_bh/kc/",
  596. data: "category=1&features="+$("input[name='fpdata']").val(),
  597. type: "POST",
  598. dataType: "json",
  599. success: function(a) {
  600. if (a && a.success) {
  601. $(".ts").hide();
  602. $(".ts p").html("获取成功");
  603. $(".ts").fadeIn();
  604. setTimeout('$(".ts").fadeOut()', 600);
  605. $("input[name='kcnum']").val(a.msg);
  606. } else {
  607. $(".ts").hide();
  608. $(".ts p").html(a.msg);
  609. $(".ts").fadeIn();
  610. setTimeout('$(".ts").fadeOut()', 600);
  611. }
  612. }
  613. });
  614. });
  615. </script>
  616. <script type="text/javascript" src="{$theme}js/laydate.js"></script>
  617. {Template footer}