纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

626 lines
28 KiB

3 years ago
3 years ago
3 years ago
  1. 
  2. @{
  3. ViewBag.Title = "Index";
  4. Layout = "~/Views/Shared/_Form.cshtml";
  5. }
  6. <script>
  7. var Type = $.request("Type");
  8. var ApplyNegCode = $.request("ApplyNegCode");
  9. var OApplyNegCode = $.request("OApplyNegCode");
  10. var SDNCode = $.request("SDNCode");
  11. var InCode = $.request("InCode");
  12. var Sequence = $.request("Sequence");
  13. var MOCode = $.request("MOCode");
  14. var ReturnCode = $.request("ReturnCode");
  15. var DNCode = $.request("DNCode");
  16. var ODNCode = $.request("ODNCode");
  17. var RCVCode = $.request("RCVCode");
  18. var LLApplyNegCode = $.request("LLApplyNegCode");
  19. debugger;
  20. var WorkPoints = '@NFine.Code.OperatorProvider.Provider.GetCurrent().Location'
  21. $(function () {
  22. $("#minPackQty").keyup(function () {
  23. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  24. }).bind("paste", function () { //CTR+V事件处理
  25. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  26. }).css("ime-mode", "disabled"); //CSS设置输入法不可用
  27. $("#thisCreateQty").keyup(function () {
  28. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  29. }).bind("paste", function () { //CTR+V事件处理
  30. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  31. }).css("ime-mode", "disabled"); //CSS设置输入法不可用
  32. $("#cretePageCount").keyup(function () {
  33. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  34. }).bind("paste", function () { //CTR+V事件处理
  35. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  36. }).css("ime-mode", "disabled"); //CSS设置输入法不可用
  37. var VenCode = "";
  38. var WorkPoint = "";
  39. debugger;
  40. //initControl();
  41. if (Type=='1') {
  42. if (!!ApplyNegCode && !!Sequence) {
  43. $.ajax({
  44. url: "/WMS/WMSCreateItemLot/GetSubGridJsonByCreate?ApplyNegCode=" + ApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  45. //data: { keyValue: keyValue },
  46. dataType: "json",
  47. async: false,
  48. success: function (data) {
  49. debugger;
  50. $("#InvCode").val(data.rows[0].InvCode);
  51. $("#INVNAME").val(data.rows[0].InvName);
  52. $("#INVSTD").val(data.rows[0].InvStd);
  53. $("#Quantity").val(data.rows[0].Quantity);
  54. $("#CreatedQty").val(data.rows[0].CreatedQty);
  55. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  56. VenCode = data.rows[0].VenCode;
  57. WorkPoint = data.rows[0].WorkPoint;
  58. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  59. $("#thisCreateQty").attr("disabled", "disabled");
  60. $("#minPackQty").attr("disabled", "disabled");
  61. $("#VendorLotNo").attr("disabled", "disabled");
  62. }
  63. }
  64. });
  65. $.ajax({
  66. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  67. //data: { keyValue: keyValue },
  68. dataType: "json",
  69. async: false,
  70. success: function (data) {
  71. $("#VendorLotNo").val(data.VendorLotNo);
  72. }
  73. });
  74. }
  75. }
  76. if (Type=='2') {
  77. if (!!OApplyNegCode && !!Sequence) {
  78. $.ajax({
  79. url: "/WMS/WMSCreateItemLot/GetSubGridJsonWeiWaiByCreate?OApplyNegCode=" + OApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  80. dataType: "json",
  81. async: false,
  82. success: function (data) {
  83. debugger;
  84. $("#InvCode").val(data.rows[0].InvCode);
  85. $("#INVNAME").val(data.rows[0].InvName);
  86. $("#INVSTD").val(data.rows[0].InvStd);
  87. $("#Quantity").val(data.rows[0].Quantity);
  88. $("#CreatedQty").val(data.rows[0].CreatedQty);
  89. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  90. VenCode = data.rows[0].VenCode;
  91. WorkPoint = data.rows[0].WorkPoint;
  92. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  93. $("#thisCreateQty").attr("disabled", "disabled");
  94. $("#minPackQty").attr("disabled", "disabled");
  95. $("#VendorLotNo").attr("disabled", "disabled");
  96. }
  97. }
  98. });
  99. $.ajax({
  100. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  101. dataType: "json",
  102. async: false,
  103. success: function (data) {
  104. $("#VendorLotNo").val(data.VendorLotNo);
  105. }
  106. });
  107. }
  108. }
  109. if (Type == '3') {
  110. if (!!MOCode && !!Sequence) {
  111. $.ajax({
  112. url: "/WMS/WMSCreateItemLot/GetSubGridJsonChengPingByCreate?MOCode=" + MOCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  113. dataType: "json",
  114. async: false,
  115. success: function (data) {
  116. debugger;
  117. $("#InvCode").val(data.rows[0].InvCode);
  118. $("#INVNAME").val(data.rows[0].InvName);
  119. $("#INVSTD").val(data.rows[0].InvStd);
  120. $("#Quantity").val(data.rows[0].Quantity);
  121. $("#CreatedQty").val(data.rows[0].CreatedQty);
  122. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  123. VenCode = data.rows[0].VenCode;
  124. WorkPoint = data.rows[0].WorkPoint;
  125. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  126. $("#thisCreateQty").attr("disabled", "disabled");
  127. $("#minPackQty").attr("disabled", "disabled");
  128. $("#VendorLotNo").attr("disabled", "disabled");
  129. }
  130. }
  131. });
  132. $.ajax({
  133. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  134. dataType: "json",
  135. async: false,
  136. success: function (data) {
  137. $("#VendorLotNo").val(data.VendorLotNo);
  138. }
  139. });
  140. }
  141. }
  142. if (Type == '4') {
  143. if (!!SDNCode && !!Sequence) {
  144. $.ajax({
  145. url: "/WMS/WMSCreateItemLot/GetSubGridJsonXiaoShouByCreate?SDNCode=" + SDNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  146. dataType: "json",
  147. async: false,
  148. success: function (data) {
  149. debugger;
  150. $("#InvCode").val(data.rows[0].InvCode);
  151. $("#INVNAME").val(data.rows[0].InvName);
  152. $("#INVSTD").val(data.rows[0].InvStd);
  153. $("#Quantity").val(data.rows[0].Quantity);
  154. $("#CreatedQty").val(data.rows[0].CreatedQty);
  155. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  156. VenCode = data.rows[0].VenCode;
  157. WorkPoint = data.rows[0].WorkPoint;
  158. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  159. $("#thisCreateQty").attr("disabled", "disabled");
  160. $("#minPackQty").attr("disabled", "disabled");
  161. $("#VendorLotNo").attr("disabled", "disabled");
  162. }
  163. }
  164. });
  165. $.ajax({
  166. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  167. dataType: "json",
  168. async: false,
  169. success: function (data) {
  170. $("#VendorLotNo").val(data.VendorLotNo);
  171. }
  172. });
  173. }
  174. }
  175. if (Type == '5') {
  176. if (!!InCode && !!Sequence) {
  177. $.ajax({
  178. url: "/WMS/WMSCreateItemLot/GetSubGridJsonQiTaByCreate?InCode=" + InCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  179. dataType: "json",
  180. async: false,
  181. success: function (data) {
  182. debugger;
  183. $("#InvCode").val(data.rows[0].InvCode);
  184. $("#INVNAME").val(data.rows[0].InvName);
  185. $("#INVSTD").val(data.rows[0].InvStd);
  186. $("#Quantity").val(data.rows[0].Quantity);
  187. $("#CreatedQty").val(data.rows[0].CreatedQty);
  188. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  189. VenCode = data.rows[0].VenCode;
  190. WorkPoint = data.rows[0].WorkPoint;
  191. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  192. $("#thisCreateQty").attr("disabled", "disabled");
  193. $("#minPackQty").attr("disabled", "disabled");
  194. $("#VendorLotNo").attr("disabled", "disabled");
  195. }
  196. }
  197. });
  198. $.ajax({
  199. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  200. //data: { keyValue: keyValue },
  201. dataType: "json",
  202. async: false,
  203. success: function (data) {
  204. $("#VendorLotNo").val(data.VendorLotNo);
  205. }
  206. });
  207. }
  208. }
  209. if (Type == '6') {
  210. if (!!ReturnCode && !!Sequence) {
  211. $.ajax({
  212. url: "/WMS/WMSCreateItemLot/GetSubGridJsonGuiHuanByCreate?ReturnCode=" + ReturnCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  213. dataType: "json",
  214. async: false,
  215. success: function (data) {
  216. debugger;
  217. $("#InvCode").val(data.rows[0].InvCode);
  218. $("#INVNAME").val(data.rows[0].InvName);
  219. $("#INVSTD").val(data.rows[0].InvStd);
  220. $("#Quantity").val(data.rows[0].Quantity);
  221. $("#CreatedQty").val(data.rows[0].CreatedQty);
  222. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  223. VenCode = data.rows[0].VenCode;
  224. WorkPoint = data.rows[0].WorkPoint;
  225. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  226. $("#thisCreateQty").attr("disabled", "disabled");
  227. $("#minPackQty").attr("disabled", "disabled");
  228. $("#VendorLotNo").attr("disabled", "disabled");
  229. }
  230. }
  231. });
  232. $.ajax({
  233. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  234. //data: { keyValue: keyValue },
  235. dataType: "json",
  236. async: false,
  237. success: function (data) {
  238. $("#VendorLotNo").val(data.VendorLotNo);
  239. }
  240. });
  241. }
  242. }
  243. if (Type == '7') {
  244. if (!!DNCode && !!Sequence) {
  245. $.ajax({
  246. url: "/WMS/WMSCreateItemLot/GetSubGridJsonSHDHByCreate?DNCode=" + DNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  247. dataType: "json",
  248. async: false,
  249. success: function (data) {
  250. debugger;
  251. $("#InvCode").val(data.rows[0].InvCode);
  252. $("#INVNAME").val(data.rows[0].InvName);
  253. $("#INVSTD").val(data.rows[0].InvStd);
  254. $("#Quantity").val(data.rows[0].Quantity);
  255. $("#CreatedQty").val(data.rows[0].CreatedQty);
  256. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  257. VenCode = data.rows[0].VenCode;
  258. WorkPoint = data.rows[0].WorkPoint;
  259. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  260. $("#thisCreateQty").attr("disabled", "disabled");
  261. $("#minPackQty").attr("disabled", "disabled");
  262. $("#VendorLotNo").attr("disabled", "disabled");
  263. }
  264. }
  265. });
  266. $.ajax({
  267. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  268. //data: { keyValue: keyValue },
  269. dataType: "json",
  270. async: false,
  271. success: function (data) {
  272. $("#VendorLotNo").val(data.VendorLotNo);
  273. }
  274. });
  275. }
  276. }
  277. if (Type == '8') {
  278. debugger;
  279. if (!!ODNCode && !!Sequence) {
  280. $.ajax({
  281. url: "/WMS/WMSCreateItemLot/GetSubGridJsonWWSHDHByCreate?ODNCode=" + ODNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  282. dataType: "json",
  283. async: false,
  284. success: function (data) {
  285. debugger;
  286. $("#InvCode").val(data.rows[0].InvCode);
  287. $("#INVNAME").val(data.rows[0].InvName);
  288. $("#INVSTD").val(data.rows[0].InvStd);
  289. $("#Quantity").val(data.rows[0].Quantity);
  290. $("#CreatedQty").val(data.rows[0].CreatedQty);
  291. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  292. VenCode = data.rows[0].VenCode;
  293. WorkPoint = data.rows[0].WorkPoint;
  294. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  295. $("#thisCreateQty").attr("disabled", "disabled");
  296. $("#minPackQty").attr("disabled", "disabled");
  297. $("#VendorLotNo").attr("disabled", "disabled");
  298. }
  299. }
  300. });
  301. $.ajax({
  302. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  303. //data: { keyValue: keyValue },
  304. dataType: "json",
  305. async: false,
  306. success: function (data) {
  307. $("#VendorLotNo").val(data.VendorLotNo);
  308. }
  309. });
  310. }
  311. }
  312. if (Type == '9') {
  313. debugger;
  314. if (!!RCVCode && !!Sequence) {
  315. $.ajax({
  316. url: "/WMS/WMSCreateItemLot/GetSubGridJsonKLCPRKByCreate?RCVCode=" + RCVCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  317. dataType: "json",
  318. async: false,
  319. success: function (data) {
  320. debugger;
  321. $("#InvCode").val(data.rows[0].InvCode);
  322. $("#INVNAME").val(data.rows[0].InvName);
  323. $("#INVSTD").val(data.rows[0].InvStd);
  324. $("#Quantity").val(data.rows[0].Quantity);
  325. $("#CreatedQty").val(data.rows[0].CreatedQty);
  326. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  327. VenCode = data.rows[0].VenCode;
  328. WorkPoint = data.rows[0].WorkPoint;
  329. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  330. $("#thisCreateQty").attr("disabled", "disabled");
  331. $("#minPackQty").attr("disabled", "disabled");
  332. $("#VendorLotNo").attr("disabled", "disabled");
  333. }
  334. }
  335. });
  336. $.ajax({
  337. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  338. //data: { keyValue: keyValue },
  339. dataType: "json",
  340. async: false,
  341. success: function (data) {
  342. $("#VendorLotNo").val(data.VendorLotNo);
  343. }
  344. });
  345. }
  346. }
  347. $("#minPackQty").change(minPackQty_Change);
  348. $("#thisCreateQty").change(thisCreateQty_Change);
  349. $("#cretePageCount").change(function () {
  350. var createPageCount = $("#cretePageCount").val() * 1;//本次生成张数
  351. createPageCount = createPageCount.toFixed(0);
  352. if (createPageCount <= 0) {
  353. $.modalAlert("请输入大于0的数!");
  354. return false;
  355. }
  356. });
  357. });
  358. //最小包装量值改变事件
  359. function minPackQty_Change() {
  360. var thisCreateQty = $("#thisCreateQty").val() * 1;//本次生成数量
  361. thisCreateQty = thisCreateQty.toFixed(2);
  362. var minPackQty = $("#minPackQty").val() * 1;//最小包装量
  363. minPackQty = minPackQty.toFixed(2);
  364. var createPageCount = $("#cretePageCount").val() * 1;//本次生成张数
  365. createPageCount = createPageCount.toFixed(0);
  366. if (minPackQty <= 0) {
  367. $.modalAlert("请输入大于0的数!");
  368. return false;
  369. }
  370. //不可以整除,生成张数+1;
  371. if (thisCreateQty % minPackQty != 0) {
  372. createPageCount = parseInt(thisCreateQty / minPackQty) + 1;
  373. $("#cretePageCount").val(createPageCount);
  374. }
  375. else {
  376. createPageCount = parseInt(thisCreateQty / minPackQty);
  377. $("#cretePageCount").val(createPageCount);
  378. }
  379. }
  380. //本次生成数量值改变事件
  381. function thisCreateQty_Change() {
  382. debugger;
  383. var Quantity_str = $("#Quantity").val() * 1;//采购订单总数
  384. var CreatedQty_str = $("#CreatedQty").val() * 1;//已生成数量
  385. var thisCreateQty_str = $("#thisCreateQty").val() * 1;//本次生成数量
  386. var Quantity = Number(Quantity_str);
  387. var CreatedQty = Number(CreatedQty_str);
  388. var thisCreateQty = Number(thisCreateQty_str);
  389. if (thisCreateQty <= 0) {
  390. $.modalAlert("请输入大于0的数!");
  391. return false;
  392. }
  393. if (thisCreateQty <= 0 || thisCreateQty > (Quantity - CreatedQty)) {
  394. var maxQty = Quantity - CreatedQty;
  395. $.modalAlert("请输入0到" + maxQty + "范围内的数!");
  396. $("#thisCreateQty").val("");
  397. return false;
  398. } else {
  399. minPackQty_Change();
  400. return true;
  401. }
  402. var minPackQty = $("#minPackQty").val() * 1;//最小包装量
  403. minPackQty_Change();
  404. }
  405. function submitForm() {
  406. debugger;
  407. if (!$('#form1').formValid()) {
  408. return false;
  409. }
  410. var thisCreateQty = $("#thisCreateQty").val() * 1;//本次生成数量
  411. thisCreateQty = thisCreateQty.toFixed(2);
  412. var minPackQty = $("#minPackQty").val() * 1;//最小包装量
  413. minPackQty = minPackQty.toFixed(2);
  414. var createPageCount = $("#cretePageCount").val() * 1;//本次生成张数
  415. createPageCount = createPageCount.toFixed(0);
  416. //校验
  417. var flag1 = thisCreateQty_Change();
  418. //var flag2 = CheckNum();
  419. var VendorLot = $("#VendorLotNo").val();
  420. if (flag1) { }
  421. else {
  422. return false;
  423. }
  424. var Quantity = $("#Quantity").val() * 1;//采购订单总数
  425. Quantity = Quantity.toFixed(2);
  426. var CreatedQty = $("#CreatedQty").val() * 1;//已生成数量
  427. CreatedQty = CreatedQty.toFixed(2);
  428. if (Quantity == CreatedQty ) {
  429. return false;
  430. }
  431. var obj = {
  432. thisCreateQty: thisCreateQty,
  433. minPackQty: minPackQty,
  434. createPageCount: createPageCount,
  435. VendorLot: VendorLot,
  436. PRODUCTDATE: $("#PRODUCTDATE").val()
  437. }
  438. if (Type=='1') {
  439. $.submitForm({
  440. url: "/WMS/WMSCreateItemLot/SubmitForm?ApplyNegCode=" + ApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  441. param: {
  442. keyValue: JSON.stringify(obj)
  443. },
  444. success: function () {
  445. $.currentWindow().$("#gridList").trigger("reloadGrid");
  446. }
  447. })
  448. }
  449. if (Type=='2') {
  450. $.submitForm({
  451. url: "/WMS/WMSCreateItemLot/SubmitFormWeiWai?OApplyNegCode=" + OApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  452. param: {
  453. keyValue: JSON.stringify(obj)
  454. },
  455. success: function () {
  456. $.currentWindow().$("#gridList").trigger("reloadGrid");
  457. }
  458. })
  459. }
  460. if (Type == '3') {
  461. $.submitForm({
  462. url: "/WMS/WMSCreateItemLot/SubmitFormChengPing?MOCode=" + MOCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  463. param: {
  464. keyValue: JSON.stringify(obj)
  465. },
  466. success: function () {
  467. $.currentWindow().$("#gridList").trigger("reloadGrid");
  468. }
  469. })
  470. }
  471. if (Type == '4') {
  472. $.submitForm({
  473. url: "/WMS/WMSCreateItemLot/SubmitFormXiaoShou?SDNCode=" + SDNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  474. param: {
  475. keyValue: JSON.stringify(obj)
  476. },
  477. success: function () {
  478. $.currentWindow().$("#gridList").trigger("reloadGrid");
  479. }
  480. })
  481. }
  482. if (Type == '5') {
  483. $.submitForm({
  484. url: "/WMS/WMSCreateItemLot/SubmitFormQiTa?InCode=" + InCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  485. param: {
  486. keyValue: JSON.stringify(obj)
  487. },
  488. success: function () {
  489. $.currentWindow().$("#gridList").trigger("reloadGrid");
  490. }
  491. })
  492. }
  493. if (Type == '6') {
  494. $.submitForm({
  495. url: "/WMS/WMSCreateItemLot/SubmitFormGuiHuan?ReturnCode=" + ReturnCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  496. param: {
  497. keyValue: JSON.stringify(obj)
  498. },
  499. success: function () {
  500. $.currentWindow().$("#gridList").trigger("reloadGrid");
  501. }
  502. })
  503. }
  504. if (Type == '7') {
  505. $.submitForm({
  506. url: "/WMS/WMSCreateItemLot/SubmitFormSHDH?DNCode=" + DNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  507. param: {
  508. keyValue: JSON.stringify(obj)
  509. },
  510. success: function () {
  511. $.currentWindow().$("#gridList").trigger("reloadGrid");
  512. }
  513. })
  514. }
  515. if (Type == '8') {
  516. $.submitForm({
  517. url: "/WMS/WMSCreateItemLot/SubmitFormWWSHDH?ODNCode=" + ODNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  518. param: {
  519. keyValue: JSON.stringify(obj)
  520. },
  521. success: function () {
  522. $.currentWindow().$("#gridList").trigger("reloadGrid");
  523. }
  524. })
  525. }
  526. if (Type == '9') {
  527. $.submitForm({
  528. url: "/WMS/WMSCreateItemLot/SubmitFormKLCPRK?RCVCode=" + RCVCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  529. param: {
  530. keyValue: JSON.stringify(obj)
  531. },
  532. success: function () {
  533. $.currentWindow().$("#gridList").trigger("reloadGrid");
  534. }
  535. })
  536. }
  537. }
  538. </script>
  539. <form id="form1">
  540. <div style="padding-top: 20px; margin-right: 20px;">
  541. <table class="form">
  542. <tr>
  543. <th class="formTitle">料品编码</th>
  544. <td class="formValue">
  545. <input id="InvCode" name="InvCode" type="text" class="form-control " />
  546. </td>
  547. </tr>
  548. <tr>
  549. <th class="formTitle">料品名称</th>
  550. <td class="formValue">
  551. <input id="INVNAME" name="INVNAME" type="text" class="form-control " />
  552. </td>
  553. </tr>
  554. <tr>
  555. <th class="formTitle">规格型号</th>
  556. <td class="formValue">
  557. <input id="INVSTD" name="INVSTD" type="text" class="form-control " />
  558. </td>
  559. </tr>
  560. <tr>
  561. <th class="formTitle">计量单位</th>
  562. <td class="formValue">
  563. <input id="INVUOM" name="INVUOM" type="text" class="form-control " />
  564. </td>
  565. </tr>
  566. <tr>
  567. <th class="formTitle">数量</th>
  568. <td class="formValue">
  569. <input id="Quantity" name="Quantity" type="text" class="form-control " />
  570. </td>
  571. </tr>
  572. <tr>
  573. <th class="formTitle">已生成条码数量</th>
  574. <td class="formValue">
  575. <input id="CreatedQty" name="CreatedQty" type="text" class="form-control " />
  576. </td>
  577. </tr>
  578. <tr>
  579. <th class="formTitle"><span style="color: red;">*</span>本次生成数量</th>
  580. <td class="formValue">
  581. <input id="thisCreateQty" name="thisCreateQty" type="text" class="form-control required" placeholder="请输入本次生成数量" />
  582. </td>
  583. </tr>
  584. <tr>
  585. <th class="formTitle"><span style="color: red;">*</span>最小包装量</th>
  586. <td class="formValue">
  587. <input id="minPackQty" name="minPackQty" type="text" class="form-control required" placeholder="请输入最小包装量" />
  588. </td>
  589. </tr>
  590. <tr>
  591. <th class="formTitle"><span style="color: red;">*</span>生产日期</th>
  592. <td class="formValue">
  593. <input type="text" name="PRODUCTDATE" id="PRODUCTDATE" class="form-control required" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="生产日期" />
  594. </td>
  595. </tr>
  596. <tr>
  597. <th class="formTitle"><span style="color: red;">*</span>生成张数</th>
  598. <td class="formValue">
  599. <input id="cretePageCount" disabled="disabled" name="cretePageCount" type="text" class="form-control required" placeholder="请输入生成张数" />
  600. </td>
  601. </tr>
  602. </table>
  603. </div>
  604. </form>