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

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