纽威
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.

1183 lines
55 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
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. var CLApplyNegCode = $.request("CLApplyNegCode");
  20. var WWLLOApplyNegCode = $.request("WWLLOApplyNegCode");
  21. var WWCLOApplyNegCode = $.request("WWCLOApplyNegCode");
  22. var FGGDMOCode = $.request("FGGDMOCode");
  23. debugger;
  24. var WorkPoints = '@NFine.Code.OperatorProvider.Provider.GetCurrent().Location'
  25. $(function () {
  26. $("#minPackQty").keyup(function () {
  27. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  28. }).bind("paste", function () { //CTR+V事件处理
  29. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  30. }).css("ime-mode", "disabled"); //CSS设置输入法不可用
  31. $("#thisCreateQty").keyup(function () {
  32. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  33. }).bind("paste", function () { //CTR+V事件处理
  34. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  35. }).css("ime-mode", "disabled"); //CSS设置输入法不可用
  36. $("#cretePageCount").keyup(function () {
  37. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  38. }).bind("paste", function () { //CTR+V事件处理
  39. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  40. }).css("ime-mode", "disabled"); //CSS设置输入法不可用
  41. var VenCode = "";
  42. var WorkPoint = "";
  43. debugger;
  44. //initControl();
  45. if (Type=='1') {
  46. if (!!ApplyNegCode && !!Sequence) {
  47. $.ajax({
  48. url: "/WMS/WMSCreateItemLot/GetSubGridJsonByCreate?ApplyNegCode=" + ApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  49. //data: { keyValue: keyValue },
  50. dataType: "json",
  51. async: false,
  52. success: function (data) {
  53. debugger;
  54. $("#InvCode").val(data.rows[0].InvCode);
  55. $("#INVNAME").val(data.rows[0].InvName);
  56. $("#INVSTD").val(data.rows[0].InvStd);
  57. $("#Quantity").val(data.rows[0].Quantity);
  58. $("#CreatedQty").val(data.rows[0].CreatedQty);
  59. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  60. $("#YAmount").val(data.rows[0].Amount);
  61. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  62. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  63. VenCode = data.rows[0].VenCode;
  64. WorkPoint = data.rows[0].WorkPoint;
  65. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  66. $("#thisCreateQty").attr("disabled", "disabled");
  67. $("#minPackQty").attr("disabled", "disabled");
  68. $("#VendorLotNo").attr("disabled", "disabled");
  69. }
  70. }
  71. });
  72. $.ajax({
  73. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  74. //data: { keyValue: keyValue },
  75. dataType: "json",
  76. async: false,
  77. success: function (data) {
  78. $("#VendorLotNo").val(data.VendorLotNo);
  79. }
  80. });
  81. }
  82. }
  83. if (Type=='2') {
  84. if (!!OApplyNegCode && !!Sequence) {
  85. $.ajax({
  86. url: "/WMS/WMSCreateItemLot/GetSubGridJsonWeiWaiByCreate?OApplyNegCode=" + OApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  87. dataType: "json",
  88. async: false,
  89. success: function (data) {
  90. debugger;
  91. $("#InvCode").val(data.rows[0].InvCode);
  92. $("#INVNAME").val(data.rows[0].InvName);
  93. $("#INVSTD").val(data.rows[0].InvStd);
  94. $("#Quantity").val(data.rows[0].Quantity);
  95. $("#CreatedQty").val(data.rows[0].CreatedQty);
  96. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  97. $("#YAmount").val(data.rows[0].Amount);
  98. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  99. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  100. VenCode = data.rows[0].VenCode;
  101. WorkPoint = data.rows[0].WorkPoint;
  102. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  103. $("#thisCreateQty").attr("disabled", "disabled");
  104. $("#minPackQty").attr("disabled", "disabled");
  105. $("#VendorLotNo").attr("disabled", "disabled");
  106. }
  107. }
  108. });
  109. $.ajax({
  110. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  111. dataType: "json",
  112. async: false,
  113. success: function (data) {
  114. $("#VendorLotNo").val(data.VendorLotNo);
  115. }
  116. });
  117. }
  118. }
  119. if (Type == '3') {
  120. if (!!MOCode && !!Sequence) {
  121. $.ajax({
  122. url: "/WMS/WMSCreateItemLot/GetSubGridJsonChengPingByCreate?MOCode=" + MOCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  123. dataType: "json",
  124. async: false,
  125. success: function (data) {
  126. debugger;
  127. $("#InvCode").val(data.rows[0].InvCode);
  128. $("#INVNAME").val(data.rows[0].InvName);
  129. $("#INVSTD").val(data.rows[0].InvStd);
  130. $("#Quantity").val(data.rows[0].Quantity);
  131. $("#CreatedQty").val(data.rows[0].CreatedQty);
  132. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  133. $("#YAmount").val(data.rows[0].Amount);
  134. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  135. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  136. VenCode = data.rows[0].VenCode;
  137. WorkPoint = data.rows[0].WorkPoint;
  138. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  139. $("#thisCreateQty").attr("disabled", "disabled");
  140. $("#minPackQty").attr("disabled", "disabled");
  141. $("#VendorLotNo").attr("disabled", "disabled");
  142. }
  143. }
  144. });
  145. $.ajax({
  146. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  147. dataType: "json",
  148. async: false,
  149. success: function (data) {
  150. $("#VendorLotNo").val(data.VendorLotNo);
  151. }
  152. });
  153. }
  154. }
  155. if (Type == '4') {
  156. if (!!SDNCode && !!Sequence) {
  157. $.ajax({
  158. url: "/WMS/WMSCreateItemLot/GetSubGridJsonXiaoShouByCreate?SDNCode=" + SDNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  159. dataType: "json",
  160. async: false,
  161. success: function (data) {
  162. debugger;
  163. $("#InvCode").val(data.rows[0].InvCode);
  164. $("#INVNAME").val(data.rows[0].InvName);
  165. $("#INVSTD").val(data.rows[0].InvStd);
  166. $("#Quantity").val(data.rows[0].Quantity);
  167. $("#CreatedQty").val(data.rows[0].CreatedQty);
  168. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  169. $("#YAmount").val(data.rows[0].Amount);
  170. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  171. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  172. VenCode = data.rows[0].VenCode;
  173. WorkPoint = data.rows[0].WorkPoint;
  174. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  175. $("#thisCreateQty").attr("disabled", "disabled");
  176. $("#minPackQty").attr("disabled", "disabled");
  177. $("#VendorLotNo").attr("disabled", "disabled");
  178. }
  179. }
  180. });
  181. $.ajax({
  182. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  183. dataType: "json",
  184. async: false,
  185. success: function (data) {
  186. $("#VendorLotNo").val(data.VendorLotNo);
  187. }
  188. });
  189. }
  190. }
  191. if (Type == '5') {
  192. if (!!InCode && !!Sequence) {
  193. $.ajax({
  194. url: "/WMS/WMSCreateItemLot/GetSubGridJsonQiTaByCreate?InCode=" + InCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  195. dataType: "json",
  196. async: false,
  197. success: function (data) {
  198. debugger;
  199. $("#InvCode").val(data.rows[0].InvCode);
  200. $("#INVNAME").val(data.rows[0].InvName);
  201. $("#INVSTD").val(data.rows[0].InvStd);
  202. $("#Quantity").val(data.rows[0].Quantity);
  203. $("#CreatedQty").val(data.rows[0].CreatedQty);
  204. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  205. $("#YAmount").val(data.rows[0].Amount);
  206. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  207. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  208. VenCode = data.rows[0].VenCode;
  209. WorkPoint = data.rows[0].WorkPoint;
  210. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  211. $("#thisCreateQty").attr("disabled", "disabled");
  212. $("#minPackQty").attr("disabled", "disabled");
  213. $("#VendorLotNo").attr("disabled", "disabled");
  214. }
  215. }
  216. });
  217. $.ajax({
  218. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  219. //data: { keyValue: keyValue },
  220. dataType: "json",
  221. async: false,
  222. success: function (data) {
  223. $("#VendorLotNo").val(data.VendorLotNo);
  224. }
  225. });
  226. }
  227. }
  228. if (Type == '6') {
  229. if (!!ReturnCode && !!Sequence) {
  230. $.ajax({
  231. url: "/WMS/WMSCreateItemLot/GetSubGridJsonGuiHuanByCreate?ReturnCode=" + ReturnCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  232. dataType: "json",
  233. async: false,
  234. success: function (data) {
  235. debugger;
  236. $("#InvCode").val(data.rows[0].InvCode);
  237. $("#INVNAME").val(data.rows[0].InvName);
  238. $("#INVSTD").val(data.rows[0].InvStd);
  239. $("#Quantity").val(data.rows[0].Quantity);
  240. $("#CreatedQty").val(data.rows[0].CreatedQty);
  241. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  242. $("#YAmount").val(data.rows[0].Amount);
  243. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  244. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  245. VenCode = data.rows[0].VenCode;
  246. WorkPoint = data.rows[0].WorkPoint;
  247. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  248. $("#thisCreateQty").attr("disabled", "disabled");
  249. $("#minPackQty").attr("disabled", "disabled");
  250. $("#VendorLotNo").attr("disabled", "disabled");
  251. }
  252. }
  253. });
  254. $.ajax({
  255. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  256. //data: { keyValue: keyValue },
  257. dataType: "json",
  258. async: false,
  259. success: function (data) {
  260. $("#VendorLotNo").val(data.VendorLotNo);
  261. }
  262. });
  263. }
  264. }
  265. if (Type == '7') {
  266. if (!!DNCode && !!Sequence) {
  267. $.ajax({
  268. url: "/WMS/WMSCreateItemLot/GetSubGridJsonSHDHByCreate?DNCode=" + DNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  269. dataType: "json",
  270. async: false,
  271. success: function (data) {
  272. debugger;
  273. $("#InvCode").val(data.rows[0].InvCode);
  274. $("#INVNAME").val(data.rows[0].InvName);
  275. $("#INVSTD").val(data.rows[0].InvStd);
  276. $("#Quantity").val(data.rows[0].Quantity);
  277. $("#CreatedQty").val(data.rows[0].CreatedQty);
  278. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  279. $("#YAmount").val(data.rows[0].Amount);
  280. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  281. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  282. VenCode = data.rows[0].VenCode;
  283. WorkPoint = data.rows[0].WorkPoint;
  284. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  285. $("#thisCreateQty").attr("disabled", "disabled");
  286. $("#minPackQty").attr("disabled", "disabled");
  287. $("#VendorLotNo").attr("disabled", "disabled");
  288. }
  289. }
  290. });
  291. $.ajax({
  292. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  293. //data: { keyValue: keyValue },
  294. dataType: "json",
  295. async: false,
  296. success: function (data) {
  297. $("#VendorLotNo").val(data.VendorLotNo);
  298. }
  299. });
  300. }
  301. }
  302. if (Type == '8') {
  303. debugger;
  304. if (!!ODNCode && !!Sequence) {
  305. $.ajax({
  306. url: "/WMS/WMSCreateItemLot/GetSubGridJsonWWSHDHByCreate?ODNCode=" + ODNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  307. dataType: "json",
  308. async: false,
  309. success: function (data) {
  310. debugger;
  311. $("#InvCode").val(data.rows[0].InvCode);
  312. $("#INVNAME").val(data.rows[0].InvName);
  313. $("#INVSTD").val(data.rows[0].InvStd);
  314. $("#Quantity").val(data.rows[0].Quantity);
  315. $("#CreatedQty").val(data.rows[0].CreatedQty);
  316. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  317. $("#YAmount").val(data.rows[0].Amount);
  318. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  319. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  320. VenCode = data.rows[0].VenCode;
  321. WorkPoint = data.rows[0].WorkPoint;
  322. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  323. $("#thisCreateQty").attr("disabled", "disabled");
  324. $("#minPackQty").attr("disabled", "disabled");
  325. $("#VendorLotNo").attr("disabled", "disabled");
  326. }
  327. }
  328. });
  329. $.ajax({
  330. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  331. //data: { keyValue: keyValue },
  332. dataType: "json",
  333. async: false,
  334. success: function (data) {
  335. $("#VendorLotNo").val(data.VendorLotNo);
  336. }
  337. });
  338. }
  339. }
  340. if (Type == '9') {
  341. debugger;
  342. if (!!RCVCode && !!Sequence) {
  343. $.ajax({
  344. url: "/WMS/WMSCreateItemLot/GetSubGridJsonKLCPRKByCreate?RCVCode=" + RCVCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  345. dataType: "json",
  346. async: false,
  347. success: function (data) {
  348. debugger;
  349. $("#InvCode").val(data.rows[0].InvCode);
  350. $("#INVNAME").val(data.rows[0].InvName);
  351. $("#INVSTD").val(data.rows[0].InvStd);
  352. $("#Quantity").val(data.rows[0].Quantity);
  353. $("#CreatedQty").val(data.rows[0].CreatedQty);
  354. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  355. $("#YAmount").val(data.rows[0].Amount);
  356. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  357. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  358. VenCode = data.rows[0].VenCode;
  359. WorkPoint = data.rows[0].WorkPoint;
  360. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  361. $("#thisCreateQty").attr("disabled", "disabled");
  362. $("#minPackQty").attr("disabled", "disabled");
  363. $("#VendorLotNo").attr("disabled", "disabled");
  364. }
  365. }
  366. });
  367. $.ajax({
  368. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  369. //data: { keyValue: keyValue },
  370. dataType: "json",
  371. async: false,
  372. success: function (data) {
  373. $("#VendorLotNo").val(data.VendorLotNo);
  374. }
  375. });
  376. }
  377. }
  378. if (Type == '10') {
  379. if (!!DNCode && !!Sequence) {
  380. $.ajax({
  381. url: "/WMS/WMSCreateItemLot/GetSubGridJsonJSDByCreate?DNCode=" + DNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  382. dataType: "json",
  383. async: false,
  384. success: function (data) {
  385. debugger;
  386. $("#InvCode").val(data.rows[0].InvCode);
  387. $("#INVNAME").val(data.rows[0].InvName);
  388. $("#INVSTD").val(data.rows[0].InvStd);
  389. $("#Quantity").val(data.rows[0].Quantity);
  390. $("#CreatedQty").val(data.rows[0].CreatedQty);
  391. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  392. $("#YAmount").val(data.rows[0].Amount);
  393. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  394. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  395. VenCode = data.rows[0].VenCode;
  396. WorkPoint = data.rows[0].WorkPoint;
  397. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  398. $("#thisCreateQty").attr("disabled", "disabled");
  399. $("#minPackQty").attr("disabled", "disabled");
  400. $("#VendorLotNo").attr("disabled", "disabled");
  401. }
  402. }
  403. });
  404. $.ajax({
  405. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  406. //data: { keyValue: keyValue },
  407. dataType: "json",
  408. async: false,
  409. success: function (data) {
  410. $("#VendorLotNo").val(data.VendorLotNo);
  411. }
  412. });
  413. }
  414. }
  415. if (Type == '11') {
  416. debugger;
  417. if (!!ODNCode && !!Sequence) {
  418. $.ajax({
  419. url: "/WMS/WMSCreateItemLot/GetSubGridJsonWWJSDByCreate?ODNCode=" + ODNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  420. dataType: "json",
  421. async: false,
  422. success: function (data) {
  423. debugger;
  424. $("#InvCode").val(data.rows[0].InvCode);
  425. $("#INVNAME").val(data.rows[0].InvName);
  426. $("#INVSTD").val(data.rows[0].InvStd);
  427. $("#Quantity").val(data.rows[0].Quantity);
  428. $("#CreatedQty").val(data.rows[0].CreatedQty);
  429. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  430. $("#YAmount").val(data.rows[0].Amount);
  431. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  432. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  433. VenCode = data.rows[0].VenCode;
  434. WorkPoint = data.rows[0].WorkPoint;
  435. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  436. $("#thisCreateQty").attr("disabled", "disabled");
  437. $("#minPackQty").attr("disabled", "disabled");
  438. $("#VendorLotNo").attr("disabled", "disabled");
  439. }
  440. }
  441. });
  442. $.ajax({
  443. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  444. //data: { keyValue: keyValue },
  445. dataType: "json",
  446. async: false,
  447. success: function (data) {
  448. $("#VendorLotNo").val(data.VendorLotNo);
  449. }
  450. });
  451. }
  452. }
  453. if (Type == '12') {
  454. if (!!LLApplyNegCode && !!Sequence) {
  455. $.ajax({
  456. url: "/WMS/WMSCreateItemLot/GetSubGridJsonLLSQDByCreate?ApplyNegCode=" + LLApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  457. //data: { keyValue: keyValue },
  458. dataType: "json",
  459. async: false,
  460. success: function (data) {
  461. debugger;
  462. $("#InvCode").val(data.rows[0].InvCode);
  463. $("#INVNAME").val(data.rows[0].InvName);
  464. $("#INVSTD").val(data.rows[0].InvStd);
  465. $("#Quantity").val(data.rows[0].Quantity);
  466. $("#CreatedQty").val(data.rows[0].CreatedQty);
  467. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  468. $("#YAmount").val(data.rows[0].Amount);
  469. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  470. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  471. VenCode = data.rows[0].VenCode;
  472. WorkPoint = data.rows[0].WorkPoint;
  473. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  474. $("#thisCreateQty").attr("disabled", "disabled");
  475. $("#minPackQty").attr("disabled", "disabled");
  476. $("#VendorLotNo").attr("disabled", "disabled");
  477. }
  478. }
  479. });
  480. $.ajax({
  481. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  482. //data: { keyValue: keyValue },
  483. dataType: "json",
  484. async: false,
  485. success: function (data) {
  486. $("#VendorLotNo").val(data.VendorLotNo);
  487. }
  488. });
  489. }
  490. }
  491. if (Type == '13') {
  492. if (!!CLApplyNegCode && !!Sequence) {
  493. $.ajax({
  494. url: "/WMS/WMSCreateItemLot/GetSubGridJsonCLCKByCreate?ApplyNegCode=" + CLApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  495. //data: { keyValue: keyValue },
  496. dataType: "json",
  497. async: false,
  498. success: function (data) {
  499. debugger;
  500. $("#InvCode").val(data.rows[0].InvCode);
  501. $("#INVNAME").val(data.rows[0].InvName);
  502. $("#INVSTD").val(data.rows[0].InvStd);
  503. $("#Quantity").val(data.rows[0].Quantity);
  504. $("#CreatedQty").val(data.rows[0].CreatedQty);
  505. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  506. $("#YAmount").val(data.rows[0].Amount);
  507. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  508. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  509. VenCode = data.rows[0].VenCode;
  510. WorkPoint = data.rows[0].WorkPoint;
  511. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  512. $("#thisCreateQty").attr("disabled", "disabled");
  513. $("#minPackQty").attr("disabled", "disabled");
  514. $("#VendorLotNo").attr("disabled", "disabled");
  515. }
  516. }
  517. });
  518. $.ajax({
  519. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  520. //data: { keyValue: keyValue },
  521. dataType: "json",
  522. async: false,
  523. success: function (data) {
  524. $("#VendorLotNo").val(data.VendorLotNo);
  525. }
  526. });
  527. }
  528. }
  529. if (Type == '14') {
  530. if (!!WWLLOApplyNegCode && !!Sequence) {
  531. $.ajax({
  532. url: "/WMS/WMSCreateItemLot/GetSubGridJsonWWLLByCreate?OApplyNegCode=" + WWLLOApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  533. dataType: "json",
  534. async: false,
  535. success: function (data) {
  536. debugger;
  537. $("#InvCode").val(data.rows[0].InvCode);
  538. $("#INVNAME").val(data.rows[0].InvName);
  539. $("#INVSTD").val(data.rows[0].InvStd);
  540. $("#Quantity").val(data.rows[0].Quantity);
  541. $("#CreatedQty").val(data.rows[0].CreatedQty);
  542. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  543. $("#YAmount").val(data.rows[0].Amount);
  544. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  545. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  546. VenCode = data.rows[0].VenCode;
  547. WorkPoint = data.rows[0].WorkPoint;
  548. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  549. $("#thisCreateQty").attr("disabled", "disabled");
  550. $("#minPackQty").attr("disabled", "disabled");
  551. $("#VendorLotNo").attr("disabled", "disabled");
  552. }
  553. }
  554. });
  555. $.ajax({
  556. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  557. dataType: "json",
  558. async: false,
  559. success: function (data) {
  560. $("#VendorLotNo").val(data.VendorLotNo);
  561. }
  562. });
  563. }
  564. }
  565. if (Type == '15') {
  566. if (!!WWCLOApplyNegCode && !!Sequence) {
  567. $.ajax({
  568. url: "/WMS/WMSCreateItemLot/GetSubGridJsonWWCLByCreate?OApplyNegCode=" + WWCLOApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  569. dataType: "json",
  570. async: false,
  571. success: function (data) {
  572. debugger;
  573. $("#InvCode").val(data.rows[0].InvCode);
  574. $("#INVNAME").val(data.rows[0].InvName);
  575. $("#INVSTD").val(data.rows[0].InvStd);
  576. $("#Quantity").val(data.rows[0].Quantity);
  577. $("#CreatedQty").val(data.rows[0].CreatedQty);
  578. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  579. $("#YAmount").val(data.rows[0].Amount);
  580. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  581. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  582. VenCode = data.rows[0].VenCode;
  583. WorkPoint = data.rows[0].WorkPoint;
  584. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  585. $("#thisCreateQty").attr("disabled", "disabled");
  586. $("#minPackQty").attr("disabled", "disabled");
  587. $("#VendorLotNo").attr("disabled", "disabled");
  588. }
  589. }
  590. });
  591. $.ajax({
  592. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  593. dataType: "json",
  594. async: false,
  595. success: function (data) {
  596. $("#VendorLotNo").val(data.VendorLotNo);
  597. }
  598. });
  599. }
  600. }
  601. if (Type == '16') {
  602. if (!!FGGDMOCode && !!Sequence) {
  603. $.ajax({
  604. url: "/WMS/WMSCreateItemLot/GetSubGridJsonFGGDCreate?FGGDMOCode=" + FGGDMOCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  605. dataType: "json",
  606. async: false,
  607. success: function (data) {
  608. debugger;
  609. $("#InvCode").val(data.rows[0].InvCode);
  610. $("#INVNAME").val(data.rows[0].InvName);
  611. $("#INVSTD").val(data.rows[0].InvStd);
  612. $("#Quantity").val(data.rows[0].Quantity);
  613. $("#CreatedQty").val(data.rows[0].CreatedQty);
  614. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  615. $("#YAmount").val(data.rows[0].Amount);
  616. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  617. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  618. VenCode = data.rows[0].VenCode;
  619. WorkPoint = data.rows[0].WorkPoint;
  620. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  621. $("#thisCreateQty").attr("disabled", "disabled");
  622. $("#minPackQty").attr("disabled", "disabled");
  623. $("#VendorLotNo").attr("disabled", "disabled");
  624. }
  625. }
  626. });
  627. $.ajax({
  628. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  629. dataType: "json",
  630. async: false,
  631. success: function (data) {
  632. $("#VendorLotNo").val(data.VendorLotNo);
  633. }
  634. });
  635. }
  636. }
  637. //查询后台自由项表(控制前台显示)
  638. $.ajax({
  639. url: "/WMS/WMSCreateItemLot/SelectICSExtensionEnable" + "?" + Math.random(),
  640. dataType: "json",
  641. async: false,
  642. success: function (data) {
  643. debugger;
  644. if (data != null && data.length > 0) {
  645. for (var i = 0; i < data.length; i++) {
  646. if (data[i].ColCode == 'ProjectCode') { $("#trProjectCode").css('display', 'none'); }
  647. if (data[i].ColCode == 'BatchCode') { $("#trBatchCode").css('display', 'none'); }
  648. if (data[i].ColCode == 'Version') { $("#trVersion").css('display', 'none'); }
  649. if (data[i].ColCode == 'Brand') { $("#trBrand").css('display', 'none'); }
  650. if (data[i].ColCode == 'cFree1') { $("#trcFree1").css('display', 'none'); }
  651. if (data[i].ColCode == 'cFree2') { $("#trcFree2").css('display', 'none'); }
  652. if (data[i].ColCode == 'cFree3') { $("#trcFree3").css('display', 'none'); }
  653. if (data[i].ColCode == 'cFree4') { $("#trcFree4").css('display', 'none'); }
  654. if (data[i].ColCode == 'cFree5') { $("#trcFree5").css('display', 'none'); }
  655. if (data[i].ColCode == 'cFree6') { $("#trcFree6").css('display', 'none'); }
  656. if (data[i].ColCode == 'cFree7') { $("#trcFree7").css('display', 'none'); }
  657. if (data[i].ColCode == 'cFree8') { $("#trcFree8").css('display', 'none'); }
  658. if (data[i].ColCode == 'cFree9') { $("#trcFree9").css('display', 'none'); }
  659. if (data[i].ColCode == 'cFree10') { $("#trcFree10").css('display', 'none'); }
  660. //if (i >= 4) {
  661. // if (data[i].ColName == 'cFree' + (i - 3)) {$("#trcFree'" + (i - 3) + "'").css('display', 'none');}
  662. //}
  663. }
  664. }
  665. }
  666. });
  667. $("#minPackQty").change(minPackQty_Change);
  668. $("#thisCreateQty").change(thisCreateQty_Change);
  669. $("#cretePageCount").change(function () {
  670. var createPageCount = $("#cretePageCount").val() * 1;//本次生成张数
  671. createPageCount = createPageCount.toFixed(0);
  672. if (createPageCount <= 0) {
  673. $.modalAlertNew("WMS00102");
  674. return false;
  675. }
  676. });
  677. });
  678. //最小包装量值改变事件
  679. function minPackQty_Change() {
  680. var thisCreateQty = $("#thisCreateQty").val() * 1;//本次生成数量
  681. thisCreateQty = thisCreateQty.toFixed(2);
  682. var minPackQty = $("#minPackQty").val() * 1;//最小包装量
  683. minPackQty = minPackQty.toFixed(2);
  684. var createPageCount = $("#cretePageCount").val() * 1;//本次生成张数
  685. var Quantity = $("#Quantity").val() * 1;//数量
  686. var YAmount = $("#YAmount").val() * 1;//辅计量数量
  687. var Ratio = YAmount / Quantity;
  688. createPageCount = createPageCount.toFixed(0);
  689. if (minPackQty <= 0) {
  690. $.modalAlertNew("WMS00102");
  691. return false;
  692. }
  693. //不可以整除,生成张数+1;
  694. if (thisCreateQty % minPackQty != 0) {
  695. createPageCount = parseInt(thisCreateQty / minPackQty) + 1;
  696. $("#cretePageCount").val(createPageCount);
  697. }
  698. else {
  699. createPageCount = parseInt(thisCreateQty / minPackQty);
  700. $("#cretePageCount").val(createPageCount);
  701. }
  702. $("#Amount").val(Ratio);//自动计算出的条码辅计量数量
  703. }
  704. //本次生成数量值改变事件
  705. function thisCreateQty_Change() {
  706. debugger;
  707. var Quantity_str = $("#Quantity").val() * 1;//采购订单总数
  708. var CreatedQty_str = $("#CreatedQty").val() * 1;//已生成数量
  709. var thisCreateQty_str = $("#thisCreateQty").val() * 1;//本次生成数量
  710. var Quantity = Number(Quantity_str);
  711. var CreatedQty = Number(CreatedQty_str);
  712. var thisCreateQty = Number(thisCreateQty_str);
  713. if (thisCreateQty <= 0) {
  714. $.modalAlertNew("WMS00102");
  715. return false;
  716. }
  717. if (thisCreateQty <= 0 || thisCreateQty > (Quantity - CreatedQty)) {
  718. var maxQty = Quantity - CreatedQty;
  719. $.modalAlertNew("WMS00103",maxQty);
  720. //$.modalAlert("请输入0到" + maxQty + "范围内的数!");
  721. $("#thisCreateQty").val("");
  722. return false;
  723. } else {
  724. minPackQty_Change();
  725. return true;
  726. }
  727. var minPackQty = $("#minPackQty").val() * 1;//最小包装量
  728. minPackQty_Change();
  729. }
  730. function submitForm() {
  731. debugger;
  732. if (!$('#form1').formValid()) {
  733. return false;
  734. }
  735. var thisCreateQty = $("#thisCreateQty").val() * 1;//本次生成数量
  736. thisCreateQty = thisCreateQty.toFixed(2);
  737. var minPackQty = $("#minPackQty").val() * 1;//最小包装量
  738. minPackQty = minPackQty.toFixed(2);
  739. var createPageCount = $("#cretePageCount").val() * 1;//本次生成张数
  740. createPageCount = createPageCount.toFixed(0);
  741. //校验
  742. var flag1 = thisCreateQty_Change();
  743. //var flag2 = CheckNum();
  744. var VendorLot = $("#VendorLotNo").val();
  745. if (flag1) { }
  746. else {
  747. return false;
  748. }
  749. var Quantity = $("#Quantity").val() * 1;//采购订单总数
  750. Quantity = Quantity.toFixed(2);
  751. var CreatedQty = $("#CreatedQty").val() * 1;//已生成数量
  752. CreatedQty = CreatedQty.toFixed(2);
  753. if (Quantity == CreatedQty ) {
  754. return false;
  755. }
  756. var ExpirationDate = '';//条码失效日期
  757. var EffectiveEnable = $("#EffectiveEnable").val();//料品是否启用有效天数
  758. var EffectiveDays = $("#EffectiveDays").val();//料品有效期天数
  759. var PRODUCTDATE = $("#PRODUCTDATE").val();//条码生产日期
  760. if (EffectiveEnable=='1') {
  761. var ExpirationDate= dateChange(EffectiveDays, PRODUCTDATE);
  762. } else {
  763. var ExpirationDate = '2999-12-31 00:00:00.000';
  764. }
  765. var obj = {
  766. thisCreateQty: thisCreateQty,
  767. minPackQty: minPackQty,
  768. createPageCount: createPageCount,
  769. VendorLot: VendorLot,
  770. PRODUCTDATE: PRODUCTDATE,
  771. ExpirationDate:ExpirationDate,
  772. Amount: $("#Amount").val(),
  773. //自由项
  774. ProjectCode: $("#ProjectCode").val(),
  775. BatchCode: $("#BatchCode").val(),
  776. Version: $("#Version").val(),
  777. Brand: $("#Brand").val(),
  778. cFree1: $("#cFree1").val(),
  779. cFree2: $("#cFree2").val(),
  780. cFree3: $("#cFree3").val(),
  781. cFree4: $("#cFree4").val(),
  782. cFree5: $("#cFree5").val(),
  783. cFree6: $("#cFree6").val(),
  784. cFree7: $("#cFree7").val(),
  785. cFree8: $("#cFree8").val(),
  786. cFree9: $("#cFree9").val(),
  787. cFree10: $("#cFree10").val(),
  788. }
  789. if (Type=='1') {
  790. $.submitForm({
  791. url: "/WMS/WMSCreateItemLot/SubmitForm?ApplyNegCode=" + ApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  792. param: {
  793. keyValue: JSON.stringify(obj)
  794. },
  795. success: function () {
  796. $.currentWindow().$("#gridList").trigger("reloadGrid");
  797. }
  798. })
  799. }
  800. if (Type=='2') {
  801. $.submitForm({
  802. url: "/WMS/WMSCreateItemLot/SubmitFormWeiWai?OApplyNegCode=" + OApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  803. param: {
  804. keyValue: JSON.stringify(obj)
  805. },
  806. success: function () {
  807. $.currentWindow().$("#gridList").trigger("reloadGrid");
  808. }
  809. })
  810. }
  811. if (Type == '3') {
  812. $.submitForm({
  813. url: "/WMS/WMSCreateItemLot/SubmitFormChengPing?MOCode=" + MOCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  814. param: {
  815. keyValue: JSON.stringify(obj)
  816. },
  817. success: function () {
  818. $.currentWindow().$("#gridList").trigger("reloadGrid");
  819. }
  820. })
  821. }
  822. if (Type == '4') {
  823. $.submitForm({
  824. url: "/WMS/WMSCreateItemLot/SubmitFormXiaoShou?SDNCode=" + SDNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  825. param: {
  826. keyValue: JSON.stringify(obj)
  827. },
  828. success: function () {
  829. $.currentWindow().$("#gridList").trigger("reloadGrid");
  830. }
  831. })
  832. }
  833. if (Type == '5') {
  834. $.submitForm({
  835. url: "/WMS/WMSCreateItemLot/SubmitFormQiTa?InCode=" + InCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  836. param: {
  837. keyValue: JSON.stringify(obj)
  838. },
  839. success: function () {
  840. $.currentWindow().$("#gridList").trigger("reloadGrid");
  841. }
  842. })
  843. }
  844. if (Type == '6') {
  845. $.submitForm({
  846. url: "/WMS/WMSCreateItemLot/SubmitFormGuiHuan?ReturnCode=" + ReturnCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  847. param: {
  848. keyValue: JSON.stringify(obj)
  849. },
  850. success: function () {
  851. $.currentWindow().$("#gridList").trigger("reloadGrid");
  852. }
  853. })
  854. }
  855. if (Type == '7') {
  856. $.submitForm({
  857. url: "/WMS/WMSCreateItemLot/SubmitFormSHDH?DNCode=" + DNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  858. param: {
  859. keyValue: JSON.stringify(obj)
  860. },
  861. success: function () {
  862. $.currentWindow().$("#gridList").trigger("reloadGrid");
  863. }
  864. })
  865. }
  866. if (Type == '8') {
  867. $.submitForm({
  868. url: "/WMS/WMSCreateItemLot/SubmitFormWWSHDH?ODNCode=" + ODNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  869. param: {
  870. keyValue: JSON.stringify(obj)
  871. },
  872. success: function () {
  873. $.currentWindow().$("#gridList").trigger("reloadGrid");
  874. }
  875. })
  876. }
  877. if (Type == '9') {
  878. $.submitForm({
  879. url: "/WMS/WMSCreateItemLot/SubmitFormKLCPRK?RCVCode=" + RCVCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  880. param: {
  881. keyValue: JSON.stringify(obj)
  882. },
  883. success: function () {
  884. $.currentWindow().$("#gridList").trigger("reloadGrid");
  885. }
  886. })
  887. }
  888. if (Type == '10') {
  889. $.submitForm({
  890. url: "/WMS/WMSCreateItemLot/SubmitFormJSD?DNCode=" + DNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  891. param: {
  892. keyValue: JSON.stringify(obj)
  893. },
  894. success: function () {
  895. $.currentWindow().$("#gridList").trigger("reloadGrid");
  896. }
  897. })
  898. }
  899. if (Type == '11') {
  900. $.submitForm({
  901. url: "/WMS/WMSCreateItemLot/SubmitFormWWJSD?ODNCode=" + ODNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  902. param: {
  903. keyValue: JSON.stringify(obj)
  904. },
  905. success: function () {
  906. $.currentWindow().$("#gridList").trigger("reloadGrid");
  907. }
  908. })
  909. }
  910. if (Type == '12') {
  911. $.submitForm({
  912. url: "/WMS/WMSCreateItemLot/SubmitFormLLSQTL?ApplyNegCode=" + LLApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  913. param: {
  914. keyValue: JSON.stringify(obj)
  915. },
  916. success: function () {
  917. $.currentWindow().$("#gridList").trigger("reloadGrid");
  918. }
  919. })
  920. }
  921. if (Type == '13') {
  922. $.submitForm({
  923. url: "/WMS/WMSCreateItemLot/SubmitFormCLCKT?ApplyNegCode=" + CLApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  924. param: {
  925. keyValue: JSON.stringify(obj)
  926. },
  927. success: function () {
  928. $.currentWindow().$("#gridList").trigger("reloadGrid");
  929. }
  930. })
  931. }
  932. if (Type == '14') {
  933. $.submitForm({
  934. url: "/WMS/WMSCreateItemLot/SubmitFormWWLL?OApplyNegCode=" + WWLLOApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  935. param: {
  936. keyValue: JSON.stringify(obj)
  937. },
  938. success: function () {
  939. $.currentWindow().$("#gridList").trigger("reloadGrid");
  940. }
  941. })
  942. }
  943. if (Type == '15') {
  944. $.submitForm({
  945. url: "/WMS/WMSCreateItemLot/SubmitFormWWCL?OApplyNegCode=" + WWCLOApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  946. param: {
  947. keyValue: JSON.stringify(obj)
  948. },
  949. success: function () {
  950. $.currentWindow().$("#gridList").trigger("reloadGrid");
  951. }
  952. })
  953. }
  954. if (Type == '16') {
  955. $.submitForm({
  956. url: "/WMS/WMSCreateItemLot/SubmitFormFGGD?FGGDMOCode=" + FGGDMOCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  957. param: {
  958. keyValue: JSON.stringify(obj)
  959. },
  960. success: function () {
  961. $.currentWindow().$("#gridList").trigger("reloadGrid");
  962. }
  963. })
  964. }
  965. }
  966. function dateChange(num ,date ) {
  967. if (!date) {
  968. date = new Date();//没有传入值时,默认是当前日期
  969. date = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
  970. }
  971. date += " 00:00:00";//设置为当天凌晨12点
  972. date = Date.parse(new Date(date))/1000;//转换为时间戳
  973. date += (86400) * num;//修改后的时间戳
  974. var newDate = new Date(parseInt(date) * 1000);//转换为时间
  975. return newDate.getFullYear() + '-' + (newDate.getMonth() + 1) + '-' + newDate.getDate();
  976. }
  977. </script>
  978. <form id="form1">
  979. <div style="padding-top: 20px; margin-right: 20px;">
  980. <table class="form">
  981. <tr>
  982. <th class="formTitle">料品编码</th>
  983. <td class="formValue">
  984. <input id="InvCode" name="InvCode" type="text" class="form-control " />
  985. </td>
  986. </tr>
  987. <tr>
  988. <th class="formTitle">料品名称</th>
  989. <td class="formValue">
  990. <input id="INVNAME" name="INVNAME" type="text" class="form-control " />
  991. </td>
  992. </tr>
  993. <tr>
  994. <th class="formTitle">规格型号</th>
  995. <td class="formValue">
  996. <input id="INVSTD" name="INVSTD" type="text" class="form-control " />
  997. </td>
  998. </tr>
  999. <tr>
  1000. <th class="formTitle">计量单位</th>
  1001. <td class="formValue">
  1002. <input id="INVUOM" name="INVUOM" type="text" class="form-control " />
  1003. </td>
  1004. </tr>
  1005. <tr>
  1006. <th class="formTitle">数量</th>
  1007. <td class="formValue">
  1008. <input id="Quantity" name="Quantity" type="text" class="form-control " />
  1009. <input id="YAmount" name="YAmount" type="text" style="display:none" />
  1010. </td>
  1011. </tr>
  1012. <tr>
  1013. <th class="formTitle">已生成条码数量</th>
  1014. <td class="formValue">
  1015. <input id="CreatedQty" name="CreatedQty" type="text" class="form-control " />
  1016. </td>
  1017. </tr>
  1018. <tr>
  1019. <th class="formTitle"><span style="color: red;">*</span>本次生成数量</th>
  1020. <td class="formValue">
  1021. <input id="thisCreateQty" name="thisCreateQty" type="text" class="form-control required" placeholder="请输入本次生成数量" />
  1022. </td>
  1023. </tr>
  1024. <tr>
  1025. <th class="formTitle"><span style="color: red;">*</span>最小包装量</th>
  1026. <td class="formValue">
  1027. <input id="minPackQty" name="minPackQty" type="text" class="form-control required" placeholder="请输入最小包装量" />
  1028. </td>
  1029. </tr>
  1030. <tr>
  1031. <th class="formTitle"><span style="color: red;">*</span>生产日期</th>
  1032. <td class="formValue">
  1033. <input type="text" name="PRODUCTDATE" id="PRODUCTDATE" class="form-control required" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="生产日期" />
  1034. <input id="EffectiveEnable" name="EffectiveEnable" type="text" style="display:none" />
  1035. <input id="EffectiveDays" name="EffectiveDays" type="text" style="display:none" />
  1036. </td>
  1037. </tr>
  1038. <tr>
  1039. <th class="formTitle"><span style="color: red;">*</span>生成张数</th>
  1040. <td class="formValue">
  1041. <input id="cretePageCount" name="cretePageCount" class="form-control required" type="text" placeholder="请输入生成张数" />
  1042. </td>
  1043. </tr>
  1044. <tr>
  1045. <th class="formTitle">辅计量数量</th>
  1046. <td class="formValue">
  1047. <input id="Amount" name="Amount" class="form-control" type="text" placeholder="请输入辅计量数量" />
  1048. </td>
  1049. </tr>
  1050. @*sssss*@
  1051. <tr id="trProjectCode">
  1052. <th class="formTitle">项目号</th>
  1053. <td class="formValue">
  1054. <input id="ProjectCode" name="ProjectCode" class="form-control " type="text" placeholder="请输入项目号" />
  1055. </td>
  1056. </tr>
  1057. <tr id="trBatchCode">
  1058. <th class="formTitle">批次</th>
  1059. <td class="formValue">
  1060. <input id="BatchCode" name="BatchCode" class="form-control " type="text" placeholder="请输入批次" />
  1061. </td>
  1062. </tr>
  1063. <tr id="trVersion">
  1064. <th class="formTitle">版本</th>
  1065. <td class="formValue">
  1066. <input id="Version" name="Version" class="form-control " type="text" placeholder="请输入版本" />
  1067. </td>
  1068. </tr>
  1069. <tr id="trBrand">
  1070. <th class="formTitle">厂牌</th>
  1071. <td class="formValue">
  1072. <input id="Brand" name="Brand" type="text" class="form-control " placeholder="请输入厂牌" />
  1073. </td>
  1074. </tr>
  1075. <tr id="trcFree1">
  1076. <th class="formTitle">自由项1</th>
  1077. <td class="formValue">
  1078. <input id="cFree1" name="cFree1" type="text" class="form-control " placeholder="请输入自由项1" />
  1079. </td>
  1080. </tr>
  1081. <tr id="trcFree2">
  1082. <th class="formTitle">自由项2</th>
  1083. <td class="formValue">
  1084. <input id="cFree2" name="cFree2" type="text" class="form-control " placeholder="请输入自由项2" />
  1085. </td>
  1086. </tr>
  1087. <tr id="trcFree3">
  1088. <th class="formTitle">自由项3</th>
  1089. <td class="formValue">
  1090. <input id="cFree3" name="cFree3" type="text" class="form-control " placeholder="请输入自由项3" />
  1091. </td>
  1092. </tr>
  1093. <tr id="trcFree4">
  1094. <th class="formTitle">自由项4</th>
  1095. <td class="formValue">
  1096. <input id="cFree4" name="cFree4" type="text" class="form-control " placeholder="请输入自由项4" />
  1097. </td>
  1098. </tr>
  1099. <tr id="trcFree5">
  1100. <th class="formTitle">自由项5</th>
  1101. <td class="formValue">
  1102. <input id="cFree5" name="cFree5" type="text" class="form-control " placeholder="请输入自由项5" />
  1103. </td>
  1104. </tr>
  1105. <tr id="trcFree6">
  1106. <th class="formTitle">自由项6</th>
  1107. <td class="formValue">
  1108. <input id="cFree6" name="cFree6" type="text" class="form-control " placeholder="请输入自由项6" />
  1109. </td>
  1110. </tr>
  1111. <tr id="trcFree7">
  1112. <th class="formTitle">自由项7</th>
  1113. <td class="formValue">
  1114. <input id="cFree7" name="cFree7" type="text" class="form-control " placeholder="请输入自由项7" />
  1115. </td>
  1116. </tr>
  1117. <tr id="trcFree8">
  1118. <th class="formTitle">自由项8</th>
  1119. <td class="formValue">
  1120. <input id="cFree8" name="cFree8" type="text" class="form-control " placeholder="请输入自由项8" />
  1121. </td>
  1122. </tr>
  1123. <tr id="trcFree9">
  1124. <th class="formTitle">自由项9</th>
  1125. <td class="formValue">
  1126. <input id="cFree9" name="cFree9" type="text" class="form-control " placeholder="请输入自由项9" />
  1127. </td>
  1128. </tr>
  1129. <tr id="trcFree10">
  1130. <th class="formTitle">自由项10</th>
  1131. <td class="formValue">
  1132. <input id="cFree10" name="cFree10" type="text" class="form-control " placeholder="请输入自由项10" />
  1133. </td>
  1134. </tr>
  1135. </table>
  1136. </div>
  1137. </form>